question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

brut.androlib.AndrolibException: brut.common.BrutException: could not exec

See original GitHub issue

Information

  1. Version: 2.2.1
  2. OS: Linux
  3. 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

  1. ./apktool d base.apk
  2. ./apktool b base

Frameworks

APK

https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=it

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? No
  3. Are you using the latest apktool version? Yes

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

89reactions
blue0527commented, Jun 26, 2018

apktool -r d xxx.apk -o test apktool b test

use -r parameter

5reactions
pandusetiawancommented, Sep 22, 2019

I resolved the issue with this step :

  1. fix JAVA_HOME and JRE_HOME environment variable
  2. Add apktool path to system PATH
  3. Open apktool 2.4.0 version using winrar, delete apt.exe and apt2.exe
  4. Download apktool 2.3.4, open it using winrar, copy apt.exe and apt2.exe to apktool 2.4.0

Hope this can help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

brut.common.BrutException: could not exec (exit code = 1)
I: Using Apktool 2.3.3 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether resources ...
Read more >
How Fix brut.androlib.AndrolibException: brut.common ...
How Fix brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515).
Read more >
Apktool – build error – brut.common.BrutException: could not ...
I have an ongoing Android app 'modification' project that I periodically need to perform updates on. I recently went to disassemble, ...
Read more >
[Discontinued] [Windows] APK Easy Tool v1.60 (2022-06-23)
I: Building resources... brut.androlib.AndrolibException: brut.common.BrutException: ... BrutException: could not exec (exit code = 1): ...
Read more >
brut.common.BrutException: could not exec (exit code = 1)
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found