I tried a lot of times to decompile MiniCM7's Settings.apk using APK TOOL but always decompile error...
SOME ONE PLEASE TELL ME HOW TO DECOMPILE MiniCM7's Settings.apk without error ?
Ask the original author for the source code.
- chris
Idea Generator said:
I tried a lot of times to decompile MiniCM7's Settings.apk using APK TOOL but always decompile error...
SOME ONE PLEASE TELL ME HOW TO DECOMPILE MiniCM7's Settings.apk without error ?
Click to expand...
Click to collapse
maybe u apktool to old. using latest version (use ApK manager) http://forum.xda-developers.com/showthread.php?t=695701
Idea Generator said:
I tried a lot of times to decompile MiniCM7's Settings.apk using APK TOOL but always decompile error...
SOME ONE PLEASE TELL ME HOW TO DECOMPILE MiniCM7's Settings.apk without error ?
Click to expand...
Click to collapse
What's the error? Might help if people knew what error your getting
zelendel said:
What's the error? Might help if people knew what error your getting
Click to expand...
Click to collapse
After putting framework-res.apk to APK Manager/tools folder... The settings.apk is decompiling now... but now I cant build/compile Settings.apk.. I'm getting error while compiling/building Settings.apk
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\APKTOOL6861370415166989498.tmp, -I, C:\Documents and Settings\Michael Jackson\apktool\framework\1.apk, -S, C:\APK Man\projects\Settings.apk\res, -M, C:\APK Man\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\APKTOOL6861370415166989498.tmp, -I, C:\Documents and Settings\Michael Jackson\apktool\framework\1.apk, -S, C:\APK Man\projects\Settings.apk\res, -M, C:\APK Man\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Help me please................
Idea Generator said:
After putting framework-res.apk to APK Manager/tools folder... The settings.apk is decompiling now... but now I cant build/compile Settings.apk.. I'm getting error while compiling/building Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\APKTOOL6861370415166989498.tmp, -I, C:\Documents and Settings\Michael Jackson\apktool\framework\1.apk, -S, C:\APK Man\projects\Settings.apk\res, -M, C:\APK Man\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\APKTOOL6861370415166989498.tmp, -I, C:\Documents and Settings\Michael Jackson\apktool\framework\1.apk, -S, C:\APK Man\projects\Settings.apk\res, -M, C:\APK Man\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Help me please................
Click to expand...
Click to collapse
One of the problems is that there are spaces in your path. Move the tool to the root of the c drive. Not I. Documents and settings as it is now. Also rename the apk man folder and remove that space as well. Having no spaces is in the APk manager FAQ. I would also look at apk multitool as it is more updated.
I build/compiled it without error.... Thanks zelendel
zelendel said:
One of the problems is that there are spaces in your path. Move the tool to the root of the c drive. Not I. Documents and settings as it is now. Also rename the apk man folder and remove that space as well. Having no spaces is in the APk manager FAQ. I would also look at apk multitool as it is more updated.
Click to expand...
Click to collapse
I should not sing the apk if its system APK ?
Idea Generator said:
I should not sing the apk if its system APK ?
Click to expand...
Click to collapse
No don't sign system apks. There are a few exceptions to the rule but none you have to worry about while theimg the main OS apks
zelendel said:
One of the problems is that there are spaces in your path. Move the tool to the root of the c drive. Not I. Documents and settings as it is now. Also rename the apk man folder and remove that space as well. Having no spaces is in the APk manager FAQ. I would also look at apk multitool as it is more updated.
Click to expand...
Click to collapse
I've got the same Problem on Linux 64-Bit.
It's the same Error, but there are no Spaces in the pathes..
Code:
linux-xmnr:/home/sebastian/SMC_C6603/apktool1.5.2 # java -jar apktool.jar b framework-res framework-res-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/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, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/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, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, Datei oder Verzeichnis nicht gefunden
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
Where's my mistake?
RedBlackF said:
I've got the same Problem on Linux 64-Bit.
It's the same Error, but there are no Spaces in the pathes..
Code:
linux-xmnr:/home/sebastian/SMC_C6603/apktool1.5.2 # java -jar apktool.jar b framework-res framework-res-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/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, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/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, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL869556058520988970.tmp, -x, -0, arsc, -I, /root/apktool/framework/2.apk, -S, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/res, -M, /home/sebastian/SMC_C6603/apktool1.5.2/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, Datei oder Verzeichnis nicht gefunden
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
Where's my mistake?
Click to expand...
Click to collapse
It seems that it cant execute the aapt file. Might need to update it.
How to update aapt?
I just downloaded the newest apktools.jar and get this error. Shouldn't be the aapt-file the newest, too?
Edit: Problem solved. Need to download the ADK again and download the platform-tools manually. Than place the aapt file to the bin-folder of apktools and you'll have it.
Sent from my C6603 using xda app-developers app
Related
Before everything else, don't even try to say to me that I need to research, because I searched and searched I even filled up my computer with a bunch of apktools and aapt and various decompilers, both Command line and with GUI, it's freaking me out! Please help.!!.
-----------------------------------------------------
[*] SystemUI.apk
-----------------------------------------------------
Recompiling SystemUI.apk folder...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_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:\Users\Vince\AppData\Local\Temp\APKTOOL9216640018277012755.tmp, -I, C:\Users\Vince\apktool\framework\1.apk, -S, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\res, -M, C:\Users\Vince\Downloads\xdaAutoTool\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Done!
deCompiling = APKTool 1.4.3
Compiling = Tried every version...
on another version of AAPT i get a freaking Invalid resource thingy says that some folders are invalid...
Hey,
I decompiled settings.apk from LewaOS (non odexed) to translate it, I translated several strings to only check but when I try to compile it back (apktool b settings NEWsettings.apk )
I got this error:
Code:
[email protected]:~/APK$ apktool b settings n.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.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
Can you help me with this?
I realy want to translate my ports
Try Change permision in setting source ( via chmod 777) .
permission of what? of out folder or permission for apktool?
Why didn't you compile a deodexed apk?
I'm using apktool on my cherry mobile topaz
I decompile my systemui and recompile it again without doing or changing anything
and it gives me this errors !
W: Could not find sources
I: Building resources...
W: aapt location could not be found. Defaulting back to default
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL2993844565012153827.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/frame/SystemUI_src/res, -M, /sdcard/apktool/frame/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL2993844565012153827.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/frame/SystemUI_src/res, -M, /sdcard/apktool/frame/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL2993844565012153827.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/frame/SystemUI_src/res, -M, /sdcard/apktool/frame/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
can anyone help me plss.
plss
help plsss
up !!! plsss help
xxraicentxx said:
up !!! plsss help
Click to expand...
Click to collapse
Are you running APK tool with aapt from the android sdk ?
See code.google.com/p/android-apktool/issues/detail?id=213 (just add the https before, I cannot post any link ;( )
ebtokyo said:
Are you running APK tool with aapt from the android sdk ?
See code.google.com/p/android-apktool/issues/detail?id=213 (just add the https before, I cannot post any link ;( )
Click to expand...
Click to collapse
I'm using apktool on my cherry mobile topaz
local from Phil.
and it always give me that error even if I don't do anything on my systemui.apk ..
what should i do ? is there something wrong with the setups ?
here's the apktool path on my phone .
sdcard/apktool/new folder/framework-res.apk
plss help me get rid of this errors ..
i am trying to theme Settings.apk of 4.4.2
following this Guide :- http://forum.xda-developers.com/showthread.php?t=2634743
getting this error help me please
HTML:
C:\apktool>apktool b settings settings1.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, 19, --target-sdk-version, 19, -F, C:\Users\WINDOW~1.1\AppData\Local
\Temp\APKTOOL2317997985529882154.tmp, -0, arsc, -I, C:\Users\Windows 8.1\apktool
\framework\1.apk, -S, C:\apktool\settings\res, -M, C:\apktool\settings\AndroidMa
nifest.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, 19, --target-sdk-version, 19, -F, C:
\Users\WINDOW~1.1\AppData\Local\Temp\APKTOOL2317997985529882154.tmp, -0, arsc, -
I, C:\Users\Windows 8.1\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M
, C:\apktool\settings\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, 19, --target-sdk-version, 19, -F, C:\Users\WINDOW~1.1\AppData\Local\T
emp\APKTOOL2317997985529882154.tmp, -0, arsc, -I, C:\Users\Windows 8.1\apktool\f
ramework\1.apk, -S, C:\apktool\settings\res, -M, C:\apktool\settings\AndroidMani
fest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
yog12 said:
i am trying to theme Settings.apk of 4.4.2
following this Guide :- http://forum.xda-developers.com/showthread.php?t=2634743
getting this error help me please
HTML:
C:\apktool>apktool b settings settings1.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, 19, --target-sdk-version, 19, -F, C:\Users\WINDOW~1.1\AppData\Local
\Temp\APKTOOL2317997985529882154.tmp, -0, arsc, -I, C:\Users\Windows 8.1\apktool
\framework\1.apk, -S, C:\apktool\settings\res, -M, C:\apktool\settings\AndroidMa
nifest.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, 19, --target-sdk-version, 19, -F, C:
\Users\WINDOW~1.1\AppData\Local\Temp\APKTOOL2317997985529882154.tmp, -0, arsc, -
I, C:\Users\Windows 8.1\apktool\framework\1.apk, -S, C:\apktool\settings\res, -M
, C:\apktool\settings\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, 19, --target-sdk-version, 19, -F, C:\Users\WINDOW~1.1\AppData\Local\T
emp\APKTOOL2317997985529882154.tmp, -0, arsc, -I, C:\Users\Windows 8.1\apktool\f
ramework\1.apk, -S, C:\apktool\settings\res, -M, C:\apktool\settings\AndroidMani
fest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Click to expand...
Click to collapse
Looks like you need to update your tools.. aapt to be specific.. But yeah I would try to download a newer version of apktool .. HERE
lacoursiere18 said:
Looks like you need to update your tools.. aapt to be specific.. But yeah I would try to download a newer version of apktool .. HERE
Click to expand...
Click to collapse
help
HTML:
I:\apktool>apktool b st sttt.apk
I: Using Apktool 2.0.0-RC2 on st
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[35,
4] Error for input '.parameter': Invalid directive
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[36,
4] Error for input '.parameter': Invalid directive
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[35,
15] mismatched input '"f"' expecting END_METHOD_DIRECTIVE
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[45,
4] Error for input '.parameter': Invalid directive
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[46,
4] Error for input '.parameter': Invalid directive
st\smali\android\support\v13\app\FragmentCompat$BaseFragmentCompatImpl.smali[45,
15] mismatched input '"f"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: android/support/v13/app/FragmentCompat$BaseFragmentCompatImpl.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:358)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
sorry i know i'm not good at english since this is my 3rd lang i hope you can understand
...ikr i should'nt be lazy and should be searching for topic that can fixed this but i already did that even tried all armel and armhf available versions but i still can't recompile so maybe i should just ask for help by making a topic here
so here it is after i decompile using 4.3.1 armhf since i have armv7 i can't use armel it gives me "segmentation fault" i can only decompile using 4.2 and 4.3 but not 4.1 and 4.4
heres the log when i finished decompiling
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
but when i recompile without modifying the source gives me an error below
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14, -F, /data/data/per.pqy.apktool/APKTOOL5829606418907345910.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/ovpnmod_src/res, -M, /sdcard/ovpnmod_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
why? what happened? i'm not a programmer so i don't know but i used to use this on my desktop and it worked with no problem
and i also know i'm a leacher but can you spare me even atiny bit of clue thanks