Apktool: brut.androlib.AndrolibException: brut.common.BrutException: could not exec
Information
- Version: 2.2.1
- OS: Linux
- APK From: Playstore
Stacktrace/Logcat
W: /tmp/base/AndroidManifest.xml:34: Tag <application> attribute name has invalid character ‘’. W: /tmp/base/AndroidManifest.xml:42: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:43: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:44: Tag <activity> attribute name has invalid character ‘;’. W: /tmp/base/AndroidManifest.xml:45: Tag <activity> attribute name has invalid character ‘’. W: /tmp/base/AndroidManifest.xml:46: Tag <activity> attribute name has invalid character ‘(’. W: /tmp/base/AndroidManifest.xml:57: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:58: Tag <activity> attribute name has invalid character ‘9’. W: /tmp/base/AndroidManifest.xml:59: Tag <activity> attribute name has invalid character ‘’. W: /tmp/base/AndroidManifest.xml:61: Tag <activity> attribute name has invalid character ‘0’. W: /tmp/base/AndroidManifest.xml:62: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:63: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:64: Tag <activity> attribute name has invalid character ‘=’. W: /tmp/base/AndroidManifest.xml:65: Tag <activity> attribute name has invalid character ‘u’. W: /tmp/base/AndroidManifest.xml:66: Tag <activity> attribute name has invalid character ‘{’. W: /tmp/base/AndroidManifest.xml:67: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:118: Tag <activity> attribute name has invalid character ‘v’. W: /tmp/base/AndroidManifest.xml:119: Tag <activity> attribute name has invalid character ‘�’. W: /tmp/base/AndroidManifest.xml:158: Tag <service> attribute name has invalid character ‘x’.
Exception in thread “main” brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_2378830923611381623.tmp, p, --forced-package-id, 127, --min-sdk-version, 3, --target-sdk-version, 21, --version-code, 388, --version-name, 7.6.0, -F, /tmp/APKTOOL5145675347682530280.tmp, -0, R, -0, arsc, -0, apk, -0, arsc, -I, /home/enzo/.local/share/apktool/framework/1.apk, -S, /tmp/base/res, -M, /tmp/base/AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478) at brut.androlib.Androlib.buildResources(Androlib.java:412) at brut.androlib.Androlib.build(Androlib.java:311) at brut.androlib.Androlib.build(Androlib.java:264) at brut.apktool.Main.cmdBuild(Main.java:227) at brut.apktool.Main.main(Main.java:84) Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_2378830923611381623.tmp, p, --forced-package-id, 127, --min-sdk-version, 3, --target-sdk-version, 21, --version-code, 388, --version-name, 7.6.0, -F, /tmp/APKTOOL5145675347682530280.tmp, -0, R, -0, arsc, -0, apk, -0, arsc, -I, /home/user/.local/share/apktool/framework/1.apk, -S, /tmp/base/res, -M, /tmp/base/AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464) … 5 more Caused by: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_2378830923611381623.tmp, p, --forced-package-id, 127, --min-sdk-version, 3, --target-sdk-version, 21, --version-code, 388, --version-name, 7.6.0, -F, /tmp/APKTOOL5145675347682530280.tmp, -0, R, -0, arsc, -0, apk, -0, arsc, -I, /home/enzo/.local/share/apktool/framework/1.apk, -S, /tmp/base/res, -M, /tmp/base/AndroidManifest.xml] at brut.util.OS.exec(OS.java:95) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433) … 6 more
Steps to Reproduce
- ./apktool d base.apk
- ./apktool b base
Frameworks
APK
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=it
Questions to ask before submission
- Have you tried
apktool d
,apktool b
without changing anything? Yes - If you are trying to install a modified apk, did you resign it? No
- Are you using the latest apktool version? Yes
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (1 by maintainers)
apktool -r d xxx.apk -o test apktool b test
use -r parameter
I resolved the issue with this step :
Hope this can help.
Thanks for this info. After downgrading to 2.3.4 (by replacing apktool_2.4.0.jar with the old 2.3.4) helped me.