[Help]Android Apktool - Android Q&A, Help & Troubleshooting

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

Related

[Q] Error in Apktool.

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Matias\AppData\Local\Temp\APKTOOL2036701665567611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?

I get error

Hey I am getting this error when trying to build in APKTool -
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.xml:2: error:
No resource identifier found for attribute 'installLocation' in package 'androi
d'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Matias\AppData\Local\Temp\
APKTOOL2036701665567611021.tmp, -I, C:\Users\Matias\apktool\framework\1.apk, -S,
C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \res, -M, C:\Users\Matias\Des
ktop\Desktop\Drag_Racing_v1.1.9\AndroidManifest.xm l]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Matias\AppData\Local\Temp\APKTOOL203670166556 7611021.tmp, -I, C:\Users\Mati
as\apktool\framework\1.apk, -S, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1
.9\res, -M, C:\Users\Matias\Desktop\Desktop\Drag_Racing_v1.1.9 \AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
I read on the internet the API level has to be set more than 8 to fix this problem.
How to set the API level more than 8 on APKTool?
Try apk manager. Apk tool gave me a lot of trouble!
Accidentally sent from my Google Nexus S using XDA Premium

MiuiMusic apk Compiling

need some help i was trying to change the color of the lyrics that displayed in miui wanted to change it to the color purple to match the theme i have on it. I used apktool to decompile but getting this error while recompiling can someone help me. My Question is why is this happening?
H:\apktool1.4.3\miuimusic\res\values\colors.xml:62 : error: Error: No resource fo
und that matches the given name (at 'audio_player_lyric_current_text_n' with val
ue '@android:color/purple').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\belsmith\LOCALS~1\Temp\
APKTOOL4750143335413059235.tmp, -I, C:\Documents and Settings\belsmith\apktool\f
ramework\1.apk, -S, H:\apktool1.4.3\miuimusic\res, -M, H:\apktool1.4.3\miuimusic
\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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:\D
OCUME~1\belsmith\LOCALS~1\Temp\APKTOOL475014333541 3059235.tmp, -I, C:\Documents
and Settings\belsmith\apktool\framework\1.apk, -S, H:\apktool1.4.3\miuimusic\res
, -M, H:\apktool1.4.3\miuimusic\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

Compiling apk problem

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?

[Q] [help]Apktool Compiling error

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)

Categories

Resources