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

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

 

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 dapktool 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

@etmatrix

etmatrix commented on 9 Dec 2016

I have the same issue with lastest version from github (164c64c)

@iBotPeaches iBotPeaches added the Duplicate label on 9 Dec 2016

@iBotPeaches

Owner

iBotPeaches commented on 9 Dec 2016

Yes, known bug. #885

Closing as duplicate.

@iBotPeaches iBotPeaches closed this on 9 Dec 2016

@DaveOak

DaveOak commented on 28 Jan 2017 • 

edited by iBotPeaches 

Simply using apktool d and apktool b I get the following errors. I am not modifying the unpacked apk and this previously worked on earlier versions of the source apk.

I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/res/values-v21/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/SegmentedButton'.
W: 
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/brut_util_Jar_2868060030181813312.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 2008000, --version-name, 2.8.0, --no-version-vectors, -F, /var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/APKTOOL8172964557381333528.tmp, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/library.swf, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/META-INF/ANE/Android-ARM/library.swf, -0, res/raw/rgba8888, -0, res/raw/debuginfo, -0, arsc, -I, /Users/dave/Library/apktool/framework/1.apk, -S, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/res, -M, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
	at brut.androlib.Androlib.buildResources(Androlib.java:411)
	at brut.androlib.Androlib.build(Androlib.java:310)
	at brut.androlib.Androlib.build(Androlib.java:263)
	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): [/var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/brut_util_Jar_2868060030181813312.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 2008000, --version-name, 2.8.0, --no-version-vectors, -F, /var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/APKTOOL8172964557381333528.tmp, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/library.swf, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/META-INF/ANE/Android-ARM/library.swf, -0, res/raw/rgba8888, -0, res/raw/debuginfo, -0, arsc, -I, /Users/dave/Library/apktool/framework/1.apk, -S, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/res, -M, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
	... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/brut_util_Jar_2868060030181813312.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 2008000, --version-name, 2.8.0, --no-version-vectors, -F, /var/folders/d9/2dqlhlcd6hq6v6x7cj9pfq3m0000gn/T/APKTOOL8172964557381333528.tmp, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/library.swf, -0, assets/META-INF/AIR/extensions/com.oak.amazondevicemessaging/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/library.swf, -0, assets/META-INF/AIR/extensions/pl.mateuszmackowiak.nativeANE.properties.SystemProperties/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/library.swf, -0, assets/META-INF/AIR/extensions/com.milkmangames.extensions.GoogleServices/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/library.swf, -0, assets/META-INF/AIR/extensions/com.freshplanet.AirAlert/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/library.swf, -0, assets/META-INF/AIR/extensions/com.amazon.device.iap.cpt.AmazonIapV2Extension/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/library.swf, -0, assets/META-INF/AIR/extensions/com.jirbo.airadc.AirAdColony/META-INF/ANE/Android-ARM/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/library.swf, -0, assets/META-INF/AIR/extensions/com.illuzor.extensions.SharingExtension/META-INF/ANE/Android-ARM/library.swf, -0, res/raw/rgba8888, -0, res/raw/debuginfo, -0, arsc, -I, /Users/dave/Library/apktool/framework/1.apk, -S, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/res, -M, /Users/dave/git/OddSocks/FDT/OddSocksAmazon/build/temp/AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:95)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
	... 6 more

@DaveOak

DaveOak commented on 28 Jan 2017

Further info - the source APK is created by FDT as an Adobe AIR application for Android. It is not obfuscated, but various components (including AIR) have been updated since the last successful build of the APK.

@coolpixs4

coolpixs4 commented on 6 Feb 2017 • 

edited 

Help me please to correct, I'm on Android M 6.0.1+ framework
Same error during recomplie apk...

Thank you !

C:\apktool_miui7>apktool if framework-res.apk
I: Framework installed to: C:\Users\Admin\AppData\Local\apktool\framework\1.apk

C:\apktool_miui7>apktool if framework-ext-res.apk
I: Framework installed to: C:\Users\Admin\AppData\Local\apktool\framework\17.apk

C:\apktool_miui7>java -jar ./apktool.jar b facebook
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.err.Ca
ntFindFrameworkResException
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
at brut.androlib.Androlib.buildResources(Androlib.java:411)
at brut.androlib.Androlib.build(Androlib.java:310)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources
.java:592)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:718)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:465)
... 5 more

@Ahmed7fathi

Ahmed7fathi commented on 9 Dec 2017

same issue here

@fighter-lee

fighter-lee commented on 15 Dec 2017

apktool 2.3.0 support version should below 26, example: implementation "com.android.support:appcompat-v7:25.+"

@Ben1981

Ben1981 commented on 24 Dec 2017

this issue is about missing resources, look for missing resources, might be a missing resource for external library.

@ouihamdaoui

ouihamdaoui commented on 12 Jan

Help me please to correct, I'm on Android M 6.0.1+ framework
Same error during recomplie apk...

Thank you !
Log For : app.apk

Log Type : Recompiling

Log Recorded At : 12 2018-01- 2:22:58,11

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak


W: C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml:16: error: No resource identifier found for attribute 'roundIcon' in package 'android'
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
at brut.androlib.Androlib.buildResources(Androlib.java:426)
at brut.androlib.Androlib.build(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)

@DevGracyy

DevGracyy commented on 28 Mar

same issue please help us :D

@blue0527

blue0527 commented on 26 Jun

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

use -r parameter

D:\zzz_aotjs>java -jar apktool.jar d zzz_jjtx.apk -o jjtxApk I: Using Apktool 2.5.0 on zzz_jjtx.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\Administrator\AppData\Local\apktool\framework\1.apk I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Baksmaling classes2.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files... D:\zzz_aotjs>java -jar apktool.jar b jjtxApk I: Using Apktool 2.5.0 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether sources has changed... I: Smaling smali_classes2 folder into classes2.dex... I: Checking whether resources has changed... I: Building resources... W: invalid resource directory name: D:\zzz_aotjs\jjtxApk\res navigation brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_88738392895362090968935970785959065127.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 23053102, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL7172915232282895038.tmp, -e, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL4592746138281254561.tmp, -0, arsc, -I, C:\Users\Administrator\AppData\Local\apktool\framework\1.apk, -S, D:\zzz_aotjs\jjtxApk\res, -M, D:\zzz_aotjs\jjtxApk\AndroidManifest.xml] D:\zzz_aotjs>
06-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值