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


Last Updated: 2011-12-31 06:27:10
  1. milrtime83

    milrtime83 Well-Known Member

    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 (Text):
    1. adb remount
    2. adb pull /system/framework/services.jar services.jar
    3. 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 (Text):
    1. 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 (Text):
    1. Available options:
    2.         clock - ARGB color for the clock text
    3.         date - ARGB color for the date
    4.         ongoing - ARGB color for "Ongoing" Label
    5.         latest - ARGB color for "Notifications" Label
    6.         none - ARGB color for "No Notifications" Label
    7.         clear - ARGB color for text on Clear Notifications button
    8.         network - ARGB color for network name (T-Mobile usually)
    9.         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 (Text):
    1. status_bar_latest_event_content.xml
    2. status_bar_expanded.xml
    3. 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 (Text):
    1. adb remount
    2. adb push services.jar /system/framework/
    3. adb push framework-res.apk /system/framework/framework-res.apk
    4. 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.

    Advertisement
  2. milrtime83

    milrtime83 Well-Known Member

    Here is my notification and pull down bar.

    [​IMG]
  3. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    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 (Text):
    1. 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?
  4. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    BTW, I think this should be a sticky as well
  5. milrtime83

    milrtime83 Well-Known Member

    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.

    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.
  6. shrink57

    shrink57 Well-Known Member

    I had good results using method A using the rom.tgz file (I was just too lazy to use the other method). Here is a sample:

    [​IMG]
  7. ccousinsjr

    ccousinsjr Well-Known Member

    Thankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyou
  8. Sportster

    Sportster Well-Known Member

    This post confirms to me that you need programming knowledge to mess with this....hex editor?!?
  9. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    I figured out what was going on - I was using a different Hex Editor, frhed, but it was being stupid for some odd reason....

    Thanks again for the post.
  10. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    One question - using the same color info, I get 2 different colors, similar to what milrtime83 is showing.

    Any idea how to offset this so that it is not that badly off?

    see attached pics:

    Ultimate 5.5 color changed main screen post install.jpg

    The color of the time is the color I want everywhere

    Ultimate 5.5 color changed notification screen post install.jpg

    Obviously, the purplish (lavender?) color is what I don't want...
  11. milrtime83

    milrtime83 Well-Known Member

    What hex code are you using? I used 2 different ones, mine are intentionally different.
  12. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    The same all the way through.

    9EB4FF (RGB 158:180:255)
  13. milrtime83

    milrtime83 Well-Known Member

    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 (Text):
    1. 08 00 00 1C FF B4 9E FF
    Playing around with the color calculator it looks like you flipped the Red and Green.

    Attached Files:

    johnlgalt likes this.
  14. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    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.
  15. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    I did reverse them - because I didn't reverse them like I was supposed to....
  16. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    BTW - the very last command - any particular reason why you use
    Code (Text):
    1. adb shell reboot
    instead of just
    Code (Text):
    1. 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.
  17. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    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
  18. milrtime83

    milrtime83 Well-Known Member

    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.

    That's good to know as I haven't changed Roms since I changed my colors.
  19. johnlgalt

    johnlgalt Antidisestablishmentarian VIP Member

    Yeah, writing a batch file now to make it easier to always upload the files I want to upload to my phone at the drop of a hat.

    Thanks again!

    Batch file success. now, it is a one stop shop to get that color into any ROM I use....
  20. Hi, Do you mind if I can get these files from you? So my pull down bar can look just like this.
  21. milrtime83

    milrtime83 Well-Known Member

    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.
  22. Ok thank you but it said the file is unavilable
  23. milrtime83

    milrtime83 Well-Known Member

    I haven't used UD, but it looks like the files are in the same location so it should just work. Can you post a screenshot? Is it just the icons? or is it the whole framework-res.apk file that isn't working?

Share This Page