• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Guide] Change notification/clock/pull down text colors

milrtime83

Android Enthusiast
Nov 4, 2009
667
74
EDIT: This guide is old and only works up to Android 2.1. [Solved!] Changing Notification Application Text Color - FroYo XML Editing - xda-developers has some Froyo (2.2) info but I haven't tried it so I can't verify if it works.





There are a few ways to change the color of the clock, notification bar, and pull down menu.

Standard disclaimer: I take no responsibility for anything you do or screw up on your phone.

AdamZ has updated method A (now called Droid Customizer) and it now changes all notification colors. It will overwrite any other changes you have previously made to the services.jar and framework-res.apk files so the manual method is still useful for people who have already made changes and don't want to lose them.


A - [Release] Droid Customizer v1.0 *Updated 3/02* (edit 4/7/10: fixed this link)
If you are familiar with the installation process of the smoked glass themes then this is an option. Has 13 color options as well as 12 font options that you can use.

B - Manually (sorta) change everything. I did it this way because AdamZ's method in A wasn't out yet and I think the way described in method A might overwrite other changes you have made (not sure on that though)

This will probably look long with a lot of steps but it really isn't too complicated.

Prerequisits
Rooted
Android sdk installed and some familiarity with adb
adb info: Start Here | Root Your Droid


1 - Plug in your phone and don't mount the sd card.

2 - On your computer open a command prompt and navigate to the android sdk tools folder.

3 - Type these commands:
Code:
adb remount
adb pull /system/framework/services.jar services.jar
adb pull /system/framework/framework-res.apk framework-res.apk
4 - go to colorChange.jar v3.1 - Modify Cyan template text colors [ALL VERSIONS] 11/29 - xda-developers and download colorchangev3.jar-remove-zip.zip

5 - remove the ending so it is just colorchangev3.jar and put it in the tools folder where the android sdk is installed. Mine is here: C:\Downloads\Android\android-sdk-windows\tools

6 - make a folder called framework and move services.jar into that folder
7 - create a zip file of the framework folder and call it theme.zip

File structure inside theme.zip: /framework/services.jar
Need this folder structure or you will get errors with the following command.

8 - type this command in the command prompt:

Code:
java -Xmx512M -jar colorChangev3.jar theme.zip clock=FF0000FF date=FF0000FF
This will change the clock, and date to blue. You can add as many or few options as you want depending on what you want to change. Use the same format: option=XXXXXXXX for each.
Code:
Available options:
        clock - ARGB color for the clock text
        date - ARGB color for the date
        ongoing - ARGB color for "Ongoing" Label
        latest - ARGB color for "Notifications" Label
        none - ARGB color for "No Notifications" Label
        clear - ARGB color for text on Clear Notifications button
        network - ARGB color for network name (T-Mobile usually)
        roam - Not sure where this color shows up, possibly network name when roaming
The RGB Color Calculator / Web Page Color Choosing Tool / HTML Color Code Generator can help with finding the RGB color value that you want. The A (first 2 characters) is transparency, then 2 characters for red, 2 for green, and 2 for blue.

The java command can take a bit to complete. If it says it can't find services.jar you have the folder structure wrong in the zip file.

9 - When it is done it will create a theme-new.zip, open the zip file and take the new services.jar file out.

Steps 4-9 and 10-13 are independent. You can do either set or both.
4-9 can change the clock, date, "Verizon Wireless", "ongoing", clock, "notifications" and possibly more
10-13 will change the text for the applications and notifications in the pull down menu (battery, weather, and locale in my picture below)

10 - open the framework-res.apk file with your preferred zip program (7zip or winrar are nice because you can just drag and drop files in and out of the zips) and go to the \res\layout folder

11 - Pull out these files:
Code:
status_bar_latest_event_content.xml
status_bar_expanded.xml
status_bar.xml
12 - Open each .xml file in a hex editor (I use HxD hex editor) search for 08 00 00 1C and then modify the 4 following octets accordingly B,G,R,alpha (ex. 08 00 00 1C FF 00 00 FF is a blue color with the 2nd FF specifying no transparency) Make sure you get them all as some have more than one instance of 08 00 00 1C.

note: The order is different in the xml file. In the services file it was Alpha, Red, Green, Blue. In the .xml files it is Blue, Green, Red, Alpha. Just make sure your numbers are in the correct spot.

13 - Put the 3 .xml files back into the framework-res.zip file and overwrite the existing ones if it asks.

14 - go back to the command prompt and type the following commands
If you didn't do steps 4-9 then skip the adb push services.jar command and same for 10-13, skip the adb push framework-res.apk command
Code:
adb remount
adb push services.jar /system/framework/
adb push framework-res.apk /system/framework/framework-res.apk
adb shell reboot
Note: Your phone will take longer to boot the first time after you change the services.jar file. After that it should be back to normal.

None of this is my direct work. I just found all of the pieces in different places and put them together. Thanks to kevdog and xeudoxus at Alldroid for the xml editing information and Ohsaka at xda for colorchangerv3.jar and that part of the guide.
 
Here is my notification and pull down bar.

8yxg5s.jpg
 
Upvote 0
I had a couple of errors.

First of all, if I include ticker, then it complains about framework not being found - even though it is obviously right there.

Second, only one of the XML files had
Code:
08 00 00 1C
in it - the other two did not. I suppose it could be because I am using a custom ROM....

So, obviously some of those colors have been changed to something else - b/c here is a screen shot (that baby blue I got is what I want, and I know about the order being backward in the .XML - but it cannot replace what it cannot find)

Theming attempt #1.jpg

Any idea at what offset I should be looking, or do I have to guess at it / contact the dev?
 
Upvote 0
I had a couple of errors.

First of all, if I include ticker, then it complains about framework not being found - even though it is obviously right there.

The ticker option is redundant. I just tried it and it just changes the values in status_bar.xml that I talk about below. I removed it from the guide for simplicity.

Second, only one of the XML files had
Code:
08 00 00 1C
in it - the other two did not. I suppose it could be because I am using a custom ROM....

So, obviously some of those colors have been changed to something else - b/c here is a screen shot (that baby blue I got is what I want, and I know about the order being backward in the .XML - but it cannot replace what it cannot find)

Any idea at what offset I should be looking, or do I have to guess at it / contact the dev?

Not sure, i've got 3 in status_bar.xml, 1 in expanded.xml and 3 in the latest_event_content.xml
I'm running sholes 2.0.5. The 08 00 00 1C should still be there because those values don't get changed, it is the 4 values right after that get changed.
 
Upvote 0
Thankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyou
 
Upvote 0
I think you mixed up the hex code order in the .xml files. In the attached image I use your hex code and got the correct color everywhere(ignore the dark blue, I just didn't change everything.) The ones that are purple in your screenshot are in the .xml files. This is the order I used
Code:
08 00 00 1C FF B4 9E FF
Playing around with the color calculator it looks like you flipped the Red and Green.
 

Attachments

  • CAP201003060940.jpg
    CAP201003060940.jpg
    54.7 KB · Views: 185
  • Like
Reactions: johnlgalt
Upvote 0
Lmfao - I might have, at that. Installing a new ROM so I'll do it all over again.

I suppose there should be an easy way to write a batch file to do this automatically, meaning set up a way to allow the user to just input the color code, select which options to include, and then let the batch file actually run the command (for the changejar3 method).

I'll look into it.
 
Upvote 0
BTW - the very last command - any particular reason why you use
Code:
adb shell reboot
instead of just
Code:
adb reboot
?

Also, now that I have the files already modified on my system, I am testing to see whether I can just upload them again to a new ROM when I feel like....

Will report back.

I'm not entirely sure, adb shell reboot is the first way I saw it and have always used that. As far as I can tell, "shell reboot" basically runs the reboot command from the terminal on the phone and plain "reboot" is the program just telling the phone to reboot. Functionally I'm not sure if there is any difference.

Lol - well, I uploaded the files to a brand new install of UltimateDROID 6.3 and et voila! - I have my colors back.

Thanks again, milrtime! I owe you a pitcher, now, don't I? :p

That's good to know as I haven't changed Roms since I changed my colors.
 
Upvote 0
Hi, Do you mind if I can get these files from you? So my pull down bar can look just like this.

Here is a metamorph theme that should include everything: MEGAUPLOAD - milrtime83.zip

I haven't actually installed it using metamorph yet. I've just been using it to keep everything backed up in case I need to wipe the phone and start over. Let me know if something doesn't work or isn't included.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones