[HELP] Compiling Home.apk on stock .42 - Xperia Arc Q&A, Help & Troubleshooting

I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App

if you try just decompile and compile it
what happenned?

jimbobcox said:
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
Click to expand...
Click to collapse
Please post the log from your compiler.
pvy.

Will do when i get back on my laptop.
I will attemp decompile and compile without changes also.
Sent from my ST18i using XDA App

I have just decompiled the apk, i didn't make any changes and tried recompiling i got an error. Log as follows
---
|13/01/2012 -- 16:52:37.88|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedHome.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHome.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\JimBob\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\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:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Thanks in advance for any help!

SOLVED!
found solution here
http://forum.xda-developers.com/showthread.php?t=1276332
Sent from my ST18i using XDA App

Related

framework-res editing

I am trying to edit framework-res from cyanogenmod . I use apktool 1.2 and I can decompile just fine but trying to rebuild I get all this errors. So it seems that I am missing something apktool if does not do anything.
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\framework-res\res\values\public.xml:956: error: Public symbol id/fill
_parent declared here is not defined.
C:\apktool\framework-res\res\values\public.xml:1285: error: Public entry identif
ier 0x1020235 entry index is larger than available symbols (index 565, total sym
bols 565).
C:\apktool\framework-res\res\values\public.xml:1285: error: Public symbol id/mod
e_normal declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -S, C:\apktool\framework-res\res
, -M, C:\apktool\framework-res\AndroidManifest.xml, C:\apktool\framework-res\9pa
tch]
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\ADMINI~1\AppData\Local\Temp\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -
S, C:\apktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xm
l, C:\apktool\framework-res\9patch]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool>
It is most likely a coding error. What are you trying to change?
I am not in any way capable of understanding the log you posted but I've edited a fair amount of APKs and only had compiling errors if I screwed up something in an xml or smali file.
If you post an unedited framework-res, the one you edited, and a quick explanation of what you are trying to change I'll take a look
tritron777 said:
I am trying to edit framework-res from cyanogenmod . I use apktool 1.2 and I can decompile just fine but trying to rebuild I get all this errors. So it seems that I am missing something apktool if does not do anything.
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\framework-res\res\values\public.xml:956: error: Public symbol id/fill
_parent declared here is not defined.
C:\apktool\framework-res\res\values\public.xml:1285: error: Public entry identif
ier 0x1020235 entry index is larger than available symbols (index 565, total sym
bols 565).
C:\apktool\framework-res\res\values\public.xml:1285: error: Public symbol id/mod
e_normal declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -S, C:\apktool\framework-res\res
, -M, C:\apktool\framework-res\AndroidManifest.xml, C:\apktool\framework-res\9pa
tch]
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\ADMINI~1\AppData\Local\Temp\APKTOOL7608585969988241404.tmp, -x, -0, arsc, -
S, C:\apktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xm
l, C:\apktool\framework-res\9patch]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool>
Click to expand...
Click to collapse
I am not saying this is a fix by any means but try this download Total commander and winzip. Now with apk files or zips I can go directly into them thru windows commander make any change I want and back out and it will save or recompile the apk or zip file for me and I can then push it over to the phone.
I have made quite a few changes to rom zip files as in removing apk's I dont want or putting my own apk's onto a rom before I install it on my phone.
I also have taken out png files from apk's and place them in other apk files if I so choose. So I am not sure exactly what you are trying to do but give that setup a whirl... PM if you need any further assistance
Link Total Commander
Are you editing xml files our just changing png's?
Sent from your mom's phone.
First I just tried to see if I can rebuild it. I just downloaded it from rom and decompiled and then Oliver tried to rebuild without making any changes but I got all those errors. Too me it looks like I am missing library to rebuild it

apktool error-Please help!!

I wanted to edit the settings in the default workspace such as change widgets and app icons. I wanted to do something small like change the size of the Market widget from 2x2 to 4x4. I decompiled and made the change. Then I tried to recompile using thee b(build) command. Here's what I get:
[email protected] ~ $ apktool d Launcher2.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: /home/treken/apktool/framework/1.apk
I: Copying assets and libs...
[email protected] ~ $ apktool b Launcher2
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, /tmp/APKTOOL2635074741971448593.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/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, /tmp/APKTOOL2635074741971448593.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 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)
... 8 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
[email protected] ~ $
Someone please help me!!!!!!! :O
It looks like you are on Linux and don't have permissions for the folder. Either modify the permissions or run in terminal as root.

Compiling apk, espier launcher

Hey guys, I'm trying to decompile, edit, then recompile espier launcher 0.5.2 apk
I decompiled it and edited is successfully, and then when I go to compile, I don't see any output.
Does the compile not create an apk file? I'm confused on where to go after I edit my apk.
I'm using APK manager on OS X lion 64bit if that makes any difference.
Thanks.
(I couldn't find this anywhere on the internet or on xda forums)
not sure if this makes any sense, so for clarification:
I decompile, edit, then compile. Then when i go to sign, it says it cannot find unsigned-Espier_Launcher_0.5.2.apk Please use "zip" or "compile" options first.
Code:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 20:29:28.56|
--------------------------------------------------------------------------
--2012-02-03 20:29:28-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 2.37M=0s
2012-02-03 20:29:28 (2.37 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
I: Checking whether sources has changed...
I: Smaling...
^C--------------------------------------------------------------------------
|Fri 02/03/2012 -- 20:32:00.26|
--------------------------------------------------------------------------
--2012-02-03 20:32:00-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 1.87M=0s
2012-02-03 20:32:00 (1.87 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
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.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL3022903427758754693.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pr
ojects\1Espier_Launcher_0.5.2.apk\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\Kunal\AppData\Local\Temp\APKTOOL3022903427758754693.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.a
pk\res, -M, C:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.apk\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 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
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 21:06:51.95|
--------------------------------------------------------------------------
--2012-02-03 21:06:52-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 2.47M=0s
2012-02-03 21:06:52 (2.47 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 21:58:50.81|
--------------------------------------------------------------------------
--2012-02-03 21:58:50-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 1.09M=0s
2012-02-03 21:58:51 (1.09 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
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.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL1970506614237777931.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\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\Kunal\AppData\Local\Temp\APKTOOL1970506614237777931.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 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
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL7228759727554343253.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\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\Kunal\AppData\Local\Temp\APKTOOL7228759727554343253.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 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
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL6594612407827724422.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\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\Kunal\AppData\Local\Temp\APKTOOL6594612407827724422.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 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
Press any key to continue . . .
this is my error when i try to compile it on my dell xps vista using apk multitool.

CM9 Mods Help Kinda

I have modded my status bar in cm9 so its transparent but when i try to make it have center clock i get this
|24/07/2012 -- 15:09:39.00|
--------------------------------------------------------------------------
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:20: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
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\toms\AppData\Local\Temp\APKTOOL2239799123584665020.tmp, -I, C:\Users\toms\apktool\framework\1.apk, -S, C:\APKTOOL\other\..\projects\SystemUI.apk\res, -M, C:\APKTOOL\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
when im trying to compile the apk any ideas :/
Guide is here http://forum.xda-developers.com/showthread.php?t=1773930
Download the latest version of smali 1.3.3 from here and compile it manually.
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layo ut\status_bar.xml:20 ... could you show us the line 20 in this xml?
I thanked both and i fixed my errors in line 20 but now ive got this
C:\APKTOOL\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:29: error: Error parsing XML: mismatched tag
Which i have no idea about ?
+ .txt file is in .zip because i cant upload it ;/ + just realised i changed extension so its supposed to be .xml
try this: View attachment status_bar.zip
cyberking said:
try this: View attachment 1219507
Click to expand...
Click to collapse
Thanks + I did it and got transparent mod and center clock working after a bit but now there is no status bar and i cannot get it to come up anyone got any ideas ? it came up once :/ Really want to get it to work quite a few people want this
Managed to do it thanks to everyone who helped I thanked everyone :')
nice, so where was problem, i'm just curios
cyberking said:
nice, so where was problem, i'm just curios
Click to expand...
Click to collapse
Had one extra line in the status_bar.xml file + to get it to appear i had to reflash cm9 after full wipe then install the cm9 zip again just with different SystemUI.apk in it
dudeman1996 said:
Download the latest version of smali 1.3.3 from here and compile it manually.
Click to expand...
Click to collapse
Dude,
Is there any way to lock my mobile again....???
devilsdude said:
Dude,
Is there any way to lock my mobile again....???
Click to expand...
Click to collapse
What do you mean lock?
Sent from my HTC Wildfire S A510e using xda premium

Problem recompiling SystemUI

i am having some problem recompiling the new build 0.587 SystemUI
I get this message
C:\Apktool>apktool b SystemUI fin.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Apktool\SystemUI\res\values\styles.xml:3: error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/TextAppearan
ce.StatusBar'.
C:\Apktool\SystemUI\res\values\styles.xml:8: error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/TextAppearan
ce.StatusBar'.
C:\Apktool\SystemUI\res\values\styles.xml:9: error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/TextAppearan
ce.StatusBar'.
C:\Apktool\SystemUI\res\values\styles.xml:14: error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/TextAppeara
nce.StatusBar'.
C:\Apktool\SystemUI\res\values\styles.xml:46: error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/TextAppeara
nce.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\NOIM\AppData\Local\Temp\AP
KTOOL3986682972765043768.tmp, -I, C:\Users\NOIM\apktool\framework\1.apk, -S, C:\
Apktool\SystemUI\res, -M, C:\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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, C:\U
sers\NOIM\AppData\Local\Temp\APKTOOL3986682972765043768.tmp, -I, C:\Users\NOIM\a
pktool\framework\1.apk, -S, C:\Apktool\SystemUI\res, -M, C:\Apktool\SystemUI\And
roidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:249)
... 6 more
Click to expand...
Click to collapse
CAn anyone find whats Wrong ???
Have you installed the relevant files first? http://forum.xda-developers.com/showthread.php?t=1759573
SystemUI has different recompile.. I was looking for a solution for 20 days but noone helped.. anyway here is %100 solution of myself for recompiling SystemUI.apk
>> use wanam's ICS apk manager. it works with GB too..
>> Before decompile .apk , right click and ' open archive ' with 7-zip. Drag & drop classes.dex file to a folder or desktop, and delete inside the .apk..
Decompile it, do what you want and recompile.. After all is ok, open unsigned apk with 7-zip and drag&drop classes.dex back.
Cheers..
Opss, ıf U still have recompile problem, try using latest 'aapt' file. ,)
thanks for the reply ...i will give each method a try ...

Categories

Resources