Related
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!
i saw somewhere once on an Epic that the stock Samsung lock screen slider was a red circle and red arrow up with the lock in the middle. I can't seem to find the thread in order to do more research or get what i am looking for.
so does anyone know how i can get my slider icon to be red instead of the greyish black it is now?
Flash a theme, or if you only want the lockscreen then delete all the images except the lock.
Texted while driving
063_XOBX said:
Flash a theme, or if you only want the lockscreen then delete all the images except the lock.
Texted while driving
Click to expand...
Click to collapse
where are the images located?
or where can i get just a theme for the lockscreen, i don't want a full on theme.
Are you using the standard or the aosp lockscreen?
cerebralzulu said:
Are you using the standard or the aosp lockscreen?
Click to expand...
Click to collapse
standard samsung on Epic
The images you are looking for are found in the framework-res.apk file.
Specifically i think you might be looking for /res/drawable-hdpi/
zz_unlock_arrow.png
zz_unlock_arrow_msg.png
maybe even
zz_unlock_lockbg.png
zz_unlock_lockbg_press.png
black06c230 said:
standard samsung on Epic
Click to expand...
Click to collapse
p3dr0maz said:
The images you are looking for are found in the framework-res.apk file.
Specifically i think you might be looking for /res/drawable-hdpi/
zz_unlock_arrow.png
zz_unlock_arrow_msg.png
maybe even
zz_unlock_lockbg.png
zz_unlock_lockbg_press.png
Click to expand...
Click to collapse
using Root Explorer i can get to /res/....but there is not a folder for drawable-hdpi
anymore thoughts on places to check?
Nope, that's where it is for moi. Weird. Try unzipping the whole folder then look on /sdcard/extracted/ and see if it shows up there.
If not maybe post your framework-res.apk and twframework-res.apk here and i can take a look.
edit: Maybe mine's different since technically we don't have the stock TW Launcher. We have a slightly modified one on Bonsai.
black06c230 said:
using Root Explorer i can get to /res/....but there is not a folder for drawable-hdpi
anymore thoughts on places to check?
Click to expand...
Click to collapse
p3dr0maz said:
The images you are looking for are found in the framework-res.apk file.
Specifically i think you might be looking for /res/drawable-hdpi/
zz_unlock_arrow.png
zz_unlock_arrow_msg.png
maybe even
zz_unlock_lockbg.png
zz_unlock_lockbg_press.png
Click to expand...
Click to collapse
That's where they are on mine. Stock, not rooted ec05.
Sent from my always stock, EC05 Epic 4G
zanderman112 said:
That's where they are on mine. Stock, not rooted ec05.
Sent from my always stock, EC05 Epic 4G
Click to expand...
Click to collapse
thanks wasn't reading in full...i found the files once extracted
BUT of course i am find a new file and name it to overwrite the current file but how do i recompile it back to the .apk to relpace the .apk?
p3dr0maz said:
Nope, that's where it is for moi. Weird. Try unzipping the whole folder then look on /sdcard/extracted/ and see if it shows up there.
If not maybe post your framework-res.apk and twframework-res.apk here and i can take a look.
edit: Maybe mine's different since technically we don't have the stock TW Launcher. We have a slightly modified one on Bonsai.
Click to expand...
Click to collapse
thanks wasn't reading in full...i found the files once extracted
BUT of course i am find a new file and name it to overwrite the current file but how do i recompile it back to the .apk to relpace the .apk?
EDIT: in the extracted file i don't see the ones i'm looking for....i am using Syndicate ROM if that helps
Apk's are just archives. You can use your favorite archiving application to modify the APK ( i like WinRAR ). All I normally have to do is open the APK with WinRAR and take the modified PNG's (not .9.pngs - these have to be run through eclipse first) and drop em in to the folder you want. Boosh! Done.
I'm seeing the files right where we said they'd be. you still don't have 'em? /system/framework/framework-res.apk
black06c230 said:
thanks wasn't reading in full...i found the files once extracted
BUT of course i am find a new file and name it to overwrite the current file but how do i recompile it back to the .apk to relpace the .apk?
Click to expand...
Click to collapse
Inside framework-red.apk is a folder called res. Inside that is drawable-hdpi, all the way at the bottom of that.
Sent from my SPH-D700 using Tapatalk
p3dr0maz said:
Apk's are just archives. You can use your favorite archiving application to modify the APK ( i like WinRAR ). All I normally have to do is open the APK with WinRAR and take the modified PNG's (not .9.pngs - these have to be run through eclipse first) and drop em in to the folder you want. Boosh! Done.
I'm seeing the files right where we said they'd be. you still don't have 'em? /system/framework/framework-res.apk
Click to expand...
Click to collapse
okay thanks i figured out my error and now can see the file
thanks for your help
1 last ? where is the file for the task/notification bar color?
black06c230 said:
okay thanks i figured out my error and now can see the file
thanks for your help
1 last ? where is the file for the task/notification bar color?
Click to expand...
Click to collapse
Its in framework res.apk too look for status bar background. There are two one is a bigger png which is for when you pull it down and that's a dummy file because on the epic its inside twframework-res but the other is a small box and a .9.png so if you don't know how to edit them borrow one from a working theme.
Sent from my SPH-D700 using Tapatalk
Hello, I am looking forward on creating my own them for Galaxy S2, so I suppose I need to find where all the icons are located.
I will probably open the stock samsung theme graphics in photoshop and edit them, so any idea where they are located?
Is this the correct way of doing it?
ZenorGR said:
Hello, I am looking forward on creating my own them for Galaxy S2, so I suppose I need to find where all the icons are located.
I will probably open the stock samsung theme graphics in photoshop and edit them, so any idea where they are located?
Is this the correct way of doing it?
Click to expand...
Click to collapse
Easy and beginers way:
Start with UOT kitchen: http://uot.dakra.lt/
Get the SystemUI.apk and framework-res.apk from the rom which you want to theme. Upload it to the kitchen and edit what you want.
Cook the theme and flash it with CWM as an update.
More advanced:
Get the toucwiz's framework and Settings.apk, you can edit png's of settings menu and touchwiz launcher. (you can not do this with UOT kitchen)
And check out this thread: http://forum.xda-developers.com/showthread.php?t=916814
GOOD LUCK!
Thanks Dark Emotion, good guide!
Dark Emotion said:
Easy and beginers way:
Start with UOT kitchen: http://uot.dakra.lt/
Get the SystemUI.apk and framework-res.apk from the rom which you want to theme. Upload it to the kitchen and edit what you want.
Cook the theme and flash it with CWM as an update.
More advanced:
Get the toucwiz's framework and Settings.apk, you can edit png's of settings menu and touchwiz launcher. (you can not do this with UOT kitchen)
And check out this thread: http://forum.xda-developers.com/showthread.php?t=916814
GOOD LUCK!
Click to expand...
Click to collapse
Thank you, what about the Notification bar power controls? Where can these be found?
ZenorGR said:
Thank you, what about the Notification bar power controls? Where can these be found?
Click to expand...
Click to collapse
In the UOT kitchen: go to icons (check "Use this mod"), scroll down and check "Notification Power Buttons" and just choose any icon set you want. You can choose between 8 types of icons.
No I meant, in which apk are they found, so I can replace them with my own.
Is it on the framework-res.apk or systemUI.apk ?
/edit: Found them, on SystemUI.apk -> res folder
But it seems they are indexed png images, so can't edit them in photoshop. I suppose I will have to replace them.
Ok one more question would be, is it possible to change the color of the White popup windows?(like the one that popus when you long press the power button).
I know it's possible to edit the background color, but what about the font color? I suppose it's found on the xml.
Here's how the popup is displayed on kitchen:
ZenorGR said:
Ok one more question would be, is it possible to change the color of the White popup windows?(like the one that popus when you long press the power button).
I know it's possible to edit the background color, but what about the font color? I suppose it's found on the xml.
Here's how the popup is displayed on kitchen:
Click to expand...
Click to collapse
Sorry man but I don't know answer to that question.
Well I found that the font colors may exist on framework-res\res\values\colors.xml if you decompile framework-res.apk
But after changing a color value, I then compiled the apk, replaced the new on on my phone and got boot loop so I had to re-flash a different theme to unstuck.
If anyone got any idea on how to change the font colors let me know!
If you have a search in the "how to theme" thread (link already posted) I put up a zip that I had lying on my desk top that tells you where to find a lot of the text colours.
The only problem with editing these is some apps will still use their own colour code and could cause problems like readability.
Hope this helps.
Edit: I had them on my sd card, credit to the creator!!!
In which page dully?
ZenorGR said:
In which page dully?
Click to expand...
Click to collapse
I've posted them in my last post m8
Oh now I see it, so the one I am looking for is bright_foreground_light color. I want that in white, so the hex would be this one right? #ffffffff
Well that's what I did, then compiled the framework-res and replaced it on the Systems folder, then rebooted the phone but I got a reboot loop.
Any suggestions?
What did you use apkmanager?
If so did you answer yes and yes then delete what you modified from the keep folder
I used apktool:
apktool b framework-res(folder)
but as I can see now, the new apk compiled it's missing the META-INF folder, maybe that's why?
/edit:
So I just tried with apk-manager, I used the same method then compiled (answered yes/yes) now I have this:
unsignedframework-res.apk
But getting an error when trying to sign it.
ZenorGR said:
I used apktool:
apktool b framework-res(folder)
but as I can see now, the new apk compiled it's missing the META-INF folder, maybe that's why?
/edit:
So I just tried with apk-manager, I used the same method then compiled (answered yes/yes) now I have this:
unsignedframework-res.apk
But getting an error when trying to sign it.
Click to expand...
Click to collapse
Don't sign it, you don't sign system apks.
Just delete the "unsigned" part or rename to framework-res.apk and push or flash and it should work.
Ok thanks.
I just replaced it but no go, the font is still black(atleast there is no boot loop this time).
I suppose I messed up the part on apk_manager where it says to delete any files you modified on the "keep" folder.
On keep folder there was no value/colors.xml(colors.xml is the one I edited the bright_foreground_light).
Cheers
Did you delete resources.arsc?
No, let me try again.
Success! Dude you rock! Thanks a lot, for providing lot's of great info about this, here it is: blue font and full black pop-up menus.
Also attached two more shots of the theme I am making:
ZenorGR said:
No, let me try again.
Click to expand...
Click to collapse
Basically resources.arsc is the"hidden" xml folders that become visible when you decompile.
Hey guys, I'm not sure if this is the right spot, but if not can a mod please move it.
Anyway I want to add a notification background to my systemUI, and/or change the statusbar color. I know what to change but I do not know how to compile APKs, so if there is anyone out there who would be willing to do it for me it would be great, I can send you all my files!
Thank you so much in advance!
Pikezer1337 said:
Hey guys, I'm not sure if this is the right spot, but if not can a mod please move it.
Anyway I want to add a notification background to my systemUI, and/or change the statusbar color. I know what to change but I do not know how to compile APKs, so if there is anyone out there who would be willing to do it for me it would be great, I can send you all my files!
Thank you so much in advance!
Click to expand...
Click to collapse
It's possible, but you would need to flash a custom ROM that supports UI customization to do this.
Swap out images with the same file name using 7 zip but don't extract the ROM
Do I use 7zip on my Pc or phone?
Pikezer1337 said:
Do I use 7zip on my Pc or phone?
Click to expand...
Click to collapse
Swapping out the PNG's only works on the computer I've tried on the phone but no dice. Again, make sure you do not extract the ROM, or changing the images will not work!
Correction: NinjaMorph in the Google Play store can alter images from the phone, though its a little bit harder to use in my opinion.
Adizzzle said:
Swapping out the PNG's only works on the computer I've tried on the phone but no dice. Again, make sure you do not extract the ROM, or changing the images will not work!
Correction: NinjaMorph in the Google Play store can alter images from the phone, though its a little bit harder to use in my opinion.
Click to expand...
Click to collapse
Okay, so I have downloaded Ninjamorph, and I somehow can not find the .png for the notification background for 4.1.1. I'm on the stock ROM, Do you happen to know what the file name is?
Pikezer1337 said:
Okay, so I have downloaded Ninjamorph, and I somehow can not find the .png for the notification background for 4.1.1. I'm on the stock ROM, Do you happen to know what the file name is?
Click to expand...
Click to collapse
I believe that is a hex value in one of the xml files. you would need to decompile and edit the xml to allow custom png images as the background.
BYOBret said:
I believe that is a hex value in one of the xml files. you would need to decompile and edit the xml to allow custom png images as the background.
Click to expand...
Click to collapse
Sounds a tad complicated
Adizzzle said:
Sounds a tad complicated
Click to expand...
Click to collapse
Yeah, it requires a bit more work. I am looking for the thread where I found the info, but xda search is down. I will link as soon as I find it.
BYOBret said:
Yeah, it requires a bit more work. I am looking for the thread where I found the info, but xda search is down. I will link as soon as I find it.
Click to expand...
Click to collapse
Thanks I wanted to look into this. :beer:
Adizzzle said:
Thanks I wanted to look into this. :beer:
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1770698
This should still apply. Check post 2.
...and this one should help if you have questions about modifying the apk
http://forum.xda-developers.com/showthread.php?t=2147425
Could anyone provide me some working tutorial how to update vrtheme from old base 3.19 to 3.20 ? Last days i was searching and trying a lot, but with no succes. Im trying to compile Geenyous's AOSenseP JB theme for ARHD 21.
maybe this can help you out
http://forum.xda-developers.com/showthread.php?t=2069287
matt95 said:
maybe this can help you out
http://forum.xda-developers.com/showthread.php?t=2069287
Click to expand...
Click to collapse
well i fixed the fatal errors while opening settings app and everything is working fine, but i can not find out what can cause that few icons in settings were not themed. When i extract the settings.apk from system/app and i open it in windows with winrar all icons are like they should be.
i'm not a themer so i can't help you
matt95 said:
i'm not a themer so i can't help you
Click to expand...
Click to collapse
understand, thank you for your help anyway
Those icons are controlled in the app itself. Example
The powermanagement icon is not changed in the settings, you need to edit the powermanagement.apk file to see a changed icon in the settings menu.
There are also icons that are controlled in the com.HTC.resources.apk, you can't decompile it but you can open the apk with 7zip and copy out the icons, edit them and copy them back in the apk.
Same is for framework.HTC.res.apk !
And make sure you do not touch the .9.png files. It srews up the apk !!!
Exactly, the problem was in com htc res apk , i change some icons and now everything is working correctly
Odoslané z HTC One X cez Tapatalk 2
Mr Hofs is right!
However, i think is better wait the update from the themer