[Fascinate Themes and Apps] nitsuj17:
3.12.11

Wait...So not everything I have to change in a theme is an image??? :confused:

III. Editing the Framework(s) XML for text and progress bar *color* changes

*note, some edits can be made in multiple ways, ie both through service.jar and framework edits*

A.

Why would I want to screw around with xml files at all? Looks complicated!

-I'll admit I put off working with the xml a lot longer than I should have when I got into this stuff. I think i released 2/3 themes without any edits whatsoever...and frankly theres no comparison between a theme that has been properly edited, and a theme that is just using the stock settings. This is especially true in touchwiz, as samsung went with that absolutely hideous aqua color as its secondary text.

B.

How To Decompile Frameworks to Make Edits (APKM/APKTOOL).

*3.12.11*

1. First things first: if you havent downloaded both APKMANAGER and APKTOOL...do so now, ya really need both....also, apktool 1.3.2 will not work right for everything (you will need it for working with gmail though if you theme that). Here is apktoo1 1.3.1 (replace apktool.jar in "other" folder in apkm).

-For apkmanager you can really unzip/set it up anywhere (I keep it on the desktop, and I have a 1.3.1 and 1.3.2 version set up)

-For apktool unzip "windows installer" and place apktool.jar in your /tools folder in the sdk

-by default an aosp framework-res.apk is installed in your directory...this is fine for *most* edits...however to work with certain apks that call on the system (contacts, dialer, etc)..this is a problem...so once everything is installed...we will want to then install our twframework-res.apk and framework-res.apk from a stock deodexed rom.

cd your tools folder
apktool if framework-res.apk
apktool if twframework-res.apk

***Tbc

IV. Ya know, I'd really like to have accurate battery and reboot options in my theme!

*tbc*

V. Working with the service.jar

A.

Why would I want to mod the services.jar?

-Well theres a few reasons: remapping the status bar images and removing the status bar clock are big....and changing carrier/date/notifications title colors

B.

How would i do it?

1. Well you can *cheat* and use our friend apkmanager ;) *2.25.11*

a. rename the service.jar to service.apk

b. insert the renamed file into your "for modding" folder in apkmanager

c. open the script and select 9 to decompile

d. navigate to your "projects" folder and find the file to edit (again I use notepad ++)

e. when done, reopen the apkm script and compile with 11 (if any errors come up, you did something wrong)

-yes to system.apk, no to copy over

f. in your "for modding" folder you now have a file named "unsignedservice.apk"

g. rename this to service.jar and you are gtg :)

2. you can smali/backsmali it (my prefered method for dealing with classes.dex) *2.25.11*

***Thatdudebutch put together a zip with instructions for using smali (and the commands) as well as the most up to date backsmali/smali (download an unzip to see example..ill post another example below)

a. How to backsmali (decompile) the service.jar

*(i rename smali-1.2.6.jar and backsmali-1.2.6.jar to just smali.jar and backsmali.jar for simplicity in terminal use):

-use 7zip/winzip to extract the classes.dex file from the .jar...and extract it to the folder where smali/backsmali is (again i assume you would want to put it in your sdk-tools folder)

-cd your sdk-tools folder (or wherever smali/backsmali is located, but ideally thats where you put it) then:

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

-you now will have created a "classes" folder inside your sdk-tools (might as well leave your terminal open and set to your tools folder for the later steps)

-navigate inside this folder to whatever file you want to edit (i use notepad ++ to edit)

-once those edits and saved and done:

b. How to smali (compile)

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

-you now have a new classes.dex file

-use 7zip to open up your service.jar and delete the old classes.dex in there and copy the new one in. close 7zip

-you now have a new service.jar....insert it into your theme and you *should* be good to go (assuming something didnt go wrong :eek:)

3. if you just want to change colors (not remove clock or anything..or for that matter change clock color on touchwiz {sammy fail on clock location}), then you can use the super awesome clockchanger program I mentioned above.

*info originally from this wonderful post on androidforums)

*2.22.11*

1. locate the services.jar you are planning to edit (pull with adb from your phone or rip out of a rom)

2. make a folder called framework and move services.jar into that folder

3. create a zip file of the framework folder and call it theme.zip

4. move your "theme.zip" file into your android sdk tools folder

5. open up a terminal (cmd/powershell/whatever)

6. navigate to your tools directory

6a.*example*

cd c:\android-sdk-windows\tools

7. what needs to be entered to edit the service.jar: (plus whatever you want to edit) (aarrggbb color code)

java -Xmx512M -jar colorChangev3.jar theme.zip

7a. example of changing date color, carrier color, notificatons, etc

java -Xmx512M -jar colorChangev3.jar theme.zip date=FF000000 ongoing=FF00000000 network=FF000000 latest=FF000000 none=FF000000 roam=FF000000 clear=FF000000

8. hit enter and let program run (see below)

9. you will now have a "theme-new.zip" file in your tools folder

10. use 7zip to extract the service.jar from it and and insert it into your theme