[Omnia II Android Development] ashburn:
How To Use Smali Dex Compile / DeCompile For classes.dex and Context Editor:

[Changing Of Font Color Time On You Status Bar!]

Download This Files: [Smali Dex]

Normally I will place all my files to C:\Android\ for a new project. But you can choose anywhere you like that is at your own convenience.

1. You will need classes.dex from Service.jar - Extract it out using 7-Zip or WinRAR.

2. Once You have already done extracting classes.dex out put it in you project folder.

3. You can start following the steps below.

So lets start. Lets say i have already extracted all the file i've needed and placed it to my project folder here is what you need to do. Run CMD.

Type in cd C:\Android\ or where ever you project folder is located it. It should show you something like this once you've pressed ENTER.

[attachment=69743:1.png]

Okay lets move one, now here is what you need to check be sure that classes.dex is located inside the folder in order for you to start de-compiling the dex files.

Now Type in java -Xmx512M -jar baksmali.jar -o classout/ classes.dex

After pressing enter you should now get a classout folder inside you project folder.

[attachment=69746:2.png]

Now double click on the classout folder. [Do not close the CMD it will save you alot of time.] Inside the folder contains alot of files so lets cut it short with a photo:

Locate the file here: classout\com\android\server\status

Item will be: StatusBarIcon.smali

[attachment=69748:3.png]

Okay once you see the StatusBarIcon.smali we will now start using the Context Editor that is given on the first Post.

Right Click on StatusBarIcon.smali open with Context Editor or You could run context editor and just drag StatusBarIcon.smali into it.

You should get something like this:

[attachment=69752:4.png]

Now on Context Editor press CTRL+F and type color and press enter.

You should all be getting this paragraph that i've highlighted:

[attachment=69754:5.png]

Follow the following lines stated below: From original to edited.

Text Original:

.line 46
const/high16 v6, -0x100

invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V

Text Edited:

.line 46
const v6, -0x1

invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V

Once you are done, Save the file & close context editor. Go to your Project folder and rename your classes.dex to classes-old.dex You need to do this just incase you mess up some stuffs. After you have done with this go to cmd and type in java -Xmx512M -jar smali.jar classout/ -o classes.dex Press enter and now you'll get the new classes.dex

Here's what you need to do open service.jar with 7-Zip and drag the new classes.dex inside and save. You're done changing your status bar Time into white color. The next tutorial is changing your status bar text to white color [The Tricky Part].

To store the new service.jar you have compiled you can use ADB USB or o2bupdate.tar.gz your own convenience [I'll touch on a how to soon]

If your using o2bupdate.tar.gz place it in My Storage/ where haret is at and run haret. Let the o2bupdate do it stuffs & You'll get a white color time font something like this: [attachment=69760:tada.png]

Photo's Will Be Updated Soon.