[MOD] Accurate Battery Mod - Captivate Themes and Apps

Hello all, I'm fairly new to the android modding, but I figured out a way to modify the stock battery icon in the status bar to show the percentage.
By default the I927 stock rom is setup to show in increments of 5%. after following CarpeNoctem's guide for rooting the device, I was able to extract the framework-res.apk in the system and change the battery icons. in order to do this you need to have installed on your device, Root Explorer, NinjaMorph, and BusyBox. You also need to have a file manager like Astro, but it's much easier to use the usb cable and insert the icons using the pc.
I have included the complete framework-res.apk file that already has the icons inserted and a compressed file of the icons if you would rather insert them your self. If you plan to inserrt them on your own, just simply overwrite the files in the framework-res.apk with the ones in the compressed file. use NinjaMorph to extract the framework-res.apk then connect the usb cable to your pc and when you are done, disconnect the usb, open NinjaMorph and repack the framework-res.apk. Be sure before you reboot to set the permissions of framework-res.apk to rw-rw-rw- with root explorer. just to be safe use root explorer to make a backup copy of that file and check the permissions to see what they are before making any changes.
Remember there is always a risk of bricking your device. use the information at your own risk.

dbrannon79 said:
Hello all, I'm fairly new to the android modding, but I figured out a way to modify the stock battery icon in the status bar to show the percentage.
By default the I927 stock rom is setup to show in increments of 5%. after following CarpeNoctem's guide for rooting the device, I was able to extract the framework-res.apk in the system and change the battery icons. in order to do this you need to have installed on your device, Root Explorer, NinjaMorph, and BusyBox. You also need to have a file manager like Astro, but it's much easier to use the usb cable and insert the icons using the pc.
I have included the complete framework-res.apk file that already has the icons inserted and a compressed file of the icons if you would rather insert them your self. If you plan to inserrt them on your own, just simply overwrite the files in the framework-res.apk with the ones in the compressed file. use NinjaMorph to extract the framework-res.apk then connect the usb cable to your pc and when you are done, disconnect the usb, open NinjaMorph and repack the framework-res.apk. Be sure before you reboot to set the permissions of framework-res.apk to rw-rw-rw- with root explorer. just to be safe use root explorer to make a backup copy of that file and check the permissions to see what they are before making any changes.
Remember there is always a risk of bricking your device. use the information at your own risk.
Click to expand...
Click to collapse
Thanks for your work, mind posting a screenshot to show how it looks?

vil33 said:
Thanks for your work, mind posting a screenshot to show how it looks?
Click to expand...
Click to collapse
I would love to, but I'm still new to this, have to figure out how to take a screen shot of my phone to post!
I did find a small bug while testing my own mod. I lost all of my contacts after modding the framework-res.apk file! For now please backup your contacts through google or another app.

dbrannon79 said:
I would love to, but I'm still new to this, have to figure out how to take a screen shot of my phone to post!
I did find a small bug while testing my own mod. I lost all of my contacts after modding the framework-res.apk file! For now please backup your contacts through google or another app.
Click to expand...
Click to collapse
Either long press the home button + power or install a screen shot app.

Ok thanks, here are two screenshots.

Losing contacts, I mean the accounts like google and Facebook are removed, and your wallpaper is reset. You'll have to go back and add those accounts back.

this "MOD" is called the "Accurate Battery Mod" you should change the title of the thread....

TRusselo said:
this "MOD" is called the "Accurate Battery Mod" you should change the title of the thread....
Click to expand...
Click to collapse
Agreed, title has been changed.

Here's a couple more shots. If anyone wants a different style icon make some requests, I'll begin some work on different styles. If y'all can find online or extract the framework-res.apk file that has the icon sets you want, post them and I can use them to make custom sets. I believe I can,also change the other icons like the wifi and signal icons too.

Can somebody please make a video guide? I have no idea, or somebody post exactly what I need to do? Do I download the two files on my phone? On my computer? If I download on computer, do I choose "Open to see files"? where do I put it? etc..

extremely helpful mod. I currently have been using a series of widgets from the android store to show the percentage/time left, but this is what I was truly after.
Using a rooted AT&T ROM, and was extremely easy to install and operate.
I commend you on your efforts, and speaking for myself, I came over to the Samsung Captivate Glide from the HTC Tilt2 (windows mobile 6.5.3/various energyROMs), and I look forward to all the MOD's and other goodies that are made for the SCG.

I feel so dumb >_< How did you do it, could you tell me briefly?

Related

Change taskbar color

Hi Guys,
is it possible to change android (magic) taskbar color/theme for the device without root access?
I don't like the boring white, I want black taskbar with white font.
any suggestion will be appreciated .
thanks
I would like the same my device is rooted though
Draxter said:
I would like the same my device is rooted though
Click to expand...
Click to collapse
dont think it is possible if you aren't rooted. If you are rooted open up the update.zip file you are using as your rom using 7-zip, go to where framework drawable folder is. Open status bar and change its colour, drop it back in and resign app. There are instructions how to do this in themes section of Dream.
http://forum.xda-developers.com/showthread.php?t=473580
http://forum.xda-developers.com/showthread.php?t=471586 I use post number 6 the way i do it.
I'm using the Vodafone rom... I don't think I can get my update.zip from that? I rooted my device with haykuro's stuff in this tutorial.
http://android-dls.com/wiki/index.php?title=Magic_Rooting
I want to keep my Dutch XT9 so I can't flash anything else but smartphone france or my stock vodafone...
all the drawables should be in the root-me rom. open it and have a look for them.
But if they aren't I will brick my device by flashing a wrong framework...
no you wont. All you do is open it and drop in the .pngs you want, then resign it. they will be there in the rom- if not look at one of the other roms- Rogers, or daldroid will have them.
If it does go in to boot loop reboot into recovery and flash the last working rom you have until you figure out what went wrong. The only thing you are changing is the pngs. you shouldnt go intoa bootloop doing this- i have done a heap of theming for myself for the G1 and each time i got a boot loop it was cos i was playing around with services.jar and xml files. each time i just rebooted into recovery and reflashed previous working rom.
The thing is, I don't know which ROM I have... I have rooted my magic by using the android-dls tutorial with haykuro's stuff. There are still some vodafone relics left. I still have the vodafone shortcut, and i still have support for Dutch XT9.
http://android-dls.com/wiki/index.php?title=Magic_Rooting
I haven't made a Nandroid backup and I don't know how to make a backup either so... There is only one alternative, flashing Smartphone France firmware, it has Dutch support. I wouldn't mind trying out that one but that'll be the first time that I flash firmware onto my Magic so I'd like some guidance on MSN with that
Drawer
Im looking for the application drawer button in the res folder that is inside framework... found the status/notification bar and all icons but can't seem to find the app drawer button... i want to change it to a darker grey and make the notification bar black...
the app drawers are in launcher.apk
Easiest/safest way of changing the graphics I have found was to:
1. Connect your phone via USB and make sure you have the drivers installed
2. do adb remount
3. Do a adb pull on /system/framework/framework-res.apk for example
4. Open the apk with something like winrar etc
5. Locate the png files you want to change and extract them
6. make modifications to the files
7. pop back to the apk
8. do an adb push of the file back to the device
I've done this with fairly few apk's such as the launcher.apk and framework-res.apk and never had to resign the file =o)
The advantage is that you are using the file from your phone that you know works =o)) certain apk's don't even need a restart such as the Launcher.apk, I did alot of modding with the app drawer without ever needing to restart the phone.
This is good for changing the images but things like changing the clock color is ALOT harder, it requires you to edit the services.jar file with a hex editor =o(
Hope this helps.
Draxter said:
the app drawers are in launcher.apk
Click to expand...
Click to collapse
Ok, i did find the file in the launcher.apk, i edited it and all the other files and now need to resign in linux... was looking for the SignApk.jar in the SDK and didn't find it... also tried JF's testsign.jar and didnt work... can anyone point me in the right direction so i can resign the file using test keys in linux.
Thanks,
If you just changed the png's you shouldn't have to resign it
fxn said:
If you just changed the png's you shouldn't have to resign it
Click to expand...
Click to collapse
What about the hour and date font in the status bar... if i change the notification area to black it wont automatically switch to white text... do you know where i can find the parameters to change it?
Some of the text like notification texts etc are held in framework-res.apk xml files in the drawable folder if I remember correctly.
The clock is the difficult one as it is inside services.jar file, its a serious pain in the back side, the dream forum has more info about it but it involves opening up files in hex editor and changing the hex code directly there
I'll be having a look at this and see if I can make step by step guide of this but it is seriously a pain!
Any idea which XML's in framework-re.apk (or other location) hold the various notification font colour(s)?? I can't seem to find it.

[MOD] DIY Transparent Notification Drawer for Captivate FROYO

Like the title says, this is how to modify your Notification title drawer on the Captivate with Froyo like Tatuyama's theme's drawer(notification slide) for the i9000. This will tell you how to make it transparent and add a graphic or change the colors. This has been tested on Cog B7, dont think it works on i9000 roms like Shep's. I can help you though on this if you absolutely are dieing to do it. It will just take a little fandanglin and searching but can be done. I ripped apart Shep's rom and found all of Tat's mods, I jsut dont remember them off the top of my head..
I have also attached the drop bars from Tat's theme and another black AOSP bar should you want to use it. I have also included a PSD file to modify to your liking, my APK's for the frameworks I edited below (these include the tat icons already inside), a blank black background bar to use should you want, and other goodies for your modding needs. I have also slapped some screenies below to get an idea of wtf I am even talking about. Also if you use my Frameworks be aware that I am using the battery mod version "I" from that one thread, injected Tat's icons and goodies, and other MISC things.
I will try to do this as simple as possible. I dont linger in the themes area so you are pretty much on your own. I am going to write this tutorial based on Windows O/S and Adobe Photoshop. Attempt this at your own risk. If you biff it up its not my fault. I wrote the directions as I did it, and I am working great with awesome sauce dripping from my phone. I cannot be held responsible if you are below par of the preqs listed. I assume if you are going to attempt it you are competent and comfortable with all things required. However, should you somehow mess up, I do provide some SYA (save your ass) directions below. That being said, Good luck and Mod On!
Prerequisites:
1) ADB Dev Kit and experience using it (push, pull, shell)
2) Photoshop or other photo editing software & experience
3) Basic Windows experience: cut/copy/paste/rename/zipping/moving files. (if you use linux you shouldnt worry as you more than likely are a power user already and can cross apply).
Step 1: We need to download the APK's off the phone and get them ready for editing (or yank them out of the ROM package you download).
1) open a CMD (command prompt) window type:
adb pull /system/framework/twframework-res.apk C:\
adb pull /system/framework/framework-res.apk C:\​This will save the files to your root of C:. Should you want to do it elsewhere you can specify or else leave it blank and it will stick the files in your developer kit folder.
2) (OPTIONAL BUT RECOMMENDED! STEP) Navigate to where you saved the files, right click and copy/paste to make a set of backups of these files.
3) Rename the .apk to .zip files. You can also associate your .apk to a program like WinRAR or WinZIP instead. This will open APK Files by default or optional secondary(open with). This makes the whole thing a lot easier as you can open the file(APK) and leave it up, make the edits and drop them directly back into the APK. KEEP FILE STRUCTURE PROPER!
4) Extract the APK files to seperate folders or dig out the below files for editing.
Step 2: Editing the proper files.
1) Navigate to twframework.apk's extracted folder from above or these files you extracted.
2) Find and open sub folder /res/
3) Once in /res/ find and open /drawable-hdpi/
4) Once in /drawable-hdpi/ locate the following files:
- status_bar_background.9.png (actual background of the drawer)
- status_bar_header_background.png (this is the 5 icons across the top of drawer)
- status_bar_close_on.png (this is the dropdown bar at the bottom of drawer)
- quick_panel_list_bg_01.9 (seperator between carrier and application info)
5) Open these files in Photoshop(or another editor)
6) Verify these are set to RGB not Index color mode so you can edit them.
7) Edit the layers to make them transparent. If there are not layers, right click and "create layer from background". You can then edit your layer settings. I set mine to 75% transparency in Photoshop, the actual background to 85% to darken it up a little. This will take some tweaking to get it just perfect for you. Make sure you save them in .png format with the same name they started with and not the PSD or "copy". Also you want non interlaced if it prompts you.
8) Do the same steps for the framework-res.apk.
- status_bar_item_app_background_normal.9.png (not sure if this one is necessary)
- status_bar_item_background_normal.9.png (this is teh notifications)
Step 3: Put it together and upload.
After you update the files, you will need to inject them back ito the APK's where you got them (/res/drawable-hdpi/). You can do this by opening the APK with Winzip/WinRAR/7zip and put them in there or if you extracted the entire contents just zip it all back up. You will need to remove the .zip extension if you went that route. Also, make sure you open it after zipping and verify it maintains the correct structure or you will be doing the recovery shuffle after you reboot. If you see only 1 folder in your zip this is WRONG! You need to see assets, RES, META-INF, and 2 other files in there(manifests and resources). If you see all these then you are ready to rock and roll.
After you get them back together upload them to your device using:
adb push <location of apk you edited>\framework-res.apk /sdcard/
adb push <location of apk you edited>\twframework-res.apk /sdcard/​
then in teh same command prompt window (or another, whatever)
adb shell
su
cd sdcard
cp twframework-res.apk /system/framework/twframework-res.apk
cp framework-res.apk /system/framework/framework-res.apk
reboot​
It shouldnt take but a second to come back up. You are done.
It may take a little bit of editing of the files to get them to look OK. I spent most of my day today getting mine together. You can use them if you like the "hootie edition" or just edit your own.
SEE POST #6 IF SOMETHING GOES HORRIBLY WRONG!!!!!
Screenies:
http://www.wtfokc.com/sef****/snapshot-1.pnghttp://www.wtfokc.com/sef****/snapshot-2.pnghttp://www.wtfokc.com/sef****/snapshot-3.png
That looks fantastic. I want your notification drop down and all minus the owl of course and text, but can this be done by using metamorph instead of having to adb everything?
awsome write up. Looks pretty simple and I will attempt this when I get home today.
This is an absolutely EXCELLENT tutorial. Props to you. I will be doing this shortly to all my Captivates in the house, 3 in use, plus the 4th one I'm using as a Dev phone.
Hi,
I've followed your instructions. After the files have been pushed up, my phone goes through the usual errors due to the framework change. The problem I'm having is that after I restart my phone, the phone gets past the galaxy s screen, but then it goes black and does not respond. Any suggestions?
smeltn said:
That looks fantastic. I want your notification drop down and all minus the owl of course and text, but can this be done by using metamorph instead of having to adb everything?
Click to expand...
Click to collapse
To be honest I have never used metamorph on the Captivate. On my G1 yes you could acheive that. I googled the metamorph tutorial Junkdruggler did and it looks rather lengthy and involved editing XML files. You can find that info here. Also, the files you would need to do my way with just a blank one are above. Just download the closebars zip and the "blank" zip. Then mod/inject your APK - or hell mine from above- and push it to your device. This is a rather quick ordeal.
thehavock18 said:
awsome write up. Looks pretty simple and I will attempt this when I get home today.
Click to expand...
Click to collapse
miztaken1312 said:
This is an absolutely EXCELLENT tutorial. Props to you. I will be doing this shortly to all my Captivates in the house, 3 in use, plus the 4th one I'm using as a Dev phone.
Click to expand...
Click to collapse
Thanks guys, took me a little while to figure it all out and a lot of framework pushing to get it just right Let me know how it turns out for you! Hell post some screenshots when you are done. I want to see them
gangpe said:
Hi,
I've followed your instructions. After the files have been pushed up, my phone goes through the usual errors due to the framework change. The problem I'm having is that after I restart my phone, the phone gets past the galaxy s screen, but then it goes black and does not respond. Any suggestions?
Click to expand...
Click to collapse
THIS IS HOW TO SAVE YOURSELF
Well, not sure what you mean "usual errors" with framework change? I havent ever had any issues with the framework replacements. I occasionally have then crash if I replace them while phone is on and not in recovery. A reboot fixes this though. Are you using a Cap rom or an I9000? This doesnt work on I9000 roms as thier APK's are slightly different- teh HDPI folder has a v4 at the end (IIRC). I can help you through this though if that's the case..
If it truly is a cap rom, I did experience a similar problem on my phone one time when I pushed the framework.apk. What had happened is I right-clicked the ROOT directory I had placed all the files in and said to zip it. This caused the folder to be INSIDE the zip. So the file structure went like this:
>>ZIP FILE I CREATED>>
--------->>FOLDER ALL FILES WERE IN>>
------------------>>FILE STRUCTURE OF THE ORIGINAL APK>>
Which should have been
>>ZIP FILE I CREATED>>
--------->>FILE STRUCTURE OF ORIGINAL APK>>
To better explain it- If you open the zip you created, do you see the RES folder, META-INF folder, assets folder, and then there will be 2 other files? Or do you see 1 single folder? If you see 1 single folder you zipped it up incorrectly. You will need to go into the folder and select all-> right click-> zip (send to-> compressed folder). This should fix it. If this isnt the case something else went horribly wrong. To fix it we will need to restore the original files you hopefully backed up. If you didnt back up you still arent totally hosed- just redownload the ROM you are running, open it up and navigate to the /system/framework folder and pull out the original frameworks. Then follow these instructions to get them back on the device.
Step 1:
A quick way to get out of this situation is to take the copies rename them back to twframework-res.apk and framework-res.apk (or pull from the original rom package as mentioned above).
Hopefully you have the 2e recovery kernel, as you need it to get back to where you started. If you cant do clockwork, well you may as well odin cause you are a few flashes behind anyway.
K, so first you will need to download the update.zip I have included with this post. This is the clockwork recovery file. You will next need to put your phone in reocvery mode. to do this do:
adb reboot recovery
Step 2:
Next you will need push that file you downloaded to your SD. to do that you need to:
adb push <location of downloaded>\update.zip /sdcard/
Now, once in recovery- tell it to reinstall packages. This may reboot the phone. If it does, tell it to reinstall packages again. This should get you to clockwork recovery.
Step 3:
once you have a green clockwork recovery screen, you will get the chance to SU via ADB SHELL. You can then repeat the pushing of your ORIGINAL fles back to your phone and retry the process.
You could also pull the files you pushed to see what went wrong- but do that first as if you push before they will be overwritten with the original files.
Looking into doing a little custom work but before I do. Like Tat's theme do you need to edit XML files for specific things like the pop ups being black. Or do I just get the naming right and put the proper PNG in the apk.
thehavock18 said:
Looking into doing a little custom work but before I do. Like Tat's theme do you need to edit XML files for specific things like the pop ups being black. Or do I just get the naming right and put the proper PNG in the apk.
Click to expand...
Click to collapse
This is only for the notification drawer and not the actual pop ups. If you want to edit the popups you will need to edit the XML files.
Thanks for the quick response. I might have to dive into all the XML edits.
thehavock18 said:
Thanks for the quick response. I might have to dive into all the XML edits.
Click to expand...
Click to collapse
If you do post a how to thread cause I would like to know how myself
status_bar_background.9.png (actual background of the drawer)
If I ONLY wanted to make the pull-down menu background transparent the above file would be the only one that I need to mod... correct??
jslee1020 said:
status_bar_background.9.png (actual background of the drawer)
If I ONLY wanted to make the pull-down menu background transparent the above file would be the only one that I need to mod... correct??
Click to expand...
Click to collapse
That is correct.
The one problem though is the AT&T (carrier part) at the top is also transparent and you quickly notice it looks a little strange with your items not transparent. I tried to live with it for a little bit but ended up modding the rest too.
malfuncion said:
That is correct.
The one problem though is the AT&T (carrier part) at the top is also transparent and you quickly notice it looks a little strange with your items not transparent. I tried to live with it for a little bit but ended up modding the rest too.
Click to expand...
Click to collapse
quick_panel_list_bg_01.9 (seperator between carrier and application info)
is this the file for the AT&T carrier part??
The quick panel is actually the part that says "Notifications" or "On Going" below the AT&T part. THe AT&T and clear button is part of the actual background peice. So what happens is the AT&T part becomes transparent, while the notification peices are solid. It may not bother you but it bugged the crap out of me. It's personal preference really..
malfuncion said:
The quick panel is actually the part that says "Notifications" or "On Going" below the AT&T part. THe AT&T and clear button is part of the actual background peice. So what happens is the AT&T part becomes transparent, while the notification peices are solid. It may not bother you but it bugged the crap out of me. It's personal preference really..
Click to expand...
Click to collapse
I get it. Well I'll try it out and see... I guess no better way to learn then to experience it first hand Thanks!
I was able to take the Cog Beta 7 framwork and Tat's framwork. I pulled out all the changes from his theme and put them in cog beta 7. I actually did not have to edit any files and was able to apply it.
I had to change a few file names around so all the backgrounds / pop ups applied to the theme. I left DG's background.
I don't want to post it since it is not my own work but if you want to take a look at the framwork and twframwork I can send them PM.
notification bar??
What file is the actual notification bar with the battery/clock/etc... would it be inside twframework-res.apk or framework-res.apk?
EDIT: Just set background transparency to 80% in photoshop and changed the color to black. The transparency seems ok, but it resembles minimalistic theme too much... gonna fiddle with it some more today.
jslee1020 said:
What file is the actual notification bar with the battery/clock/etc... would it be inside twframework-res.apk or framework-res.apk?
Click to expand...
Click to collapse
it is in the framework.apk. The notification bar's file is:
statusbar_background.9.png
This is confirmed. I j ust set mine to a gradient and it actually looks kind of good.
screenie:
http://wtfokc.com/sef****/snapshot-4.png
Hey Malfunction,
Finally got it working past the galaxy S screen, thanks for the info. One last question, then I should be out of your hair. Where can I change the settings for the media scanning icons? Currently, the white default icons are showing, but I'm trying to change that to the black SD card. I'm going to look into it myself too; figured I'd ask though.
Thanks,
gangpe said:
Hey Malfunction,
Finally got it working past the galaxy S screen, thanks for the info. One last question, then I should be out of your hair. Where can I change the settings for the media scanning icons? Currently, the white default icons are showing, but I'm trying to change that to the black SD card. I'm going to look into it myself too; figured I'd ask though.
Thanks,
Click to expand...
Click to collapse
Good deal, glad you got it working. What was the problem?
As for the SDCard- depends which you need. In framework-res there are these 3:
stat_notify_sdcard.png
stat_notify_sdcard_prepare.png
stat_notify_sdcard_usb.png
I had to do some hunting to find out which program was the running process for the Media Scanner. It is "MediaProvider.apk" on your /system/app folder. I edited mine and it now works and has all the Tat icons loaded. Thanks for that heads up I hadnt noticed that little piece before you mentioned it.
I looked at Tat's ROM section and also saw that he has edited these, may consider if you are wanting to mimick his:
DownloadProvider (Market)
MediaProvider (Media Scanner)
Vending (Market)
PackageProvider.apk (Uninstallation Screen)
GoogleQuickSearchBox.apk (Google Search)

Battery Icon

Can I change the battery icon in the notification bar? I have a Captivate with 2.2 and rooted.
Yes you can... search the forums for framework-res.apk you can modify that to put the icon you want... make sure you replace files within your ROMS framework-res.apk else you will get into trouble!!
Thanks, I will see if I can do this.
And don't forget to back up the original framework-res.apk so if you mess something up you can push the original back and all will be well.
Check out this site. circle.glx.nl I've used it a number of times to make battery icon changes. Only requirement is that you do NOT have a highly customized framework-res.apk You can also add your own boot animations. The rest of the kitchen isn't usable for our phones though. It's pretty straightforward.
rob989_69 said:
Check out this site. circle.glx.nl I've used it a number of times to make battery icon changes. Only requirement is that you do NOT have a highly customized framework-res.apk You can also add your own boot animations. The rest of the kitchen isn't usable for our phones though. It's pretty straightforward.
Click to expand...
Click to collapse
If the theme is properly created it should still work in the UOT kitchen.
I was hoping after rooting I could change the battery icon easily, but I noticed the note about not working with stock "odexed" roms... which I run. Does anyone have info on how to de-odex the framework-res.apk so that I could just replace the battery icon?
It's literally the only mod I'm really interested in doing since I hate how (even in pics of 2.3) they don't show the battery % which I would think to be a very basic feature people would want!
On my rooted captivate on Rogers 2.2 I did install a battery icon change appt now the phone turns into an vibrator and black screen, any help to bring it back to life.
chickennoodle said:
On my rooted captivate on Rogers 2.2 I did install a battery icon change appt now the phone turns into an vibrator and black screen, any help to bring it back to life.
Click to expand...
Click to collapse
Do you have a back up of the original framework-res.apk ???
I have backup all my apps a couple days ago through titanium but now I can't even access to my phone v my pc.
It's literally the only mod I'm really interested in doing since I hate how (even in pics of 2.3) they don't show the battery % which I would think to be a very basic feature people would want!
Click to expand...
Click to collapse
If you would go through adding this, then why don't you pick a new ROM that has it included? Cog v3.04 has it on my phone, and my guess is that it is just as easy to flash a new ROM as it is to change up your battery icon. PLUS...you get the benefits of a new ROM too! Just my two cents.....
sethjamto said:
If you would go through adding this, then why don't you pick a new ROM that has it included? Cog v3.04 has it on my phone, and my guess is that it is just as easy to flash a new ROM as it is to change up your battery icon. PLUS...you get the benefits of a new ROM too! Just my two cents.....
Click to expand...
Click to collapse
In my past experience with custom ROMs, it seems that the developers like to toss in too much of their own "personal taste" that I usually don't like. I rather like the setup of the stock Rogers ROM I'm using - I just wish they'd upgrade to 2.3 or whatever the current version is now.
I will admit, the more time it takes before any news of Rogers updating this phone, the more appealing looking in to custom ROMs is becoming.
Besides, going with a new rom containing the mods I'm interested in doesn't help me learn how to do them myself ;P
is there any update on this? does anyone know how to do it and want to help me out? so basically i went back to stock rooted 2.2 kb1 and now i just want to change the battery icon.
the UOT kitchen will work with 2.2 stock. I have tried it.
http://uot.dakra.lt/
you will need something like Root Explorer to extract the framework-res file then it will work.
jack man said:
the UOT kitchen will work with 2.2 stock. I have tried it.
http://uot.dakra.lt/
you will need something like Root Explorer to extract the framework-res file then it will work.
Click to expand...
Click to collapse
so it root explorer i go to /system/framework and copy twframework-res.apk? and i upload that to the Uot kitchen?
Then how would you install it? do i just need to replace the old apk. with the new apk? im waiting for it to be cooked.
ok i got the .zip file and it contains a framework folder and a META-INF folder. what should i do from here? TIA!!!
smanzor88 said:
so it root explorer i go to /system/framework and copy twframework-res.apk? and i upload that to the Uot kitchen?
Then how would you install it? do i just need to replace the old apk. with the new apk? im waiting for it to be cooked.
ok i got the .zip file and it contains a framework folder and a META-INF folder. what should i do from here? TIA!!!
Click to expand...
Click to collapse
Dont use the TWFramwork-res.apk. You should be using a file called framework-res.apk.
Should be the framework-res.apk in the system/framework/framewwork. When you go to the kitchen, choose your battery mod. If you do a custom design, make sure you click "generate preview" to make sure it's what you want. remember you can change the colors of the battery mod near the bottom.
You can upload the file on the File Upload tab. click system files, and upload it using the first option. I tried doing a boot animation on stock 2.2 but I couldn't get it to work. I just used the battery mod for stock. I also did NOT change any of the options on the file upload page, and it worked fine.
When done with editing the battery options and uploading file, click summary tab at far right. It will show the options you chose. If anything is highlighted red, there are errors.
When you submit it, it will give you your order number and tell you to go to the pickup page. When your order shows up on that page, just download the zip, and install it though ClockWorkMod. If you don't have CWM, you will need it, obviouosly. Find it on the forums if you dont have it. And if you're on 2.2 without CWM, then you will need to read about getting past 3e recovery so you can install zips through recovery. If you're not famiiliar with all this, it will be a little confusing at first.
Hope this helps.
jack man said:
Dont use the TWFramwork-res.apk. You should be using a file called framework-res.apk.
Should be the framework-res.apk in the system/framework/framewwork. When you go to the kitchen, choose your battery mod. If you do a custom design, make sure you click "generate preview" to make sure it's what you want. remember you can change the colors of the battery mod near the bottom.
You can upload the file on the File Upload tab. click system files, and upload it using the first option. I tried doing a boot animation on stock 2.2 but I couldn't get it to work. I just used the battery mod for stock. I also did NOT change any of the options on the file upload page, and it worked fine.
When done with editing the battery options and uploading file, click summary tab at far right. It will show the options you chose. If anything is highlighted red, there are errors.
When you submit it, it will give you your order number and tell you to go to the pickup page. When your order shows up on that page, just download the zip, and install it though ClockWorkMod. If you don't have CWM, you will need it, obviouosly. Find it on the forums if you dont have it.
Hope this helps.
Click to expand...
Click to collapse
does animated battery icons work? have you tried it?
smanzor88 said:
does animated battery icons work? have you tried it?
Click to expand...
Click to collapse
I havent tried all of the battery choices, but if it works with one, it should work with all of them.
IMPORTANT: remember to save a copy of your original framework-res.apk incase something goes wrong with the custome ones.
Updated uot
in the updated UOT kitchen it says it supports touchwiz based roms....should i upload framework.apk and twframework.apk?

[GUIDE] A n00b guide to porting themes :P (26/12/11)

Hello A little while ago I managed to learn how to theme totally from scratch. I knew nothing of anything before I started, but now I know how to port themes As I still see myself as a n00b there may be some weird things I've done, but at least I manage to create the themes This might not be the best way to theme, or the easiest, but it works
Overview PNGS
1) Getting the files
2) Getting the images
3) Port
4) Package and Sign
The only programs I've used is 7zip and autosigner download them and install 7zip and extract autosigner to a nice location for example your desktop
Getting the files
The first you need to do (after getting the programs) is to find the file you will mod (edit). This will mostly be the framework-res.apk because this decides most of looks of phone (for example the statusbar). Download the .zip of the rom your going to theme. Open it up (shouldn't require any programs, if does, use 7zip: either drag it onto the 7zip icon or right click and choose open with). Open system -> app and copy the framework-res.apk (or any other apk you would like to theme, for example the settings). Now paste it into an appropriate folder.
Getting the images
Now you need to find the images you want to use in your new theme. Find either an update.zip with a theme or an .apk with a theme chooser theme (if there is both a version for Froyo and GB, use the Froyo version as this will make it easier ) Open it up with 7zip (drag it into the 7zip icon). Now you can do either of two options:
1) You can take the whole drawable-mdpi folder and copy it out. You should probably don’t do this with a Themechooser apk, as they usually don’t have all icons in this folder, as they often lend a few from HDPI.
2) Take only the images you want and copy them to a folder. For example if you want the signal icons, copy the “stat_sys_signal_0” (-4 of course) and copy them out. If you want the statusbar background, copy “statusbar_background”. This way you can mix several themes, take the best of several themes and make your personal theme
When you’re done getting your icons, close the window.
Porting
Now open the Rom’s default framework-res.apk with 7-zip. If you’re going to port a whole theme, delete the /res/drawable-mdpi folder and copy in your own. If you’re going to port just a few icons, open the /res/drawable-mdpi folder and paste your icons. You might want to check if the icons have the same names in the different framework. For example the headset icons can be both “stat_sys_headset” and “stat_notify_headset”. Also if you port from a theme chooser theme, you will have to rename every single .png you port. This is really boring, but necessary. You need to remove the “framework_res” and the “android_systemui” from the beginning of all the names. So “framework_res_activity_title_bar.9.png” needs to be changed to “activity_title_bar.9.png”. Because this is so boring you better keep your renamed icons, so it’s easier to port it to another rom
This is kind of off-topic: my carrier lends network of another carrier. Therefor my phone is allways roaming. This puts a stupid “r” with my signal icons. To avoid this I allways take normal signal icons, copy them, and rename one of the two .pngs from for example “stat_sys_signal_1” to “stat_sys_r_signal_1”. This way I get rid of this stupid “r” and it will always show the normal icons
Packing and signing
Now the porting is done and the next job is to push the new framework to your phone. If you are familiar with adb, you can push it to system/framework on your phone. You don’t need to anything more with the apk before pushing it. Else you can create a flashable .zip for your theme. I’ve attached a .zip with update script (I haven’t created it. Just stole it from one of Elelinux’ add-ons ). Download the zip. Create a folder named system and a folder named framework. First drag the new, modded framework_res.apk to the framework folder, then drag the framework folder into the system folder, before you drag the system folder into the attached zip. If you use Clockworkmod recovery, you can just flash the zip right as it is, but if you use Amon_Ra or want it to be compatible with every recovery because you want to post it, you need to do something.
Unpack autosigner and launch the exe file inside. Drag the .zip into the new window and press sign. It will now appear a new file in the same folder as the file you wanted to sign. Its name is the same, but with “_signed” at the end. You can rename the file as you wish both before and after the signing.
XML Editing:
I decided to add a little section about XML editing as well I really don't know all about this myself, but i can tell how to set it up and some examples to what you can do Even though this may seem really complicated, it's not written in a completely different language, like Java in the smali files, so often it is possible to use logic to get what you want
Tools needed: APK Multi-tool. as well as Java, if you don't have it installed.
Overview:
1) Setting up
2) Examples
3) Finish
Settings up
Download APK Multi-tool and extract/ unzip it to wherever you want ( I have it on my desktop). Now you can place the apk you want to modify (usually the framework_res.apk) in the "Place_apk_for_modding" folder. Then you open the script. If you don't get an error, proceed to b), if you do get an error proceed to a)
a)) If you do get an error where it says something like "java not found" you need to correct the Java path (or install Java if you haven't done that, which you should have) . I had to do this to get it working. First open my computer and click disk C, or D if you have installed Java there. Open programfiles (or whatever it's called in your language) and scroll to the Java folder. Now open the folder there jdk folder or whatever you have there and open the "bin" folder. Look at the top of your window, where it says where on you're computer you are (like Windows: C to the left, and then Programfiles and so on). Right click it and click copy address. Mine is "C:\Program Files\Java\jdk1.7.0_01\bin . Now you can close the window.
Open "My computer" again. On the top bar below the navigationbar, click Sytemoptions (sorry, not really sure what it's called in Englsih, as my computer is Norwegian, please correct me if I'm wrong). On the left click the "advanced" link and in the popup that appears click "environment variables". Scroll down to the "path" variable and edit it. Paste the address you copied and click OK. You should now be able to proceed to b). If you still get an error, please tell me and I'll try to help
b) type 25 and press enter to select current project. Here you will see all the apks in the "Place_apk_for_modding" folder. Select the appropriate number (in this case probably 1) and press enter to continue. Then you hit 9 and enter to decompile it. I cannot really explain it, but it enables you to edit the xmls in the apk. If you try to edit them by using 7Zip, the xmls will be just messed up. When it's done decompiling, you have gotten a new folder in the "projects" folder. In this case it is probably named framework_res.apk. Minimize the script (DON'T CLOSE IT) and you're ready to edit the xmls
Examples on edits:
COMING SOON
Finish:
When you're done editing, open the script again (remember what I said about not closing it? ). Click 11, unless you are editing a non system apk. If you are editing the framework or settings or such, use 11. If you get an error now, you have probably done something wrong, try to see in the log what you have done wrong. Every time I've had an error, I've ended up in bootloop when I've flashed, so it is probably better to just start over. Another tip is to do one thing at the time. For example: you decompile, edit the notification color in pulldown, compile. Take the compiled apk, decompile edit another thing and so on, this makes it easier to not mess up and it also shows what you are doing wrong.
On the "Is this a system apk?" you should probably say y, as I said above. I also usually copy over the files I didn't edit, as this seems safer. Follow the instructions and you should be fine. When you're done and the script is done compiling, you will find a unsigned_**** (for example unsigned_framework-res.apk) in the "place_apk_for_modding" folder. This is your modified apk, and you can try to push it to ur device with an update.zip or adb, if you know how to use that
Well this was the end of my guide for now If there's anything which is unclear or you have other suggestions, feel free to post I've probably forgotten something
Finally after all my attemps to modify the android framework before i have do it correctly. I have changed a couple of things, the lock screen and battery icons so far. The framework I'm modifying is the one on Ele's Gingerbread and i wonder how to get the battery icon percentage 1 by 1 as i saw in some other themes. What i mean is that in the original framework there is only battery icons for 15, 20, 25 and so on, and if i push the 16, 17, 18, 19 they won't work. Is Theme Chooser the one on charge of this? how can i get that? some help please?
(Also tryed to theme a sense rom, but everything was messed up, i guess because of sense or maybe I did something wrong)
So thanks for your guide, really helpfull
Yeah, I've never tried to theme Sense so I don't know. It is probably possible to make icons for every %, but then you'll have to decompile using APK tool, and it is harder. I don't know how. If you want to try, you could try asking a question here
thanks
so funny=))
i'm tried
Great guide helped me a lo thx.
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
mDroidd said:
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
Click to expand...
Click to collapse
Hmm, ICS themes can be made really awesome, if you do some more advanced stuff. For example you want to remap the pulldownbar a bit, and change som text colors. But to do this you need to use a tool like APK multi-tool, and it is a bit more advanced. If you want to, I can create a new section where I show how to this
Thank you.
GUIDE UPDATED! Added a section about XML editing really quick, probably forgotten something and such, so just ask if there is something you don't understand This is for those who are getting used to the PNG editing and want to proceed to something slightly more advanced, for example you 7Tosta
Cheers
BTW: I should've reserved the 2nd post, this is getting messy
Edit: If there's anything specific you want me to add to the EXAMPLES section, tell me

[REQUEST] SystemUI mods...

Hey guys, I recently just got into the rooting and modding stuff here so excuse me, but im just a beginner and don't know much of what I'm doing. I've searched and searched and searched for the mods that i want, but with no luck, so I'm wondering if anyone had any free time to make some mods for me? I have a Sony xperia TL (Lt30at) and its rooted. I have CWM to flash zips so if i could get a zip made up to be able to do this, i would greatly appreciate it! okay, so this is what i was looking for. I wanted to change the statusbar background to a different image, which is the first attatchment i have. I would also like to make the chat bubbles that same image in the sms app. I also wanted to change the clock, battery, notification icons, all of that stuff on the statusbar to red instead of the stock colors, but keep all of the stock icons. Now, only two more things. If somebody could make, or point me in the direction where to find red soft keys for my phone, that would be awesome. I found some on here but none seemed to work on my phone, it just made systemui crash. Last, i wanted to change the sms background from white to the picture i have in my second attatchment. I have JB v4.1.2 with stock rom and whatnot. If anybody could do any of these things for me or point me in the direction of an already made one, i would greatly appreciate it!! Thank you very much.
I don't think you can change the nav bars background to a picture, just the color. You can however, change the softkeys. Check this thread for new ones. Or download one, make your own images, and just replace them in the zip with yours using winrar, 7zip, or even unzip and re-zip on your phone with root explorer.
As for the background image on sms... Use winrar, 7zip, or whatever and unpack the apk. Navigate to the "res" (meaning resources) folder, then into the "drawable-xhdpi" (other drawables are for other phone resolutions, we use xhdpi always). In that folder, see if you can find a background image. If not, then its probably not an image but a color code thats inside an xml file. Other than that, use another sms app such as GoSMS. Which allows custom themes/backgrounds.
Info about zips from the link above...
The SoftKey threads zips are ones that modify apk's without actually replacing them. It does it that way in case you have mods on an apk that you don't want to lose just because you want to change an image.
When you unzip one you'll normally see a few folders but the one you'll need to focus on is the "vrtheme" folder. Inside vrtheme there is a "system" folder with two folders "app" and "framework". Inside "app" is a folder "SystemUI.apk", which is the file to be modified. Inside that folder will be the layout of the original apk, excluding folders that your not modifying. If u don't understand that, try unpacking your original SystemUI.apk and you will see a ton of folder and files. But since we only need to replace specific images, only those folders are reconstructed in the SystemUI.apk folder as... "SystemUI.apk/res/drawable-xhdpi/"
If this confused you then you might have to wait until someone decides to drop what they're doing for everyone else, and help you. Which is as about as possible as you unlocking our bootloader. So ill try to help, but I'm still learning here as well. Luckily I've been a PC software programmer for over 15 years so the transition isn't as bad for me.
- Xperia TL, XperimenT v2.6 ~ via XDA App
http://forum.xda-developers.com/showthread.php?t=1433053
This might help also... http://rootzwiki.com/topic/17417-updated-solution-in-op-navigation-bar-background-image/
Ill attempt it in a minute and let you know my results. If it works, ill upload you a flashable zip.
- Xperia TL, XperimenT v2.6 ~ via XDA App
First, about the status bar, I haven't tried yet so I can't help
Second, about the soft keys, it's quite easy, decompile systemui (remember installing framework-res.apk and SemcGenericUxpRes.apk in apktool), go to res/drawable-xhdpi, edit the nav buttons (open in PTS and change the color to red ), then recompile the SystemUI
about the background image of sms, it use the background semc_bg_bright_tile.png in res/drawable-xhdpi of SemcGenericUxpRes.apk, but if you change this image, other apps using this background will be affected like SemcPhone T___T.
About nav background, you can edit the navigationbar.xml in SystemUI , you can search for Transparent Nav bar in this section, instead of giving the hex color, you can change it to the path of the image like /drawable-xhdpi/background.png (of course you have copied the file into editing folder). You should know some about xml editing . This is just some quick ideas, I'm quite busy so I can't help you out , good luck
redincali said:
I don't think you can change the nav bars background to a picture, just the color. You can however, change the softkeys. Check this thread for new ones. Or download one, make your own images, and just replace them in the zip with yours using winrar, 7zip, or even unzip and re-zip on your phone with root explorer.
As for the background image on sms... Use winrar, 7zip, or whatever and unpack the apk. Navigate to the "res" (meaning resources) folder, then into the "drawable-xhdpi" (other drawables are for other phone resolutions, we use xhdpi always). In that folder, see if you can find a background image. If not, then its probably not an image but a color code thats inside an xml file. Other than that, use another sms app such as GoSMS. Which allows custom themes/backgrounds.
Info about zips from the link above...
The SoftKey threads zips are ones that modify apk's without actually replacing them. It does it that way in case you have mods on an apk that you don't want to lose just because you want to change an image.
When you unzip one you'll normally see a few folders but the one you'll need to focus on is the "vrtheme" folder. Inside vrtheme there is a "system" folder with two folders "app" and "framework". Inside "app" is a folder "SystemUI.apk", which is the file to be modified. Inside that folder will be the layout of the original apk, excluding folders that your not modifying. If u don't understand that, try unpacking your original SystemUI.apk and you will see a ton of folder and files. But since we only need to replace specific images, only those folders are reconstructed in the SystemUI.apk folder as... "SystemUI.apk/res/drawable-xhdpi/"
If this confused you then you might have to wait until someone decides to drop what they're doing for everyone else, and help you. Which is as about as possible as you unlocking our bootloader. So ill try to help, but I'm still learning here as well. Luckily I've been a PC software programmer for over 15 years so the transition isn't as bad for me.
- Xperia TL, XperimenT v2.6 ~ via XDA App
Click to expand...
Click to collapse
Thank you very much! tons of help!
dully79 said:
http://forum.xda-developers.com/showthread.php?t=1433053
Click to expand...
Click to collapse
thanks for the reply!
redincali said:
This might help also... http://rootzwiki.com/topic/17417-updated-solution-in-op-navigation-bar-background-image/
Ill attempt it in a minute and let you know my results. If it works, ill upload you a flashable zip.
- Xperia TL, XperimenT v2.6 ~ via XDA App
Click to expand...
Click to collapse
Did you work anything out for that? I've been trying to do it myself but i'm not all that familiar with what to do.
blackcat510 said:
First, about the status bar, I haven't tried yet so I can't help
Second, about the soft keys, it's quite easy, decompile systemui (remember installing framework-res.apk and SemcGenericUxpRes.apk in apktool), go to res/drawable-xhdpi, edit the nav buttons (open in PTS and change the color to red ), then recompile the SystemUI
about the background image of sms, it use the background semc_bg_bright_tile.png in res/drawable-xhdpi of SemcGenericUxpRes.apk, but if you change this image, other apps using this background will be affected like SemcPhone T___T.
About nav background, you can edit the navigationbar.xml in SystemUI , you can search for Transparent Nav bar in this section, instead of giving the hex color, you can change it to the path of the image like /drawable-xhdpi/background.png (of course you have copied the file into editing folder). You should know some about xml editing . This is just some quick ideas, I'm quite busy so I can't help you out , good luck
Click to expand...
Click to collapse
Ive been trying to do this, but i can't get my framework onto my computer. When i copy it to my sd card using root explorer it just doesnt show up when im looking for it on my pc..frustrating...
I forgot to add this:
http://forum.xda-developers.com/showpost.php?p=40026013&postcount=20

Categories

Resources