FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[UPDATE]Universal Multipurpose AutoAPKTool 2.0.4a

3,986 posts
Thanks Meter: 7,951
 
By agat63, Recognized Contributor / Recognized Developer on 2nd April 2012, 01:50 AM
Post Reply Subscribe to Thread Email Thread
15th April 2012, 06:34 PM |#41  
Senior Member
Thanks Meter: 208
 
More
When recompiling framework-res.apk with option 15 of my Sense4(lite) ROM, I get this:

PHP Code:
[*] "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"... 
WCould not find sources
I
Building resources...
invalid resource directory nameC:\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" eC:\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.AndrolibExceptionbrut.common.BrutExceptioncould not exec command: [aaptp, -FC:\Users\Lukas\AppData\Local\Temp\APKTOOL2179726619885175998.tmp, -x, -SC:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -MC:\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 bybrut.common.BrutExceptioncould not exec command: [aaptp, -FC:\Users\Lukas\AppData\Local\Temp\APKTOOL2179726619885175998.tmp, -x, -SC:\Program Files (x86)\Android\autoapk\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -MC:\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?
 
 
15th April 2012, 06:37 PM |#42  
agat63's Avatar
OP Recognized Contributor / Recognized Developer
Las Vegas, NV
Thanks Meter: 7,951
 
Donate to Me
More
Did you install framework-res.apk with option 1 first?
Is it a stock app or it has been moded (themed) before?
15th April 2012, 07:08 PM |#43  
Senior Member
Thanks Meter: 208
 
More
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.
15th April 2012, 07:10 PM |#44  
agat63's Avatar
OP Recognized Contributor / Recognized Developer
Las Vegas, NV
Thanks Meter: 7,951
 
Donate to Me
More
Quote:
Originally Posted by lms24

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.
15th April 2012, 07:17 PM |#45  
sleshepic's Avatar
Recognized Themer
Flag PA
Thanks Meter: 6,910
 
Donate to Me
More
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 by sleshepic; 15th April 2012 at 07:33 PM.
The Following User Says Thank You to sleshepic For This Useful Post: [ View ]
15th April 2012, 11:12 PM |#46  
12MaNy's Avatar
Recognized Themer
Flag Seattle
Thanks Meter: 800
 
More
Quote:
Originally Posted by lms24

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 by 12MaNy; 15th April 2012 at 11:37 PM.
16th April 2012, 07:12 AM |#47  
Tiffany84's Avatar
Recognized Themer
Thanks Meter: 3,178
 
Donate to Me
More
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.
16th April 2012, 07:13 AM |#48  
agat63's Avatar
OP Recognized Contributor / Recognized Developer
Las Vegas, NV
Thanks Meter: 7,951
 
Donate to Me
More
Quote:
Originally Posted by Tiffany84

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.
16th April 2012, 07:26 AM |#49  
Tiffany84's Avatar
Recognized Themer
Thanks Meter: 3,178
 
Donate to Me
More
Quote:
Originally Posted by agat63

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
16th April 2012, 07:27 AM |#50  
agat63's Avatar
OP Recognized Contributor / Recognized Developer
Las Vegas, NV
Thanks Meter: 7,951
 
Donate to Me
More
Quote:
Originally Posted by Tiffany84

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.
The Following User Says Thank You to agat63 For This Useful Post: [ View ]
16th April 2012, 07:51 AM |#51  
12MaNy's Avatar
Recognized Themer
Flag Seattle
Thanks Meter: 800
 
More
Yep.....decompiled/recompiled without a hitch for me too. Thanks agat63

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes