Has anyone else has this problem with apktool on mac os X 10.7.4? I tried to recompile the framework-res to have a smaller navigation bar.
dyn172-30-14-218:downloads vincentdinculescu$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping hidden file '/Users/vincentdinculescu/Downloads/framework-res/res/.DS_Store')
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/anim-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-xhdpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw720dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-h720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-w960dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-port
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-w1280dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w360dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w480dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w500dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
dyn172-30-14-218:downloads vincentdinculescu$
has anyone else had problems with posting in Q&A? or are you developing something here
"winners don't use MAC"
Pachanka said:
"winners don't use MAC"
Click to expand...
Click to collapse
haha buts it so pretty, lol sorry can the mods move this to Q and A
Your ****ty mac says anything android related is an "invalid resource". Typical.
vince.26 said:
Has anyone else has this problem with apktool on mac os X 10.7.4? I tried to recompile the framework-res to have a smaller navigation bar.
dyn172-30-14-218:downloads vincentdinculescu$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping hidden file '/Users/vincentdinculescu/Downloads/framework-res/res/.DS_Store')
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/anim-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-xhdpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw720dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-h720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-w960dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-port
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-w1280dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w360dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w480dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w500dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
dyn172-30-14-218:downloads vincentdinculescu$
Click to expand...
Click to collapse
It's a Mac lawsuit thing, Apple doesn't like competitors.
Know-Fear said:
Your ****ty mac says anything android related is an "invalid resource". Typical.
Click to expand...
Click to collapse
Hahaha, so true .
vince.26, I guess the mods will be harsh on you for posting in the wrong section because you're using something made by Apple...
nah, I'm just kidding ya.
Not sure why you get that error, but anyway... Mac sucks - at least the OS. If I ever buy a MacBook (if I ever have a manager-like income, that is), I'll dual-boot Windows and Linux on it, but make sure I burn the disk first, so no trace of Mac ****ness is left XD
Know-Fear said:
Your ****ty mac says anything android related is an "invalid resource". Typical.
Click to expand...
Click to collapse
same problem on windows
.
D:\Android\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Android\apktool\framework-res\res/anim-sw720
dp
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w600dp-nodpi
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w600dp-xhdpi
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w720dp-nodpi
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-sw6
00dp
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-sw7
20dp
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-w60
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-h72
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp-land
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp-w960dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-land
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-port
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-w1280dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w36
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w48
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w50
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w60
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w72
0dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\BELLER~1\AppData\Local\Tem
p\APKTOOL1218440664050319810.tmp, -x, -S, D:\Android\apktool\framework-res\res,
-M, D:\Android\apktool\framework-res\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\BELLER~1\AppData\Local\Temp\APKTOOL1218440664050319810.tmp, -x, -S, D:\Andr
oid\apktool\framework-res\res, -M, D:\Android\apktool\framework-res\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
D:\Android\apktool>
Please read forum rules before making threads
Questions go in Q&A
Thread Moved
Thanks
FNM
Android version? Did you update your SDK?
Sent from my Galaxy Nexus using xda premium
Related
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
jar file decompile and compiler with tutor.zip
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
rough video
decompile and recompile
jar file decompile and compiler_ICS_4.0.4.zip for ICS attached
carl1961 said:
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
Click to expand...
Click to collapse
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
dungphp said:
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
Click to expand...
Click to collapse
how about fixing the power menu on your kingdom
rom before endeovoring onto new things
dungphp said:
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
Click to expand...
Click to collapse
can you clearify what you mean by " check what values it can work ?"
carl1961 said:
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
rough video's
decompile and compare
http://hotfile.com/dl/129669607/c0fbe0f/jar_decompile.wmv.html
recompile
http://hotfile.com/dl/129730353/414ef8a/jar_recompiling.wmv.html
Click to expand...
Click to collapse
updated with video's
thx!!!
It's amazing! Thank you for the great work!!! I am really happy now!
Great tutorial!!
hello my friend
hi carl can u do me a favor, not familiar at all with the .jar files can u take the jar file i uploaded and decompile and change to the settings below on the link and recompile? only step1 i already did step 2
http://forum.xda-developers.com/showpost.php?p=16918676&postcount=1
fallenangel408 said:
hi carl can u do me a favor, not familiar at all with the .jar files can u take the jar file i uploaded and decompile and change to the settings below on the link and recompile? only step1 i already did step 2
http://forum.xda-developers.com/showpost.php?p=16918676&postcount=1
Click to expand...
Click to collapse
decompiled the com.htc.framework.jar and it is no where like the com.htc.framework.jar on the post
your com.htc.framework.jar only has these codes ( in picture) you can see the path theres no widgit folder
carl1961 said:
decompiled the com.htc.framework.jar and it is no where like the com.htc.framework.jar on the post
your com.htc.framework.jar only has these codes ( in picture) you can see the path theres no widgit folder
Click to expand...
Click to collapse
Thinking that is from sense rom but why's only <70kb ?
can anyone tell me what this mean?
Code:
C:\Users\Julian\Desktop\apktool>apktool b Launcher2 launcher.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-af-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-am-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ar-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-bg-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ca-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-cs-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-da-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-de-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-el-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-en-rGB-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-rUS-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fa-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hu-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-in-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-it-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-iw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ja-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ko-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ms-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nb-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-rPT-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ro-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ru-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-th-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-uk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-vi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rCN-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rTW-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zu-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Julian\AppData\Local\Temp\
APKTOOL3469899241465810932.tmp, -I, C:\Users\Julian\apktool\framework\1.apk, -S,
C:\Users\Julian\Desktop\apktool\Launcher2\res, -M, C:\Users\Julian\Desktop\apkt
ool\Launcher2\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\Julian\AppData\Local\Temp\APKTOOL3469899241465810932.tmp, -I, C:\Users\Juli
an\apktool\framework\1.apk, -S, C:\Users\Julian\Desktop\apktool\Launcher2\res, -
M, C:\Users\Julian\Desktop\apktool\Launcher2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Julian\Desktop\apktool>
I am trying to edit the ICS launcher's manifest so that I can make it work with previous version.. I was thinking that maybe apktool had to be updated for every os update but am not sure as I am new to this....
Thanks for the help.. Sorry if this is the wrong place
alil2cul4u said:
can anyone tell me what this mean?
Code:
C:\Users\Julian\Desktop\apktool>apktool b Launcher2 launcher.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-af-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-am-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ar-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-bg-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ca-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-cs-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-da-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-de-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-el-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-en-rGB-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-rUS-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fa-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hu-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-in-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-it-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-iw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ja-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ko-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ms-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nb-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-rPT-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ro-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ru-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-th-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-uk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-vi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rCN-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rTW-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zu-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Julian\AppData\Local\Temp\
APKTOOL3469899241465810932.tmp, -I, C:\Users\Julian\apktool\framework\1.apk, -S,
C:\Users\Julian\Desktop\apktool\Launcher2\res, -M, C:\Users\Julian\Desktop\apkt
ool\Launcher2\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\Julian\AppData\Local\Temp\APKTOOL3469899241465810932.tmp, -I, C:\Users\Juli
an\apktool\framework\1.apk, -S, C:\Users\Julian\Desktop\apktool\Launcher2\res, -
M, C:\Users\Julian\Desktop\apktool\Launcher2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Julian\Desktop\apktool>
I am trying to edit the ICS launcher's manifest so that I can make it work with previous version.. I was thinking that maybe apktool had to be updated for every os update but am not sure as I am new to this....
Thanks for the help.. Sorry if this is the wrong place
Click to expand...
Click to collapse
Or you using the latest apktool, also you need to load your resource files ( framework.res.apk, com.resources.apk)
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
@carl1961
Nice tool and great tutorial, thank you very much.
Awesome job putting this together, thanks!! I am out of the thanks for the moment but I have this page kept open.
Hi,
I have totally repackaged your tools and added some of my own that will be of great help to people. The Smali packages I made my self, the dex2jar toolset was made by the guy that originally did the translating. Credits to him.
I have also packaged everything with the latest smali/baksmali which will do Ice Cream Sandwich as well and it totally backawards compatible
You now don't need instructions at all you just type decompile before the name of any jar file and it will do it all for you...same as for recompile (although I haven't tested that yet though. I assume that you will need to do all the regular stuff like apktool as I set it up the same
Code:
decompile services.jar
thats it...its that simple
Code:
recompile out -o classes.dex
then -> WinRAR services.jar and drag classes.dex back in and close
NOTE: Use the help function. It is decompile.bat. It wil print the options in prompt for you.
You guys who are ICS or less will need to change API level from default 14 (as you should all do anyway Rule #1 check the api level of the toolset and Question #1 is can it be changed to match mine? in this case yes!
PS: I am about to write a plugin or module (if I can find the damn time) to decompile do full scripting comparison as a porting toolset i.e. place two jar files in the respectable locations launch the menu and it will decompile the two jar files, and then print a report on screen and then you can select how you want to proceed...still nutting that one out? I.e. swap classes in or out of one or both sides
Though I didn't read your guides (Because I followed zeppelinrox instructions on his thread), but it is very very kind of you to go through the extend to create those guides. :good::good:
good to know though i am a dev noob~ haha
Could we use this for making "skip-track-via-volume-buttons" mod with this. Pardon me am a noob. But i really want to learn a how-to for Non-CyanogenMods. Maybe my signature could express my willingness.
Thanks.
You don't have to compare with your eyes.. if you are running linux, just do a "diff" between the smali file from the htc framework and one from CM. It will show you all the differences each file has.
I was making some color changes in my systemui.apk but it will not compile now. Im getting this error.
C:\Users\Sean\Desktop\Android Modding\APK's>apktool b systemui
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/layout-sw600dp
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/values-sw600dp
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/values-sw600dp-port
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/values-sw720dp
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Sean\AppData\Local\Temp\AP
KTOOL7307828911707401960.tmp, -I, C:\Users\Sean\apktool\framework\1.apk, -S, C:\
Users\Sean\Desktop\Android Modding\APK's\systemui\res, -M, C:\Users\Sean\Desktop
\Android Modding\APK's\systemui\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\Sean\AppData\Local\Temp\APKTOOL7307828911707401960.tmp, -I, C:\Users\Sean\a
pktool\framework\1.apk, -S, C:\Users\Sean\Desktop\Android Modding\APK's\systemui
\res, -M, C:\Users\Sean\Desktop\Android Modding\APK's\systemui\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Sean\Desktop\Android Modding\APK's>
bump
/10char
The clue is in the error:
invalid resource directory name: C:\Users\Sean\Desktop\Android Modding\APK's\sys
temui\res/drawable-sw600dp-xhdpi
Whats wrong with the bolded area?
the slash is the wrong way? why would it do that?
apktool incorrectly decompiled it. You need to remove those wrong slahes in the xml.
well ****, that seems like a lot of work
Nothing ctrl F won't fix. Or a grep.
Or just use the xml you modified and keep the old stuff.
now when u say to just use the xml i modded...how? do i just copy it to the apk im trying to flash? I thought it had to be recompiled? or can i recompile an individual xml. Im new to this whole themeing thing
Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Galliture said:
Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from ice cold sandwich rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it
Click to expand...
Click to collapse
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
scaryshark said:
What do you mean by can't compile. What error are you getting we need more detail!
Sent from my Desire HD using XDA
Click to expand...
Click to collapse
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Galliture said:
When i wanna compile both files it tells me that i didnt pulled the framework-res
I have replaced some files from systemui and framework from primo s rom to ice cold sandwich but i just replaced the png files and some small xml files from layout folder and i didnt add any thing ...
sorry for my bad english
Click to expand...
Click to collapse
Now were getting somewhere, but could you be more cleat.
What is the exact error, what are you using to compile/decompile have you installed the framework files?. Without being clear nobody has any idea how to help!
Sent from my Desire HD using XDA
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Galliture said:
OK these are the exact things i do:
In apktool I installed the ice cold sandwich framework and I decompiled the SystemUI and framework to make some changes
and when I wanna compile the framework-res folder i get this error:
D:\Mohammad\Android\AndroidTools\apktool>apktool if ics\framework-res.apk
I: Framework installed to: C:\Documents and Settings\Galliture\apktool\framework\1.apk
D:\Mohammad\Android\AndroidTools\apktool>apktool b icesense\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1280d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w500dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-land
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp-w1024d
p
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w360dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-h720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w480dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-w720dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/values-sw600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-w600dp
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res/layout-sw600dp
(skipping index file 'D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res\drawable-hdpi\Thumbs.db')
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -
F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\ice
sense\framework-res\res, -M, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\GALLIT~1\LOCALS~1\Temp\APKTOOL2548
111907806272492.tmp, -x, -S, D:\Mohammad\Android\AndroidTools\apktool\icesense\framework-res\res, -M, D:\Mohammad\Android\
AndroidTools\apktool\icesense\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
what should I do?
Click to expand...
Click to collapse
If your using primo in there make sure to use com.htc.resources.apk and framework-red.apk as the framework files, that seems to be the problem.
Sent from my Desire HD using XDA
b4 you decomp your files, u need 2 do:
apktool if framework-res.apk
Then u kan decomp, chang things nd compile
ok,
due to capacative button lag on the ics leaks (for me, not sure why its there.) i decided to try and follow a tutorial found at android authority. everything seemed pretty strait forward and easy, till i tried to recompile. i've tried the method shown in that tutorial, i tried following several random guides i found for autoapktool that agat posted, i've tried using apk manager(which wouldnt even let me decompile it). i'm not sure what i'm doing wrong. using the method in the android authority and the autoapktool threw out the following error message.
"[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-sw400dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-xhdpi
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-h720dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw400dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w360dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w480dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w500dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w600dp
invalid resource directory name: C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Manimal\AppData\Local\Temp\APKTOOL828961179068498327.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Manimal\AppData\Local\Temp\APKTOOL828961179068498327.tmp, -x, -S, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the drive specified.
"
i know i could just install cm9 or aokp, but i find myself strangely ditermined to see this through. however, as i know just enough to get myself in trouble, perhaps i'm glad its getting stuck on recompiling before i pushed it to my device and inadvertently caused damage.
i'm obviously missing something. is there a better guide to follow?
Can you please post the decompile log from autoapktool?
Maybe post the original framework file too?
Sent from my SPH-D710 using xda app-developers app
I won't be near the computer till tonight. (I work night shift with some nice perks) but I'll get that up tonight. The apk is the framework-res.apk from phantom hacker's ics blazer rom, but I'll post that as well tonight.
Sent from my SPH-D710 using xda app-developers app
iamtheug said:
I won't be near the computer till tonight. (I work night shift with some nice perks) but I'll get that up tonight. The apk is the framework-res.apk from phantom hacker's ics blazer rom, but I'll post that as well tonight.
Click to expand...
Click to collapse
No problem. I won't be available until later anyway also.
Edit: No need to post the file, I already have Phantom's rom so I can extract the framework from there. But post the decompile log file anyway so we can take a look at it. TTYL
Here is the modded flashable framework. It had a couple of bad .9.png files in it. Still getting some errors but it recompiled fine. Make a backup before you try it.
Ciao - TD
its probably the directory name having "." in it...
chris41g said:
its probably the directory name having "." in it...
Click to expand...
Click to collapse
I've never seen that. How can I check for it.
Edit: I replace the .9.png files and the errors go away btw.
Sent from my SPH-D710 using xda app-developers app
make sure your using the aapt.exe from the old apktool when you recompile. I dont use the autoapktool, I use the original and the one modded for ics. I use the ics to decompile, then drag the aapt.exe from the original to my current folder when I recompile. Check out this thread: http://forum.xda-developers.com/showthread.php?t=1558171
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 ...