[UPDATE]Universal Multipurpose AutoAPKTool 2.0.4a

Search This thread

lms24

Senior Member
Aug 21, 2011
225
224
When recompiling framework-res.apk with option 15 of my Sense4(lite) ROM, I get this:

PHP:
[*] "C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res" 
recompiling "C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res"... 
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/drawable-sw600dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/drawable-xlarge-nodpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-sw600dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-w600dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-xhdpi
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ar-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-bg-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ca-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-cs-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-da-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-de-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-el-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-en-rGB-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-es-rUS-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-es-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-fa-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-fi-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-fr-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-hi-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-hr-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-hu-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-id-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-it-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-iw-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ja-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ko-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-lt-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-lv-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-nb-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-nl-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-pl-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-pt-rPT-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-pt-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ro-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-ru-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-sk-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-sl-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-sr-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-sv-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-th-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-tl-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-tr-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-uk-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-vi-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-zh-rCN-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/raw-zh-rTW-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-h720dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w360dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w480dp
invalid resource directory namException in thread "main" e: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w500dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w600dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w720dp
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-xlarge
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-xlarge-land
invalid resource directory name: C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/xml-xlarge
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Lukas\AppData\Local\Temp\APKTOOL2179726619885175998.tmp, -x, -S, C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Program Files (x86)\Android\autoapk\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\Lukas\AppData\Local\Temp\APKTOOL2179726619885175998.tmp, -x, -S, C:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Program Files (x86)\Android\autoapk\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


I guess that's some sort of an error message... what am I doing wrong?
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Did you install framework-res.apk with option 1 first?
Is it a stock app or it has been moded (themed) before?
 

lms24

Senior Member
Aug 21, 2011
225
224
I did install the framework-res.apk with option1 (just wondering: should I have done anything else for installing than just pressing 1 e.g. putting framework-res.apk in a certain folder.?)
Since I'm porting from a port (not from the original RUU) I guess the framework-res.apk has been modded.
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
I did install the framework-res.apk with option1 (just wondering: should I have done anything else for installing than just pressing 1 e.g. putting framework-res.apk in a certain folder.?)
Since I'm porting from a port (not from the original RUU) I guess the framework-res.apk has been modded.

Modded apps/framework files are always a problem.
To make sure it's not the tool by file itself try to decompile and recompile the stock file without making any changes to it. If it works than the problem is in the app/framework you trying to mod.
If it doesn't than we should look what went wrong with the tool and/or framework installation.
 

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
First thing to do i think would be to update the aapt file with the newest one from your android sdk directory. If your not sure if it is, update everything in sdk manager then transfer the new aapt file from android(think its in platform tools? Maybe not) into your apktool folder(replacing existing aapt). That should do it, running programs "as administrator" can also help issues with not accessing folders.

Sent from my SPH-D710 using xda premium
 
Last edited:
  • Like
Reactions: 12MaNy

12MaNy

Senior Member
Jun 7, 2010
2,427
881
Seattle
I did install the framework-res.apk with option1 (just wondering: should I have done anything else for installing than just pressing 1 e.g. putting framework-res.apk in a certain folder.?)
Since I'm porting from a port (not from the original RUU) I guess the framework-res.apk has been modded.


Shortcut: Try using 7-Zip to swap the .9's that you don't have to mod from port .apk to stock .apk....then just decompile to mod .XML, .dex, .jars.....etc.


EDIT: Nevermind....you have to be able to decompile port .apks in order to see which files are modded. Derr...sorry, a little hung over.
 
Last edited:

Tiffany84

Inactive Recognized Themer
Jul 27, 2010
6,280
3,323
Sorry I didn't get back to you sooner but I was finally able to test your tool a couple days ago and this is the first tool that I was successfully able to de-compile and re-compile an ICS apk on the first try. That's a WIN in my book.
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
Sorry I didn't get back to you sooner but I was finally able to test your tool a couple days ago and this is the first tool that I was successfully able to de-compile and re-compile an ICS apk on the first try. That's a WIN in my book.

Thanks for feed back.
Means a lot to me.
Sorry to hear about your laptop.
Did send a little some in your direction. Hope you will be back soon.
I love your work and looking forward to see more from you.
It's not much but hope every little bit helps.
 

Tiffany84

Inactive Recognized Themer
Jul 27, 2010
6,280
3,323
Thanks for feed back.
Means a lot to me.
Sorry to hear about your laptop.
Did send a little some in your direction. Hope you will be back soon.
I love your work and looking forward to see more from you.
It's not much but hope every little bit helps.

It's way more than u needed to do. I really appreciate the support. Thanks for all u are doing for the community.

Sent from my SPH-D710 using Tapatalk 2 Beta-5
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
Las Vegas, NV
It's way more than u needed to do. I really appreciate the support. Thanks for all u are doing for the community.

Sent from my SPH-D710 using Tapatalk 2 Beta-5

The life is not only about what we need to do buy sometimes what we want to do or what our heart tells us to do.
Isn't it?
And I need you active and working so we can take a look at that Contact and Phone transparency. :)
 
  • Like
Reactions: sleshepic

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
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
 
Last edited:

12MaNy

Senior Member
Jun 7, 2010
2,427
881
Seattle
Getting errors on framework-res.apk too. Tried adding additional framework files (option 81), but still errored out.






[*] "C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res"
recompiling "C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res"...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-sw400dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-sw600dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/layout-w600dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/mipmap-xhdpi
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-h720dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw400dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w360dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w480dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w500dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/values-w600dp
invalid resource directory name: C:\Users\Jason\Desktop\Android Files\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\Jason\AppData\Local\Temp\APKTOOL8697726445354685819.tmp, -x, -S, C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Users\Jason\Desktop\Android Files\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\Jason\AppData\Local\Temp\APKTOOL8697726445354685819.tmp, -x, -S, C:\Users\Jason\Desktop\Android Files\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, C:\Users\Jason\Desktop\Android Files\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
 
Last edited:

AvatarOfFrost

Senior Member
Apr 11, 2010
671
286
Can't recompile. I installed the framework but still nothing.....


This is what i'm getting



*] C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
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-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-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\Leopard2\AppData\Local\Temp\APKTOOL6880227017178037061.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\Leopard2\AppData\Local\Temp\APKTOOL6880227017178037061.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.
 

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
Can't recompile. I installed the framework but still nothing.....


This is what i'm getting



*] C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
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-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-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\Leopard2\AppData\Local\Temp\APKTOOL6880227017178037061.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\Leopard2\AppData\Local\Temp\APKTOOL6880227017178037061.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.

Looks like it didnt decompile correctly, see the backwards slash right before animator on the first line?

Invalid resource directory name: c:\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res/animator

Either try another decompile or fix the xml that had the incorrect path name i suppose...maybe? Thats what i would start with at least


Sent from my SPH-D710 using xda premium
 

AvatarOfFrost

Senior Member
Apr 11, 2010
671
286
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
 

sleshepic

Inactive Recognized Themer
Oct 18, 2011
3,915
7,030
PA
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
Thanks, somehow got that one figured out. Thx for the heads up. This tool is great, thx again agat63

Sent from my SPH-D710 using xda premium
 

_dan

Senior Member
Nov 6, 2011
604
1,066
NJ
Dl has been telling me "This file is temporarily unavailable while we are performing maintenance on this server.
Please try to download this file again in 24 hours" :( Would you happen to have a mirror?
 

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