I'm using apktool 1.4.9 (http://forum.xda-developers.com/showthread.php?t=1755243) and am attempting to do a simple test de/recompile of framework-res.apk to make sure I have everything set up properly on a new dev rig (64-bit CrunchBang Linux), but I am getting errors referring me to AndroidManifest.xml:
Code:
[email protected]:~/apktool$ ./apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
[email protected]:~/apktool$ ./apktool b framework-res framework-res-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-w600dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-sw600dp-land
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/layout-w600dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/drawable-sw600dp-mdpi
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-sw600dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-w500dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-w720dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-w360dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/drawable-sw600dp-hdpi
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-h720dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/drawable-sw600dp-xhdpi
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-sw600dp-w1280dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/drawable-sw600dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/layout-sw600dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-w480dp
invalid resource directory name: /home/grayn0de/apktool/framework-res/res/values-sw600dp-w1024dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5963956700589881063.tmp, -x, -S, /home/grayn0de/apktool/framework-res/res, -M, /home/grayn0de/apktool/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:251)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:325)
at brut.androlib.Androlib.buildResources(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:193)
at brut.androlib.Androlib.build(Androlib.java:175)
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, /tmp/APKTOOL5963956700589881063.tmp, -x, -S, /home/grayn0de/apktool/framework-res/res, -M, /home/grayn0de/apktool/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:249)
... 6 more
I'm using the patched aapt from the above linked thread and was able to successfully de/recompile com.htc.resources.apk without issue, using fernando sor's tutorial (http://forum.xda-developers.com/showthread.php?t=1651074), but I'm not getting any love with framework-res.apk. I've attempted another one of fernando sor's tutorials (http://forum.xda-developers.com/showthread.php?t=1601511), without luck.
Would like to get this new machine set up properly for this device, but despite numerous attempts (and various versions of apktool/aapt) and hours of searching the forums, I have been unsuccessful. I have the machine set up for GB ROM & source development just fine, but ICS/JB is becoming a headache. Any and all help is greatly appreciated. TIA
Try this way http://forum.xda-developers.com/showthread.php?t=1642224
See if that tread might help you
http://themikmik.com/showthread.php...setup-APKTOOL-and-De-Recompile-ICS-apk-s-quot
Related
C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\ICS Apktool\Original Apktool>apktoo
l b framework-res framework.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/layout-sw600dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/layout-w600dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-h720dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-sw600dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-w360dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-w480dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-w500dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-w600dp
invalid resource directory name: C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\IC
S Apktool\Original Apktool\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Hp\AppData\Local\Temp\APKT
OOL6269438195507176053.tmp, -x, -S, C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL
\ICS Apktool\Original Apktool\framework-res\res, -M, C:\Users\Hp\Desktop\Herrami
entas Dev\APKTOOL\ICS Apktool\Original Apktool\framework-res\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\Hp\AppData\Local\Temp\APKTOOL6269438195507176053.tmp, -x, -S, C:\Users\Hp\D
esktop\Herramientas Dev\APKTOOL\ICS Apktool\Original Apktool\framework-res\res,
-M, C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\ICS Apktool\Original Apktool\fr
amework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Hp\Desktop\Herramientas Dev\APKTOOL\ICS Apktool\Original Apktool>
Some ideas?..
Thanks..
Same problem here :/ have you found any solution ?
Help me.. I can't decompile framework-res.apk of my ICS device, Skyworth S7 Tablet..
I'm trying to modify my framework-res.apk, but I always get errors when decompiling it back..
I'm trying to recompile it without change and I still got the same errors..
I've search through http://www.icsforums.com/forum/showthread/6972 http://forum.xda-developers.com/showthread.php?t=1765340, http://forum.xda-developers.com/showthread.php?t=1633358, even http://forum.xda-developers.com/showthread.php?t=1427959.. and I've tried using apktool version 1.4.2, 1.4.3, 1.4.3, AutoApkTools, ApkManager, but none of them can work on mine..
this is the error log that I've got
Code:
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/animator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/drawable-xlarge-nodpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/interpolator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp-port
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-ldpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-xhdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/raw-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-h720dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-w1024dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-w1280dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w360dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w480dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w500dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w720dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-xlarge-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/xml-xlarge
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Antonius\AppData\Local\Temp\APKTOOL8223961361279537208.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\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\Antonius\AppData\Local\Temp\APKTOOL8223961361279537208.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the drive specified.
please help..
this is the link of my framework-res.apk : http://www.mediafire.com/?fa1nscbd9owogjg
Thanks in Advance,
newz93
icxperia.com/jonny/Dev Stuff/apktool.zip
Try this apktool, its been built from source with new smali/baksmali for ics
hey Jonny.. I've tried this one too.. and it seems it can't work on my framework-res.apk too..
would you try to try the one I've uploaded here before? :cyclops:
newz93 said:
Help me.. I can't decompile framework-res.apk of my ICS device, Skyworth S7 Tablet..
I'm trying to modify my framework-res.apk, but I always get errors when decompiling it back..
I'm trying to recompile it without change and I still got the same errors..
I've search through http://www.icsforums.com/forum/showthread/6972 http://forum.xda-developers.com/showthread.php?t=1765340, http://forum.xda-developers.com/showthread.php?t=1633358, even http://forum.xda-developers.com/showthread.php?t=1427959.. and I've tried using apktool version 1.4.2, 1.4.3, 1.4.3, AutoApkTools, ApkManager, but none of them can work on mine..
this is the error log that I've got
Code:
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/animator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/drawable-xlarge-nodpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/interpolator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-sw600dp-port
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/layout-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-ldpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/mipmap-xhdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/raw-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-h720dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-w1024dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-sw600dp-w1280dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w360dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w480dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w500dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-w720dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-xlarge
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/values-xlarge-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res/xml-xlarge
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Antonius\AppData\Local\Temp\APKTOOL8223961361279537208.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\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\Antonius\AppData\Local\Temp\APKTOOL8223961361279537208.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-re\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the drive specified.
please help..
this is the link of my framework-res.apk : http://www.mediafire.com/?fa1nscbd9owogjg
Thanks in Advance,
newz93
Click to expand...
Click to collapse
i think there is a different version specific for ics devices.....have u installed framewrork and tagged it?
ajay8055 said:
i think there is a different version specific for ics devices.....have u installed framewrork and tagged it?
Click to expand...
Click to collapse
I've done it all but nothing can work on my framework-res.apk.. :crying:
where's my fault? =(
newz93 said:
I've done it all but nothing can work on my framework-res.apk.. :crying:
where's my fault? =(
Click to expand...
Click to collapse
try this framework-res.apk, its the one you uploaded but with no compile errors when used with the apktool.zip from Here
and here is the framework-res.apk : http://icxperia.com/jonny/Dev Stuff/framework-res.apk
Wondering if someone with more than 10 posts can drop this over in the dev forum for apktool 1.5?
There appears to be a bug in the way the tool handles paths on windows computers with some apk's. A sample apk is the Launcher2.apk from 4.1.2.
It decodes fine, but turning around to immediately build it again results in:
C:\Launcher2\4.1.2\Launcher2.stock>apktool b -f
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw600dp-land-hdpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw600dp-nodpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw720dp-land-hdpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/drawable-sw720dp-nodpi
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/layout-sw600dp-port
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/layout-sw720dp
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/layout-sw720dp-land
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/layout-sw720dp-port
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw340dp
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw340dp-land
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw340dp-port
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw600dp
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw600dp-land
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw600dp-port
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw720dp
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw720dp-land
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/values-sw720dp-port
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/xml-sw600dp
invalid resource directory name: C:\Launcher2\4.1.2\Launcher2.stock\.\res/xml-sw720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p,
--min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\akuiphj\AppData\Local\Temp\APKTOOL7573147755302264770.tmp
, -I, C:\Users\akuiphj\apktool\framework\1.apk, -S, C:\Launcher2\4.1.2\Launcher2.stock\.\res, -M, C:\Launcher2\4.1.2\Lau
ncher2.stock\.\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, 16, --target-sdk-version, 16,
-F, C:\Users\akuiphj\AppData\Local\Temp\APKTOOL7573147755302264770.tmp, -I, C:\Users\akuiphj\apktool\framework\1.apk, -
S, C:\Launcher2\4.1.2\Launcher2.stock\.\res, -M, C:\Launcher2\4.1.2\Launcher2.stock\.\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
I was able to build the apk on linux so I'm pretty sure its a windows only problem with the handling of / vs \.
(as a side, holy crap, who made the captcha's on this site?! They are impossible!)
I have been trying for so long yet I am stuck with compiling apk. I am using autoapk tool. Whenever I try to recompile I have problem.
Log when decompiling
[*] C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk
decompiling C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\USER\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
Recompiling log
[*] C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI
recompiling C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw600dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw720dp
invalid resource directory name: C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\USER\LOCALS~1\Temp\APKTOOL138857358957302105.tmp, -I, C:\Documents and Settings\USER\apktool\framework\1.apk, -S, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res, -M, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\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:\DOCUME~1\USER\LOCALS~1\Temp\APKTOOL138857358957302105.tmp, -I, C:\Documents and Settings\USER\apktool\framework\1.apk, -S, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\res, -M, C:\xdaAutoAPKTool_V3.0.2\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Unable to open '_INPUT_APK\SystemUI\dist\SystemUI.apk' as zip archive
The system cannot find the drive specified.
Click to expand...
Click to collapse
I have latest jdk & jre installed. I use xp sp3. Someone please help & tell what I am doing wrong. I chose version 1.4.1 before decompiling in auto apktool. I tried alot of roms even tried deodexed rom.I tried systemUi,framework-res. Please tell me if there is any pre-requsite files I need before compiling & what to do?Please dont ask me to use other tool because I have tried all compiling tools
You said I should help you. I would try it on linux if I were you.
You can PM me and I will try it on my machine to decompile, make the changes and recompile it for you. Just send me a download link and instructions
Hmm..looks like you need to use the latest apktool and aapt files. 1.4.1 is very old now.
Try Tickle My Android 4.3. That uses the very latest versions.
Sent from my SK17i using xda premium
I can't compile framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\1\res/drawable-sw600dp-xhdpi
invalid resource directory name: D:\1\res/layout-sw600dp
invalid resource directory name: D:\1\res/layout-w600dp
invalid resource directory name: D:\1\res/values-h720dp
invalid resource directory name: D:\1\res/values-sw600dp
invalid resource directory name: D:\1\res/values-sw600dp-land
invalid resource directory name: D:\1\res/values-sw600dp-w1024dp
invalid resource directory name: D:\1\res/values-sw600dp-w1280dp
invalid resource directory name: D:\1\res/values-w360dp
invalid resource directory name: D:\1\res/values-w480dp
invalid resource directory name: D:\1\res/values-w500dp
invalid resource directory name: D:\1\res/values-w600dp
invalid resource directory name: D:\1\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\TOM\AppData\Local\Temp\APK
TOOL6043000326826960280.tmp, -x, -S, D:\1\res, -M, D:\1\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\TOM\AppData\Local\Temp\APKTOOL6043000326826960280.tmp, -x, -S, D:\1\res, -M
, D:\1\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
I very confused with this problem.
Sorry about my bad english.
Please help me :crying::crying: