[Miscellaneous Android Development] rushank2112:
Tutorial for changing the font color of Clock and Notifications in Statusbar:

Getting Started:

First of all your device needs to be rooted and you need to have the Android SDK installed on your pc. You can Google how to do these things. Now we are going to fetch the necessary file to tweak the UI. We do this by using adb:

adb pull /system/framework/framework-res.apk framework-res.apk

This is the file that contains the UI information.

Open it using 7zip (WinRAR might work too, but I only tested with 7zip) and navigate to the res folder.

Look for a drawable-mdpi, drawable-ldpi or drawable-hdpi folder containing a large number of PNG files. Ldpi, mdpi and hdpi refers to the pixel density of the screen used on your device which explains why you can find anyone of these folders.

Open the folder and replace status_bar_background.png, statusbar_background.9.png, status_bar_close_on.9.png, status_bar_header_background.9.png and status_bar_item_app_background_normal.9.png by your own images.

It's very important you add them to the framework-res.apk archive (by dragging into it or using the menu) and that you don't extract the archive and repack it.

Changing the font color of the clock:

You may wrongly think this is it, but we still have to change the fontcolor of the clock and notifications. This is were it gets a little bit more tricky. We will start by changing the clock's fontcolor. We need another archive: services.jar.

adb pull /system/framework/services.jar services.jar

Open services.jar (using 7zip again) and extract classes.dex (only). Get smali.jar and baksmali.jar from Google Code (latest version when writing this guide 1.2.4). Execute the following command (CTRL+R, type 'cmd' for Windows / Linux users are smart enough to know their terminals):

java -Xmx512M -jar baksmali.jar -o classout classes.dex

If you get an error, make sure you are executing this command in the correct directory (should contain services.jar, baksmali.jar and smali.jar).

This will create a directory named classout in your current working directory. Open it and go to com/android/server/status and open (using a text editor) StatusBarIcon.smali.

Look for this fragment:

.line 46

const/high16 v6, -0x100

and change it into

.line 46

const v6, -0x1

Now return to the folder containing services.jar and classes.dex. Rename classes.dex as classes.dex.backup just to be safe and have a backup. Recreate the dexfile:

java -Xmx512M -jar smali.jar classout -o classes.dex

Add the new classes.dex file to the services.jar (again crucial that you add it instead of creating a new archive).

Changing the font color of the Notifications:

Ah the grand finale: our final modification will involve a hex editor! You will also need AXMLPrinter2.jar, Google it and you will find it easily. Open your (edited) framework-res.apk and extract status_bar.xml from res/layout/. Now convert it using AXMLPrinter2:

java -jar AXMLPrinter2.jar status_bar.xml >> status_bar.txt

(Note: You can use any color in the notification and clock, for that you have to enter the color in Hexadecimal format. You can get hexadecimal values of different colors from here "Color picker" --->> http://www.colorpicker.com/

Also keep one thing in mind that when you change the color in hexeditor, enter it in reverse order. For example if we consider 000000FF, FF wont change and the remaining six digits are for color in hexadecimal format. But keep one thing in mind that Enter it in reverse order, so if you want RED it hexadecimal values is FC0400. You need to enter as following 0040CFFF, here last two digits FF wont change and previous six must be entered in reverse form.)

Now you can open status_bar.txt and verify that android:textColor="#FF000000" and android:textColor="?android:01010039" can be found. Open status_bar.xml using your hex editor and search for 0800001C (hexadecimal of course). Change the following 000000FF into 0040CFFF (RED) and repeat this action. Now search for 39000101 and change the preceding byte (2 hexadecimal number) into 1C and change 39000101 into 0040CFFF. Save and close your hex editor. Now you can use AXMLPrinter2 to verify your changes. Add the edited status_bar.xml to framework-res.apk again.

Putting it all in place

Now you have your edited framework-res.apk and services.jar. Reupload them to your device using adb:

adb push services.jar /system/framework/services.jar

adb push framework-res.apk /system/framework/framework-res.apk

Guys please click on Thanks, if you like my Post.