FORUMS
Remove All Ads from XDA

No longer able to decompile/recompile Framework-res.apk

702 posts
Thanks Meter: 518
 
By PhilipL, Senior Member on 4th November 2013, 10:37 PM
Post Reply Email Thread
Hi

I've successfully used APK Manager 5.0.2 to decompile and recompile the Framework-res.apk many times, however this is no longer working with KitKat 4.4.

I get an error when I recompile of, "Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19,"

If I try with an apk from Android 4.3 it works successfully.

What do I need to update/change to successfully recompile the framework?

Regards

Phil
 
 
4th November 2013, 11:18 PM |#2  
sewer56lol's Avatar
Senior Member
Flag 54.5970° N, 5.9300° W
Thanks Meter: 1,811
 
More
You need to import your 4.4 KitKat framework. If you use apk manager you need to go to your setup and import your framework-res from there.

Then you can continue and decompile it.

Sent from my Nexus 5 using Tapatalk
5th November 2013, 12:08 AM |#3  
Ricky Divjakovski's Avatar
Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 6,237
 
Donate to Me
More
Quote:
Originally Posted by PhilipL

Hi

I've successfully used APK Manager 5.0.2 to decompile and recompile the Framework-res.apk many times, however this is no longer working with KitKat 4.4.

I get an error when I recompile of, "Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19,"

If I try with an apk from Android 4.3 it works successfully.

What do I need to update/change to successfully recompile the framework?

Regards

Phil

that means that google packaged the framework with missing parts, search for ways to fix compiling framework-res on 4.4
12th November 2013, 04:36 AM |#4  
Recognized Developer
New Orleans
Thanks Meter: 3,519
 
Donate to Me
More
Quote:
Originally Posted by ricky310711

that means that google packaged the framework with missing parts, search for ways to fix compiling framework-res on 4.4

""Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19,""
Just means update the aapt binary. Either update your sdk or find a 4.4 aapt binary and replace the 4.3 one you have in your path
The Following User Says Thank You to mateorod For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes