• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [GUIDE] !!THEME GUIDE FOR NOOBS!! Adding lots more!

!ULTIMATE THEME GUIDE!

:Requirements:
-editRA or Notepad++ (i suggest EditRA)
-smali+baksmali.jar files in a folder
-PNG editor (photoshop,adobe fireworks,gimp,etc)
-apk manager/apk multi-tool
-0riginal UNTHEMED framework-res/SystemUI/LGE-res/etc files CANNOT BE THEMED!

:CHANGING PNG FILES:

To change or port png images into YOUR framework.simply follow these instructions-

1.Use apk manager/apk tool to EXTRACT the apk.

2.open the projects folder and navigate to the res folder. (png's located in the "drawable" folders)

3.pick the images you would like to change (ONLY REGULAR PNG's NOT .9's)

4.NOW,either swap it with the icon you would like to replace OR you can color/modify the existing icons.

5.after doing all your modifications,go back into apk tool/apk multi tool and select optimize images.

6.once its done optimizing the png's simply compress the apk and the finished product will be in the "place here for modding" folder.

7.if you chose to sign it,it will be called "signedXXXX.apk" and if you DIDNT sign it (system apps) it will be called (unsignedXXXX.apk)..the xxxx's represents the name of the apk u modded.

8.To copy the file to the phone using root explorer,simply replace the existing .apk with your modded one,make sure the permissions for the modded apk get changed to match the original file..(check permissions BEFORE you replace)

Or make a flashable zip file.(will include instructions for flashable zip later.



:CHANGING .9.PNG'S AND EDITING XML:

1.Decompile the selected apk.(framework-res or whatever)

2.Navigate to the res folder if your trying to edit a .9.png

3.open the .9 up in your png-editor of choice.

4.NOTICE THE BLACK GUIDELINES AROUND THE ICON AND DO NOT TAMPER WITH OR ALTER THEM IN ANY WAY!OR U WILL FAIL! lol (these black lines are to represent how far and to where the icon stretches)

5.you can edit the png to your liking as long as the guidelines are untampered with.

6.once you change the .9's to your liking,OPTIMIZE THE PNG's and COMPILE.

1a.to modify xml,same process all around except these next steps.

2a.open the xml with editRA or Notepad++ and make the selected modifications.link below for practice.

3a.after modifying the xml you can just compile (no need to optimize pngs if none were edited)

4a.now flash/push/copy to your phone.(if copying with root explorer,check permissions again)


:HOW TO CHANGE THE STATUS BAR CLOCK COLOR:

1.First take your Services.jar from your current rom.Open the services.jar using WinRAR or 7zip and extract the classes.dex

2.Now drop the classes.dex into the smali/baksmali folder.

3.Open the command prompt in the directory of smali/baksmali by holding shift and right clicking,then select open command prompt here.

4.now paste this command in the command prompt and hit enter: java -jar baksmali-1.1.jar -o classout/ classes.dex

5.MAKE SURE THE 2 SMALI.JARS are named "baksmali-1.1" and "smali-1.1" or the command wont work.

6.Now browse to /classout/com/android/server/status/ in the smali folder you were in and open the file "StatusBarIcon.smali" with EditRA or other xml editor.

7.navigate to LINE 60 and you will see this "const/high16 v6, -0x100" (this is the stock black clock,to change to white change this line to "const v6, -0x1" and save it.you are finished editing.

8.If you want a different color continue on.

9.Get the color code you want using some kind of png program (like the color white is #FFFFFF)
so we now need to convert the color you want to the 1s compliment binary with this chart below

hex1convertor.png


10.now that you have color you want converted simply change the "const/high16 v6, -0x100"
to "const v6, -0x(XXXXXX)" ((XXXXXX) should be the color you converted-6 characters long)

:FOR EXAMPLE:

you start with 8fce00...you take each character and convert it using the table. 8 becomes 7, f becomes 0, c becomes 3, e becomes 1, 0 becomes f and finally 0 becomes f. 8fce00 = 7031ff. So you would add "const v6, -0x7031ff" in at line 60 in "StatusBarIcon.smali" to make the clock the green colour i started with which was 8fce00.

11.SAVE THE FILE,CLOSE TEXT EDITOR AND NAVIGATE BACK TO YOUR SMALI/BAKSMALI FOLDER and OPEN THE COMMAND WINDOW HERE AGAIN (hld shft + right click)

12.delete the original classes.dex file and open the command promt window the same way i showed you before.

13.no paste this command and hit enter- java -jar smali-1.1.jar classout -o classes.dex

14.now you will have the new classes.dex file in the smali/baksmali folder

15.open the services.jar file with Winrar and drap and drop the new classes.dex file into the services.jar archive and overwrite the original file..

16.make sure that its set to UPDATE MODE,ZIP FILE AND COMPRESSION NORMAL on the interface of WINRAR

17.once you have overwritten the original classes.dex with winrar,simple push/copy/or flash the new services.jar to /system/framework..then reboot

18.AFTER THIS MOD,YOUR PHONE WILL TAKE A WHILE TO BOOT UP,as long as your not boot looping,youll be good to go.

also,i recommend whiping dalvik and cache before these kinds of changes if you are flashing in recovery.
:HOW TO USE THE UOT KITCHEN-OPTIMUS M SPECIFIC:
 
WELL I GOT SOME OF It UP FOR YOU GUYS!! BUT DONT GET TOOOOO EXCITED CUZ THIS ISNT EVEN HALF OF WHATS GOING INTO THIS...PLUS A FEW HD VIDEOS!! :) but heres something to keep you occupied.

hope you like it,and if this helped you,make sure to hit the thanks button,and feel free to post your final products here for bragging.lol

happy theming!
 
  • Like
Reactions: p-bOt
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones