[Q] adding battery % mod to existing theme - Epic 4G Q&A, Help & Troubleshooting

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!

Related

Change lockscreen slider color??

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

[Q] request of honeycomb blue outline

Hey guys i dont no much about theming so i was wondering if someone can pull the blue outline from the honeycomb fusion theme. The one that pops up with every popup on the theme. thats all i need and want or if someone can point me in the rightt direction to get it myself. Thankyou.
The blue outline on popups is part of the images as a hole. Just look in the drawable-hdpi folder of both frameworks
Sent from my SPH-D700 using Tapatalk
The images you want to copy over are:
framework-res:/res/drawable-hdpi/
popup_bottom_bright.9.png
popup_bottom_dark.9.png
popup_bottom_medium.9.png
popup_center_dark.9.png
popup_center_bright.9.png
popup_center_medium.9.png
popup_top_bright.9.png
popup_top_dark.9.png
popup_top_medium.9.png
charlie95113 said:
Hey guys i dont no much about theming so i was wondering if someone can pull the blue outline from the honeycomb fusion theme. The one that pops up with every popup on the theme. thats all i need and want or if someone can point me in the rightt direction to get it myself. Thankyou.
Click to expand...
Click to collapse
So the images i just copy them to the framework i got correct im using the darkhorse theme or do i unzip those files and just add them to the dht and rexip then flash .what would be eadiest
charlie95113 said:
So the images i just copy them to the framework i got correct im using the darkhorse theme or do i unzip those files and just add them to the dht and rexip then flash .what would be eadiest
Click to expand...
Click to collapse
You can do either one. I would update the zip that way if you need it in the future you will have it done already.
Sent from my SPH-D700 using XDA Premium App
Well i tried but no luck i couldnt put the framework apk back together
charlie95113 said:
Well i tried but no luck i couldnt put the framework apk back together
Click to expand...
Click to collapse
You should only be copy and pasting these from the Honeycomb frameworks over to the framework your modding. Don't unzip (extract) anything, just OPEN the archive using either WinRAR or 7zip (I use 7zip personally) and just copy/paste.. Extracting and attempting to re zip the frameworks are going to cause trouble.
Ok thanx ill try that when i get ahold of my pc unless i can do it through the phone
I've done some zip work through the Epic using Root Explorer/Astro/ES File Explorer at different stages to get it all to work and its a pain in the butt. You would be much better off just using your PC, take you a whole 5 minutes to pull those pop up pngs mentioned by p3dr0maz and paste them into your framework and flash it/ADB push it.

Theming questions?

I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
yep, you need to update apktool for use with Android 4.0
edit: more specifically...
-Wrong version of apktool (get the latest)
-Wrong verison of apktool dependancies files (same site)
-Wrong version of aapt.exe in Android SDK (get latest SDK)
Alright awesome I'll look into it tonight after work
Sent from my Galaxy Nexus using xda premium
I have the latest version of all of that and can decompile with apktool. The problem is when I build the new apk and copy over the edited files and push back to the phone the app won't work.
A run down of everything I did is here: http://forum.xda-developers.com/showthread.php?t=1452530
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
You can't replace xml's in that way.
Sent from my Galaxy Nexus using XDA App
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hey Kev did u figured it out yet? I replied to ur PM...
Sent from my Galaxy Nexus using XDA App
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Kevin3328 said:
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Sorry misread what you were saying then.
Sent from my Galaxy Nexus using XDA App
I am at work until 1030 then I am gonna set up shop on my CPU first... gotta get the new sdk and apktool then I will gtalk u from there with issues.. all I know is this should be a learning experience lol.. by the looks of this phone it could be awhile b4 I learn what everything "is" framework will be all the apks will be different than what I'm used to
Sent from my Galaxy Nexus using xda premium
coverton341 said:
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Click to expand...
Click to collapse
U can make update zips and yes u should b able to do the same.. I usually borrow someone else's at first
Sent from my Galaxy Nexus using xda premium
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
also, it's a big waste (and sometimes troublesome) to flash an entire ROM to update one or a few apks. making one for just testing out things in \system\ will save you time and frustration. you can also make a backup easier for if something bootloops you
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
Let us know how you (hopefully) succeed. Im a bit tempted to try theming myself but ive cant seem to find a guide that is up-to-date - and im learning somthing with every question you are asking - and with every answer the other nice fellows are providing.
:thumbs up!:
I am still trying to figure out how to setup everything.. I know I need newest sdk and newest apk multi tool which I didn't get yet.. I'm gonna tinker around today/tonite and see what I'm doing wrong
Sent from my Galaxy Nexus using xda premium
mrvirginia said:
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
Click to expand...
Click to collapse
See this is how I read it too. I believe the OP means that he's making changes and then replacing the apk in the flashable zip. Not actually replacing the edited xmls in the original apk. Glad I'm not the only one that read it that way though
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
no decompiling is necessary for tweaking pngs.
smali code is for messing with policies, etc.
.9.png files can be a pain if you don't recompile the apk correctly.
and this should help with your dpi as far as what to edit so you can see it...
http://developer.android.com/guide/practices/screens_support.html

[Q] Modifying xmls

I am interested in changing the color of the text of the status bar. I have already modified all the images I need, now just need to modify the xml.
I am modifying the framework-res.apk colors xml. After I have made the change I recompile the apk. Switch out the Meta-INF and AndroidManifest.xml with the ones from the original apk but when I push to my phone the color of the status bar text isn't changing. These are the lines I have changed:
<color name="status_bar_text">#ff73cd68</color>
<color name="status_bar_clock_text">#ff73cd68</color>
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
davidc23 said:
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
yeah I was thinking that, I might just check on the irc channel. Thanks for looking out.
Hmmm did you reboot the phone?
Sent from my Epicâ„¢ 4G Touch
globalninja said:
Hmmm did you reboot the phone?
Sent from my Epicâ„¢ 4G Touch
Click to expand...
Click to collapse
Yeah, I didn't actually push the framework. I created a flashable zip.
dtm_stretch said:
Yeah, I didn't actually push the framework. I created a flashable zip.
Click to expand...
Click to collapse
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
fnut6969 said:
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
Click to expand...
Click to collapse
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Got it: Make sure to delete the stupid resources.arsc!
dtm_stretch said:
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Click to expand...
Click to collapse
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
fnut6969 said:
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
Click to expand...
Click to collapse
I got it figured out, just before you posted about the resources. Now I just got to figure out why my launcher keeps restarting.

.9 PNG Change Error Compiling

Hey Guys, so I'm working on a theme port (Yes I've Asked Multiple Questions About This) , well, when I change a .9 PNG file, it has errors compiling. How do I compile then? Can I not change .9 PNG files?
alphadog32 said:
Hey Guys, so I'm working on a theme port (Yes I've Asked Multiple Questions About This) , well, when I change a .9 PNG file, it has errors compiling. How do I compile then? Can I not change .9 PNG files?
Click to expand...
Click to collapse
M&S gives a tutorial about it here:
http://forum.xda-developers.com/showthread.php?t=1506177
Personally, I've found that if all you're doing is adjusting the hue or saturation (the color of the image) you can straight make the edit. At least I've had the two changes I've made work without doing anything special.
Sent from my SGH-T989 using xda premium
yoft1 said:
M&S gives a tutorial about it here:
http://forum.xda-developers.com/showthread.php?t=1506177
Personally, I've found that if all you're doing is adjusting the hue or saturation (the color of the image) you can straight make the edit. At least I've had the two changes I've made work without doing anything special.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
Thanks, but I'm just moving from one theme that I'm porting, to the other, which is the ported one.
alphadog32 said:
Thanks, but I'm just moving from one theme that I'm porting, to the other, which is the ported one.
Click to expand...
Click to collapse
So you're having trouble moving the image to the new .apk or what are you asking?
yoft1 said:
So you're having trouble moving the image to the new .apk or what are you asking?
Click to expand...
Click to collapse
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
alphadog32 said:
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
Click to expand...
Click to collapse
As long as you're replacing files with the exact same name and not creating new ones it should compile. Alternatively, you don't even need to uncompile and recompile. Just take your stock framework and open (not extract) it in 7zip. It'll show you all the files. Drag and drop your modified files over into the 7zip window. It shouldn't have to compress them or anything, it'll just replace the files that have the same name. That's how I make all my modifications.
yoft1 said:
As long as you're replacing files with the exact same name and not creating new ones it should compile. Alternatively, you don't even need to uncompile and recompile. Just take your stock framework and open (not extract) it in 7zip. It'll show you all the files. Drag and drop your modified files over into the 7zip window. It shouldn't have to compress them or anything, it'll just replace the files that have the same name. That's how I make all my modifications.
Click to expand...
Click to collapse
That's, ill give it a shot tomorrow.
alphadog32 said:
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
Click to expand...
Click to collapse
Paste ur error log so I can tell you the problem
M&S

Categories

Resources