[Android Q&A, Help & Troubleshooting] Wel1973:
Hi!!

I´m triying to decompile ICS 4.0.4 framework whit that apktool.

And decompile with no errors, but when i try to recompile, apktool give me errors like this:

c:\apktool>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
c:\apktool\framework-res\res\values\anims.xml:3: error: Found tag anim where ite
m is expected
c:\apktool\framework-res\res\values\layouts.xml:3: error: Found tag layout where
item is expected
c:\apktool\framework-res\res\values\raws.xml:3: error: Found tag raw where item
is expected
c:\apktool\framework-res\res\values\public.xml:6934: error: Public symbol layout
/htc_list_item_2text_2stamp declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6935: error: Public symbol layout
/htc_list_item_2text_bright declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6936: error: Public symbol layout
/htc_list_item_image_2text_image_bright declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6937: error: Public symbol layout
/htc_list_item_imageicon_2text_2stamp declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6938: error: Public symbol layout
/htc_list_item_imageicon_text declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6939: error: Public symbol layout
/htc_list_item_separator declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6940: error: Public symbol layout
/keyguard_screen_device_unlock declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:6941: error: Public symbol layout
/pin_keyboard declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:7031: error: Public symbol anim/h
tc_ime_decelerate_interpolator declared here is not defined.
c:\apktool\framework-res\res\values\public.xml:7142: error: Public symbol raw/fa
llbackring_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\Wel\AppData\Local\Temp\APK
TOOL7689727675692035588.tmp, -x, -S, c:\apktool\framework-res\res, -M, c:\apktoo
l\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\Wel\AppData\Local\Temp\APKTOOL7689727675692035588.tmp, -x, -S, c:\apktool\f
ramework-res\res, -M, c:\apktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

And....when i try to dothe same wiht SystemUI.apk, its take me that:

c:\apktool>java -jar apktool.jar d SystemUI.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

Now...i´m Greatfull for any help.

Greettings.