[Q] How to edit, successfully, twframework-res.apk? - Galaxy Ace S5830 Themes and Apps

Hi all!
I try edit twframework-res.apk (some images + some xml's) but it has no effect. I try doing wipe dalvik-cache and wipe cache, but nothing, images no change... xml no apply... i dunno what to do.
Any idea?
Thanks!

which tool do you use to decompile apk?
Sent from my eyes to your eyes using xda premium

phadly said:
which tool do you use to decompile apk?
Sent from my eyes to your eyes using xda premium
Click to expand...
Click to collapse
APK Manage 5.0.2 (Apk tool)

_FroX_ said:
APK Manage 5.0.2 (Apk tool)
Click to expand...
Click to collapse
you need to delete which files you have edit in keep folder including images..then press enter..
Sent from my eyes to your eyes using xda premium

phadly said:
you need to delete which files you have edit in keep folder including images..then press enter..
Sent from my eyes to your eyes using xda premium
Click to expand...
Click to collapse
I do this. Now I explore twframework-res.apk with root explorer and I've seen are the images that I have modified, so all ok, however not work...

_FroX_ said:
I do this. Now I explore twframework-res.apk with root explorer and I've seen are the images that I have modified, so all ok, however not work...
Click to expand...
Click to collapse
you also need to modified images in framework-res.apk..there are same images in both twframework-res.apk and framework-res.apk..search for it..
Sent from my eyes to your eyes using xda premium

phadly said:
you also need to modified images in framework-res.apk..there are same images in both twframework-res.apk and framework-res.apk..search for it..
Sent from my eyes to your eyes using xda premium
Click to expand...
Click to collapse
Ok, the same images in the two files (twframework-res.apk and framework-res.apk) but, xml files? I edit one xml but there isn't any change (twframework-res.apk), that xml is neither in framework-res.apk or SystemUI.apk
Edit: Ok, I don't need to edit twframework-res.apk, i need to edit apk xml (in this case, Music.apk) I found the same xml inside, i'll try if work.
Edit2: It's work.

_FroX_ said:
Hi all!
I try edit twframework-res.apk (some images + some xml's) but it has no effect. I try doing wipe dalvik-cache and wipe cache, but nothing, images no change... xml no apply... i dunno what to do.
Any idea?
Thanks!
Click to expand...
Click to collapse
hi ,
first what do you want to change exactly ?
in Tw rom the Framework-res.apk is not the same as stock google phone so maybe you have to look inside

colour change
maxx35000 said:
hi ,
first what do you want to change exactly ?
in Tw rom the Framework-res.apk is not the same as stock google phone so maybe you have to look inside
Click to expand...
Click to collapse
hi i want to edit the system font color which apk should i edit..framework,systemUI

ngaihomasailo said:
hi i want to edit the system font color which apk should i edit..framework,systemUI
Click to expand...
Click to collapse
framework-res.apk.."res/color/ folder" and "res/values/styles.xml"..
Sent from my eyes to your eyes using xda premium

thanks
Sent from my GT-S5830 using Tapatalk 2

Can either of the apks be modified the change the 'theme' of TouchWiz?
Basically to get stock JellyBean look on Samsung Galaxy S2+. For eg, certain menus, radio buttons, preference activities etc...

kanchudeep said:
Can either of the apks be modified the change the 'theme' of TouchWiz?
Basically to get stock JellyBean look on Samsung Galaxy S2+. For eg, certain menus, radio buttons, preference activities etc...
Click to expand...
Click to collapse
Yes.
For 99% controls of ui you would need to edit framework-res.apk
Though i prefer apktool + 7zip
Sent from my LG-D722 using XDA Free mobile app

Related

[Q] adding battery % mod to existing theme

I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
amosher13 said:
I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
Click to expand...
Click to collapse
If your theme has 1% intervals already its just a matter of swapping the png files. If the theme don't your gonna have to devompile the apk and edit 3 xml files then recompile
Sent from my SPH-D700 using XDA App
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
amosher13 said:
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
Click to expand...
Click to collapse
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
in general, yes, but i may not know how for these purposes. what might i be missing?
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
very interesting, i'll certainly check that out. though i am interested also in learning how to do it myself, but that looks pretty cool!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
amosher13 said:
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
Click to expand...
Click to collapse
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
amosher13 said:
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
Click to expand...
Click to collapse
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
amosher13 said:
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
Click to expand...
Click to collapse
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
gotcha, perfect thanks!

[REQ][HOWTO] Making your own battery mod?

People are using different rom's , some other are asking for specific mod etc
Could someone write some guide how to do it, to enlight those who are not aware ?
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Locster126 said:
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
This is what I know already, but this is not working and phone is keeping crashing
masi0 said:
This is what I know already, but this is not working and phone is keeping crashing
Click to expand...
Click to collapse
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
shaolin79 said:
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
Click to expand...
Click to collapse
I am using stock KE4
masi0 said:
I am using stock KE4
Click to expand...
Click to collapse
Ok so ignore what I said upper ... should be only for signature of the rom (not needed in stock roms).
Anyway ... if someone has the solution ...
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
PoTi_96 said:
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
could you tell which .xml to edit and what to add within the file?
I juz grab one of the batt mod out there and replace the .png files under /res/drawable-hdpi-v4 with the ones I want. guess its kind of a lazy way to do it=)
I have KE2 and get a "signature verification failed" error when trying to apply the UOT.zip file :-(
Anyone some idea how to get this applied?
Also my original framework-res.apk file doesn't have any folder called "/res/drawable-hdpi-v4" but the UOT file has!?
masi0 said:
could you tell which .xml to edit and what to add within the file?
Click to expand...
Click to collapse
I dunno exactly which one it was right now but I think the battery.xml somewhere in the first 3 or 4 folders...
sorry idk it anymore ... Long time no use for :/
Swyped from my overclocked GT-I9100 using XDA Premium App

How to edit APK?

I'm wondering if I need specific software to get into apk file and change images? I'm looking to edit the dialer fonts, background etc... Guide to pushing apk zip with edition back to system apps.
Any help will be much appreciated,thanks in advance...
If you're just editing images you can open the apk with a file explorer and find Res/drawable-hdpi. This is where images are stored. Replace what you want.
If you want to go more in depth (add new images, tweak layouts, colors aside from images) you will want to use apktool. This will allow you to decompile and recompile apks
Sent from my SPH-D710 using XDA App
barnacles10 said:
If you're just editing images you can open the apk with a file explorer and find Res/drawable-hdpi. This is where images are stored. Replace what you want.
If you want to go more in depth (add new images, tweak layouts, colors aside from images) you will want to use apktool. This will allow you to decompile and recompile apks
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
Apktool, any specific one you would recommend?
Alex1x said:
Apktool, any specific one you would recommend?
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/downloads/list
Sent from my SPH-D710 using XDA App
have you tried ninjamorph? its in the market, i do all my edits on my device.
Sent from my SPH-D710 using xda premium

Error When Re-compiling Framework-res

I tried SO HARD changing the black background like in the Settings and all but no joy.
I followed this for decompiling :
http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
I followed this for changing for changing the desired background :
http://forum.xda-developers.com/showthread.php?t=1343484
All turned out well till I wanted to re-compile back, i got errors as in the attachment below.
have you set the framework file? "apktool if framework-res.apk" before recompiling?
if it doesnt work, try
pull twframework.apk from your phone, and use it as above.
Hope it works, again, I'm nowhere near my laptop
Sent from my GT-I8150 using XDA
you must add a picture into drawable-hdpi and name it as 'mybackground' just like the name what you set in styles.xml
reidzeibel said:
have you set the framework file? "apktool if framework-res.apk" before recompiling?
if it doesnt work, try
pull twframework.apk from your phone, and use it as above.
Hope it works, again, I'm nowhere near my laptop
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
Yes I did, already! You mean I should now use twframework.apk instead of framework-res.apk?? :ekk:
Sent from my GT-I8150 using xda premium
skys415 said:
you must add a picture into drawable-hdpi and name it as 'mybackground' just like the name what you set in styles.xml
Click to expand...
Click to collapse
I already added the picture named "mybackground.png". I followed exactly as the tutorial but yet failed. Hmmm..
Sent from my GT-I8150 using xda premium
Guys, I'm confused on the replacing part of "resource.arcs" and "modified files".
1. I already replaced "resources.arcs" in the original framework-res.apk with the " resources.arcs" from the build > apk.
2. As for the "styles.xml" that I modified, I have no idea where to put it.
Sent from my GT-I8150 using xda premium
SyzwnFrzRdz said:
Guys, I'm confused on the replacing part of "resource.arcs" and "modified files".
1. I already replaced "resources.arcs" in the original framework-res.apk with the " resources.arcs" from the build > apk.
2. As for the "styles.xml" that I modified, I have no idea where to put it.
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
You no need to replace "styles.xml", you are never find it inside apk after recompiled.
As he said, just replace "resources.arcs" and the "modified files".

[Help] [Pro] Help me to edit settings.apk (decompile & compile) correctly

I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Then decompiled Settings.apk of Xperia pro stock ics Rom.
After that ,without making any change I compiled the apk. Then I surprisingly noticed that the size compiled apk is 1/3 of original stock settings.apk .
Then I flashed the apk using cwm to my phone to test if it work .after flashing, the setting icon is invisible in launcher menu !
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
shouvo said:
I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
Click to expand...
Click to collapse
take a look here
cosmyndemeter said:
take a look here
Click to expand...
Click to collapse
On that post I found something like this
"2-STEP hope u guys know how to decompile iam not going to explain it so decompile the settings.apk (make sure u set the compression level 128mb)"
Then explain me how set compression level in apktool??
Sent from my MK16i using xda premium
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
shouvo said:
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Erhany said:
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Click to expand...
Click to collapse
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
shouvo said:
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Erhany said:
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Click to expand...
Click to collapse
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
shouvo said:
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
You r welcom. Im glad

Categories

Resources