[Q] how to add 4in1 reboot for ThunderBolt ? - Upgrading, Modifying and Unlocking

Hey Guys, I m Tryin to add 4 in 1 reboot function for TB ,
Reference:http://forum.xda-developers.com/showpost.php?p=8674580&postcount=1
when i get the end of step 1 , i have some problem .
apk manager show me an error when i compile apk:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3635: error: Mu
ltiple entry names declared for public entry identifier 0x101 in type drawable (
btn_media_player_disabled_selected vs download).
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:2863: Originall
y defined here.
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3635: error: Pu
blic symbol drawable/download declared here is not defined.
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3633: error: Mu
ltiple entry names declared for public entry identifier 0xff in type drawable (b
tn_media_player vs reboot).
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:2861: Originall
y defined here.
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3633: error: Pu
blic symbol drawable/reboot declared here is not defined.
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3634: error: Mu
ltiple entry names declared for public entry identifier 0x100 in type drawable (
btn_media_player_disabled vs recovery).
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:2862: Originall
y defined here.
D:\apk\other\..\projects\framework-res.apk\res\values\public.xml:3634: error: Pu
blic symbol drawable/recovery 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\liem\AppData\Local\Temp\AP
KTOOL4973910132166951427.tmp, -x, -S, D:\apk\other\..\projects\framework-res.apk
\res, -M, D:\apk\other\..\projects\framework-res.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\liem\AppData\Local\Temp\APKTOOL4973910132166951427.tmp, -x, -S, D:\apk\othe
r\..\projects\framework-res.apk\res, -M, D:\apk\other\..\projects\framework-res.
apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
系统找不到指定的文件。
请按任意键继续. . .
D:\apk>
can anybody help ?

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.

[Q] Can anyone help me De/Re compile framework-res.apk?

Can anyone help me De/Re compile framework-res.apk? all i need is to change one line in res/values strings.xml
i keep getting errors when compiling
Code:
C:\apk>apktool b framework
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apk\framework\res\values\anims.xml:3: error: Found tag anim where item is exp
ected
C:\apk\framework\res\values\layouts.xml:3: error: Found tag layout where item is
expected
C:\apk\framework\res\values\raws.xml:3: error: Found tag raw where item is expec
ted
C:\apk\framework\res\values\public.xml:6932: error: Public symbol layout/htc_lis
t_item_2text_2stamp declared here is not defined.
C:\apk\framework\res\values\public.xml:6933: error: Public symbol layout/htc_lis
t_item_2text_bright declared here is not defined.
C:\apk\framework\res\values\public.xml:6934: error: Public symbol layout/htc_lis
t_item_image_2text_image_bright declared here is not defined.
C:\apk\framework\res\values\public.xml:6935: error: Public symbol layout/htc_lis
t_item_imageicon_2text_2stamp declared here is not defined.
C:\apk\framework\res\values\public.xml:6936: error: Public symbol layout/htc_lis
t_item_imageicon_text declared here is not defined.
C:\apk\framework\res\values\public.xml:6937: error: Public symbol layout/htc_lis
t_item_separator declared here is not defined.
C:\apk\framework\res\values\public.xml:6938: error: Public symbol layout/keyguar
d_screen_device_unlock declared here is not defined.
C:\apk\framework\res\values\public.xml:6939: error: Public symbol layout/pin_key
board declared here is not defined.
C:\apk\framework\res\values\public.xml:7029: error: Public symbol anim/htc_ime_d
ecelerate_interpolator declared here is not defined.
C:\apk\framework\res\values\public.xml:7140: error: Public symbol raw/fallbackri
ng_htc 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\Lord\AppData\Local\Temp\AP
KTOOL1415025283371956419.tmp, -x, -S, C:\apk\framework\res, -M, C:\apk\framework
\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\Lord\AppData\Local\Temp\APKTOOL1415025283371956419.tmp, -x, -S, C:\apk\fram
ework\res, -M, C:\apk\framework\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
if i followed this guide http://forum.xda-developers.com/showthread.php?t=1601511 i can successful compile but when framework-res pushes back to onev, all apps crashed after reboot.
Thanks guys!
if you are using apk multitool you should put all the files inside the java folder of your pc.you can compile it but you compiled it with errors because of apk not finding something related to java and when you put it in your phone it is normal that everything crashes.
Unzip and overwrite the files after you decompile and right before your recompile. It will change back everytime you decompile. So you will need to reuse these files each time.

[Q] I cant compile system apps...PLZ help me

Hi,
Its a long time that I am tryeing edit system apps with apktool..
I can decompile files without any problem..But when I even add a new line in styles.xml or a new image I cant compile file anymore...Is there any steps that I forgot to do?
For example here I have add lines to style.xml file and got this
Code:
F:\Program Files (x86)\Android\Apktool1.5.2>apktool b settings
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
F:\Program Files (x86)\Android\Apktool1.5.2\settings\res\values\styles.xml:146:
error: Error retrieving parent for item: No resource found that matches the give
n name '@android:style/Theme.Holo.Dialog.Alert'.
F:\Program Files (x86)\Android\Apktool1.5.2\settings\res\values\styles.xml:150:
error: Error retrieving parent for item: No resource found that matches the give
n name '@com.sonyericsson.uxp:style/SEMCTheme'.
F:\Program Files (x86)\Android\Apktool1.5.2\settings\res\values\styles.xml:162:
error: Error retrieving parent for item: No resource found that matches the give
n name '@android:style/Theme.Holo.Dialog.Alert'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\T
emp\APKTOOL982444968840542437.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1.
apk, -S, F:\Program Files (x86)\Android\Apktool1.5.2\settings\res, -M, F:\Progra
m Files (x86)\Android\Apktool1.5.2\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, 15, --target-sdk-version, 15, -F, C:
\Users\CRAZYV~1\AppData\Local\Temp\APKTOOL982444968840542437.tmp, -I, C:\Users\C
razy Virus\apktool\framework\1.apk, -S, F:\Program Files (x86)\Android\Apktool1.
5.2\settings\res, -M, F:\Program Files (x86)\Android\Apktool1.5.2\settings\Andro
idManifest.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, 15, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\Tem
p\APKTOOL982444968840542437.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1.ap
k, -S, F:\Program Files (x86)\Android\Apktool1.5.2\settings\res, -M, F:\Program
Files (x86)\Android\Apktool1.5.2\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
or this one is for another app:
Code:
F:\Program Files (x86)\Android\Apktool1.5.2>cmd
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
F:\Program Files (x86)\Android\Apktool1.5.2>apktool d Conversations.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Crazy Virus\apktool\framework\1.ap
k
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
F:\Program Files (x86)\Android\Apktool1.5.2>apktool b Conversations
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res\values\styles.xml:
25: error: Error: No resource found that matches the given name: attr 'android:s
emcWindowShowGlobalAppBackground'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 14, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\T
emp\APKTOOL3280165132194446604.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1
.apk, -S, F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res, -M, F:\
Program Files (x86)\Android\Apktool1.5.2\Conversations\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, 14, --target-sdk-version, 15, -F, C:
\Users\CRAZYV~1\AppData\Local\Temp\APKTOOL3280165132194446604.tmp, -I, C:\Users\
Crazy Virus\apktool\framework\1.apk, -S, F:\Program Files (x86)\Android\Apktool1
.5.2\Conversations\res, -M, F:\Program Files (x86)\Android\Apktool1.5.2\Conversa
tions\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, 14, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\Tem
p\APKTOOL3280165132194446604.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1.a
pk, -S, F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res, -M, F:\Pr
ogram Files (x86)\Android\Apktool1.5.2\Conversations\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
F:\Program Files (x86)\Android\Apktool1.5.2>
Can some one please help me abut this problem
See the second link in my sig.
Sent from Myushi
Thanks a lot..I have already seen your topic but I cant fix my problem...
When I try to compile file without any change I still get this error ..I dont know what I must do now..I trued diffrent apktools and apk manager and .. but I cant compile system apps while I can decompile theme without any problem
Code:
F:\Program Files (x86)\Android\Apktool1.5.2>cmd
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
F:\Program Files (x86)\Android\Apktool1.5.2>apktool d conversations.apk
Destination directory (F:\Program Files (x86)\Android\Apktool1.5.2\conversations
) already exists. Use -f switch if you want to overwrite it.
F:\Program Files (x86)\Android\Apktool1.5.2>apktool d Conversations.apk
Destination directory (F:\Program Files (x86)\Android\Apktool1.5.2\Conversations
) already exists. Use -f switch if you want to overwrite it.
F:\Program Files (x86)\Android\Apktool1.5.2>apktool d Conversations.apk -f
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Crazy Virus\apktool\framework\1.ap
k
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
F:\Program Files (x86)\Android\Apktool1.5.2>apktool b Conversations
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res\values\styles.xml:
8: error: Error: No resource found that matches the given name: attr 'android:su
pportsRtl'.
F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res\values\styles.xml:
15: error: Error: No resource found that matches the given name: attr 'android:s
upportsRtl'.
F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res\values\styles.xml:
22: error: Error: No resource found that matches the given name: attr 'android:s
upportsRtl'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 14, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\T
emp\APKTOOL5370304368205710480.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1
.apk, -S, F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res, -M, F:\
Program Files (x86)\Android\Apktool1.5.2\Conversations\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, 14, --target-sdk-version, 15, -F, C:
\Users\CRAZYV~1\AppData\Local\Temp\APKTOOL5370304368205710480.tmp, -I, C:\Users\
Crazy Virus\apktool\framework\1.apk, -S, F:\Program Files (x86)\Android\Apktool1
.5.2\Conversations\res, -M, F:\Program Files (x86)\Android\Apktool1.5.2\Conversa
tions\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, 14, --target-sdk-version, 15, -F, C:\Users\CRAZYV~1\AppData\Local\Tem
p\APKTOOL5370304368205710480.tmp, -I, C:\Users\Crazy Virus\apktool\framework\1.a
pk, -S, F:\Program Files (x86)\Android\Apktool1.5.2\Conversations\res, -M, F:\Pr
ogram Files (x86)\Android\Apktool1.5.2\Conversations\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
F:\Program Files (x86)\Android\Apktool1.5.2>

Categories

Resources