Post Reply

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

OP PhilipL

4th November 2013, 09:37 PM   |  #1  
OP Senior Member
Thanks Meter: 403
 
603 posts
Join Date:Joined: Jun 2007
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, 10:18 PM   |  #2  
sewer56lol's Avatar
Senior Member
Flag 54.5970 N, 5.9300 W
Thanks Meter: 536
 
1,503 posts
Join Date:Joined: Jun 2012
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
4th November 2013, 11:08 PM   |  #3  
Ricky Divjakovski's Avatar
Recognized Contributor
Flag Sydney
Thanks Meter: 5,306
 
3,588 posts
Join Date:Joined: Feb 2013
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, 03:36 AM   |  #4  
Recognized Developer
New Orleans
Thanks Meter: 3,511
 
1,977 posts
Join Date:Joined: Nov 2011
Donate to Me
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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 5 Q&A, Help & Troubleshooting by ThreadRank