I'm trying to get the stock battery percent icons into adrynalyne's basic debloat
I've swapped icons before, but I can't seem to get any battery icon showing with this rom.
1. I went into framework-res.apk ->res-> drawable ->
I changed stat_sys_battery.xml with that xml file from other roms that had 100 icons (das bamf 1.2 and also tried from the Perfect Storm rom)
2. I added to the drawable-hdpi folder the 100 battery stat icons from the Perfect Storm rom (I liked chingy's icons)
I have no battery icons at all in the notification bar now, just a space where an icon should be. What am I doing wrong? Any help in the right direction would be appreciated thanks
EDIT: This has been fixed, see my post below http://forum.xda-developers.com/showthread.php?p=12792718#post12792718
+1 on this.
I have themed many ROM's and edited countless XML files and could not get this to work. I went as far as decompiling the framework and typing the extra lines of code in the battery.xml but still could not get it to work.
if you are rooted ( i am assuming so)
pull the framework-res.apk
go to this site------- http://uot.dakra.lt/kitchen/
create whatever battery icon you want in the kitchen
upload your apk file
wait for the kitchen to cook your file (takes about 10 mins)
download and flash in CWR
racinwarrior said:
if you are rooted ( i am assuming so)
pull the framework-res.apk
go to this site------- http://uot.dakra.lt/kitchen/
create whatever battery icon you want in the kitchen
upload your apk file
wait for the kitchen to cook your file (takes about 10 mins)
download and flash in CWR
Click to expand...
Click to collapse
I have a replacement Thunderbolt in the mail for tomorrow, I'll try it tomorrow and post if it worked with this rom thanks
smoothjeff said:
I have a replacement Thunderbolt in the mail for tomorrow, I'll try it tomorrow and post if it worked with this rom thanks
Click to expand...
Click to collapse
PM me, I have the smooth sense icons images that i'm trying to port over to any ROM but can't seem to get it right
Since I got my tbolt back, I've decided to stick with the stock rooted odexed software.
I tried the same process as in my original post.. I'm trying to change the battery icons (not changing the charging icons though) and no matter what I do theres just a blank space where the battery icon should be. I tried using a different set of png's and same problem. Does anyone have any idea what I'm doing wrong?
racinwarrior said:
if you are rooted ( i am assuming so)
pull the framework-res.apk
go to this site------- http://uot.dakra.lt/kitchen/
create whatever battery icon you want in the kitchen
upload your apk file
wait for the kitchen to cook your file (takes about 10 mins)
download and flash in CWR
Click to expand...
Click to collapse
I tried with only a battery mod (stock odexed) and the phone force closed like crazy, when I changed the xml and png's myself I had no issues other than the battery icon not showing
any luck i already have the icons i want to use just need to know how to change form increments of 1 to increments of 10
I believe signal23's framework has the smooth battery icons. Also are you decompiling/compiling the framework correctly when you are getting no battery showing? For increments of 10 you just need to edit the stat_sys_battery.xml so it only reports in increments of 10.
mob87 said:
I believe signal23's framework has the smooth battery icons. Also are you decompiling/compiling the framework correctly when you are getting no battery showing? For increments of 10 you just need to edit the stat_sys_battery.xml so it only reports in increments of 10.
Click to expand...
Click to collapse
i havent been decompiling/compiling, i just opened the apk with winzip and dragged and dropped the files overwriting the old ones. i use a stat_sys_battery.xml to report increments of 1 since im using 100 icons, put in the 100 icons in the drawable-hdpi folder, put it through an update zip, and the phone worked the same, just no battery icon at all showed up
smoothjeff said:
i havent been decompiling/compiling, i just opened the apk with winzip and dragged and dropped the files overwriting the old ones. i use a stat_sys_battery.xml to report increments of 1 since im using 100 icons, put in the 100 icons in the drawable-hdpi folder, put it through an update zip, and the phone worked the same, just no battery icon at all showed up
Click to expand...
Click to collapse
Frameworks can be very sensitive. Double check that you are replacing with icons of the same size. Also, double check all file names (I once had one file with capital extension mess it all) and double check the xml. Whenever I had a disappearing battery indicator it was due to something small like that. One way to debug this is to start with the original and only replace a few of the icons (make sure it's around your charge level). Keep adding modifications until you find the offending file.
FIXED
I found a fix. When you change from the stock number of icons to 100 icons, the stat_sys_battery.xml is assigned a new resource_id in the file resources.arsc see: http://www.droidforums.net/forum/droid-hacks/12834-compiling-xmls-system-level-mods-2.html
The first time I tried UOT kitchen I got all kinds of force closes, so this time I unchecked the Patch9 autofix (not sure if that made any difference) and I used the stock icons instead of custom ones. This finally worked.
After I got this to work, I ported the battery icon's from chingy51o's Perfect Storm rom (the colors are closer to stock than UOT Kitchen's icons)
Attached is an update.zip to put chingy's battery icons into a stock rooted Thunderbolt, thanks to chingy51o and UOT Kitchen. Please make a full backup of your system before applying this, I am not responsible if this bricks your device
I installed this and am loving it but upon boot I'm getting an amazing amount of Force Closes.
Including, but not limited to:
Gmail
Google Search
HTC DM
Internet
Also tried applying a wallpaper and got "Warning: Phone Storage is Full"
I just tried doing it myself using http://uot.dakra.lt/ and after booting I kept getting the same force closes and errors :/
Any help?
No one?
Sent from my ADR6400L using XDA App
I edited the framework-res.apk and added the stat_sys_battery pngs from a battery mod zip but it only shows the percentage on the icon as closest multiple of five. Then i looked at the original file and saw there was only pngs for those numbers (0,5,10,15,...). I guess that i could change that by editing the stat_sys_battery_discharging.xml file but i don't know how to open it. I didn't use mod zip in recovery because I don't have cwm and I have rooted my phone with zergrush and i don't want to flash a non-stock kernel.
Once thing about a Sense ROM I never cared for is the modified battery icon. I prefer the plain old stock icon. Just a personal preference for me and possibly others. In the zip file I attached, you will find all the files needed to transform your battery icon back to stock.
Sense 4.0/3.6 (ICS)
1. Pull /system/app/SystemUI.apk from your phone
2. Rename SystemUI.apk to SystemUI.apk.zip
3. Using WinRAR copy attached "res" folder (in zip) directly into the root of SystemUI.apk.zip
4. Leave the settings and just hit OK.
5. Rename back to SystemUI.apk and push to device
*This method may work for Sense 3.6 ROMs as well. If not, see below.
Sense 3.0/3.5 & earlier (GB, Froyo, Eclair)
Follow above directions, substituting SystemUI.apk for framework-res.apk
framework-res.apk is located in /system/framework/framework-res.apk
If you are having trouble and you're on Sense 3.0/3.5 and earlier you may need to use apktool to decode the apk. After decoding, copy over res folder and overwrite all files. Rebuild apk and push to device.
As always, do a Nandroid. No one is responsible if you brick your device except for you!
Tested and working on:
- MeanROM (Sense 3.0)
- Newt's One S (Sense 4.0)
Hey, thanks for this big guy.
I'm the same way, i don't care about the battery icon especially with the % or number. I prefer the plain old stock battery icon, now I can restore the battery icon on those other roms.
Any chance to get this to work on sense 3.6? Preferably for meanrom ics. I would greatly appreciate it.
Hi guys,
I've been doing quite a bit of research and also quite a bit of trial and (all) error. I am currently trying to replace the battery icons in my current SystemUI.apk with battery icons from another SystemUI.apk (both DNA, of course). From what I read, it looks like I need to decompile the SystemUI.apk, but it appears that apktools currently does not work with the DNA. I have also tried just extracting the apk files using winrar, and then just copying the files over, but when I do that I the stat bar disappears and everything is black. I'm curious how you guys are managing to make basic mods like battery icons and transparent stat bar on the home screen when using Nova. I've read that the transparency needs to be done by editing a couple xml files, but the one in res/values is only available when you decompile.
As always, any tips or guidance would be warmly welcomed and greatly appreciated.
Thanks,
Steve
Use 7 zip to drop the new images into the zipped system UI then it will ask you to update archive and say yes. Then flash system ui.
That's the short version.
Do I actually need to flash, or can I just adb push while mounted in recovery?
Thanks,
stevedub40 said:
Do I actually need to flash, or can I just adb push while mounted in recovery?
Thanks,
Click to expand...
Click to collapse
You can do that as well, my main point was to use 7-zip, for image replacing I personally use zipthemer so I can use my theme on any rom, Each time I install a new rom i just need to run zipthemer on my phone and flash the zip it makes, and walah, themed to my liking.
For those interested, I managed to get UOT kitchen to create a new set of status bar icons for my rooted stock (Vodafone) rom on my HOX+.
I am unsure whether any of the other UOT images will work, but for the status bar, I have changed the default images to the Hoolm circle battery icon, the wifi icon and signal icon all changed. Looks very nice compared to the boring HTC icons.
I just kept all the settings as default in the kitchen and uploaded the: framework-res.apk, systemui.apk and com.htc.resources.apk
The cooked zip won't flash in twrp (it may in cwm), I just unpacked the zip and pushed the framework files manually. Rebooted and it worked.
I knew UOT had updated the kitchen for ICS and JB but was not sure if it was ready for Sense 4.
http://uot.dakra.lt/
Apologies if this was already posted, just thought some might be interested as many would enjoy customizing the stock status bar. Advisable to make a rom backup first before playing around with the framework files.
maritimesbob said:
For those interested, I managed to get UOT kitchen to create a new set of status bar icons for my rooted stock (Vodafone) rom on my HOX+.
I am unsure whether any of the other UOT images will work, but for the status bar, I have changed the default images to the Hoolm circle battery icon, the wifi icon and signal icon all changed. Looks very nice compared to the boring HTC icons.
I just kept all the settings as default in the kitchen and uploaded the: framework-res.apk, systemui.apk and com.htc.resources.apk
The cooked zip won't flash in twrp (it may in cwm), I just unpacked the zip and pushed the framework files manually. Rebooted and it worked.
I knew UOT had updated the kitchen for ICS and JB but was not sure if it was ready for Sense 4.
http://uot.dakra.lt/
Apologies if this was already posted, just thought some might be interested as many would enjoy customizing the stock status bar. Advisable to make a rom backup first before playing around with the framework files.
Click to expand...
Click to collapse
Thanks for this information, I've been waiting for jellybean support for various devices that I have owned but eventually gave up looking at the kitchen as nothing appeared to be happening. I have cooked a battery mod uot zip at the kitchen which will not flash through clockwork recovery.
Can I just clarify that you got this to work on an ODEXED stock rom?? Can you also clarify which files that you pushed with your file explorer as I uploaded all three files that you mentioned to the kitchen but my zip only contained framework-res.apk and systemUI.apk??
I am a bit wary to do it this way as I can't create a restore zip with the original files as it won't flash.