Error while Compiling Home.apk - Xperia Arc Themes and Apps

I get this error while compiling.
Code:
D:\APK Manager\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error
retrieving parent for item: No resource found that matches the given name 'Layo
ut'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\SHYAMS~1\AppData\Local\Tem
p\APKTOOL1060512814595837586.tmp, -I, C:\Users\Shyam Sasindran\apktool\framework
\1.apk, -S, D:\APK Manager\other\..\projects\Home.apk\res, -M, D:\APK Manager\ot
her\..\projects\Home.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:\U
sers\SHYAMS~1\AppData\Local\Temp\APKTOOL1060512814595837586.tmp, -I, C:\Users\Sh
yam Sasindran\apktool\framework\1.apk, -S, D:\APK Manager\other\..\projects\Home
.apk\res, -M, D:\APK Manager\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Not sure what I'm doing wrong. I treid to decomplie with resources and tried to add framework-res.apk and SemcGenericUxpRes.apk

I just got the same error too without even changing anything. What files are you changing?

This is happening for all system apk for ver-283

XperienceD said:
I just got the same error too without even changing anything. What files are you changing?
Click to expand...
Click to collapse
Thanks for the response.
I'll editing the \Home.apk\res\values\styles.xml to enable more Home screens.

subhankar.ds said:
This is happening for all system apk for ver-283
Click to expand...
Click to collapse
The Home.apk is the only thing I've had an issue with so far.
ShyamSasi said:
Thanks for the response.
I'll editing the \Home.apk\res\values\styles.xml to enable more Home screens.
Click to expand...
Click to collapse
Select yes for system app, then no to copy over unmodded and see if it builds the resources file, if it does copy that from the keep folder and see if it's worked.

Any progress?

Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...

IncubusUA said:
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
Click to expand...
Click to collapse
It worked flawlessly, super thanx to people like You and the XDA forum!
Have a nice day!

IncubusUA said:
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
Click to expand...
Click to collapse
Very Nice , thanks

cant compile I get same error =( sad... very very sad...

luiscencio said:
cant compile I get same error =( sad... very very sad...
Click to expand...
Click to collapse
Why don't you read three posts up instead!
Sent from my LT15i using xda premium

IncubusUA said:
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
Click to expand...
Click to collapse
Works!! Super thank, but..is it same with other SE stock apk? like...Contacts, Phone, setting or anything else> ?

Nonake_Komora said:
Works!! Super thank, but..is it same with other SE stock apk? like...Contacts, Phone, setting or anything else> ?
Click to expand...
Click to collapse
Maybe you can edit phone.apk
Or you want to change icon?
If yes you can change icon on drawable-hdpi
Sent from my LT15i using XDA App

selaludiam said:
Maybe you can edit phone.apk
Or you want to change icon?
If yes you can change icon on drawable-hdpi
Sent from my LT15i using XDA App
Click to expand...
Click to collapse
haha u've done a great jobs man. Thank u

Nonake_Komora said:
haha u've done a great jobs man. Thank u
Click to expand...
Click to collapse
chage icon or edit home.apk?

Help please
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
---------- Post added at 08:23 AM ---------- Previous post was at 08:20 AM ----------
My styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="transparent_dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="Transparent">
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
</style>
<style name="MyDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
</resources>

Error in ReCompiling
I just decompiled and recompiled a apk file and am getting the below error. Kindly let me know wether any other software is needed or any changes has to be made in any of the decompiled file so that i can successfully recompile it.
=======================================
Re-compiling ta1.apk...please wait...
=======================================
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Windows\TEMP\APKTOOL1064752158977321242.tmp, -I, C:\Users\Sgm\apktool\framework\1.apk, -S, E:\APKTool\ta1\res, -M, E:\APKTool\ta1\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:\Windows\TEMP\APKTOOL1064752158977321242.tmp, -I, C:\Users\Sgm\apktool\framework\1.apk, -S, E:\APKTool\ta1\res, -M, E:\APKTool\ta1\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
===========> Task terminated due to above error(s)! <===========

I had the same issue. I can give u two advices. Use also this:
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
then extract classes.dex
recompile using
Code:
apktool b Home
and reinsert classes.dex

Related

[Q] edit phone.apk have a error.

I want edit x10(2.1) phone.APK for my x8
i know used apktook ,first must be do this "apktool if framework-res.apk"(from x10 rom)
so I use apktool to decompilation this apk is ok,
but when i used apktool to compilation to apk,then have a error
look!
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
E:\APK dug\\Phonebook.apk\res\values\styles.xml:58:
error: Error retrieving parent for item: No resource found that matches the given
name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExcep
tion: could not exec command: [aapt, p, -F, C:\Windows\TEMP\APKTOOL46209618546809
4589.tmp, -I, D:\apktool\framework\1.apk, -I, D:\apktool\framew
ork\2.apk, -S, E:\APK dug\\Phonebook.apk\res, -M, E:
\APK dug\\Phonebook.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:\Wi
ndows\TEMP\APKTOOL462096185468094589.tmp, -I, D:\apktool\framework\1.apk
, -I, D:\apktool\framework\2.apk, -S, E:\APK dug\\Phonebook.
apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Click to expand...
Click to collapse
everybody, can you help me? sorry my bad english (chinese english,hh.......)
on
body?

[Q] Error while decompile

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

Please help!! Able to decompile ICS APK yet unable to Compile it back again!

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...

Compiling problem :(

I get this error when trying to recompile:
Code:
F:\apktoolv2>apktool b working/ClockPackage built/ClockPackage
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p,
-F, D:\Users\Matt\AppData\Local\Temp\APKTOOL6725272433658742721.tmp, -I, D:\Users\Matt\apktool\framework\1.apk, -I, D:\
Users\Matt\apktool\framework\2.apk, -S, F:\apktoolv2\working\ClockPackage\res, -M, F:\apktoolv2\working\ClockPackage\And
roidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, D:\Users\Matt\AppData\Local\Temp\APKTOOL6725
272433658742721.tmp, -I, D:\Users\Matt\apktool\framework\1.apk, -I, D:\Users\Matt\apktool\framework\2.apk, -S, F:\apktoo
lv2\working\ClockPackage\res, -M, F:\apktoolv2\working\ClockPackage\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 specif
ied
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
I'm using the same tool I've used before to decompile adn recompile and all I've done is change ONE colour value in the values/color.xml
Is there any way to just compile that xml to I can use it with VRT?
What I do when some nasty error pops up while re-compiling.
Open the apk in winRAR, go to folder where you have modified a perticular file (ex: your file), paste it there. Winrar will do everything and no need to sign also.
Well there is no guarantee That this method should work 'always'.
Sent from my GT-I9300
I need to use the XML file in a theme, though. So, does it not need to be compiled first?
Kryten2k35 said:
I need to use the XML file in a theme, though. So, does it not need to be compiled first?
Click to expand...
Click to collapse
Yea, just realised the method I gave doesn't work with xml's.
EDIT: Which tool are you using?? Apktool??
I suggests you use apkmanager. . It'll generate a readable log in the form of an text file.
OK.. never mind. You fixed it yourself.
Sent from my GT-I9300
http://forum.xda-developers.com/showthread.php?t=1558171
The ICS apktool here seems to work.
Rather odd. But it's building now. Hopefully this is it.
DELETED
Ok
I got the file to compile and build.
Now I can't find the values/color.xml file. Is it actually resources.arsc?

Can' t recompiling framework-res

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

Categories

Resources