Hello, I want to start to mod this framework for the iconia, But when I try to decompile using apkmanager option 9 I get and error
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
and with option 10 I dont know which apk are dependencies.
Please let me know any clue you have.
Thanks in advance
I don't think that has been updated for HC yet.
blazingwolf said:
I don't think that has been updated for HC yet.
Click to expand...
Click to collapse
well, there is some custom frameworks for honeycomb and transformer I think.
i will research a little bit more to see if this is possible.
Oh... i hoped that we can easily decompile framework.res
If you find the way - post it here: i really want to make some cool graphic tuning to HC.
wesStyle said:
Oh... i hoped that we can easily decompile framework.res
If you find the way - post it here: i really want to make some cool graphic tuning to HC.
Click to expand...
Click to collapse
Ok, after a google moment I find that just need to update apktool.jar to decompile and compile again honeycomb apk, but now!!! the problem is that we can't just sing and replace on our system, so in other versions of android it is possible just to replace edited files from the compiled unsigned apk on original signed framework-res.apk
Yesterday I kill my Iconia a couple of times, but its easy to fix with a full base update.zip
I will try different ways to reaplace the framework and post if it works.
wesStyle said:
Oh... i hoped that we can easily decompile framework.res
If you find the way - post it here: i really want to make some cool graphic tuning to HC.
Click to expand...
Click to collapse
hey pal, check this http://forum.xda-developers.com/showthread.php?t=1121607
Related
Hi,
I kno I've posted this in Q&A but maybe there is one super developer who can help the community getting there 4 lockscreens?!
Currently there only exist two types of lockscreen for the sgs i9000. AOSP or samsung glass.
For the Vibrant on the other hand, some people (untermensch ) have managed to get 4 lockscreen types:
AOSP lockscreen
Glass lockscreen
Puzzle lockscreen
Epic lockscreen
More info in this topic: http://forum.xda-developers.com/showthread.php?t=838260
It must definitly be possible to port this to a froyo rom on our SGS but it has taken me a lot of time allready and have not progressed one bit.
Frustrating indeed.
I managed to decompile the android.policy.jar using the command: java -jar baksmali.jar -x android.policy.jar -o android.policy
I added the epic classes from the source zip file in the earlier mentioned post.
I recompiled ((java -jar smali.jar android.policy -o classes.dex) it again and at least no errors at this stage.
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Tried a lot of things, options, google, this forum but failed to find a solution.
The same thing with the Settings.apk, same kind of error, no solution.
I must be doing something wrong here and have come to a point that I cant figure it out anymore.
I believe that a lot of people would be interested in this kind of thing and this is something achievable.
If somebody could take a shot at this modification please, it would be so awesome to have this for Darkys rom or Docrom v9.
ps.i do remember that some id's of resources need to change cause there are some duplicates somewhere but don't remember which one where.
The source codes that untenmensch provided contain all the information. Though haven't tried it, but it is comprehensive enough.
Try using apk manager to decompile the framework-res.apk, and you use baksmali and smali for the settings apk.
Use stock apk, instead of modded ones.
Sent from my GT-I9000 using Tapatalk
laboratik said:
Next I tried to decompile the framework-res.apk.
Got errors from apktool, saying that it can't decompile a nine patch image. The nine patch image does not contain a nine patch chunk (so not really a nine patch but png with .0.png extension?)
Click to expand...
Click to collapse
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
texture said:
to decompile framework-res use this: http://forum.xda-developers.com/showthread.php?t=745189
I use it for my personal rom and works better.
apktool or apkmanager don't work better with samsung framework-res,because Samsung don't respect the standard image and there are a lot of errors that can you correct using draw9patch from SDK,but in this way must edit all pngs...and they are a lot.
Click to expand...
Click to collapse
doesnt really help as it still uses apktool. I tried to build the lockscreen mod for my ROM with it
just delete them.nothing will be happened
Hi.
When replacing framework-res .apk with another one,
does the framework has to be compiled from the same
rom or can i use a framework-res .apk from another rom?
Also what do i have to edit to be able to change the
settings?
Like adding colour or making it look like iphone or ICS.
Thanks
androidboss7 said:
Hi.
When replacing framework-res .apk with another one,
does the framework has to be compiled from the same
rom or can i use a framework-res .apk from another rom?
Also what do i have to edit to be able to change the
settings?
Like adding colour or making it look like iphone or ICS.
Thanks
Click to expand...
Click to collapse
The Framework-res.apk has to be compiled from your actually ROM, cause this have the entire UI System and features from the ROM.
If you want to costumize the color, forms and styles, you have to descompile "SystmeUI.apk" with the framework-res.apk from the same ROM. I Guess.
I'm currently working on a Honeycomb theme for ICS. I really prefer HC's UI style but I still want the features of ICS. I'm running into some obstacles though.
I'm directly modifying SystemUI.apk and framework-res.apk. Is there a better way than this?
9-patch PNGs are giving me issues. I've figured out how to use draw9patch but I can't get the PNGs to compile properly. I need one for the notification clock panel but I can't figure out how the 9-patch should be because I can't decompile either.
I've searched for about 3 days but I can't find help on how to decomiple and then recompile ICS APKs with apktool. Does anyone have a good source?
Would anyone else be interested in this mod? I'll try to figure out how to make a CWM ZIP if there's demand.
armada786 said:
I'm currently working on a Honeycomb theme for ICS. I really prefer HC's UI style but I still want the features of ICS. I'm running into some obstacles though.
I'm directly modifying SystemUI.apk and framework-res.apk. Is there a better way than this?
9-patch PNGs are giving me issues. I've figured out how to use draw9patch but I can't get the PNGs to compile properly. I need one for the notification clock panel but I can't figure out how the 9-patch should be because I can't decompile either.
I've searched for about 3 days but I can't find help on how to decomiple and then recompile ICS APKs with apktool. Does anyone have a good source?
Would anyone else be interested in this mod? I'll try to figure out how to make a CWM ZIP if there's demand.
Click to expand...
Click to collapse
Pm me , I can give you my work shop that I setup for Ics.
And there is a better draw 9 patch tool , but it is not free.
But I gotta tell you now, I can help but I won't hold your hand with every step.
Don't have the time and the time I got goes to the theme building for flexreaper.
Well i have been working with one of my Brother for making some CM10 themes. Well there are many Tutorials like Making a Cyanogen Mod environment to make a Theme
Or to use eclipse and sdk. All are very time consuming according to me. So i have made all these things easy!
CREDITS
SunnyLoveSalman--Thanks bro!
Click to expand...
Click to collapse
The things you need
•Java JRE(Update it please)
•Apktool and Aapt (preferrably 1.5.2 or newer versions)
•Notepad++ for editing xml
•A bit of time
Click to expand...
Click to collapse
Ok so now the guide--
•Download the apktool and appt and place it in C:/WINDOWS/(here)
• Now after copying all the files.
• Go to Run and Start Up Cmd.exe
•Now we need to install our CM10 framework i used franework of My ROM or you can use FrozenPika or Shendu preferrable any 4.1.2 framework should work.
For this we have to write this code in cmd
Code:
apktool if (framework directory path)
Example-- apktool if E:/Rittik/CM10-HuaweiU8800pro/framework/framework-res.apk
After its done.
• Now extract My Rar(Template) name it to something Suitable
•Now inside edit all PNG you want to change any xml files you want to change for changing name or putting new icons excectra do it now.
•After you feel your Theme is ready to test.
•Now in CMD(If you closed last session then input framework as shown above again to be sure)
Put these code for compiling your theme.
Code:
apktool b (folder name)
Example-- apktool b CM10
Now if you have done everything correct it should show "Done!"
• Now you will get your Apk inside build folder.
•Sign the apk and install and test it.
Click to expand...
Click to collapse
So thats it actually ...pretty simple no need for Environment no need for ubuntu no need for eclipse!
DOWNLOAD
Code:
CM10 Theme template-- [url= d-h.st/j9S]Press Me![/url]
Notes
i have added the ability to change lockscreen too which are usually overlooked in most of the CM10 themes out there.
Click to expand...
Click to collapse
Any qwestions? Please Ask it below.I will try to answer it ASAP.
-Rik[Rittik]
I Will try this
Thanks
HOW TO ......
Rittik said:
Well i have been working with one of my Brother for making some CM10 themes. Well there are many Tutorials like Making a Cyanogen Mod environment to make a Theme
Or to use eclipse and sdk. All are very time consuming according to me. So i have made all these things easy!
CREDITS
The things you need
Ok so now the guide--
So thats it actually ...pretty simple no need for Environment no need for ubuntu no need for eclipse!
DOWNLOAD
Code:
CM10 Theme template-- [url= d-h.st/j9S]Press Me![/url]
Notes
Any qwestions? Please Ask it below.I will try to answer it ASAP.
-Rik[Rittik]
Click to expand...
Click to collapse
RITIK how to download these applications......can i google it ???
You need a pc for running apktool and yea xda has these.
-Rik[Rittik]
Heya everyone
I am having trouble decompile the gravitybox apk file
I get the error that cant decompile arsc file
I dont want to do major edits I just wanna edit the apk to hide it from launcher which is editing the manifest of app
Please help me
Thanks
You haven't loaded the correct framework into apktool
Make sure you have at least jellybean framework-res.apk and load it into apktool using
If framework-res.apk
Here is cm10 framework
http://d-h.st/zAg
marcussmith2626 said:
You haven't loaded the correct framework into apktool
Make sure you have at least jellybean framework-res.apk and load it into apktool using
If framework-res.apk
Here is cm10 framework
http://d-h.st/zAg
Click to expand...
Click to collapse
Sir I have loaded the framework from my xperia c which runs on 4.2.2
I have used this a'll to decompile other apps but it give this error with apktool only
abhishekr700 said:
Sir I have loaded the framework from my xperia c which runs on 4.2.2
I have used this a'll to decompile other apps but it give this error with apktool only
Click to expand...
Click to collapse
Try using a different apktool version - I would use 1.5.2 unless decompiling kitkat/lollipop apks
Apktool 1.5.2
https://code.google.com/p/android-apktool/downloads/list
Apktool rc4
https://bitbucket.org/iBotPeaches/apktool/downloads
marcussmith2626 said:
Try using a different apktool version - I would use 1.5.2 unless decompiling kitkat/lollipop apks
Apktool 1.5.2
https://code.google.com/p/android-apktool/downloads/list
Apktool rc4
https://bitbucket.org/iBotPeaches/apktool/downloads
Click to expand...
Click to collapse
Sir I'm already using 1.5.2 version
I will give a try to rc4
But what does the error mean?