ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.42k stars 278 forks source link

bug(Google Photos): Revanced Manager ERROR when patching #3622

Open DomingV opened 2 months ago

DomingV commented 2 months ago

Bug description

I don't know what's happening. Just reporting a bug when building apk of GPhotos arm64-v8a.

Error logs

- Device Info
ReVanced Manager: 1.21.2
Model: Infinix X6837
Android version: 13
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: No

- Patch Info
App: com.google.android.apps.photos v6.59.0.576923577 (Suggested: Any)
Patches version: v4.13.3
Patches added: Default
Patches removed: None
Default patch options changed: None

- Settings
Allow changing patch selection: true
Version compatibility check: true
Show universal patches: false
Patches source: revanced/revanced-patches
Integration source: revanced/revanced-integrations

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Deleting existing temporary files directory
Decoding resources
Executing patches
Applied 3 patches
Compiling patched dex files
Compiled 8 dex files
Compiling modified resources
An error occurred:
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~29LVGgbtx4k9CnK5i6y8iQ==/app.revanced.manager.flutter-8DB7k8sptgOSodsIBrHKXQ==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-NAWISO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-NAWISO/revanced-temporary-files/apk/build/resources.zip]
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:144)
    at brut.androlib.AaptInvoker.invokeAapt(Unknown Source:106)
    at app.revanced.patcher.data.ResourceContext.get(SourceFile:0)
    at app.revanced.patcher.Patcher.get(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:462)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~29LVGgbtx4k9CnK5i6y8iQ==/app.revanced.manager.flutter-8DB7k8sptgOSodsIBrHKXQ==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-NAWISO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-NAWISO/revanced-temporary-files/apk/build/resources.zip]
    at brut.util.OS.exec(Unknown Source:75)
    at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:122)
    ... 7 more
Something went wrong:
PathNotFoundException: Cannot copy file to '/data/user/0/app.revanced.manager.flutter/files/lastPatchedApp.apk', path = '/data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-NAWISO/out.apk' (OS Error: No such file or directory, errno = 2)

Solution

No response

Additional context

No response

Acknowledgements

DomingV commented 2 months ago

I'll transfer this to revanced manager

DomingV commented 2 months ago

Thanks

oSumAtrIX commented 2 months ago

Reopening this as I can't find another open issue about this even though i remember there was one

7Grn commented 2 months ago

Reopening this as I can't find another open issue about this even though i remember there was one

maybe https://github.com/ReVanced/revanced-manager/issues/2142

oSumAtrIX commented 2 months ago

On second thoughts after reading the comments I don't think its related, despite the same error.

Abinash-G commented 1 month ago

I also have this issue

rowi123 commented 1 month ago

I have this too. Tried many different versions of the apk. Also tried 3 latest revanced versions.

LisoUseInAIKyrios commented 1 month ago

To anyone running into this, you can patch using a computer, command prompt, and ReVanced CLI tools.