[Q] Error while comping Setting.apk !?! - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

|Sat 06/09/2012 -- 6:27:33.93|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Dialog.Alert'.
D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res\values\styles.xml:158: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Dialog.Alert'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, D:\Users\Nonake\AppData\Local\Temp\APKTOOL3086685318560145745.tmp, -I, D:\Users\Nonake\apktool\framework\1.apk, -I, D:\Users\Nonake\apktool\framework\2.apk, -S, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res, -M, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, D:\Users\Nonake\AppData\Local\Temp\APKTOOL3086685318560145745.tmp, -I, D:\Users\Nonake\apktool\framework\1.apk, -I, D:\Users\Nonake\apktool\framework\2.apk, -S, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res, -M, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Click to expand...
Click to collapse
Any solution ? I didn't touch any stye.xm...or even string.xml in /values...
I just add more folder/values-kmrKH

Related

[Q] when I decompile the SystemUI,encounter this question below

C:\AA>apktool b SystemUI
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AA\SystemUI\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\AA\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\AA\SystemUI\res/values-sw600dp
invalid resource directory name: C:\AA\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\AA\SystemUI\res/values-sw720dp
invalid resource directory name: C:\AA\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\USER\AppData\Local\Temp\AP
KTOOL2494692532980134194.tmp, -I, C:\Users\USER\apktool\framework\1.apk, -S, C:\
AA\SystemUI\res, -M, C:\AA\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\USER\AppData\Local\Temp\APKTOOL2494692532980134194.tmp, -I, C:\Users\USER\a
pktool\framework\1.apk, -S, C:\AA\SystemUI\res, -M, C:\AA\SystemUI\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

Problem with compiling Setting.apk

Hello guys, this time (yes because I often write in this section xD) my problem regards apktool and setting.apk, practically when I go to compile it (the only thing I did was change is the language files and replace some image making sure that the new image the same size and had the same name as the previous one) tells me that there was an error and check the log, I look at the log but I do not understand where is the error I realized that only goes to browse to the folder of the project to the interior of the Other folder inside the folder APKTOOL, but I do not understand why we should be given that the project folder is located in the project folder in the root folder of APKTOOL! folders have been created by Setup, the batch file included in the folder of APKTOOL after sincerely do not understand what they mean other written (apart from that there has been an exception in the Main thread) can anyone tell me where is the problem and how to solve it? Below place the contents of the log so that I hope you can better understand the problem
--------------------------------------------------------------------------
|05/10/2012 -- 18:18:03,36|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Utente\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|10/10/2012 -- 17:45:20,17|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
original non atteso.
--------------------------------------------------------------------------
|10/10/2012 -- 17:45:40,15|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
original non atteso.
--------------------------------------------------------------------------
|10/10/2012 -- 17:46:05,95|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
--------------------------------------------------------------------------
|11/10/2012 -- 17:29:47,73|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL3563166553142996425.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL3563166553142996425.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL8931901485604516272.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL8931901485604516272.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL1561920417669694232.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL1561920417669694232.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL2804012740529682378.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL2804012740529682378.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL5539731659981769107.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL5539731659981769107.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL6246770626138757308.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL6246770626138757308.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Thanks for the replies ---BlackSoul---
Use code tags or a paste website for code. If you decompile and recompile without any changes does it work?
http://forum.xda-developers.com/showthread.php?t=1814441
^^It works for more than just systemui.apk.
I've seen that error quite a bit on that thread. Follow those instructions and you should b OK.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
lithid-cm said:
Use code tags or a paste website for code. If you decompile and recompile without any changes does it work?
Click to expand...
Click to collapse
The original file even makes me decompile, just do the instruction decompilation APKTOOL closes, do not know why the first time I decompiled it and now no.come are made to insert the tags? and what tag should I put?
triptosyll said:
http://forum.xda-developers.com/showthread.php?t=1814441
^^It works for more than just systemui.apk.
I've seen that error quite a bit on that thread. Follow those instructions and you should b OK.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
Click to expand...
Click to collapse
I will try to follow the guide
triptosyll said:
http://forum.xda-developers.com/showthread.php?t=1814441
^^It works for more than just systemui.apk.
I've seen that error quite a bit on that thread. Follow those instructions and you should b OK.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
Click to expand...
Click to collapse
Nothing coming in step 5 the command prompt tells me this
C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\place-apk-here-for-
modding>apktool b Settings almostdone.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi
-Tool-012bda1\place-apk-here-for-modding\Settings\res/xml-zh-TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-ver
sion, 10, -F, C:\Users\Utente\AppData\Local\Temp\APKTOOL5112445423944155708.tmp,
-I, C:\Users\Utente\apktool\framework\1.apk, -S, C:\Users\Utente\Desktop\ApkMul
tiTools-APK-Multi-Tool-012bda1\place-apk-here-for-modding\Settings\res, -M, C:\U
sers\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\place-apk-here-for-modd
ing\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 10, --target-sdk-version, 10, -F, C:\Users\Utente\AppData\Local\Temp\
APKTOOL5112445423944155708.tmp, -I, C:\Users\Utente\apktool\framework\1.apk, -S,
C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\place-apk-here-for
-modding\Settings\res, -M, C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-
012bda1\place-apk-here-for-modding\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Users\Utente\Desktop\ApkMultiTools-APK-Multi-Tool-012bda1\place-apk-here-for-
modding>
I do not understand where neither wrong nor where the error could you tell me what to fix?
use code tags, or use a pastebin website.
lithid-cm said:
use code tags, or use a pastebin website.
Click to expand...
Click to collapse
how they fit the code tags? And what is pastebin? and how do I use it? Sorry for the questions that may seem silly to you but this is the first time I'm dealing with this kind of problem and I am not prepared
no one can help me?
---blacksoul--- said:
no one can help me?
Click to expand...
Click to collapse
I never use APK muktitool I never have anything but issues. I always use apk manager which is why I posted the updated deviant manager. Give it a shot
Sent from my SGH-T989 using xda app-developers app
---blacksoul--- said:
no one can help me?
Click to expand...
Click to collapse
If u want help with it, try that thread that I gave u. Its FULL of people doing the same thing u are, de/re compiling .aks. they aught to know how to help. That's why I linked it.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
ptmr3 said:
I never use APK muktitool I never have anything but issues. I always use apk manager which is why I posted the updated deviant manager. Give it a shot
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
Where can I find Deviant Manager? and how do I use it?
triptosyll said:
If u want help with it, try that thread that I gave u. Its FULL of people doing the same thing u are, de/re compiling .aks. they aught to know how to help. That's why I linked it.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
Click to expand...
Click to collapse
I followed the guide you suggested but unfortunately I always get the same error
---blacksoul--- said:
Where can I find Deviant Manager? and how do I use it?
I followed the guide you suggested but unfortunately I always get the same error
Click to expand...
Click to collapse
I saying, ask your question in there, there's a lot of people who see that thread.
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
---blacksoul--- said:
Where can I find Deviant Manager? and how do I use it?
I followed the guide you suggested but unfortunately I always get the same error
Click to expand...
Click to collapse
About 10 threads under this one: )
Sent from my SGH-T989 using xda app-developers app
ptmr3 said:
About 10 threads under this one: )
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
also with your program gives me error
Is there anyone who knows how to solve my problem? Please this is getting very urgent Thanks for the replies
I don't know why none of them pointed you to this thread
http://forum.xda-developers.com/showthread.php?t=1755243
The main apktool thread
Now for your problem
You are using a outdated aapt and apktool.
For APK Manager, go to other folder and replace aapt.exe and apktool.jar with their respective new versions, you can find them on the link above
Hope that helps
varun.chitre15 said:
I don't know why none of them pointed you to this thread
http://forum.xda-developers.com/showthread.php?t=1755243
The main apktool thread
Now for your problem
You are using a outdated aapt and apktool.
For APK Manager, go to other folder and replace aapt.exe and apktool.jar with their respective new versions, you can find them on the link above
Hope that helps
Click to expand...
Click to collapse
nothing always the same error by updating the file .. I would say even worse! since shortly before updating the file gave me an error with a shorter, rather than opens the inscription "6 more" was passed to "4 more" while now and back to before,thanks anyway for the answer
---blacksoul--- said:
nothing always the same error by updating the file .. I would say even worse! since shortly before updating the file gave me an error with a shorter, rather than opens the inscription "6 more" was passed to "4 more" while now and back to before,thanks anyway for the answer
Click to expand...
Click to collapse
I am able to decompile, modify and compile Settings.apk just fine. Please re-read the documentation provided and follow the instructions. They work.
nothing after much wandering on topic, forum, guides, etc. I did not come to anything this is the error now
Code:
C:\Users\Utente\Desktop\Programmazione\Capas-project ROM\Programmi\ApkMultiTools
-APK-Multi-Tool-012bda1\place-apk-here-for-modding>apktool b Settings.apk almost
done.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:162)
at brut.androlib.Androlib.build(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:158)
... 4 more
if someone was kind enough to build my apk file I would be eternally grateful, post the folder with the project to be built, thanks to all for your support and for your help
UP!!
---blacksoul--- said:
Hello guys, this time (yes because I often write in this section xD) my problem regards apktool and setting.apk, practically when I go to compile it (the only thing I did was change is the language files and replace some image making sure that the new image the same size and had the same name as the previous one) tells me that there was an error and check the log, I look at the log but I do not understand where is the error I realized that only goes to browse to the folder of the project to the interior of the Other folder inside the folder APKTOOL, but I do not understand why we should be given that the project folder is located in the project folder in the root folder of APKTOOL! folders have been created by Setup, the batch file included in the folder of APKTOOL after sincerely do not understand what they mean other written (apart from that there has been an exception in the Main thread) can anyone tell me where is the problem and how to solve it? Below place the contents of the log so that I hope you can better understand the problem
Thanks for the replies ---BlackSoul---
Click to expand...
Click to collapse
everytime you de/re always try to use the original signature from the .apk (try de/re the original .apk w/out any modifications, if the .apk recompile w/ no issues then there is no problem w/ the apktool) the only way an .apk won't recompile is if it detects an error withing the .apk ,other words (if you mess up the .apk)

[Q] Need help interpreting logs: compilation error

Hey there,
I recently started modding the stock 4.2.1 Gmail app to make it inverted with red accents and I'm running into errors when trying to compile. The only changes I've made were on /res/values/colors.xml (changing color hex values only, standard stuff). I'm using APK multitools, have my framework in proper dir, using option 12 (compile non-system APK)...
Running custom TouchWiz 4.1.1 ROM on Galaxy S3 T999
Here are the logs:
--------------------------------------------------------------------------
|2013-03-01 -- 15:23:15.81|
--------------------------------------------------------------------------
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro
id.gm-1.apk\res\xml\gmail_widget_info.xml:2: error: No resource identifier found
for attribute 'widgetCategory' in package 'android'
C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro
id.gm-1.apk\res\xml-sw600dp\gmail_widget_info.xml:2: error: No resource identifi
er found for attribute 'widgetCategory' in package 'android'
C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro
id.gm-1.apk\res\xml\widget_info.xml:2: error: No resource identifier found for a
ttribute 'widgetCategory' in package 'android'
C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro
id.gm-1.apk\res\xml-sw600dp\widget_info.xml:2: error: No resource identifier fou
nd for attribute 'widgetCategory' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 14, --target-sdk-version, 17, -F, C:\Users\Pascal\AppData\Local\Tem
p\APKTOOL8546294447776939075.tmp, -0, arsc, -I, C:\Users\Pascal\apktool\framewor
k\1.apk, -S, C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com
.google.android.gm-1.apk\res, -M, C:\Android\adt-bundle-windows-x86_64-20130219\
other\..\projects\com.google.android.gm-1.apk\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, 14, --target-sdk-version, 17, -F, C:
\Users\Pascal\AppData\Local\Temp\APKTOOL8546294447776939075.tmp, -0, arsc, -I, C
:\Users\Pascal\apktool\framework\1.apk, -S, C:\Android\adt-bundle-windows-x86_64
-20130219\other\..\projects\com.google.android.gm-1.apk\res, -M, C:\Android\adt-
bundle-windows-x86_64-20130219\other\..\projects\com.google.android.gm-1.apk\And
roidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 14, --target-sdk-version, 17, -F, C:\Users\Pascal\AppData\Local\Temp\
APKTOOL8546294447776939075.tmp, -0, arsc, -I, C:\Users\Pascal\apktool\framework\
1.apk, -S, C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.g
oogle.android.gm-1.apk\res, -M, C:\Android\adt-bundle-windows-x86_64-20130219\ot
her\..\projects\com.google.android.gm-1.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Press any key to continue . . .
Anybody knows what could be going on here? Thanks!
EDIT: for each of the problematic XML files, the attribute 'widgetCategory' has a value of 0x3...would that be normal?? Would I need a 4.2.1 framework to compile this 4.2.1 Gmail apk (don't think this would necessarily make sense...)?
Found problem to this issue!
Solution was to remove lines for attribute 'widgetCategory' for:
\res\xml\gmail_widget_info.xml
\res\xml-sw600dp\gmail_widget_info.xml
res\xml\widget_info.xml
\res\xml-sw600dp\widget_info.xml
Recompiled without any errors, couldn't find any impact on functionality!

decompiling/compiling error[framework files missing]

hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
already installed framework!!
vijai2011 said:
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
have already installed framework from my phone from which that app is taken.
amank22 said:
have already installed framework from my phone from which that app is taken.
Click to expand...
Click to collapse
If its a samsung phone,did yoh also install twframework-res.apk?And htc also has 1 more framework but I don't know what it is as I have never owned a htc or modded one.Also have sdk?
Sent from my GT-N7000 using xda app-developers app
amank22 said:
hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Click to expand...
Click to collapse
Pull out all the *.apk files from /system/framework/
N install them.
The frst bein framework-res.apk n thn the others.
Only *.apk files. Not *.jar files.
I tink it will help u get over your prblms..
Don't be lazy.
Lift your hand n press the Thanxxx Button.=)
ok ok..will do it n tell it if it solves my problem..
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_commod.apk
FICHIER
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp
\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework
\1.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -
M, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\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, 9, --target-sdk-version, 18, -F, C:\
Users\Finish\AppData\Local\Temp\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:
\Users\Finish\apktool\framework\1.apk, -S, D:\documents\ANDROID\tool mod android
\easy apk\dis_commod.apk\res, -M, D:\documents\ANDROID\tool mod android\easy apk
\dis_commod.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp\A
PKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework\1
.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -M,
D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_commod.apk\dist\commod.apk (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Click to expand...
Click to collapse
change the path names
superuser.pm said:
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Click to expand...
Click to collapse
I think your problem lies in this line:
Code:
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
try to remove the blank charcters from the path...change folder names in the path.
I have this error when I try to compile:
Code:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Proprietario\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'Base.ThemeOverlay'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:462: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:506: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:527: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:535: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values-v21\styles.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:554: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:564: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat.DropDownItem'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:603: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\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, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\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, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
What's the problem?
Thanks.

Can't rebuild using ApkTool

Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
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\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\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, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
It's really only one error. Apktool hasn't heard of the values-largeui folder. Try deleting that folder and trying again.
That should work. If it turns out you need that folder for the app to work..well, then you're in trouble.
Sent from my SK17i using XDA Premium 4 mobile app
Ticklefish said:
It's really only one error. Apktool hasn't heard of the values-largeui folder. Try deleting that folder and trying again.
That should work. If it turns out you need that folder for the app to work..well, then you're in trouble.
Sent from my SK17i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hi,
Thanks for the answer. I've juste deleted the folder but I'm having a new error :
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Apktool\Backup\res\values\public.xml:60: error: Public symbol bool/miui_font_
scale_switch declared here is not defined.
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\Thomas\AppData\Local\Tem
p\APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\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, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\
Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.ap
k, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\Thomas\AppData\Local\Temp\
APKTOOL55933037199130517.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\1.
apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -M,
C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Click to expand...
Click to collapse
And when I delete the line in public.xml, I'm getting another error :
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
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\Thomas\AppData\Local\Tem
p\APKTOOL4253075425418164642.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\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, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL4253075425418164642.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\Thomas\AppData\Local\Temp\
APKTOOL4253075425418164642.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Click to expand...
Click to collapse
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
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\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\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, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
Hi Bro For Miui apk its require special miui apktool
download the miui apktool from here
MrSawler said:
Hi,
I am trying to translate the ROM MIUI in French for my personal use, but I'm having problems when I rebuild an apk using ApkTool.
I've downloaded MIUI from here : en.miui.com/thread-2651-1-1.html for my Huawei Honor2 U9508
I've redownloaded ApkTool from Google Code several time and reinstall Java. I also run CMD as an administrator.
I've tried to decompiled several MIUI apk like Backup.apk, Contact.apk, DesClock.apk... But I always get the same error.
Also I hadn't touch or add anything in the apk.
Here is what I get on CMD :
Code:
Microsoft Windows [version 6.2.9200]
(c) 2012 Microsoft Corporation. Tous droits réservés.
C:\Windows\system32>cd C:\Apktool\
C:\Apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\1.apk
C:\Apktool>apktool if framework-miui-res.apk
I: Framework installed to: C:\Users\Thomas\apktool\framework\6.apk
C:\Apktool>apktool d Backup.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Thomas\apktool\framework\6.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Apktool>apktool b Backup C:\Apktool\Compile\Backup.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Apktool\Backup\res/values-largeui
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\Thomas\AppData\Local\Tem
p\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framewor
k\1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res,
-M, C:\Apktool\Backup\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, 16, --target-sdk-version, 16, -F, C:
\Users\Thomas\AppData\Local\Temp\APKTOOL6764776722780995012.tmp, -0, arsc, -I, C
:\Users\Thomas\apktool\framework\1.apk, -I, C:\Users\Thomas\apktool\framework\6.
apk, -S, C:\Apktool\Backup\res, -M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 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\Thomas\AppData\Local\Temp\
APKTOOL6764776722780995012.tmp, -0, arsc, -I, C:\Users\Thomas\apktool\framework\
1.apk, -I, C:\Users\Thomas\apktool\framework\6.apk, -S, C:\Apktool\Backup\res, -
M, C:\Apktool\Backup\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Apktool>
Can anyone help my with those errors ?
Thanks,
MrSawler
Click to expand...
Click to collapse
Don't delete that folder, invalid resource directory errors are often due to old aapt. Make sure you are using latest aapt.
Sent from my Sony Xperia L (C2104) using Tapatalk 4 beta
Hi,
khan_frd2002 said:
Hi Bro For Miui apk its require special miui apktool
download the miui apktool from here
Click to expand...
Click to collapse
Thanks for the link, it work now, I have no more error, thanks !
varun.chitre15 said:
Don't delete that folder, invalid resource directory errors are often due to old aapt. Make sure you are using latest aapt.
Sent from my Sony Xperia L (C2104) using Tapatalk 4 beta
Click to expand...
Click to collapse
Do you know where I can only download appt ? Do I have to download the whole SDK ? Because my internet connection is a little bit slow...
MrSawler said:
Hi,
Thanks for the link, it work now, I have no more error, thanks !
Do you know where I can only download appt ? Do I have to download the whole SDK ? Because my internet connection is a little bit slow...
Click to expand...
Click to collapse
you cant get the latest apktool and appt from here
http://forum.xda-developers.com/showthread.php?t=1755243
khan_frd2002 said:
you cant get the latest apktool and appt from here
http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
Hi,
Thanks for the link, but that was where I've download Apktool and aapt, so they where not out of date.
But your MIUI Apktool seems to be working, so I will juste use it instead. But is it possible to make the same for Linux ? I would like to use it with Debian too.
Thanks,
MrSawler

Categories

Resources