How to decompile and compile framework - Xperia Arc Q&A, Help & Troubleshooting

Hi, i have problem with compiling GB framework-res.apk. Im using APK Multi Tool 1.0.6 and i decompile and compile stock framework without any problem's and i dont change anythink just to test. But rom allways got bootloop. I change compression to 0, didnt help. Stock framework have 9.5MB , and signed (with no changes, compressio 0) has 6.6MB. I allways remove resources.arsc from keep folder then continue. Any solution ? :/ i can't solve this problem, i rly dont touch anythink inside framework.

System apks such as framework should be signed. Apk tool compiles unsigned apks. You have to sign it manually.
Sent from my LT18i using xda app-developers app

popthosegaskets said:
System apks such as framework should be signed. Apk tool compiles unsigned apks. You have to sign it manually.
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
did you noticed what i write ? "Stock framework have 9.5MB , and signed (with no changes, compressio 0) has 6.6MB" i signed using apk tool

What commands did you use? If I am not mistaken, framework had some other ones to be used.
Sent from my Xperia Arc S using xda premium

default in apk multi tool

OmenHTX said:
did you noticed what i write ? "Stock framework have 9.5MB , and signed (with no changes, compressio 0) has 6.6MB" i signed using apk tool
Click to expand...
Click to collapse
You did push it into system/framework with permissions set? rw-r--r--
Sent from my LT18i using xda app-developers app

popthosegaskets said:
You did push it into system/framework with permissions set? rw-r--r--
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
i set permission moving to system, then i copied this framework to ZIP and flash rom by CWM. Full wipe > install rom > and bootloop

OmenHTX said:
i set permission moving to system, then i copied this framework to ZIP and flash rom by CWM. Full wipe > install rom > and bootloop
Click to expand...
Click to collapse
Maybe I can have a look at your framework or zip file?
Sent from my LT18i using xda app-developers app

popthosegaskets said:
Maybe I can have a look at your framework or zip file?
Sent from my LT18i using xda app-developers app
Click to expand...
Click to collapse
http://www.4shared.com/dir/P81lXwiQ/NeoV_402A0.html
Im using clean framework from .62 rom. I only decompile and compile without change's and i allways get bootloop.
Maybe i should use older version apkmanager and replace it on apk multi tool ?
o change apktool to 1.4.3,1.4.5,1.4.9 = allways bootloop, allways diference size of file

OmenHTX said:
http://www.4shared.com/dir/P81lXwiQ/NeoV_402A0.html
Im using clean framework from .62 rom. I only decompile and compile without change's and i allways get bootloop.
Maybe i should use older version apkmanager and replace it on apk multi tool ?
o change apktool to 1.4.3,1.4.5,1.4.9 = allways bootloop, allways diference size of file
Click to expand...
Click to collapse
Ok, I'll have a look at it tonight.
Sent from my LT18i using xda app-developers app

OmenHTX said:
I change compression to 0, didnt help. Stock framework have 9.5MB , and signed (with no changes, compressio 0) has 6.6MB. I allways remove resources.arsc from keep folder then continue. Any solution ? :/ i can't solve this problem, i rly dont touch anythink inside framework.
Click to expand...
Click to collapse
Extract the resources.arsc from the compiled framework-res then add it back using store as the compression method.

XperienceD said:
using store as the compression method
Click to expand...
Click to collapse
sry, i dont understand this part :/

OmenHTX said:
sry, i dont understand this part :/
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1374394

Related

How to create a theme?

Hi,
I want to create my own Samsung Galaxy S I9000 theme, but how?
Is there any sort of software or can I edit excisting ones?
Ofcourse I will publish the theme for free on XDA
Anyway, Thanks!
Cheers,
Applefaq
Applefaq said:
Hi,
I want to create my own Samsung Galaxy S I9000 theme, but how?
Is there any sort of software or can I edit excisting ones?
Ofcourse I will publish the theme for free on XDA
Anyway, Thanks!
Cheers,
Applefaq
Click to expand...
Click to collapse
This is the guide i normally send when im asked this question:
First of all, get your framework-res.apk and twframework ,(they're located in system/framework). If you are on gingerbread you also need systemui.apk (in system/app)
Then, download 7zip in case you dont have it.
Right click on framework-res.apk and with 7zip click to extract to /framework-res
You will now have a new folder.
Open it, then open /res and then /drawable-hdpi (framework-res/res/drawable-hdpi)
There are most pngs you'll need to theme.
Edit them and when you've finished editing them, open framework-res.apk with 7zip, delete the res folder, and drag the res from framework-res folder onto it. (Make sure it has copied correctly)
You should now have a framework-res with a new theme
do this also for the other two apks.
There are too many pngs to tell you the function of each, but you can pm me about some
To copy it onto your phone, you can use root explorer or a cwm installable zip.
For cwm, you'll need an updater-script and update-binary or update-script. If you want, i'll make you one.
Damn thanks for your great reply, im gonna read this!
Thanks for the reply I will post my theme next week!
Cheers,
Applefaq
how can I modified the update-binary?
Thanks for the info on gingerbread theming. Is it also safe to swap one 2.33 framework for another while on your cell?
Or is this strictly pc based? I'd like to try exact one already made and replace mine.. Or is that gonna bootloop
Sent from my GT-I9000 using Tapatalk
Dont unzip. Use apkManager to decompile. This way you will decompile the 9patch png's too.
When compiling remember to say its a system file and delete the modified files from the keep folder.
And convert the 8 bit pngs to rgb 32 bit before editing. Then convert them back to 8bit before recompiling. Or find an editor that supports 8bit. But Adobe Photoshop does not!
Sent from my GT-I9000 using XDA Premium App
If the OP needs any help im glad to give it.
But one question for you other theme gurus:
When decompiling with dependencies do you use twframework or systemui? I always use tw but with gingerbread im getting some wierd errors.
Cheers
Sent from my GT-I9000 using XDA Premium App
and how to theme odex versions ... do u delete odex files before themes them or jyst decompiling with apk manager will work ?
Any help regarding changing text colours
Sent from my GT-I9003 using XDA App
ronhoover88 said:
Any help regarding changing text colours
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
Decompile twframeworkres.apk and change "twcolor3" in res/values/color.xml(should be close enough).
Frameworkres.apk res/color/zzz_tw_secondary_text_sub.xml
Sent from my GT-P1000 using XDA App
tids2k said:
and how to theme odex versions ... do u delete odex files before themes them or jyst decompiling with apk manager will work ?
Click to expand...
Click to collapse
________________________________________________________________
racerboy3801 said:
If the OP needs any help im glad to give it.
But one question for you other theme gurus:
When decompiling with dependencies do you use twframework or systemui? I always use tw but with gingerbread im getting some wierd errors.
Cheers
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
I dont understand the question. You decompile with the files it depends on. That's all. SystemUI.apk needs framework-res.apk for example.
racerboy3801 said:
Decompile twframeworkres.apk and change "twcolor3" in res/values/color.xml(should be close enough).
Frameworkres.apk res/color/zzz_tw_secondary_text_sub.xml
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Thanks a lot does it change the text of all the frameworks...when i edit the xml my phone goes into bootloop
Sent from my GT-I9003 using XDA App
_JKay_ said:
I dont understand the question. You decompile with the files it depends on. That's all. SystemUI.apk needs framework-res.apk for example.
Click to expand...
Click to collapse
I mean that when you decompile frameworkres did you select either.twframeworkres or systemui for the dependancy.
Sent from my GT-I9000 using XDA Premium App
racerboy3801 said:
I mean that when you decompile frameworkres did you select either.twframeworkres or systemui for the dependancy.
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
No. framework-res.apk does not depend on any file.
tids2k said:
and how to theme odex versions ... do u delete odex files before themes them or jyst decompiling with apk manager will work ?
Click to expand...
Click to collapse
If you only want to change image files then just decompile the apk file and forget about the odex file.
ronhoover88 said:
Any help regarding changing text colours
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
If you want to know how to change the color of the clock in the statusbar then look at my thread. 3rd post.
http://forum.xda-developers.com/showthread.php?t=1037157
RobZarzecki said:
Thanks for the info on gingerbread theming. Is it also safe to swap one 2.33 framework for another while on your cell?
Or is this strictly pc based? I'd like to try exact one already made and replace mine.. Or is that gonna bootloop
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
Sent from my GT-I9000 using Tapatalk
RobZarzecki said:
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
You can make a cwm flash but that will require a reboot.
Sent from my GT-I9000 using XDA Premium App
racerboy3801 said:
You can make a cwm flash but that will require a reboot.
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
Thanks.. So it has to be flashed? Cannot just extract and switch one framework for another?? Not sure how to zip, sign a framework
Sent from my GT-I9000 using Tapatalk

parsing problem

can somebody help me to solve the parsing issue of *.apk files.......
thakzz in advance
Try redownloading the apk. I think it happens if the apk is not completely downloaded.
Sent from my GT-S5360 using XDA
Thats right. Apk is corrupted.
Sent from my GT-S5360 using xda premium
skylIne45 said:
Try redownloading the apk. I think it happens if the apk is not completely downloaded.
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
davidroid03 said:
Thats right. Apk is corrupted.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
not that.i just tried to install some *.apk files( system UI and framework-res.apk , etc) from the ICS rom
Apk file is currupt re-download from other source or from playshop
Sent from my GT-S5360 using xda premium
sgy.creed said:
not that.i just tried to install some *.apk files( system UI and framework-res.apk , etc) from the ICS rom
Click to expand...
Click to collapse
You can't just install those files like normal apk's. Push them to system. Make sure those are correct files otherwise it would result in either a bootloop or force close galore.
Sent from my GT-S5360 using xda premium

How to change image in status bar????

Guyz i am using aokp android 4.0.4 and i wanted to know how to change image in status bar .Thanks in advance
Sent from my GT-I9100 using xda app-developers app
sahil001 said:
Guyz i am using aokp android 4.0.4 and i wanted to know how to change image in status bar .Thanks in advance
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
First you need to decompile your systemui.apk (find it in /system/app) Then you can change the images and when you're done you compile it again.
[/COLOR]
Christiaan91 said:
First you need to decompile your systemui.apk (find it in /system/app) Then you can change the images and when you're done you compile it again.
Click to expand...
Click to collapse
That's only necessary if the image is a .9 image. Otherwise you just need a zip program such as winrar to pull the image out and edit it then reinsert it.
Edit; now that I see the image that is .9 in tw based roms but Idk about aokp.
Thanks both of you ill try it ...)))
Sent from my GT-I9100 using xda app-developers app

[Share]Simillar 4.2 Camera working on 2.3

While searching for a camcorder that works on our aosp ics i found this on the market https://play.google.com/store/apps/...?t=W251bGwsMSwxLDEsImNvbS5tYXJnaW56LnNuYXAiXQ.. even if the the camcorder doesn't work on ics it is a great app for GB
It is a camera app that looks similar like the android 4.2 camera and it comes with the 4.2 gallery and all its editing options
But if you want to use it as a system app you will to extract some lib's from the apk and put them into system/lib to make it work
I downloaded and installed it but it's not working... if i open the camera it doesn't recognize if it's portraits or landscapes correctly!
It works good and its looks beauty thanks
davids1991 said:
I downloaded and installed it but it's not working... if i open the camera it doesn't recognize if it's portraits or landscapes correctly!
Click to expand...
Click to collapse
Did u used as a system app?
No... as normal/downloaded app
davids1991 said:
No... as normal/downloaded app
Click to expand...
Click to collapse
Try to use it as a system app and extract the lib from the apk and put them in system/lib with root explorer
Can you upload the app and lib file?
Sent from my GT-I9003 using xda premium
MR.Volkf said:
Can you upload the app and lib file?
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
Dude, its an paid app..sharing apks won't be a good idea.
Only the lib?i don't know how to put lib file
Sent from my GT-I9003 using xda premium
MR.Volkf said:
Only the lib?i don't know how to put lib file
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
Here are the lib files
To install extract them from the zip and put them to system\lib and set permissions to
r w
r
r
and then restart
Thank you very much, and i also have one question?the file arm x86 for what?
Sent from my GT-I9003 using xda premium
i think is for pc running android http://www.xda-developers.com/tag/android-x86/
How can I make it as system app? Thanks...
davids1991 said:
How can I make it as system app? Thanks...
Click to expand...
Click to collapse
Using root explorer copy the apk in system/app and set permissions to rw r r and then reboot
Yay, thanks.

Themeing

I wanted to theme my r800x stock rom but I was reading about it and it says you have to deodex it first. Is it possible to do that from the phone and can someone link me to a good guide for themeing and for deodexing? I know how to do it with a flashable zip but I don't have one for stock rom. So if somebody knows how to turn nandroid backups into flashable zips or has a guide on how to do so please share. Thank you.
Sent from my r800x using xda developers app
might not be what you need exactly but could help you, this helped me in most of the ICS rom that i customized http://forum.xda-developers.com/showthread.php?t=1598829:good:
Thanks but do you know how to deodex a ROM because I'm on stock gb (which I believe is odexed) so I can't use that theming guide.
Sent from my R800x using xda app-developers app
abdel12345 said:
Thanks but do you know how to deodex a ROM because I'm on stock gb (which I believe is odexed) so I can't use that theming guide.
Sent from my R800x using xda app-developers app
Click to expand...
Click to collapse
im not that familiar with r800at and cm,miui or aokp but this heres a very nice guide for stock roms or stock based one http://forum.xda-developers.com/showthread.php?t=1600805
Thanks again
Sent from my R800x using xda app-developers app
Try a stock based ROM like cola or gbtweaked those were costimized ROMs and well if those don't suit you then try cm7 as that's got full theming support
sent from my Sony Ericsson Xperia Play™(r800x) Running Slimbean 3.0 using Tapatalk 2™
abdel12345 said:
I wanted to theme my r800x stock rom but I was reading about it and it says you have to deodex it first. Is it possible to do that from the phone and can someone link me to a good guide for themeing and for deodexing? I know how to do it with a flashable zip but I don't have one for stock rom. So if somebody knows how to turn nandroid backups into flashable zips or has a guide on how to do so please share. Thank you.
Sent from my r800x using xda developers app
Click to expand...
Click to collapse
Nandroid》Zip
1. All sony stock roms are deodex.
2. Backup format is yaffs, and your backups are stored on sdcard/clockworkmod/backup.
3. You can extract those with programs like Yaffey, Flashtool and even with android apps.
4. You can make a zip from that.
Theming
1. Get an app that can decompile I reccomend Apk Multi Tools or APKTOOL
2. Extract your framework-res and get table codes.
Apk Multi Tools can do it with Adb automatically.
In APKTOOL it goes apktool if framework-res.apk
3.Decompile apk
Apktool d framework-res.apk
4.Make image changes.
5. Recompile then push with adb.
Sent from my GT-I9300 using xda app-developers app
sewer56lol said:
Nandroid》Zip
1. All sony stock roms are deodex.
2. Backup format is yaffs, and your backups are stored on sdcard/clockworkmod/backup.
3. You can extract those with programs like Yaffey, Flashtool and even with android apps.
4. You can make a zip from that.
Theming
1. Get an app that can decompile I reccomend Apk Multi Tools or APKTOOL
2. Extract your framework-res and get table codes.
Apk Multi Tools can do it with Adb automatically.
In APKTOOL it goes apktool if framework-res.apk
3.Decompile apk
Apktool d framework-res.apk
4.Make image changes.
5. Recompile then push with adb.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
havent tried Yaffey is there a possibility you can post where i can download that?
sewer56lol said:
Nandroid》Zip
1. All sony stock roms are deodex.
2. Backup format is yaffs, and your backups are stored on sdcard/clockworkmod/backup.
3. You can extract those with programs like Yaffey, Flashtool and even with android apps.
4. You can make a zip from that.
Theming
1. Get an app that can decompile I reccomend Apk Multi Tools or APKTOOL
2. Extract your framework-res and get table codes.
Apk Multi Tools can do it with Adb automatically.
In APKTOOL it goes apktool if framework-res.apk
3.Decompile apk
Apktool d framework-res.apk
4.Make image changes.
5. Recompile then push with adb.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Thanks
Sent from my r800x using xda developers app

Categories

Resources