[Q] I cant compile system apps...PLZ help me - Xperia Arc Q&A, Help & Troubleshooting

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>

Related

[Q] looking for circle battery status bar mod

Looking for mod to change battery icon in status bar to circle with percents
ROM: Virtuous 3.2.0 and Incredible Revolution theme
Can anyone point me to thread?
Thanks
http://forum.xda-developers.com/showthread.php?t=990829
got error on kitchen rebuild?
I adb pulled framework-res.apk from phone and uploaded as directed.
What did I wrong?
Code:
Decompiling framework-res.apk UOT-06-30-01-53-2
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Compiling framework-res.apk UOT-06-30-01-53-2
W: Could not find sources
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1643516675712976659.tmp, -x, -S, /home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/res, -M, /home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/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, /tmp/APKTOOL1643516675712976659.tmp, -x, -S, /home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/res, -M, /home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
/home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/res/layout-hdpi/screen_progress.xml:9: error: Error: String types not allowed (at 'foregroundGravity' with value 'fill_horizontal|top|center').
/home/uot/port5/data/working_dir/UOT-06-30-01-53-2/fw_dec/res/layout-hdpi/screen_title_icons.xml:13: error: Error: String types not allowed (at 'foregroundGravity' with value 'fill_horizontal|top|center').

[Q] SHFT Error in UOT Kitchen

Hi Everyone,
I keep trying different variations of themes and preferences and I keep getting errors. I've probably gotten about 6 today... am I doing something wrong? Here's the most recent info-
UOT Kitchen file: UOT-09-28-19-34-2
Theme: NTSense.apk (https://www.dropbox.com/s/ijwdk0t2xsti1mo)
Rom: CM7 8/12 (nightly)
Error:
"Decompiling themer.apk UOT-09-28-19-34-2
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Compiling themer.apk UOT-09-28-19-34-2
W: Could not find sources
I: Building resources...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
res/drawable-hdpi/stat_power_background.png:0: error: Resource entry stat_power_background is already defined.
res/drawable-hdpi/stat_power_background.9.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2677946993458652052.tmp, -x, -I, /home/uotftp/apktool/framework/1.apk, -S, /home/uotftp/port5/data/working_dir/UOT-09-28-19-34-2/th_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-09-28-19-34-2/th_dec/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, /tmp/APKTOOL2677946993458652052.tmp, -x, -I, /home/uotftp/apktool/framework/1.apk, -S, /home/uotftp/port5/data/working_dir/UOT-09-28-19-34-2/th_dec/res, -M, /home/uotftp/port5/data/working_dir/UOT-09-28-19-34-2/th_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more"
Did you try contacting the kitchen like it says if you get that error? What are you trying to do in the kitchen, what files did you upload?
Sent from my ADR6300 using xda premium

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.

Modding Phone.apk

Ok I have the newest apktool 1.5.2 I have installed framework-res.apk and com.htc.resources.apk but get warnings seems this is normal. I decompile Phone.apk and then tried recompiling it without making changes trying to troubleshoot the issue and I get these error's any help please.
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\APK\phone\res/drawable-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/drawable-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL827132729019243
5011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\
Users\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\p
hone\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, -F, C:\Users\JASONC~1\AppData\Lo
cal\Temp\APKTOOL8271327290192435011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\a
pktool\framework\1.apk, -I, C:\Users\Jason CCCE LLC\apktool\framework\2.apk, -S,
c:\APK\phone\res, -M, c:\APK\phone\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, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL82713272901924350
11.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\Us
ers\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\pho
ne\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Try upgrading your aapt binary with the latest one.
Riyal said:
Try upgrading your aapt binary with the latest one.
Click to expand...
Click to collapse
I have to no avail.
The_new_user said:
I have to no avail.
Click to expand...
Click to collapse
Have you tried with framework-res.apk from api14 or api16? It should work.
There's a BUG of Phone.apk.
You can't recompile it unless you fix that bug.
(But I don't know how to fix it. :目)

[HELP]I cant add JB animations to my GB

i cant add JB animations to GB. theirs hundreds of tuts i followed and they dont work when i compile my apk i get the following error
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool>apktool b framework-res
I: Using Apktool 2.0.0-Beta9 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDA
RKM~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-i
d, 1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --ver
sion-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL2680947754549401
578.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-
res\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\
AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
at brut.androlib.Androlib.buildResources(Androlib.java:363)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\brut_util_Jar_683405974500036
5220.tmp, p, --forced-package-id, 1, --min-sdk-version, 10, --target-sdk-version
, 10, --version-code, 10, --version-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS
~1\Temp\APKTOOL2680947754549401578.tmp, -x, -S, C:\Documents and Settings\XDarkM
ario\Desktop\ApkTool\framework-res\res, -M, C:\Documents and Settings\XDarkMario
\Desktop\ApkTool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\DOCUME~1\XDARK
M~1\LOCALS~1\Temp\brut_util_Jar_6834059745000365220.tmp, p, --forced-package-id,
1, --min-sdk-version, 10, --target-sdk-version, 10, --version-code, 10, --versi
on-name, 2.3.7, -F, C:\DOCUME~1\XDARKM~1\LOCALS~1\Temp\APKTOOL268094775454940157
8.tmp, -x, -S, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-re
s\res, -M, C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:464)
... 6 more
Here:
Code:
C:\Documents and Settings\XDarkMario\Desktop\ApkTool\framework-res\AndroidManife
st.xml:1: error: Error parsing XML: not well-formed (invalid token)
As you can see, something is wrong in the first line of the .xml. look for "invalid tokens" such as commas or symbols that should not be where they are.
I've been looking into how to fix these errors lately and I ran into this awesome xml plugin for notepad ++ it can detect script errors. Ill give this another shot
R800Q

Categories

Resources