[Streak 5 Themes and Apps] Krad:
Here are quick and easy directions on how to change the clock color or the services.odex....

some background information....

-Most guides on the internet are based upon a loaded up services.jar located in the system/framework folder... Our meat and potatos is in the services.odex file instead.

- Some things to keep in mind....

- Our color change is not on line 46 but on line 60.

- BOOTCLASSPATH is huge.. consisting of multiple JAR files that are nicely listed in the init.rc file on root.

Prep-

-You need java JDK installed, which gets prompted when you load Android SDK.

-You need android SDK, especially ADB

-You need D3xopt.zip consisting of dexopt-wrapper

-You need root on your streak.

-Make sure development is turned on under applications in settings

-You need to download and install smali and baksmali

Steps -

Part #1

-copy dexopt-wrapper to /system/bin directory on phone (many ways to do this)

-Open ADB Shell on your pc and type the following commands

# su

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

# cd /system/bin

# busybox cp /sdcard/dexopt-wrapper

# busybox chmod 755 dexopt-wrapper

Part #2

- We want to grab the whole framework folder on to our pc

# adb pull /system/framework

files will be saved in same directory as ADB.. which is ok

Part #3 - Baksmali and Smali

-Download these at http://code.google.com/p/smali/downloads/list

-save these files in the same directory as your ADB

-remove the version number of the files to smali.jar and baksmali.jar to make things easier.

Part #4 Baksmali

-In an administrator's cmd prompt type the following

-java -Xmx512m -jar baksmali.jar -x services.odex -o services.out

- you should now see a new folder called services.out

-navigate to \services.out\com\android\server\status\StatusBarIcon.smali

-open in notepad and go to .line 60

-alter the next line to the color you want, i chose const v6, -0x1 for white (make sure if you want white... your line should look identical.. you need to remove hval from line or you will get red!)

-save file

Part #5 Smali

-in same command prompt type the following

java -Xmx512M -jar smali.jar services.out -o classes.dex

-You should now have a classes.dex file without error

Part #6

-with winrar or 7zip, open the services.jar archive

-drag the classes.dex file into the jar file and hit save

-copy services.jar to your sd card and type the following commands

# adb shell

# su

# cd /sdcard

# dexopt-wrapper services.jar new.odex [BOOTCLASSPATH]

( The BOOTCLASSPATH is a large string of JAR files, my example is this

/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/kafdex.jar

or # dexopt-wrapper services.jar new.odex /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/kafdex.jar (no return between odex and /system)

)

If that goes well you should have a new.odex file

next command is for the new.odex to inherent the security key of the current services.odex

# busybox dd if=/system/framework/services.odex of=new.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

-now we copy and rename the file, sync and reboot

# cd /system/framework

# busybox cp /sdcard/new.odex services.odex

# busybox chmod 644 services.odex

# sync

# reboot

DONE!

-I have hit a roadblock at pretty much every step, but i pushed through. Hopefully my hints and extra details save you time and trouble. I am sure when I want to do this again in 2 months, i won't remember, but this guide will be there for me to look up again.

let me know if you have any questions or if i need to fix/clean up anything.

Addtion----- Date font color

Open up the StatusBarService.smali file with your text editor and look for this line

iget-object v7, p0, Lcom/android/server/status/StatusBarService;->mDateView:Lcom/android/server/status/DateView;

const/4 v8, 0x4

Below the line you found add the following line

invoke-virtual {v7, v8}, Lcom/android/server/status/DateView;->setVisibility(I)V

const v8, -0x1

This will make your date white in the notification bar when it is exposed when you pull the notification bar down