[MOD] 1% Battery for CleanROM 7.0.P1 - AT&T, Rogers HTC One X, Telstra One XL

Just a simple flashable .zip to give you 1% battery.

rdk2k said:
Just a simple flashable .zip to give you 1% battery.
P.S. Does anyone know how to make it so your network data icon is disabled while connected via WiFi?
Click to expand...
Click to collapse
Isnt there already a feature in power settings for battery percentage?
Sent from my HTC One XL using xda app-developers app

ethantarheels123 said:
Isnt there already a feature in power settings for battery percentage?
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
Yes but it just places a new icon with your current battery percentage next to the battery icon. This overlays the icon so it has a more minimal feel.

Nice, thnx
Sent from my HTC One XL using XDA Premium 4 mobile app

Ok I tried replacing the systemUI.apk in my ROM with the one in the mod. Somehow the status bar is now gone when I flash my ROM. why is that.
Sent from my HTCONE using xda app-developers app

phonegeekjr said:
Ok I tried replacing the systemUI.apk in my ROM with the one in the mod. Somehow the status bar is now gone when I flash my ROM. why is that.
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
I'm not sure. I made this just for this build of CleanROM. It may not play nice with other roms. Also this on top of a status bar modded by an xposed module may not play well either.

I ran it on my ROM just fine. Everything was messed up when I intigrated it into the Rom. Just was wondering why this could have been
Sent from my HTC One XL using xda app-developers app

phonegeekjr said:
I ran it on my ROM just fine. Everything was messed up when I intigrated it into the Rom. Just was wondering why this could have been
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
Have you tried recompiling it with the framework-res.apk from your rom using apktool?

rdk2k said:
Have you tried recompiling it with the framework-res.apk from your rom using apktool?
Click to expand...
Click to collapse
no the framework-res.apk has no changes made to it. at least not yet.

rdk2k said:
Just a simple flashable .zip to give you 1% battery.
Click to expand...
Click to collapse
hi, i installed the CleanROM 7. but my battery drains really fast, and the phone gets heated, is there anything i can do?
also is it possible to save all my apps i downloaded , so if i install another ROM i can still have them ?
thanks in advance

dedon4christ5 said:
hi, i installed the CleanROM 7. but my battery drains really fast, and the phone gets heated, is there anything i can do?
also is it possible to save all my apps i downloaded , so if i install another ROM i can still have them ?
thanks in advance
Click to expand...
Click to collapse
As far as backing up apps, I use titanium backup. With your battery drain, you may want to post that question in the ROM thread.

i install but my status bar has gone
hi i already installed but .. my status bar has gone anyway to make it back please any help ... its really aprecciated thanks

What rom
Sent from my HTC One XL using xda app-developers app

Clean ROM 7R2
Compatible w/cleanRom 7R2?

From what I have seen, it should work. That being said you won't know untill you try it.
Sent from my HTC Butterfly s using xda app-developers app

if you want 1% battery mod decompile SystemUI.apk
go to res/drawable/stat_sys_battery.xml and open in, you will see lines that have stuff like this
max:level 23.......... @drawable/stat_sys_battery_23.......
max:level 34.......... @drawable/stat_sys_battery_34.......
max:level 52.......... @drawable/stat_sys_battery_52.......
all you need to do is start from 1 to 100 so it will go like this
max:level 1.......... @drawable/stat_sys_battery_1.......
max:level 2.......... @drawable/stat_sys_battery_2.......
max:level 3.......... @drawable/stat_sys_battery_3.......
..
...
go all the way from 1 to 100
...
..
max:level 98.......... @drawable/stat_sys_battery_98.......
max:level 99.......... @drawable/stat_sys_battery_99.......
max:level 100.......... @drawable/stat_sys_battery_100.......
then download 1% battery mod images and makesure they are named the same as stat_sys_battery_98 etc then place them in res/drawable-xhdpi and recompile!

ricky310711 said:
if you want 1% battery mod decompile SystemUI.apk
go to res/drawable/stat_sys_battery.xml and open in, you will see lines that have stuff like this
max:level 23.......... @drawable/stat_sys_battery_23.......
max:level 34.......... @drawable/stat_sys_battery_34.......
max:level 52.......... @drawable/stat_sys_battery_52.......
all you need to do is start from 1 to 100 so it will go like this
max:level 1.......... @drawable/stat_sys_battery_1.......
max:level 2.......... @drawable/stat_sys_battery_2.......
max:level 3.......... @drawable/stat_sys_battery_3.......
..
...
go all the way from 1 to 100
...
..
max:level 98.......... @drawable/stat_sys_battery_98.......
max:level 99.......... @drawable/stat_sys_battery_99.......
max:level 100.......... @drawable/stat_sys_battery_100.......
then download 1% battery mod images and makesure they are named the same as stat_sys_battery_98 etc then place them in res/drawable-xhdpi and recompile!
Click to expand...
Click to collapse
ok I tried that and it went ok till I added it to my ROM and flashed it. is there any other files that need to be edited. my ROM is based of the telstra 4.2.2 deodex.

phonegeekjr said:
ok I tried that and it went ok till I added it to my ROM and flashed it. is there any other files that need to be edited. my ROM is based of the telstra 4.2.2 deodex.
Click to expand...
Click to collapse
Nope just that, make sure the resources are in the right folder, ie. Drawable-xhdpi or drawable-xxhdpi etc...

ricky310711 said:
Nope just that, make sure the resources are in the right folder, ie. Drawable-xhdpi or drawable-xxhdpi etc...
Click to expand...
Click to collapse
ok I find similar icons in other folders, should I replace them too. also I added this to a ROM and when it booted I got no status bar. what does that mean.

phonegeekjr said:
ok I find similar icons in other folders, should I replace them too. also I added this to a ROM and when it booted I got no status bar. what does that mean.
Click to expand...
Click to collapse
yes, replace them with your new battery icons, there should be maybe 8 or 9 files you replace(not including the charging icons)
i also wrote a guide for this sort of stuff! check my threads!

Related

Now that we have s-off and permanent root -> battery percentage?

No framework-res.apk with circle battery percentage around? (like those from CM7) ??? Thank you!
-> I'm asking for a real battery percentage icon substitute... (no widget) I know there are a bunch of widgets around...
TEKHD said:
No framework-res.apk with circle battery percentage around? (like those from CM7) ??? Thank you!
-> I'm asking for a real battery percentage icon substitute... (no widget) I know there are a bunch of widgets around...
Click to expand...
Click to collapse
See post here:
http://forum.xda-developers.com/showpost.php?p=16158575&postcount=4
If you want something that's not listed, just ask.
I will upload my full theme tomorrow. Including battery and gingerbread icons
Really thank you both!
Sent from my rooted HTC Sensation 3.5G using XDA Premium App.
TEKHD said:
No framework-res.apk with circle battery percentage around? (like those from CM7) ??? Thank you!
-> I'm asking for a real battery percentage icon substitute... (no widget) I know there are a bunch of widgets around...
Click to expand...
Click to collapse
I cooked mine up from the UOT Kitchen website. It works great!
Sent from my HTC Sensation 4G using XDA App
Thyrus said:
I will upload my full theme tomorrow. Including battery and gingerbread icons
Click to expand...
Click to collapse
how would your theme work on stock roms when most of the apks are odex they must be de-odex to theme meaning how are changes going to take effect on the rosie
My theme will only work with deodexed roms.. I was assuming you guys are no longer on stock of course.
Thyrus said:
My theme will only work with deodexed roms.. I was assuming you guys are no longer on stock of course.
Click to expand...
Click to collapse
no im still on stock i dont see the need right now to go custom and start losing things that i already have working on stock. I check all the roms here and for me right now is a no go i wish soomeone would just deodex tmobile us so i can theme it a little not everybody want a custom rom at the moment hell im still enjoying your skins
As long as You save the stock apks and odex files, you can use my theme on stock also. Just back up the files, delete .odex file and replace apk (i.e systemui) with mine
Thyrus said:
As long as You save the stock apks and odex files, you can use my theme on stock also. Just back up the files, delete .odex file and replace apk (i.e systemui) with mine
Click to expand...
Click to collapse
oh i can do that will give it a try

Taskbar Menu

Can someone show me how I can personally change my top taskbar menu (if it's possible) and where can I find the themes for it?
Thanks.
SC23 said:
Can someone show me how I can personally change my top taskbar menu (if it's possible) and where can I find the themes for it?
Thanks.
Click to expand...
Click to collapse
It all depends what you're actually trying to do?
Just change a color? Change the pull down background? Add quickpanel toggles?
I flashed my phone back to stock rom and I just wanted the taskbar to look like the octane rom that I was running on before.
SC23 said:
I flashed my phone back to stock rom and I just wanted the taskbar to look like the octane rom that I was running on before.
Click to expand...
Click to collapse
You can try pulling the framework-res.apk and systemui.apk from octane and replacing them in the appropriate spots in your current ROM as long as the rom you are on is deodexed. But it may,not work. Or, you can replace the .png files using 7zip and then replace those files with your new themed ones (less chance of fc or bootloop). But the second method is a bit more detailed.
Sent from my SGH-T959V using XDA App
I'm just using octane with my wifi fix ;P
Sent from my SGH-T959V using XDA App
I flashed airflips aosp like rom and copied the vahalla systemui and framework over then put the edt apk in apps and have it working just missing the lock screens now
Sent from my Icrap killer
thomas.raines said:
You can try pulling the framework-res.apk and systemui.apk from octane and replacing them in the appropriate spots in your current ROM as long as the rom you are on is deodexed. But it may,not work. Or, you can replace the .png files using 7zip and then replace those files with your new themed ones (less chance of fc or bootloop). But the second method is a bit more detailed.
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
Argh! I've just tried it and it didn't work.
Will not work on a stock rom
Sent from my Icrap killer

[Q] ICS battery mod, how can I do this?

what are the files needed to be edited in order to make a circle battery mod?
angoleiro said:
what are the files needed to be edited in order to make a circle battery mod?
Click to expand...
Click to collapse
Do you want to MAKE one from scratch or just install one? Which ROM are you running?
Id love to know how to do this as well. For me Id like to just modify an existing customized Rom files.
I actually tried this after hours of searching. And most seem to only talk abou modifying the SystemUI.apk by adding the 204 PNGs for the battery mode (for 1% accuracy) and also add the two modified battery XMLs. I recompiled the SystemUI.apk, injected it on the phone, set the right permissions and rebooted. I saw the battery icon change. But then 10mins later it was showing the stock battery icon again, then 10mins later I noticed it was showing the modified one again.
Im wondering why do folks mention only needing to change the SystemUI.apk when if you open the Framework-res.apk you will also see the same Battery PNGs and also see the same battery XMLs (but cannot read those in clear text).
Dont we have to modify both the Framework-res.apk and SystemUI.apk? I think the answer is yes since the UOT Kitchen makes you upload both and sends you back both modified.
Im not too familiar with how to do the framework-res.apk. Btw Im using MHX's Superlite 5.0 ROM which I believe he modified one of those files to remove the carrier text from the status bar.
Dixit
I used UOT Kitchen to change mine. All you do is pick the battery icon you want then upload your systemui.apk and framework-res.apk and wait for it to make it then download it to your sdcard. Then flash it in CWM.
Sent from my SAMSUNG-SGH-I727 using XDA
Flank32 said:
I used UOT Kitchen to change mine. All you do is pick the battery icon you want then upload your systemui.apk and framework-res.apk and wait for it to make it then download it to your sdcard. Then flash it in CWM.
Sent from my SAMSUNG-SGH-I727 using XDA
Click to expand...
Click to collapse
Yea that worked fine when I was on Gingerbread even on NexusMod ROM. Thats what I did before.
Now on ICS (Superlite 5.1 ROM), I did the same thing, took the systemui.apk and framework-res.apk from superlite's rom file, uploaded them to UOT and did the battery mod, everytime it builds it, I get a SHTF error.
So then I tried to upload the stock leaked ICS systemui.apk and framework-res.apk (not modified by any ROM), and still same issue, get a SHTF error.
It dont seem to like the ICS based files Im giving it.
Dixit
I posted one in the superlite dev thread. I'll be making more tonight.
Sent from my SAMSUNG-SGH-I727 using XDA
SimPup said:
I posted one in the superlite dev thread. I'll be making more tonight.
Sent from my SAMSUNG-SGH-I727 using XDA
Click to expand...
Click to collapse
Yeap saw that, Thanks again. Id love to see what you did in this that maybe I didnt do right in my own attempt. I added the 204 PNGs and then added these premade stat battery xml files I saw in the Galaxy S2 forum. I looked at yours (the stat battery xmls) but couldnt see them in clear text, they seem to be compiled so cant truly see whats in it.
Dixit
Flank32 said:
I used UOT Kitchen to change mine. All you do is pick the battery icon you want then upload your systemui.apk and framework-res.apk and wait for it to make it then download it to your sdcard. Then flash it in CWM.
Sent from my SAMSUNG-SGH-I727 using XDA
Click to expand...
Click to collapse
That won't work for ICS
dixit said:
Yeap saw that, Thanks again. Id love to see what you did in this that maybe I didnt do right in my own attempt. I added the 204 PNGs and then added these premade stat battery xml files I saw in the Galaxy S2 forum. I looked at yours (the stat battery xmls) but couldnt see them in clear text, they seem to be compiled so cant truly see whats in it.
Dixit
Click to expand...
Click to collapse
Just get apkmultitool and decompile it. www.apkmultitool.com
Sent from my SAMSUNG-SGH-I727 using XDA
SimPup said:
Just get apkmultitool and decompile it. www.apkmultitool.com
Sent from my SAMSUNG-SGH-I727 using XDA
Click to expand...
Click to collapse
Thanks!!!!
Just decompiled it and now I can see your XML in clear text, be interesting for me to see what I did wrong, like I said I had mine working in and out.
Thanks again. This will help me in seeing where I went wrong on my initial attempt.
Dixit
Took a look finally. My stat_sys_battery.xml and stat_sys_battery_charge.xml are identical to the ones you had in your mod. So that was done right. Any other files you modified (XML wise)?
Im still curious on why I see the same two XMLs in the Framework-res.apk and the same battery icons but modifications are not needed there. Almost seems like both are needed to be done.
Dixit
dixit said:
Took a look finally. My stat_sys_battery.xml and stat_sys_battery_charge.xml are identical to the ones you had in your mod. So that was done right. Any other files you modified (XML wise)?
Im still curious on why I see the same two XMLs in the Framework-res.apk and the same battery icons but modifications are not needed there. Almost seems like both are needed to be done.
Dixit
Click to expand...
Click to collapse
I didn't mod anything besides systemui. Didn't even touch any other file. I only added the icons and edited the 2 xml's.
Sent from my SAMSUNG-SGH-I727 using XDA
Good to know, I wonder if maybe the proper method is to also replicate these same changes in the framework-res.apk since I did a test and noticed UOT Kitchen modifies both and I see the same two XMLs appear identically betweenthe SystemUI.apk and framework-res.apk. As as well as the same icon set in both.
Dixit
From what I understand it doesn't work with the kitchen for ics
Sent from my SAMSUNG-SGH-I727 using XDA
Right I got a feeling it dont work with ICS (the UOT Kitchen). But like I said on GB it modified both framework-res.apk and SystemUI.apk and basically put the same changes in both. So there must be a reason it does that. That might be the reason why for brief moments I saw the standard battery icon and then sometimes the circle mod battery I put in there.
Dixit

Noob question - change battery icon?

I've never done it before but the UOT kitchen seems pretty straightforward. Except that XBSA's ROM is an img file.
So does anyone know how I can modify the icon to show a percentage? I don't want to use an app that clogs up my bar cos they close when you free up RAM.
Cheers
Sent from my LG-SU760 using xda app-developers app
I'm not telling how to, just a suggestion: decompile SystemUI.apk and you will find the answer.
Sent from my LG-SU760 using xda premium
Ok found it. Do I need framework-res.apk as well? I will have a go at this later.
Edit - can't get it to work with UOT kitchen and don't fancy decompiling the apk and inserting the files manually.
Sent from my LG-SU760 using xda app-developers app
Use 7zip to open the apk as an archive delete old icons then copy the new icons ( by drag and drop method ) . If you do not have the icons you can get it from many themes or costume roms .
OR
you can use "Rom Tool Box" I think it's a famous app . Go to interface section and then choose "theme manager" do not choose "theme chooser" it's completely other thing . Then you will find many themes and icons for every thing .
But I use the manual method because I think it's more stable (does not make problem) do not trust apps or UOT Kichen , do it by your self .
Sent from my LG-P920
OK I'll see how difficult it is. Cheers
Sent from my LG-SU760 using xda app-developers app
If you just want to see percentage got to system settings/power saver and choose there.
Sent from my LG-P920 using xda app-developers app
Cheers, that's better than nothing but its ugly. I'll try 7-zip and/or ROM Tool Box this evening
ROM Toolbox didn't do it - said ROM isn't deodexed and also there were quite a few files missing.
7-Zip next I guess
Sent from my LG-SU760 using xda app-developers app
I changed the icons in framework-res.apk and nothing happened. I don't even know where the old icons are coming from now as they've been replaced and don't exist but they are still there in my status bar :/
Did you delete the old icons before copy ?? 7-zip does not replace it . Delete the old icons then copy the new icons .
Sent from my P920
Hit thanks button if I helped
I didn't delete them but it does seem to have replaced them.
I have something sort of working - I also changed the icons in SystemUI.apk and now my new icons are working. However, its still not perfect as the charging icons are still not changed and the increments are only every 10% or so. I think I'd need to edit some of the XML files.
I am going to try replacing the framework-res.apk and SystemUI.apk files with ones from a GB ROM. Wish me luck :/
Edit
AND.........boot loop. Oh well, I will try something else
I had the same problem (increasment 5%) but at that time I get the framework-res.apk from a costum rom (King_3D_Rom) and I changed the icons and now It works perfectly .
Sent from my LG-P920
Hit thanks button if I helped
Just upload them to uot kitchen and do it there. It is easy.
Sent from my LG-P920 using xda app-developers app
iodak said:
Just upload them to uot kitchen and do it there. It is easy.
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
I'm using the ICS rom. GB files caused me to boot loop and UOT kitchen doesn't work for this rom.
I do have it working now with the charge animation as well (kinda) but still got the 10% increments.
Edit: its not bad though. Much better than stock at least. Increments are more like 5% or less. Less than 2MB so an easy install. Charge animation is still screwy though.

[MOD][5/21] - FIX FOR HOTSPOT AND WIFI PASSWORD ON AT&T Base

Thanks to @homeslice976 this is working on trickdroid, insertcoin & arhd roms so far !!!!
http://d-h.st/Pbp
I just received permission from the creator of this MOD to allow other devs to include his work inside the ROMS so if anyone wants to you are allowed to baked in the ROM
1. fix native hotspot
2. fix wifi password
3. it get rid of the AT&T carrier label in the status bar
4. it doesn't have persistent icons when wifi is on
5. disbles nfc icon
6.THE BEST PART FOR ME AT LEAST YOU WILL STAY WITH AT&T SIGNAL ICONS
MUST WIPE CACHE AND DALVIK BEFORE REBOOT
confirmed working in following ROMS
1. trickdroid
2. insertcoin
3. arhd
THANKS @homeslice976 !!!!
i had to remove the link since it has trickdroid specific stuff on it i will try to talk to homeslice to fix it sorry guys
link back up guys
YOU WILL LOSE EQS AND OTHER ENHANCEMENTS MADE IN SYSTEM UI SINCE THIS IS COMPLETELY STOCK NOW
this is based on SystemUI from 1.29.401.16 stock, and att's 1.26.502.10 ext.jar
Tried this on HDR 9.1 and lost my status bar gonna reflash the Rom and try again.
Sent from my HTC One using Tapatalk 2
mastergrillo said:
Tried this on HDR 9.1 and lost my status bar gonna reflash the Rom and try again.
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
did you have any tweaks installed or themes? are you on AT&T based install?
This works as advertised but I sort of like to know when Wifi is connected. This also removes the % battery mod that is in trick droid.
agalvin13 said:
This works as advertised but I sort of like to know when Wifi is connected. This also removes the % battery mod that is in trick droid.
Click to expand...
Click to collapse
this does not remove the wifi icon so you will know when wifi is connected other way explain what do you want to achiev
JEANRIVERA said:
this does not remove the wifi icon so you will know when wifi is connected other way explain what do you want to achiev
Click to expand...
Click to collapse
sorry.. the wifi one is fine. but the battery icon mod is definitely removed. There is a mod to add the battery % inside the battery icon in the status bar. This mod removes it. :good:
agalvin13 said:
sorry.. the wifi one is fine. but the battery icon mod is definitely removed. There is a mod to add the battery % inside the battery icon in the status bar. This mod removes it. :good:
Click to expand...
Click to collapse
I think you can flash battery mod over and it will work I'm going to try now
ok this is the outcome of my test if you flash a battery mod it wil not remove the fix but if you flash something else that mess with systemui.apk it might bork the fix
only flash specific battery mods that only change battery and nothing else
Sent from my HTC One using Tapatalk 2
JEANRIVERA said:
I think you can flash battery mod over and it will work I'm going to try now
ok this is the outcome of my test if you flash a battery mod it wil not remove the fix but if you flash something else that mess with systemui.apk it might bork the fix
only flash specific battery mods that only change battery and nothing else
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
ok, I will look for a battery only mod to flash on top of it but the mod is also baked into Trick droid. thanks
i know unfortunately till torxx include this patch on the att base we will have to deal with it like this flashing battery mods that doesnt affect any other thing
This mod is not 100 % working for hotspot. Only work if you installed Google chrome on desktop or laptop.
Isn't working on the regular browser(IE)
Sent from my HTC One using xda premium
mytouch990 said:
This mod is not 100 % working for hotspot. Only work if you installed Google chrome on desktop or laptop.
Isn't working on the regular browser(IE)
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
This doesn't make sense at all maybe you have something wrong with your ie maybe some spyware or something else going on in your laptop
Sent from my HTC One using Tapatalk 2
mytouch990 said:
This mod is not 100 % working for hotspot. Only work if you installed Google chrome on desktop or laptop.
Isn't working on the regular browser(IE)
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
this is not true it is working fine in my laptop and desktop pc it is working fine must be something on your end with all browsers ie opera firefox chrome you mention windows 7 and windows 8 also
link back up guys read the op first thanks!!!
Thank you so much this worked perfect!
Sent from my HTC One using xda premium
Am glad you worked things out...
Sent from my HTC One using Tapatalk 2
c-prodigo said:
Am glad you worked things out...
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Anyone find a battery only mod to get the percent back and not break the fix?
So does this mod just basically add the AT&T 4G LTE icons into the systemUI.apk, since most of the other mods are standard ROM mods already? Wouldn't this be the same as just flashing rayford85's vrtheme icons, since the SystemUI.apk is basically the stock Sense version?
illmatic416 said:
So does this mod just basically add the AT&T 4G LTE icons into the systemUI.apk, since most of the other mods are standard ROM mods already? Wouldn't this be the same as just flashing rayford85's vrtheme icons, since the SystemUI.apk is basically the stock Sense version?
Click to expand...
Click to collapse
Fixes broken hotspot replaces icons and removes NFC from status bar among other things
I'm getting system ui fc on IC 1.0.6
I'm going to try flashing again...
No themes installed
---------- Post added at 08:12 PM ---------- Previous post was at 07:40 PM ----------
Dex954 said:
I'm getting system ui fc on IC 1.0.6
I'm going to try flashing again...
No themes installed
Click to expand...
Click to collapse
I believe the fault was mine - I was odexed... Worked after a full flash
illmatic416 said:
So does this mod just basically add the AT&T 4G LTE icons into the systemUI.apk, since most of the other mods are standard ROM mods already? Wouldn't this be the same as just flashing rayford85's vrtheme icons, since the SystemUI.apk is basically the stock Sense version?
Click to expand...
Click to collapse
here is the diff

Categories

Resources