FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[tutorial]**Fix for recompiling framework-res with apktool** 4/15/2012

9,722 posts
Thanks Meter: 5,626
 
By fernando sor, Recognized Themer on 15th April 2012, 09:46 PM
Post Reply Email Thread
18th April 2012, 11:37 PM |#31  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Is there any fix to decompile SystemUI? Haven't tried with 4.0 but 3.6 errors me on apktools 1.4.1, 1.4.2, and 1.4.3.

Code:
dmeadows013$ apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
	at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
	at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
	at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
	at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
	at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
	at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
	at brut.androlib.Androlib.getResTable(Androlib.java:44)
	at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
	at brut.apktool.Main.cmdDecode(Main.java:120)
	at brut.apktool.Main.main(Main.java:57)
 
 
19th April 2012, 12:18 AM |#32  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,626
 
More
Quote:
Originally Posted by dmeadows013

Is there any fix to decompile SystemUI? Haven't tried with 4.0 but 3.6 errors me on apktools 1.4.1, 1.4.2, and 1.4.3.

Code:
dmeadows013$ apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
	at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
	at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
	at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
	at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
	at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
	at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
	at brut.androlib.Androlib.getResTable(Androlib.java:44)
	at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
	at brut.apktool.Main.cmdDecode(Main.java:120)
	at brut.apktool.Main.main(Main.java:57)

Use the apktool i posted. I updated the Smali and baksmali properties in it. I've used it for sense 3.6 systemui many times.
Closer look tho i see your getting past baksmaling. If you want post your systemui. It could be your aapt

Sent from my ADR6425LVW using xda premium
The Following User Says Thank You to fernando sor For This Useful Post: [ View ] Gift fernando sor Ad-Free
19th April 2012, 12:34 AM |#33  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Quote:
Originally Posted by fernando sor

Use the apktool i posted. I updated the Smali and baksmali properties in it. I've use it in 3.6 systemui many times.
Closer look tho i see your getting past baksmaling. If you want post your systemui. It could be your aapt

Sent from my ADR6425LVW using xda premium

Something tells me it is... Should I use the aapt from the newest apktool? Or from something else?
19th April 2012, 12:36 AM |#34  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,626
 
More
Quote:
Originally Posted by dmeadows013

Something tells me it is... Should I use the aapt from the newest apktool? Or from something else?

I have it in my apktool link in the op. It's the newest out

Sent from my ADR6425LVW using xda premium
19th April 2012, 12:38 AM |#35  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Quote:
Originally Posted by fernando sor

I have it in my apktool link in the op. It's the newest out

Sent from my ADR6425LVW using xda premium

Not on Windows

Will the sdk one work?
19th April 2012, 12:41 AM |#36  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,626
 
More
Quote:
Originally Posted by dmeadows013

Not on Windows

Will the sdk one work?

It should. I updated to the newest android API 15 and tools. I imagine it is in each code version

Sent from my ADR6425LVW using xda premium
19th April 2012, 12:45 AM |#37  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Quote:
Originally Posted by fernando sor

It should. I updated to the newest android API 15 and tools. I imagine it is in each code version

Sent from my ADR6425LVW using xda premium

Just downloaded platform-tools revision 11 and still no go
19th April 2012, 12:47 AM |#38  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,626
 
More
Quote:
Originally Posted by dmeadows013

Just downloaded platform-tools revision 11 and still no go

What are you using? Mac or Linux? I would just xda search or google it

Sent from my ADR6425LVW using xda premium
19th April 2012, 12:48 AM |#39  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Quote:
Originally Posted by fernando sor

What are you using? Mac or Linux? I would just xda search or google it

Sent from my ADR6425LVW using xda premium

Mac. Could I be using a wrong com.htc.resources.apk or framework-res.apk?
19th April 2012, 12:53 AM |#40  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,626
 
More
Quote:
Originally Posted by dmeadows013

Mac. Could I be using a wrong com.htc.resources.apk or framework-res.apk?

You need to install the framework resources from the rom your working with

Sent from my ADR6425LVW using xda premium
19th April 2012, 12:59 AM |#41  
dmeadows013's Avatar
Inactive Recognized Developer
Flag Hoboken, NJ
Thanks Meter: 3,824
 
Donate to Me
More
Quote:
Originally Posted by fernando sor

You need to install the framework resources from the rom your working with

Sent from my ADR6425LVW using xda premium

Well then idk... Using latest aapt, apktool, right files, not sure what it could be.
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