Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug:brut.common.BrutException #2142

Open
4 tasks done
np84295 opened this issue Aug 15, 2024 · 38 comments
Open
4 tasks done

bug:brut.common.BrutException #2142

np84295 opened this issue Aug 15, 2024 · 38 comments
Labels
Bug report Something isn't working Waiting on author Further information is requested

Comments

@np84295
Copy link

np84295 commented Aug 15, 2024

Bug description

An error occurred:
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~9eVt2X873U6hrflJIuBFNg==/app.revanced.manager.flutter-Fan930Ft9a-j0mtAlCHU0A==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-LJPSVO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-LJPSVO/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/~~9eVt2X873U6hrflJIuBFNg==/app.revanced.manager.flutter-Fan930Ft9a-j0mtAlCHU0A==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-LJPSVO/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-LJPSVO/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

Version of ReVanced Manager and version & name of app you are patching

  • Device Info
    ReVanced Manager: 1.21.2
    Model: SM-S911B
    Android version: 14
    Supported architectures: arm64-v8a, armeabi-v7a, armeabi
    Root permissions: No

  • Patch Info
    App: com.google.android.youtube v19.16.39 (Suggested: 19.16.39)
    Patches version: v4.13.2
    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

revanced-manager_logcat_20240816012424228918.log
Snip

Installation method

Regular

ReVanced Manager logs

Attached link

Patch logs

No response

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The bug is only related to ReVanced Manager.
@np84295 np84295 added the Bug report Something isn't working label Aug 15, 2024
@kaaax0815

This comment was marked as duplicate.

@LisoUseInAIKyrios

This comment was marked as resolved.

@np84295

This comment was marked as resolved.

@np84295

This comment was marked as resolved.

@LisoUseInAIKyrios

This comment was marked as resolved.

@typecasto

This comment was marked as resolved.

@np84295

This comment was marked as resolved.

@np84295

This comment was marked as resolved.

@np84295 np84295 closed this as completed Aug 16, 2024
@LisoUseInAIKyrios

This comment was marked as resolved.

@oSumAtrIX
Copy link
Member

Anyone else experiencing the issue please try the new Compose manager: https://github.com/ReVanced/revanced-manager/actions/runs/10406703145/artifacts/1816419368

You will need to be logged into GitHub to download it. If you still get the error, send it & try the experimental and the multithreading toggle the advanced settings. If it errors out again, send the error logs.

@IntelCorei5-8350u
Copy link

IntelCorei5-8350u commented Aug 16, 2024

Tried the debug manager with latest patches, v4.13.3 with different options, same issue with Gphotos v6.95.0. App patch options are default.

Logs with default advanced options, please excuse formatting issue since I'm on mobile:

[INFO]: Merging integrations
[INFO]: Applying patches...
[INFO]: Merging integrations
[INFO]: Deleting existing temporary files directory
[INFO]: Decoding resources
[INFO]: Loading resource table...
[INFO]: Decoding file-resources...
[INFO]: Loading resource table from file: /data/user/0/app.revanced.manager.debug/cache/framework/1.apk
[INFO]: Decoding values */* XMLs...
[INFO]: Decoding AndroidManifest.xml with resources...
[INFO]: Regular manifest package...
[INFO]: Executing patches
[INFO]: GmsCore support succeeded
[INFO]: Spoof features succeeded
[INFO]: Writing patched files...
[INFO]: Compiling patched dex files
[INFO]: Compiled classes.dex
[INFO]: Compiled classes2.dex
[INFO]: Compiled classes3.dex
[INFO]: Compiled classes4.dex
[INFO]: Compiled classes5.dex
[INFO]: Compiled classes6.dex
[INFO]: Compiled classes7.dex
[INFO]: Compiled classes8.dex
[INFO]: Compiling modified resources
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml: error: file failed to compile.
```


Logs with both multithreaded and experimental enabled
`
[INFO]: Memory limit: 700MB
[INFO]: Merging integrations
[INFO]: Applying patches...
[INFO]: Merging integrations
[INFO]: Deleting existing temporary files directory
[INFO]: Decoding resources
[INFO]: Loading resource table...
[INFO]: Decoding file-resources...
[INFO]: Loading resource table from file: /data/user/0/app.revanced.manager.debug/cache/framework/1.apk
[INFO]: Decoding values */* XMLs...
[INFO]: Decoding AndroidManifest.xml with resources...
[INFO]: Regular manifest package...
[INFO]: Executing patches
[INFO]: GmsCore support succeeded
[INFO]: Spoof features succeeded
[INFO]: Writing patched files...
[INFO]: Compiling patched dex files
[INFO]: Compiled classes.dex
[INFO]: Compiled classes2.dex
[INFO]: Compiled classes3.dex
[INFO]: Compiled classes4.dex
[INFO]: Compiled classes5.dex
[INFO]: Compiled classes6.dex
[INFO]: Compiled classes7.dex
[INFO]: Compiled classes8.dex
[INFO]: Compiling modified resources
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml: error: file failed to compile.
```
Logs with none enabled
```
[INFO]: Merging integrations
[INFO]: Applying patches...
[INFO]: Merging integrations
[INFO]: Deleting existing temporary files directory
[INFO]: Decoding resources
[INFO]: Loading resource table...
[INFO]: Decoding file-resources...
[INFO]: Loading resource table from file: /data/user/0/app.revanced.manager.debug/cache/framework/1.apk
[INFO]: Decoding values */* XMLs...
[INFO]: Decoding AndroidManifest.xml with resources...
[INFO]: Regular manifest package...
[INFO]: Executing patches
[INFO]: GmsCore support succeeded
[INFO]: Spoof features succeeded
[INFO]: Writing patched files...
[INFO]: Compiling patched dex files
[INFO]: Compiled classes.dex
[INFO]: Compiled classes2.dex
[INFO]: Compiled classes3.dex
[INFO]: Compiled classes4.dex
[INFO]: Compiled classes5.dex
[INFO]: Compiled classes6.dex
[INFO]: Compiling modified resources
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-ar/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-az/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-b+sr+Latn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bg/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-bn/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-cs/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-da/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-de/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-el/strings.xml: error: file failed to compile.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml:0: error: xml parser error: reference to invalid character number.
[WARN]: /data/user/0/app.revanced.manager.debug/app_ephemeral/patcher/apk/res/values-es/strings.xml: error: file failed to compile.
```
The other option with experimental on and multithreaded off has the same result.

@oSumAtrIX
Copy link
Member

Looks like this can be fixed fairly similarly to a fix yesterday. @LisoUseInAIKyrios Looks like we need some filter or escape certain characters in strings.

@LisoUseInAIKyrios
Copy link
Contributor

The strings here are part of Google Photos, so it will need a bit more code to try and fix.

It's odd because this issue does not show up when using CLI. It makes me wonder if during decoding if the files created have some default file encoding that is different from what CLI does.

@oSumAtrIX
Copy link
Member

I think this is some regional issue. I remember a similar issue from a past time which we solved by explicitly setting the local in the code, otherwise on chinese locales CLI would spit an error (iirc aapt). So affected users should try setting their language to English and confirm this hypothesis

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Aug 16, 2024

I can reproduce the issue and I have my locale set to English. Manager Compose has the same problem.

Figuring out why this works on CLI but fails when running in Manager is the best answer.

Does Manager effectively run the same patching code as CLI? Are there any differences in any aapt flags or parameters?

If anyone can inspect the decoded files extracted by Manager, it would be helpful to find what file encoding these decoded string files are saved as.

@oSumAtrIX
Copy link
Member

oSumAtrIX commented Aug 16, 2024

Figuring out why this works on CLI but fails when running in Manager is the best answer.

Perhaps it's an issue with where AAPT is running. Have you tried running CLI via a terminal emulator like termux? You need to pass an AAPT binary compiled for your arch via an CLI option (check --help), preferably the ones checked in Managers source (or compile from source https://github.com/revanced/aapt2)

@LisoUseInAIKyrios
Copy link
Contributor

Patching using CLI tools in Termux works without problems. I guess that is expected since it's still running in a Java JRE which makes it the same as patching on a computer.

@oSumAtrIX
Copy link
Member

Are the decoded strings.xml files same? Maybe the issue occurs at decoding, not compiling.

@LisoUseInAIKyrios
Copy link
Contributor

I'm not sure how to get the decoded string files Manager creates, so I can't compare.

@oSumAtrIX
Copy link
Member

It creates a temporary folder under /data/data//cache. You'd need to have root access on your Android emulator to read that folder via another app like a file manager.

@Einheit-101

This comment was marked as duplicate.

@avinashkarhana

This comment was marked as duplicate.

@MerBudd
Copy link

MerBudd commented Aug 22, 2024

Seems like the issue on Photos is related to the GmsCore patch specifically, every other patch other than GmsCore works fine but GmsCore causes the error for some reason.

@oSumAtrIX
Copy link
Member

Try any resource patch such as change package name patch

@np84295
Copy link
Author

np84295 commented Aug 22, 2024

Mine got fixed !!
Reinstall revanced manager and update the patch
Allow the permissions before doing patching

It took 3 re installation for the app to work properly
Was freezed almost all the time

@Einheit-101 @avinashkarhana @MerBudd @oSumAtrIX @typecasto pfa reference

@MerBudd
Copy link

MerBudd commented Aug 22, 2024

Try any resource patch such as change package name patch

Yeah they work too I already checked

@oSumAtrIX
Copy link
Member

Interesting, reach out to [email protected] so we can test changes and see if it fixes the issue

@MerBudd
Copy link

MerBudd commented Aug 22, 2024

Interesting, reach out to [email protected] so we can test changes and see if it fixes the issue

Hmm, and what should I write to them? I didn't even know they had an e-mail address like that.

@CiRiX-

This comment was marked as spam.

@covid696969

This comment was marked as spam.

@oSumAtrIX
Copy link
Member

@np84295 #2192 (comment) please do what's described in this discussion.

@oSumAtrIX oSumAtrIX added the Waiting on author Further information is requested label Sep 10, 2024
@Anujkaushik01
Copy link

I noticed that if you only apply 'spoof features' to Google photos then it succeeded with compiling but the apk doesn't installs and says installation failed (though I have already uninstalled pre-built photos app with adb). And if I select 'GmsCore support' patch then it also patches another patch automatically which is 'Change package name' and throws an error (errno 2)mostly at 'compiling modified resources'.
I have tried different versions of revanced manager with/without default patches and settings.
The latest version that I can successfully compile with both patches is '6.40.0.540337868-release 48363351' after this version, every patch shows an error.

@IntelCorei5-8350u
Copy link

  • Device Info
    ReVanced Manager: 1.22.0
    Model: A101SH
    Android version: 13
    Supported architectures: arm64-v8a, armeabi-v7a, armeabi
    Root permissions: No

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

  • Settings
    Allow changing patch selection: false
    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/~~pq1DXtqxr8tHcdEwjezbEQ==/app.revanced.manager.flutter-oRzi3BOoUVTpn4NRylOxaw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KIAVUA/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KIAVUA/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:495)
    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/~~pq1DXtqxr8tHcdEwjezbEQ==/app.revanced.manager.flutter-oRzi3BOoUVTpn4NRylOxaw==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KIAVUA/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KIAVUA/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/files/patcher/tmp-KIAVUA/out.apk' (OS Error: No such file or directory, errno = 2)

Manager Data was cleared, all patching options were selected.

@IntelCorei5-8350u
Copy link

IntelCorei5-8350u commented Sep 11, 2024

I noticed that if you only apply 'spoof features' to Google photos then it succeeded with compiling but the apk doesn't installs and says installation failed (though I have already uninstalled pre-built photos app with adb). And if I select 'GmsCore support' patch then it also patches another patch automatically which is 'Change package name' and throws an error (errno 2)mostly at 'compiling modified resources'. I have tried different versions of revanced manager with/without default patches and settings. The latest version that I can successfully compile with both patches is '6.40.0.540337868-release 48363351' after this version, every patch shows an error.

I can confirm that version worked.

UPDATE: The apk was complied successfully, but photos weren't backing up. I commented too soon.

@jddcef

This comment was marked as off-topic.

@Anujkaushik01

This comment was marked as off-topic.

@oSumAtrIX

This comment was marked as resolved.

@jddcef

This comment was marked as off-topic.

@ReVanced ReVanced locked as off-topic and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug report Something isn't working Waiting on author Further information is requested
Projects
None yet
Development

No branches or pull requests