[Q] Decompile framework-res - please help - Nexus 7 Q&A, Help & Troubleshooting

Hi all, can someone help for me with decompile framework-res.apk
when i use apktool for this i have in log
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080293 drawable/ic_ab_back_holo_dark, config=-hdpi
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:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:459)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Click to expand...
Click to collapse
and folder framework-res is empty.
How to solved??

Make sure you're using the most up-to-date apktool and aapt files,
check that you've installed all your framework files before decompiling and
do nothing if you're on 4.2. apktool isn't fully compatible with 4.2. yet.
Sent from my SK17i using xda premium

thanks for the replay,
i try most of apktools,
yeah when i decompile framework-res from 4.1 all working fine, but this one it's from 4.2.
maby there is problem
thanks
(i just try to make smaller navbar )

I found correct files!!!
Thanks all for help.

How did you decompiled 4.2 files?? I'm using apktool 1.5.0 latest version

maxrdlf95 said:
How did you decompiled 4.2 files?? I'm using apktool 1.5.0 latest version
Click to expand...
Click to collapse
Later will send you the files that I use.
I try 1.5.0 and not working for me.

krystiano said:
Later will send you the files that I use.
I try 1.5.0 and not working for me.
Click to expand...
Click to collapse
hey man , how did u get it to work ,, not all 4.2 roms work with me :/

Related

Recompiling framework-res.apk

I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Silvane said:
I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Click to expand...
Click to collapse
Even I am trying to compile it but i also get errors.. I edited styles.xml
Sent from my GT-S5360 using XDA
Use yhe lattest apk manager not apk tool is a old one brotha
Hehehe apk manager more powerfull than apktool
Sent from my GT-S5360 using xda premium
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
kurotsugi said:
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
Click to expand...
Click to collapse
Yeah but I face some issue using apk tool bro on my laptop but using apk manager its works
Sent from my GT-S5360 using xda premium
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Make a update script and flash it.
I always use to flash it
& it works awesome
Silvane said:
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Click to expand...
Click to collapse
m still stuck with those probs how did ya make it work?
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Silvane said:
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Click to expand...
Click to collapse
thanks for the thread and the posts you all made, i have been searching for a thread like this for 2days. going to try apk-manager now and the renaming framework-res.apk to 1.apk.
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Altermania said:
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Click to expand...
Click to collapse
Yes its normal the compression rate is max while re-compilin nd u need not be worried about it
Sent from my GT-S5670 using XDA

Error while recompiling systemui.apk

Hello guys,
I always get error while recompiling my systemui on apktool on my Sgy. Even if i dont edit any thing n recompile, i get the errors.It recompiles w/o errors for other app....what wrong am i doing?
btw i imported framework b4 decompiling
Sent from my GT-S5360 using Tapatalk 2
I'm guessing you're trying to decompile evo systemui.apk
you need to use ics framework-res.apk
No....Stock
Sent from my GT-S5360 using Tapatalk 2
delroydsouza said:
No....Stock
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
You probably need to also load tw-framework-res.apk into Apktool using the if command
Make sure you're also deodex
delroydsouza said:
Hello guys,
I always get error while recompiling my systemui on apktool on my Sgy. Even if i dont edit any thing n recompile, i get the errors.It recompiles w/o errors for other app....what wrong am i doing?
btw i imported framework b4 decompiling
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
U should have done something wrong in the xml files.
Can provide the log? So that i can find out what mistakes u have done.
MuSaddiq1410 said:
U should have done something wrong in the xml files.
Can provide the log? So that i can find out what mistakes u have done.
Click to expand...
Click to collapse
He said it's also when no changes are made at all which leads me to think either the wrong framework-res.apk was used to decompile or tw-framework-res.apk also needs to be loaded into Apktool for successful Decompile & Recompile
marcussmith2626 said:
He said it's also when no changes are made at all which leads me to think either the wrong framework-res.apk was used to decompile or tw-framework-res.apk also needs to be loaded into Apktool for successful Decompile & Recompile
Click to expand...
Click to collapse
Yeah, you're right. Both proper framework-res.apk and twframework-res.apk should be loaded for successful Decompile & Recompile.
MuSaddiq1410 said:
Yeah, you're right. Both proper framework-res.apk and twframework-res.apk should be loaded for successful Decompile & Recompile.
Click to expand...
Click to collapse
I have loaded proper framework-res.apk and twframework-res.apk....
Sent from my GT-S5360 using Tapatalk 2
Helo First U need Import Framework-res.apk then do
Shadman0 If I help U Pls Give Thanks

[APK][4.4+][Update] Contacts v16.1.B.3.2

Hi everyone, I'm sharing the latest version of Contacts v16.1.B.3.2
Changelog:
Contacts 16.1.B.3.2 app brings enhanced user experience with software performance improvements.
DOWNLOAD:
http://d-h.st/rnS
It will work on 4.4+ Devices.
No root needed. Install it as a normal apk
Do Hit Thanks Guys!!
parshing error dude, cant instal it...
4.3 SP
ship puden said:
parshing error dude, cant instal it...
4.3 SP
Click to expand...
Click to collapse
May be your downloaded apk is corrupted.
Try Redownloading the apk..
Sent from my LT26ii using XDA Premium 4 mobile app
ship puden said:
parshing error dude, cant instal it...
4.3 SP
Click to expand...
Click to collapse
+1
Redownloading did not help
Skej13 said:
+1
Redownloading did not help
Click to expand...
Click to collapse
It was confirmed working on 4.3 devices on a website..
Anyone else getting parse error while installing it?
Edit:
I think it works only on 4.4+ devices..
Sent from my LT26ii using XDA Premium 4 mobile app
did not work on XSP 4.3 stock
may be it has something to do with androidmanifest xml file.
probably work after changing minsdkversion from 19 to 16 as all 4.3 devices have minsdkversion='"16" in thier apks
I am trying to change but couldnt parse that xml.
Port it for 4.1 pls
Sent from my LT28h using XDA Premium 4 mobile app
Its Only For Android 4.4.+
Rajeev said:
Its Only For Android 4.4.+
Click to expand...
Click to collapse
may be by changing the minsdkversion to 16 in androidmanifest.xml might work for 4.3 ??
sourabhp said:
may be by changing the minsdkversion to 16 in androidmanifest.xml might work for 4.3 ??
Click to expand...
Click to collapse
@sourabhp You change the sdk version not in androidmanifest.xml
Do this
Decompile the apk, then open the decompiled folder and then open apktool-yml with notepad ++ and then change the min sdk version to 16.
I cant do this cause I dont have 4.3 or 4.4 framework so getting errors while recompiling.
Please if someone is on 4.4+ do this.
balrajs99 said:
@sourabhp You change the sdk version not in androidmanifest.xml
Do this
Decompile the apk, then open the decompiled folder and then open apktool-yml with notepad ++ and then change the min sdk version to 16.
I cant do this cause I dont have 4.3 or 4.4 framework so getting errors while recompiling.
Please if someone is on 4.4+ do this.
Click to expand...
Click to collapse
when I change it, the encoding of the file changes as I am on windows. and dont have sdk
also I read a tut by rizal. he said it should be changed in both files to work properly using android sdk
so waiting for someone to port it.
sourabhp said:
when I change it, the encoding of the file changes as I am on windows. and dont have sdk
also I read a tut by rizal. he said it should be changed in both files to work properly using android sdk
so waiting for someone to port it.
Click to expand...
Click to collapse
apktool didnt help you?
balrajs99 said:
apktool didnt help you?
Click to expand...
Click to collapse
Nope. need apktool.jar, aapt, android sdk
changing only in apktool.yml does not reflect changes in androidmanifest.xml as this file is in binary form and windows cant decode it without sdk
sourabhp said:
Nope. need apktool.jar, aapt, android sdk
changing only in apktool.yml does not reflect changes in androidmanifest.xml as this file is in binary form and windows cant decode it without sdk
Click to expand...
Click to collapse
Ok fine, then 4.3 users have to wait till it gets ported
Sent from my LT26ii using XDA Premium 4 mobile app
Rajeev said:
Its Only For Android 4.4.+
Click to expand...
Click to collapse
can u theme it black?
MysticEnforcer said:
can u theme it black?
Click to expand...
Click to collapse
No PC My Friend
Rajeev said:
No PC My Friend
Click to expand...
Click to collapse
ok, thx
i try it ^^
Installs fine and works great on my Xperia Z2 running 4.4.2. But don't notice any difference from the last version.
hush66 said:
Installs fine and works great on my Xperia Z2 running 4.4.2. But don't notice any difference from the last version.
Click to expand...
Click to collapse
Its Just A Optimised Version for Android 4.4.4.
so, it is fine with Xperia Z and 4.4.4?
10.5.A.0.9 is the version installed on my Xperia Z with firmware 10.5.1.A.0.283

how to decompile and decompile setting.apk ???

how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
darw andi said:
how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
Click to expand...
Click to collapse
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
marcussmith2626 said:
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
Click to expand...
Click to collapse
thanks before
My problem has been resolved
I use apk manager via pc
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
vai8080 said:
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
Click to expand...
Click to collapse
Which apk ?
Islam2001 said:
Which apk ?
Click to expand...
Click to collapse
It is the setting apk:what::what:
Can u do it for me
vai8080 said:
It is the setting apk:what::what:
Can u do it for me
Click to expand...
Click to collapse
U mran the stock ?
Islam2001 said:
U mran the stock ?
Click to expand...
Click to collapse
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
vai8080 said:
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
Click to expand...
Click to collapse
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
marcussmith2626 said:
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
Click to expand...
Click to collapse
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
vai8080 said:
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
Click to expand...
Click to collapse
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
marcussmith2626 said:
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
Click to expand...
Click to collapse
K thanks man

Question for development

Hello.
i'm trying to change the credroid rom, i have a problem with the settings.apk application
I can decompile the apk correctly and modify the desired files, but I can not recompile the apk. I will need your help please.
mathieum28 said:
Hello.
i'm trying to change the credroid rom, i have a problem with the settings.apk application
I can decompile the apk correctly and modify the desired files, but I can not recompile the apk. I will need your help please.
Click to expand...
Click to collapse
Needs to be resigned [emoji87]
Sent from my SM-G950U using Tapatalk
kobos311 said:
Needs to be resigned [emoji87]
Sent from my SM-G950U using Tapatalk
Click to expand...
Click to collapse
I tried with apktool 2.3 but it does not work. I can not recompile before signing the apk

Categories

Resources