[Q] ICS battery mod, how can I do this? - AT&T Samsung Galaxy S II Skyrocket SGH-I727

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

Related

Bionix Theme "Nuke Green"

Ok im getting pretty good at editing frameworks and finally got a working theme for bionix!!! I think it looks pretty good, it gives Bionix Frost a cooler look!!! but let me know what you guys think. The pics will be posted in a minute.
Stuff Ive Themed So Far:
Nuke Green Status Bar
Themed Drop Down Menu w/New Icons,Transparent Background and Custom Galaxy Tab!!
Download and Slider Bars are Themed
Pop Up Menus Glow
Usb icons Are Changed
Lockscreen Themed
Like everybody else says im not responsible for bricks!! I have had this theme all day testing with no problems but this is just version 1 ill be adding more to the theme as i go. Also note i had a force close of titanium backup right after pushing the files not sure why just rebooted and never had a problem again and yes titanium back still works perfect i checked.
Just unzip and push both files to system/framework then reboot.
Heres the pics enjoy
Looks good. Look in res/layout/status_bar_expanded.XML to find the lines for the white background on your notification pulldown. ;-)
Sent from my LG-P999 using XDA App
krylon360 said:
Looks good. Look in res/layout/status_bar_expanded.XML to find the lines for the white background on your notification pulldown. ;-)
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Thanks krylon360!! Hey do you know any good xml editors for beginners that are free?
Notepad++ is what we all use
Sent from my LG-P999 using XDA App
krylon360 said:
Notepad++ is what we all use
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
ok got it and tried for awhile but still cant figure out what to change to get rid of the white background its kinda confusion to look at for the first time. Could you tell me what i need to change? Heres a pic below, is it suppose to look as confusing as it does or am i not doing it right,lol? thanks
in the 3rd pic u can change the white in uot kitchen
lenny hodapp said:
in the 3rd pic u can change the white in uot kitchen
Click to expand...
Click to collapse
I know uot gives the option becuase i made those white parts black it even shows it in the preview but when i cook it, it changes to white. Im try to find it in the drawable-hdpi file to change it manually.
Sent from my SGH-T959V using XDA App
Bryanb82 said:
ok got it and tried for awhile but still cant figure out what to change to get rid of the white background its kinda confusion to look at for the first time. Could you tell me what i need to change? Heres a pic below, is it suppose to look as confusing as it does or am i not doing it right,lol? thanks
Click to expand...
Click to collapse
you have to decompile framework-res.apk in order to convert the xml's from binary to text, then recompile once done.
the drop down menu runs from twframework-res.apk and framework-res.apk. i don't know which changes it so i always cook the status bars the same in both files. i think if u try again u should get in done in uot kitchen.
krylon360 said:
you have to decompile framework-res.apk in order to convert the xml's from binary to text, then recompile once done.
Click to expand...
Click to collapse
Thanks krylon im gonna try that!! Thanks
lenny hodapp said:
the drop down menu runs from twframework-res.apk and framework-res.apk. i don't know which changes it so i always cook the status bars the same in both files. i think if u try again u should get in done in uot kitchen.
Click to expand...
Click to collapse
Yeah i always cook both files the same way i just think theres something diffrent about the bionix frameworks? would stock kd1 frameworks work on bionix? Im probably just going to edit the xml and be done with it. Thanks for the freedback.
krylon360 said:
you have to decompile framework-res.apk in order to convert the xml's from binary to text, then recompile once done.
Click to expand...
Click to collapse
Ok krylon i decompiled it with apk by putting the framework-res.apk in the "place-apk-here-for-modding" folder then hitting decompile then it decompiled it to the projects folder then i changed the status_bar_expanded but how do i compile it back?? apk ask me for a project number and the only one that shows up is the original apk??? Also i added a pic below let me know if i changed the right thing. I circled the color code that changed it to black #0000 it was originally #FF000 wich i think is white right?? thanks for helping this noob out
How do I install this theme I tried using CWM and it did not work
ak4life23 said:
How do I install this theme I tried using CWM and it did not work
Click to expand...
Click to collapse
unzip and copy both frameworks files to your sd card then using super manger or root explorer copy and paste to system/framework then reboot.
Sent from my SGH-T959V using XDA App

[Q] Help with battery mod

Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
Sorry, but it's a bit more complicated than just opening the .apk in 7-zip or winrar. You need to decompile the .apk... the easiest way is to use a program called apk manager. Search on XDA, and you will find it.
Then, in the decompiled folder, you will have a /drawable/ folder. You need to re-code the stat_sys_battery.xml to include all the pngs, as well as the zzz_stat_sys_battery_1.xml.
In addition to the 100 pngs you already have, you will also need some charging animation icons and a stat_sys_battery_unknown.png icon that all match your battery icon theme.
After redoing the 3 xmls in the drawable folder, and replacing all the necessary pngs, you then need to recompile and sign your apk with the new files.
I've attached a sample of the 3 xmls for you to use as a reference.
If you are looking to get a battery mod the quick and easy way, then I have a bunch in a thread HERE. If you are looking to learn how to do it yourself (Which I highly recommend for the learning experience it will provide), then search around and look for some guides on compiling and decompiling to help you on your way. You can also download any of the battery mods from the thread I linked to, and decompile them for examples of a working framework-apk that has been modded.
Keep in mind, when experimenting with this, you ABOSLUTELY WILL cause your phone to not be able to boot up. Make sure you have a nandroid backup ready.
Good luck.
Thank you!
Wow, this is gonna take a bit longer than i though B)
Btw, i was using one of your mods, but i found that it wasnt smooth enough + the icon didnt have enough detail
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
go to first link on my sign download a batt mod open framework and use it...
lalitsehgal21 said:
go to first link on my sign download a batt mod open framework and use it...
Click to expand...
Click to collapse
Thanks, but no thanks B)
I think will try to learn how to do it my self

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

UOT kitchen

does this work for the G2X? sorry if this has asked recently but im trying every thing i can/know
i used the androidian.apk from theme chooser and doing everything i want but its comming out like 88-200kb's and there is no app folder inside of the zip to install nor can i flash it with CWM am i doing something wrong?
keefer7 said:
does this work for the G2X? sorry if this has asked recently but im trying every thing i can/know
i used the androidian.apk from theme chooser and doing everything i want but its comming out like 88-200kb's and there is no app folder inside of the zip to install nor can i flash it with CWM am i doing something wrong?
Click to expand...
Click to collapse
Does UOT kitchen work with Theme Chooser apps now? Last time I used it, it was only for the actually framework files (framework-res.apk and SystemUI.apk).
MWBehr said:
Does UOT kitchen work with Theme Chooser apps now? Last time I used it, it was only for the actually framework files (framework-res.apk and SystemUI.apk).
Click to expand...
Click to collapse
i guess not i read a bunch about just getting the theme chooser.apk and uploading that and it is supposed to add an apk to the zip it gives u to download
1. Go to the Kitchen page
2. Browse through the available mods and choose what you want (don't forget to press Generate preview if there is such a button)
3. Go to the file upload section and upload the required files, or choose the ROM you use from the kitchen's list (most roms in the list are for HTC Desire)
Files you need to upload:
Froyo rom: framework-res.apk
Gingerbread rom: framework-res.apk and SystemUI.apk
Gingerbread with sense rom: framework-res.apk, SystemUI.apk and com.htc.resources.apk
Cyanogenmod7 rom: Cyanbread.apk or Androidian.apk or any theme for ThemeChooser (rename as you like it to apear in theme menu)<----thats what im using
NOTE 1: if you’re uploading theme apk then do not upload any other files; you’re just wasting traffic, because the kitchen will ignore additional files
NOTE 2: Font packs and boot animation do not require files to be uploaded. If you choose only those mods then you get a download without a queue.
4. Go to the summary section. All chosen mods must have a green background. If there is a mod in red background it means you didn’t finish it.
Press Submit work to kitchen
5. Remember the UOT file name (your order number).
6. Go to the Pickup page and wait for your file to appear (it can take from 5min to 1hr or more)
7. Download UOT zip into SD card of your phone
8. Reboot into recovery
9. Wipe cache and dalvik-cache (just in case). Do not wipe data / factory reset.
10. Flash UOT zip
11. Reboot phone
Click to expand...
Click to collapse
Make sure you set the file type to optimus.
Sent from my Galaxy Nexus using xda premium
Ty sir that worked I have been messing around with it for days and I never thought to do that
Thanks again
Sent from the Broncos sidelines using XDA App
kwes1020 said:
Make sure you set the file type to optimus.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks! I also overlooked that option lol
Used to love custom theming my mt4g.
Sent from my LG-P999 using xda premium
So you can actually take a CM7 Theme Chooser theme and use that for UOT Kitchen? Then apply it to any ROM?
mackster248 said:
So you can actually take a CM7 Theme Chooser theme and use that for UOT Kitchen? Then apply it to any ROM?
Click to expand...
Click to collapse
No. Theme Chooser themes only work with roms that have themechooser integration. Otherwise its a lot of work to port.
Sent from my Galaxy Nexus using xda premium
mackster248 said:
So you can actually take a CM7 Theme Chooser theme and use that for UOT Kitchen? Then apply it to any ROM?
Click to expand...
Click to collapse
Use the system files like framework-Res.apk and systemui.apk and set file type to optimus, worked perfect for me.
Sent from my LG-P999 using xda premium
kwes1020 said:
No. Theme Chooser themes only work with roms that have themechooser integration. Otherwise its a lot of work to port.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hey Kwes - I have not tried UOT with New Clip because you mentioned themes may break things. Does that also apply to UOT? I wanted to change the color of all the items on the status bar to the hex ICS color. Should that be OK if I do not change anything else?
Or is there a better way to do that?
jcbofkc said:
Hey Kwes - I have not tried UOT with New Clip because you mentioned themes may break things. Does that also apply to UOT? I wanted to change the color of all the items on the status bar to the hex ICS color. Should that be OK if I do not change anything else?
Or is there a better way to do that?
Click to expand...
Click to collapse
As long as you use the systemui and framework-res from the rom it shouldn't break anything. But some sketchy edits I made in framework as work a rounds might not let you edit it with uot but you can always try. I'm gonna update soon if I can just get these lock screens right.
Sent from my Galaxy Nexus using xda premium
Thanks. I will give it a try tonight or tomorrow. I want to make a set of all gingerbread green status bar icons and a set of all ICS blue status bar icons. If it works I will send them to you and you could add them to New Clip (if you want to) as an option for people that want everything matching, but do not want a complete makeover theme.
I just think it looks nice when the battery, clock, signal, wifi, etc match in color. Fond of ICS blue right now. I think I know how to repack it so anyone can use it. I'll PM you later if I get it done.
Edit: Well...that was a disaster. I just changed the status bar icons and added a different battery. Result was a boot loop twice and then a black screen requiring a battery pull. Restored my back up and will give it another try. Maybe a bad file download?
jcbofkc said:
Thanks. I will give it a try tonight or tomorrow. I want to make a set of all gingerbread green status bar icons and a set of all ICS blue status bar icons. If it works I will send them to you and you could add them to New Clip (if you want to) as an option for people that want everything matching, but do not want a complete makeover theme.
I just think it looks nice when the battery, clock, signal, wifi, etc match in color. Fond of ICS blue right now. I think I know how to repack it so anyone can use it. I'll PM you later if I get it done.
Edit: Well...that was a disaster. I just changed the status bar icons and added a different battery. Result was a boot loop twice and then a black screen requiring a battery pull. Restored my back up and will give it another try. Maybe a bad file download?
Click to expand...
Click to collapse
I would love if you got it working. I also enjoy the blue of ICS .
buru898 said:
I would love if you got it working. I also enjoy the blue of ICS .
Click to expand...
Click to collapse
An all new update is just around the corner. Kwes1020 has some magic he is holding back until its right. Old weapon 3.0 works fine with UOT. I am not a real theme guy. I answer easy questions for noobs and piggyback off the hard work of others, but always give credit and thanks to the real guys. If the update does not happen as expected, I will take another stab at it.
I love learning new things and android has become an addiction. If you want to try, read up on topic. Tons of good info out there. UOT is simple to use. The trick is making the zip you create compatable with every one else. There is a mini tutorial in the moonman thread.
My First Time
So I sat for over an hour making my first OUT kitchen Theme if that is what you call it, I am waiting for it to cook as you say.... hope all goes well when I flash it to my stock Gingerbread rom......

Transparent Statusbar on GB rom

Does anyone know how to get this?
I'm using Mind of a Mac v1.2 Rom
guigadourado said:
Does anyone know how to get this?
I'm using Mind of a Mac v1.2 Rom
Click to expand...
Click to collapse
Hey buddy, i've managed to make it work, after 2 months of searching.
Here is the link of proof. I haven't post any files yet or a guide, but if you want ill tell you what to edit and with what tools.
http://forum.xda-developers.com/showpost.php?p=29106868&postcount=262
Or just paste the file inside this zip View attachment classes.rar to systemUI.apk and do the proper edits to status_bar.xml and the statusbar_background.9.png and statusbar_background.png afterwards.
You can also use the UOT Kitchen.
Truckerglenn said:
You can also use the UOT Kitchen.
Click to expand...
Click to collapse
Never worked for me...
Sent from my Infuse 4G running Aeon 1.4SL
Originally Posted by guigadourado
Does anyone know how to get this?
I'm using Mind of a Mac v1.2 Rom
Click to expand...
Click to collapse
Hey buddy, i've managed to make it work, after 2 months of searching.
Here is the link of proof. I haven't post any files yet or a guide, but if you want ill tell you what to edit and with what tools.
http://forum.xda-developers.com/showpost.php?p=29106868&postcount=262
Or just paste the file inside this zip classes.rar to systemUI.apk and do the proper edits to status_bar.xml and the statusbar_background.9.png and statusbar_background.png afterwards.
Click to expand...
Click to collapse
Awesome job bro,
so a background alpha change in smali? Or pointing to an image?
And ya UOT didn't work for me either when I tried last.
Sent from my Galaxy Nexus using xda premium
xIC-MACIx said:
Awesome job bro,
so a background alpha change in smali? Or pointing to an image?
And ya UOT didn't work for me either when I tried last.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yes. Use the .dex file for the alpha level and just change the statusbar_background.png to the desired transparency level and thats it . Just remember to add @color/transparent to the date background, otherwise it will show when you expand the statusbar and add the proper change from #ff000000 to @drawable/statusbar_background.
Sent from my Infuse 4G running Aeon 1.4SL
Did you upload the framework-res.apk and SystemUI.apk from the rom that you were using at the time? Then went to the Status bar menu?
Truckerglenn said:
Did you upload the framework-res.apk and SystemUI.apk from the rom that you were using at the time? Then went to the Status bar menu?
Click to expand...
Click to collapse
No, i just edited the smali in the systemui.apk. But apktool doesent work. Actually that was the case all along. I had to decompile and recompile with smali/baksmali.jar to make it work
Sent from my Infuse 4G running Aeon 1.4SL

Categories

Resources