Hi guys,
i'm trying to make the statusbar of my apk translucent. ( i have kk)
But apktool gave me this error
C:\Users\Elio\Desktop\apk\3-Out\prova1.apk\res\values-v19\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentNavigation'.
C:\Users\Elio\Desktop\apk\3-Out\prova1.apk\res\values-v19\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentStatus'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
... 6 more
lKinder_Bueno said:
Hi guys,
i'm trying to make the statusbar of my apk translucent. ( i have kk)
But apktool gave me this error
C:\Users\Elio\Desktop\apk\3-Out\prova1.apk\res\values-v19\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentNavigation'.
C:\Users\Elio\Desktop\apk\3-Out\prova1.apk\res\values-v19\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentStatus'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Elio\AppData\Local\Temp\brut_util_Jar_8531920115830128810.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --version-code, 4, --version-name, 1.0.23464, -F, C:\Users\Elio\AppData\Local\Temp\APKTOOL4268666263471296519.tmp, -0, arsc, -I, C:\Users\Elio\Desktop\apk\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\res, -M, C:\Users\Elio\Desktop\apk\3-Out\cooLocker.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
... 6 more
Click to expand...
Click to collapse
have you install correct systemui and framework
Related
i has some problem when i recompiling miuisystemui.apk , please help me how to fix ( my english is not good )
invalid resource directory name: D:\apktool\miuisystemui\res/values-fr-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-mediumui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\AP
KTOOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Use
rs\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\m
iuisystemui\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\AS\AppData\Local\Temp\APKTOOL574966566911823709.tmp, -I, C:\Users\AS\apkt
ool\framework\1.apk, -I, C:\Users\AS\apktool\framework\6.apk, -S, D:\apktool\miu
isystemui\res, -M, D:\apktool\miuisystemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\APKT
OOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Users
\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\miu
isystemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
please ,help me!!!
hello freinds Got This Error always when decompile any apk and i used all apk tools but same . can anyone help me out
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-largeui
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-largeui-xhdpi
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-mediumui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.
Hi,
I have this strange problem... I took a certain apk, decompiled it using apktools, but when I tried to recompile it back I got lots of errors like this one:
C:\apkto\test\res\layout\activity_wordfall.xml:46: error: No resource identifie
r found for attribute 'textAlignment' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\johny\
AppData\Local\Temp\brut_util_Jar_3012068314543899025.tmp, p, --forced-package-id
, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 34, --ver
sion-name, 1.2.2, -F, C:\Users\johny\AppData\Local\Temp\APKTOOL64664871173833496
10.tmp, -0, resources.arsc, -0, arsc, -I, C:\Users\johny\apktool\framework\1.apk
, -S, C:\apkto\test\res, -M, C:\apkto\testo\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:465)
at brut.androlib.Androlib.buildResources(Androlib.java:403)
at brut.androlib.Androlib.build(Androlib.java:291)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\johny\AppData\Local\Temp\brut_util_Jar_3012068314543899
025.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version
, 19, --version-code, 34, --version-name, 1.2.2, -F, C:\Users\johny\AppData\Loca
l\Temp\APKTOOL6466487117383349610.tmp, -0, resources.arsc, -0, arsc, -I, C:\User
s\johny\apktool\framework\1.apk, -S, C:\apkto\testo\res, -M, C:\apkto\test\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:451)
... 5 more
Upon writing my question at XDA, I tried offhandedly to do the same thing in a virtual machine I own, not expecting much- but then BAM- apparently the process has ended just fine .
The only difference I see between my PC and my VM is that my PC has the latest Java update (1.8.0_66-b18) and the official android SDK, while my VM has only an older version of Java (1.8.0_31-b13).
So what's happening? and how can I fix it?
Thank you!
I have little to no knowledge of modifying APKs and all attempts in doing so in the past have resulted me in giving up, except now I really need this to work! looks fairly simply according to this old post using apktool and java outlined here https://www.reddit.com/r/Android/comments/11852r/how_to_modify_an_apk/
only issue is I can't get it to rebuild the apk from the folder even if I make no changes. I'm getting a bunch of "Error parsing XML: not well-formed (invalid token)" messages before it spits out the following exception
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException:could not exec (exit code = 1): [/tmp/brut_util_Jar_2053807626495926747.tmp, p, --forcedpackage-id, 127, --min-sdk-version, 14, --version-code, 708, --version-name, 3.1.3, -F, /tmp/APKTOOL6891156991859364727.tmp, -0, arsc, -0, arsc, -I, /home/nmok/.local/share/apktool/framework/1.apk, -S, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/res, -M, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/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_2053807626495926747.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --version-code, 708, --version-name, 3.1.3, -F, /tmp/APKTOOL6891156991859364727.tmp, -0, arsc, -0, arsc, -I, /home/nmok/.local/share/apktool/framework/1.apk, -S, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/res, -M, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/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_2053807626495926747.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --version-code, 708, --version-name, 3.1.3, -F, /tmp/APKTOOL6891156991859364727.tmp, -0, arsc, -0, arsc, -I, /home/nmok/.local/share/apktool/framework/1.apk, -S, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/res, -M, /tmp/com.braksoftware.HumanJapanese-ca95c7eff15a41e99c94d68e5fe46a67/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
any sort of help would be appreciated!
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 14, --version-code, 76, --version-name, 1.1.17, -F, /data/data/per.pqy.apktool/APKTOOL8715923446552637121.tmp, -0, arsc, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/res, -M, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/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: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 14, --version-code, 76, --version-name, 1.1.17, -F, /data/data/per.pqy.apktool/APKTOOL8715923446552637121.tmp, -0, arsc, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/res, -M, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/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: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4, p, --min-sdk-version, 14, --version-code, 76, --version-name, 1.1.17, -F, /data/data/per.pqy.apktool/APKTOOL8715923446552637121.tmp, -0, arsc, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/res, -M, /storage/emulated/0/jakework/OpenVPN Connect-net.openvpn.openvpn-1.1.17-76_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt4.4": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 8 more
I: Using Apktool 2.2.2-Black
I: Smaling smali folder into classes.dex...
I: Building resources...