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)
Hey Guys I want to decompile Xperia 2011 System UI but get error.
I got Res,Smali and Android Manifest folder only...
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk
decompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\use\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:339)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:174)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
When want to recompile like this
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: 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
Unable to open '_INPUT_APK\SystemUI\dist\SystemUI.apk' as zip archive
The system cannot find the drive specified.
I was able to decompile and recompile 2012 Xperia System UI or Xperia Z System UI but this can't
Anyone please help me.Thanks.
u got framework 2.apk ?
XperiaMT27 said:
u got framework 2.apk ?
Click to expand...
Click to collapse
got but it is Xperia sola framework,i want to decompile that 2011 Xperia System UI
Ben Ling said:
got but it is Xperia sola framework,i want to decompile that 2011 Xperia System UI
Click to expand...
Click to collapse
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Andrewasth said:
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Click to expand...
Click to collapse
i can decompile properly now because installed Xperia 2011 Framework but can't recompile although i didn't edit any file. :crying:
Ben Ling said:
i can decompile properly now because installed Xperia 2011 Framework but can't recompile although i didn't edit any file. :crying:
Click to expand...
Click to collapse
Try my suggestion
Andrewasth said:
You are missing apktool.yml Copy it from another file and open it with notepad++ change the name written there with the actual name of the system ui. But that's not a solution to the decompile
Click to expand...
Click to collapse
sorry don't understand you.
i can decompile properly with all files
assets
res
smali
AndroidManifest
apktool.yml
but can't recompile
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/layout-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp-port
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\use\AppData\Local\Temp\APKTOOL3831133532511105452.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\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, 15, --target-sdk-version, 15, -F, C:\Users\use\AppData\Local\Temp\APKTOOL3831133532511105452.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Unable to open '_INPUT_APK\SystemUI2\dist\SystemUI2.apk' as zip archive
The system cannot find the drive specified.
so i choose recompile ICS APK
and like this
[*] C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2
recompiling C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/layout-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw600dp-port
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp
invalid resource directory name: C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\use\AppData\Local\Temp\APKTOOL5720352158713435138.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\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, 15, --target-sdk-version, 15, -F, C:\Users\use\AppData\Local\Temp\APKTOOL5720352158713435138.tmp, -I, C:\Users\use\apktool\framework\1.apk, -S, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\res, -M, C:\Users\use\Desktop\Things\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Unable to open '_INPUT_APK\SystemUI2\dist\SystemUI2.apk' as zip archive
The system cannot find the drive specified.
i got all files in out_apk
Try with this! It's an older version but might solve the issue! http://forum.xda-developers.com/showthread.php?t=2011254
Sent from my ST25i using xda app-developers app
Hi, I searched all internet, but I still don't know why I can't recompile my framework-res.apk
I can decompile it, but only via newest APKTool, other ways getting error.
And recompiling ... I just tried decompile and recompile it, do nothing and it don't work.... I want change language in my phone to polish, it is Kiphone 5s, phone is great, but I can't recompile my translated xml file, because it don' work. It doesn't matter if I use changed files or stock files. Please help me with this.
My log, tried recompiling stock decompiled files ...
[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/drawable-ldrtl-hdpi
invalid resource directory name: C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res/mipmap-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\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, C:\Users\Adrian\AppData\Local\Temp\APKTOOL1644207117153092899.tmp, -x, -S, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\res, -M, C:\Users\Adrian\Desktop\xdaAutoAPKTool_V4.0.0\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Nie moľna odnale«† dysku.
@Amcio
Try to use the GUI APK Tool for decompiling/recompiling APKs
@eduds
Hi, much thanks for reply, but it still not work ... Are yo have any ideas ? Maybe I will send you file ?
It is log:
2013-12-21
17:31:02,45
Decompiling..
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080301 drawable/ic_ab_back_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
@Amcio
Try to decompile and recompile right after, without change anything.
Sent from my GT-I9070 using XDA Premium 4 mobile app