[UPDATE]Universal Multipurpose AutoAPKTool 2.0.4a

Search This thread

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
Actually I'm changing that line from:
%d of %d to
%1$d of %2$d.

If you check one plural that doesn't listed in that error message it's exactly how the line looks like.

Yup, thats what i switched it to, found somethin on the net about it. Thx. So psyched now that theyre able to be worked with :)

Sent from my SPH-D710 using xda premium
 

rachelm920

Senior Member
Apr 12, 2011
571
230
Hartford, CT
Theming framework-res.apk for ICS has been driving me nucking futs to say the very least.

I am trying to decompile the framework from this ROM http://xdaforums.com/showthread.php?t=1342291 which is already deodexed. Using this tool on Windows 7 64bit. ADB and Java are properly installed.

  1. I put the framework-res.apk into _INPUT_APK
  2. Option 1
    Result:
    Code:
    W: config flags size> 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected dimen-hdpi-ERR0
    And multiple similar codes with different 0x numbers and dimen names

    I have no idea what that means...
  3. I press any key since it says "Press any key to continue"
  4. Option 6 - Single Decompile apk
  5. I drag framework-res.apk into the terminal
    Result:
    Code:
    C:\_INPUT_APK\framework-res.apk 
    decompiling C:\_INPUT_APK\framework-res.apk... 
    I: Loading resource table...
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR4
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR5
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR6
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR7
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR8
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR9
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR10
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR11
    I: Loaded.
    I: Decoding file-resources...
    I: Decoding values*/* XMLs...
    I: Done.
    I: Copying assets and libs...
    Looks like the same errors....
  6. Close Notepad
    Result - The framework-res folder is created with the pngs etc.
  7. I DO NOT make any changes
  8. Option 7
  9. I drag the framework-res folder into the terminal and press enter
    Result:
    Code:
    C:\_INPUT_APK\framework-res 
    recompiling C:\_INPUT_APK\framework-res... 
    W: Could not find sources
    I: Building resources...
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/animator
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/drawable-sw600dp-hdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/drawable-xlarge-nodpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/interpolator
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-sw600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-w600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-hdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-ldpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-mdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-xhdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ar-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-bg-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ca-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-cs-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-da-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-de-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-el-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-en-rGB-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-es-rUS-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-es-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fa-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hu-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-id-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-it-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-iw-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ja-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ko-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-lt-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-lv-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-nb-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-nl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pt-rPT-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pt-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ro-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ru-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sk-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sv-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-th-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-tl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-tr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-uk-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-vi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-zh-rCN-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-zh-rTW-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-h720dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-land
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w360dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w480dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w500dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w720dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-xlarge-land
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/xml-xlarge
    Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Temp\APKTOOL315252293869259280.tmp, -x, -S, C:\\_INPUT_APK\framework-res\res, -M, C:\\_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:\Temp\APKTOOL315252293869259280.tmp, -x, -S, C:\\_INPUT_APK\framework-res\res, -M, C:\\_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.
    It looks like there's a "/" where a "\" should be... is something wrong with the code? I'm confused
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Theming framework-res.apk for ICS has been driving me nucking futs to say the very least.

I am trying to decompile the framework from this ROM http://xdaforums.com/showthread.php?t=1342291 which is already deodexed. Using this tool on Windows 7 64bit. ADB and Java are properly installed.

  1. I put the framework-res.apk into _INPUT_APK
  2. Option 1
    Result:
    Code:
    W: config flags size> 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected dimen-hdpi-ERR0
    And multiple similar codes with different 0x numbers and dimen names

    I have no idea what that means...
  3. I press any key since it says "Press any key to continue"
  4. Option 6 - Single Decompile apk
  5. I drag framework-res.apk into the terminal
    Result:
    Code:
    C:\_INPUT_APK\framework-res.apk 
    decompiling C:\_INPUT_APK\framework-res.apk... 
    I: Loading resource table...
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR4
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR5
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR6
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR7
    W: Config flags size > 36. Exceeding bytes: 0x1000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR8
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR9
    W: Config flags size > 36. Exceeding bytes: 0x4000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR10
    W: Config flags size > 36. Exceeding bytes: 0x5000000.
    W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR11
    I: Loaded.
    I: Decoding file-resources...
    I: Decoding values*/* XMLs...
    I: Done.
    I: Copying assets and libs...
    Looks like the same errors....
  6. Close Notepad
    Result - The framework-res folder is created with the pngs etc.
  7. I DO NOT make any changes
  8. Option 7
  9. I drag the framework-res folder into the terminal and press enter
    Result:
    Code:
    C:\_INPUT_APK\framework-res 
    recompiling C:\_INPUT_APK\framework-res... 
    W: Could not find sources
    I: Building resources...
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/animator
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/drawable-sw600dp-hdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/drawable-xlarge-nodpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/interpolator
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-sw600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-w600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/layout-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-hdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-ldpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-mdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/mipmap-xhdpi
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ar-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-bg-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ca-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-cs-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-da-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-de-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-el-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-en-rGB-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-es-rUS-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-es-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fa-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-fr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-hu-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-id-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-it-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-iw-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ja-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ko-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-lt-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-lv-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-nb-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-nl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pt-rPT-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-pt-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ro-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-ru-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sk-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-sv-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-th-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-tl-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-tr-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-uk-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-vi-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-zh-rCN-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/raw-zh-rTW-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-h720dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-land
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w360dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w480dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w500dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w600dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-w720dp
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-xlarge
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/values-xlarge-land
    invalid resource directory name: C:\\_INPUT_APK\framework-res\res/xml-xlarge
    Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Temp\APKTOOL315252293869259280.tmp, -x, -S, C:\\_INPUT_APK\framework-res\res, -M, C:\\_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:\Temp\APKTOOL315252293869259280.tmp, -x, -S, C:\\_INPUT_APK\framework-res\res, -M, C:\\_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.
    It looks like there's a "/" where a "\" should be... is something wrong with the code? I'm confused

Did you run option 1 first?
if framework. You should install framework first even thou you trying to decompile framework-res.apk.
What version of sdk have you downloaded and intalled?
Since you saying that java is up to date these are only 2 things I can think of at the moment.
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Yes Option 1 is the first thing I did.
I have the most recent version of everything.

Unfortunatelly I'm at work right now and can't test/check it myself till evening.
If this can wait I'll defenetly try to decompile and recompile the app once I'm home.
Can't help you with anything else at this moment.
 

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
looks like the decompile messed up the directory names(some of the slashes are backwards) you might have to install the system framework too? for samsung its twframework, for htc isnt it like Rosie.apk or something? easy place to start if you could install both frameworks first before decompiling

Sent from my SPH-D710 using xda premium
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Yes Option 1 is the first thing I did.
I have the most recent version of everything.

Only one thing.
I've noticed your _INPUT_APK folder is in root of c:\ drive.
I never had it set like that and script might not finde all parts.
What is you folder structure?
It should have main folder like apktool or whatever you want to name it and inside that folder you should have all parts of the tool and all subfolders like _INPUT_APK and all others.
I did zip the whole folder so you can extract it where ever you what and it would maintain the folder structure since it's important for the tool.
If you have set it up a different way please try to set it the way I discribed above.
 

rachelm920

Senior Member
Apr 12, 2011
571
230
Hartford, CT
Only one thing.
I've noticed your _INPUT_APK folder is in root of c:\ drive.
I never had it set like that and script might not finde all parts.
What is you folder structure?
It should have main folder like apktool or whatever you want to name it and inside that folder you should have all parts of the tool and all subfolders like _INPUT_APK and all others.
I did zip the whole folder so you can extract it where ever you what and it would maintain the folder structure since it's important for the tool.
If you have set it up a different way please try to set it the way I discribed above.

Actually I have it in 2 places. It was in C:\AutoAPKTool2.0.4 and when I ran the program it kept creating the folders (_INPUT_APK etc.) in the root directory for some reason although they already existed in the AutoAPKTool2.0.4 directory. Then when I chose option #1 it kept saying Framework wasn't in the folder but it was... so then I copied it to the one on the root drive and it found it... IDK what it's problem is :( I always used APK Manager before but since the upgrade to ICS I have had nothing but problems.


I have an HTC Amaze and I did try putting com.htc.resources.apk in under the additional framework files, and that didn't work either. I am getting so frustrated with it... dreaming of .9.pngs in my sleep lol
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Actually I have it in 2 places. It was in C:\AutoAPKTool2.0.4 and when I ran the program it kept creating the folders (_INPUT_APK etc.) in the root directory for some reason although they already existed in the AutoAPKTool2.0.4 directory. Then when I chose option #1 it kept saying Framework wasn't in the folder but it was... so then I copied it to the one on the root drive and it found it... IDK what it's problem is :( I always used APK Manager before but since the upgrade to ICS I have had nothing but problems.


I have an HTC Amaze and I did try putting com.htc.resources.apk in under the additional framework files, and that didn't work either. I am getting so frustrated with it... dreaming of .9.pngs in my sleep lol

That's very strange.
It should created _INPUT_APK folder only inside of apktool folder not in root of drive c:\.
I'll check it when I get home but I'm positive it should create that folder in one place only.
 

OmenHTX

Senior Member
Mar 13, 2012
408
872
POLAND
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108048d
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a4
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

its clean systemui.apk from stock rom 2.3.4
many errors also in other stock system apps
Im using apktool 4.9 with apktool 1.3.2
 
Last edited:

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a4
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108048d
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a4
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

its clean systemui.apk from stock rom 2.3.4
many errors also in other stock system apps
Im using apktool 4.9 with apktool 1.3.2

What rom?
What phone?
 
Firstly, Thanks for working on this great program for the dev community, greatly appreciated :)

Secondly, I have the same problem others have mentioned earlier with the slashes going the wrong way.. (\res/)

[*] C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3
recompiling C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3...
W: Could not find sources
I: Building resources...
Exception in thread "main" invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/color-sw600dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/color-sw800dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-ar-rIL-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-iw-rIL-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-ja-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-ko-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-land-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw320dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw320dp-land-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw320dp-port-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw360dp-land-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw360dp-land-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw360dp-port-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-sw800dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/drawable-zh-rCN-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-ar-rIL-sw360dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-ar-rIL-sw360dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-iw-rIL-sw360dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-iw-rIL-sw360dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-ko-sw360dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-ko-sw360dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-ko-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw320dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw320dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw320dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw320dp-port
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw320dp-port-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw360dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw360dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw360dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw360dp-port
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw600dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw600dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw800dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw800dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw800dp-land-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-sw800dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/layout-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/menu-sw600dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/menu-sw800dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw320dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw320dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw320dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw320dp-port
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw320dp-port-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw360dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw360dp-hdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw360dp-land
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw360dp-port
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw360dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw600dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw800dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/values-sw800dp-xhdpi
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/xml-sw320dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/xml-sw359dp
invalid resource directory name: C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res/xml-sw360dp
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Kim\AppData\Local\Temp\APKTOOL2229796448045450592.tmp, -I, C:\Users\Kim\apktool\framework\1.apk, -I, C:\Users\Kim\apktool\framework\2.apk, -S, C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res, -M, C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\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\Kim\AppData\Local\Temp\APKTOOL2229796448045450592.tmp, -I, C:\Users\Kim\apktool\framework\1.apk, -I, C:\Users\Kim\apktool\framework\2.apk, -S, C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\res, -M, C:\Users\Kim\Downloads\Samsung\AutoAPKTool2.0.4\_INPUT_APK\ClockPackage_SGS_3\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more


was there any fix found for this?

Thanks
 
Yes, installed framework-res.apk first, I did everything like I normally do.

Finally what I did was decompile with your 2.0.4 version, and everything worked.

I also decompiled with v2.0.0 in a separate folder. edit - (after removing the classes.dex file from the apk)

Then I copied everything across from the v2.0.4 folder to the v2.0.0 folder overwriting everything except for the apktool.yml (I suspect the problem is in the apktool.yml from the v2.0.4 folder)

Then I moved all the smali files across to my other folder with my 2.0.0 installation with the classes.dex extracted and in it's own 'smali' folder, I used v2.0.0 to recompile it all together and it worked fine.

I think something is wrong with your version of the program in that it writes the file structure of the apk wrong eg. "/res\drawable..."
 
Last edited:

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Yes, installed framework-res.apk first, I did everything like I normally do.

Finally what I did was decompile with your 2.0.4 version, and everything worked.

I also decompiled with v2.0.0 in a separate folder. edit - (after removing the classes.dex file from the apk)

Then I copied everything across from the v2.0.4 folder to the v2.0.0 folder overwriting everything except for the apktool.yml (I suspect the problem is in the apktool.yml from the v2.0.4 folder)

Then I moved all the smali files across to my other folder with my 2.0.0 installation with the classes.dex extracted and in it's own 'smali' folder, I used v2.0.0 to recompile it all together and it worked fine.

I think something is wrong with your version of the program in that it writes the file structure of the apk wrong eg. "/res\drawable..."

Hard to beleive something to be wrong in my version not because I think I'm that good but because I'm using it all the time and don't have problems.
Beside that tool has been downloaded over 600 times. I think I would of have more complaints about tool not working by now.
But I'll defenetly check out uploaded version and go over all batch file to make sure I didn't miss anything.
 
You could be right, maybe I did overlook something, or maybe the program has problems with the file systems of certain roms? It's strange that some people are having the same problems and others aren't...

In any case, thank you very much for your hard work on this program, it definitely saved me a bunch of time. :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 53
    First of all I didn’t create this tool entirely.
    This tool has been created by xavierjohn22 and his thread can be found here:
    http://xdaforums.com/showthread.php?t=1053227
    He deserves most if not all the credit for this amazing tool.

    Credits:

    @Beachon
    @Xavierjohn22, the amazing author of AutoApktool! Visit his thread, click his thanks button, and support his work with donations, and my personal thanks to author for this tool and his permission to modify it and re-post it..
    @Brut_all for Apktool
    @XDA Community

    I did add few more options to the tool to make it AoutAPKTool a universal Tool.

    The Idea was to make this a one stop shop for all app/jar/dex file modifications any dev would like to do.
    With new changes to hex/dex that have been introduced in ICS leaks/roms decompiling an app became a few step process. We had to take classes.dex out of app and save it somewhere. Delete it from app and then decompile it. After mods have been done we had to put that dex file back into app.
    I have added a menu option to decompile ICS app and a script that would do all that all by itself making that process fully automated.
    Also I did add baksmali/smali script and menu options for .dex and .jar files so we don’t have to keep 2 different tools and to be able to do everything we want to do under one roof.

    I’m not gonna type up a tutorial for complete tool.
    You can read about it in thread linked above. Mr. xavierjohn22 knows much more about this subject and his explanations are better than I can do it. You also can read more about how to use this tool here:
    http://xdaforums.com/showthread.php?t=1511755
    I’ll just explain how to use new options in menu I’ve added.
    Download zip file from link provided and extract somewhere on your hard drive. It will create AutoAPKTool2.0.4 folder on your hard drive with all tools and folders you need inside that folder.

    How to:
    1. Decompile ICS app. This has been tested on E4GT apps and it’s working. If you try this tool on apps from other phones ICS builds please let me know if it works and I’ll add that info to description for others to know. Now back to subject. You don’t need to do any extra steps to decompile an ICS app. You would choose option 14 from menu and drag’n’drop app from _INPUT_APK folder into CMD window. The script will take classes.dex out of apk, decompile it and once done with decompiling it will move classes.dex back into xyz.apk file leaving it in its original state. Script will also add classes.dex file to decompiled apk folder so when you recompile it after you done with your modifications the classes.dex will be there. To recompile app use option 15 from menu.

    2. Baksmali/smali classes.dex file. This options will do exactly what they say they would. You put a dex file into _INPUT_APK folder and run baksmali option. It will create clasout folder and put decompiled classes.dex file into it. Do your modifications and run smali. It will recomplile classes.dex and create a new file new-classes.dex in your _INPUT_APK folder. You can rename it to classes.dex and put into apk you took it out from.

    3. Baksmali/smali JAR files. Put a JAR file you want to edit into _Jar_Files folder and run baksmali JAR option from menu. You will be asked to drag’n’drop jar file into CMD window. Do that and hit enter. New folder with filename.dex extension will be created _Jar_Files folder and jar file will be decompiled into that folder. After you done with your modifications choose option Smali JAR file. You will be prompted to drag’n’drop filename.dex folder into CMD window. Do it and hit enter. Jar file will be recompiled and you will find newly created/recompiled jar in filename.dex folder.

    If you see any bags in while using this options please let me know. If you have problems with anything else please contact xavierjohn22 since I don’t know anything about all the other stuff in this tool.
    I’m not a programmer nor am I a code writer and this is my first attempt to put together a tool. Please go easy on me if you discover any bugs. I’ll try to keep up with you and fix bugs as you discover them.

    You can download tool here:
    http://jumbofiles.com/tuwvhbc1ksio/AutoAPKTool2.0.4.zip.html

    Updated tool to aapt.exe from windows-sdk API level 15 (ICS).
    AutoAPKTool2.0.4a

    I'm looking forward to get some feedback about options added.
    5
    Reserved just in case
    4
    reserved as well.
    3
    Im also having recompile issues while trying to recompile SystemUI.apk.
    All I wanted to do was change the clock color in my statusbar on a Samsung Galaxy S2 4.0.4 ROM. I have been searching all around the internet and keep getting all types of "solutions" yet none of them actually work. I keep getting the EXACT SAME errors during recompilation.
    Then I came across this AutoAPKTool during yet another Google search. I love how easy it is to use, yet... ERRRRRRROOOORRRRRRRRS while recompiling. It shouldnt really matter that my phone is not the Epic 4G Touch.

    Im attaching my logs from AutoAPKT. These were generated by decompiling and recompiling a SystemUI.apk that was pre-modded with a 15Toggle mod. I simply decompiled the apk, and immediately recompiled it and the logs will show my results, which seem to be pretty similar to what many others are reporting.

    Please help?

    As mentioned before it's very hard to deal with previously modded apk's.
    When you just swap the png's in any app without proper process (decompile, replace, recompile) app is working but there may be images that left without publck variables attached to them or variables without images.
    App still works but when you try to decompile and recompile you will have a bunch of errors.
    You should try to work with stock (unmodified) app if you wanna avoid errors that are not caused by you and/or your mods.
    In your decompile log it shows one wrong .9.png and believe me one wrong image can trow a lot of errors.
    That png is missing 9. patches and has been rename to png. Now you have more images (at least one) that you have described in your public.xml.
    First you should try to fix that one image and run recompile again to see if it will fix anything.
    Or you can grab the stock SystemUI.apk and decompile it. Use images from that modded app to replace stock images and recompile the stock one again.
    That should work. Just make sure that you using images from decompiled moded app and make sure all 9.png's are correct and have patches.
    Or decompile stock app. Change what ever you want to change and recompile it.
    After that you can swap images using 7z or similar by opening both apps for view.
    Hope this make sense.
    3
    if you are getting plurals.xml errors you have to go to line 79 in each xml that generated the error and add % to the second % on that line:

    for example, change

    <item quantity="other">%d of %d</item>

    to

    <item quantity="other">%d of %%d</item>

    notice the double %% at the end of the line

    Used this for the first time last night, amazing, all in all almost too easy. Thanks Agat63.

    One question though, I'm having issues with framework_helper(to add public.xml entries) and was wondering whether this version of apktool mods the public.xml like apk manager? Or whether I have to manually do it. Trying to add images for pulldown animation, and charging animation. Thanks!

    Edit: Getting this on recompile of fd16 framework-res, also having trouble with fd16 systemui. not sure whats up, doing everything I can think of. Think I have to check syntax in plurals and strings maybe


    [*] C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res
    recompiling C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
    W: Could not find sources
    I: Building resources...
    aapt: warning: string 'mobileap_notification' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: es_US
    aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
    aapt: warning: string 'policylab_allow_htmlemail' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
    aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: es
    aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: es
    aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: es
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is expected
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
    C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals> is expected
    Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Slesh\AppData\Local\Temp\APKTOOL4995788418808299772.tmp, -x, -S, C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Users\Slesh\Desktop\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\Slesh\AppData\Local\Temp\APKTOOL4995788418808299772.tmp, -x, -S, C:\Users\Slesh\Desktop\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Users\Slesh\Desktop\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.

    Sent from my SPH-D710 using xda premium