[EVO 4G Themes and Apps] brandontowey:
Guide for The Ignorant

Ok, so after 10 hours of research and trial and error, I got this going. There's no one repository for this info if you don't already now smali/baksmali so this guide is to help those who are in the situation I was in. Some of my syntax might be off so jump in and edit if incorrect. Some times I the commands I used didn't work so I kept trying different ones till it worked. Here it goes:

DISCLAIMER: Use this guide at your own risk. I'm not responsible if you turn your phone into that crazy Nokia that shot the **** out of it's containment box in Transformers.

This assumes you have SDK(ADB) and Java installed.

This was done on my Evo, using Clockwork Mod as recovery.

DO A NAND BACKUP FIRST, IT'S A DAMN GOOD IDEA WHENEVER YOU'RE MESSING WITH SYSTEM FILES!

1. Download smali and baksmali at this site: http://jf.andblogs.net/2010/08/01/more-smalibaksmali-bugfixes/

2. For me, I couldn't get them to work when in the SDK folder so I put them in C:\Programs Files\Java\JDK*\bin

*Note - I renamed my Java environment folder to JDK because it's easier to remember when you have to type it into the command prompt. It will contain the letters JDK

3. Connect your phone while it's ON, NOT IN RECOVERY.

4. Open a command prompt

5 Type cd c:\Android SDK Folder*\tools, press enter

This gets you into your folder with ADB in it so you can run commands for ADB.

*Note - I renamed my SDK folder to just android for the same reason, making it easier to type into a command prompt

6. Type adb pull /system/framework/services.jar, press enter

This will put your services.jar in your tool folder. I don't know how to get it into a different output directory.

7. Navigate to your tools folder, right click the services.jar and click Open With. Select WinZIP, WinRAR, etc.

8. Right click the classes.dex and extract it to c:\program files\java\jdk\bin

For me, the classes.dex had to be in the Java bin folder or it wouldn't decompile it.

9. In the command prompt, type cd c:\program files\java\jdk\bin and press enter

This brings you in the directory where you can run smali/baksmali.

10. In command prompt, type java -jar baksmali.jar -o <directory where you want the decompiled files> classes.dex, press enter

You can put whatever directory you want, just remember it 'cause your gonna need to go there to edit the file to remove the icon. I used c:\android\output\

11. The command prompt will look like it froze but it's working. After you get another line with the directory name that you're in, go to your output directory. There should be a folder called com. In there are the files referenced above. I'm not going to retype the instructions above so follow the ones you need for what you want to remove. I removed the GPS icon and for me, no matter if I edited one line or the other or both, both GPS Icons were gone even when it was enabled. If anyone know how to get just the disabled icon out, let me know.

12. After editing and saving the files you edited, go back into command prompt.

You should still be in your directory where the smali/baksmali files are. If not, get back to that directory using the cd command.

13. Type java -Xmx512M -jar smali.jar <output directory> -o <name you want for edited .dex>, press enter.

The recompiled .dex should go in your output folder. For whatever reason, mine would only go into the java/bin folder and I had to grab it. No idea why.

14. Rename the new .dex to classes.dex. Open the original services.jar with winZIP, etc., click and drag the new classes.dex file into the archive window and say yes when it asks if you want to add the file. This will replace the original classes.dex with the new one. For me, I had to make sure the services.jar was in the SDK tools folder or I couldn't push it.

16. Reboot your phone into recovery, you can overwrite the services.jar while the OS is loaded.

17. Now, here's where I'm not a 100% sure what worked in terms of mounting the android system while in recovery. I went into Clockword Mod partitions menu and mounted the /system because I figured that's where the services.jar is so it needs to be mounted. Not sure if that worked or what. Correct me if I'm wrong.

18. open a command prompt and type cd c:\android\tools, press enter.

My edited services.jar had to be in the tools folder for this to work for me, that's why I changed directories.

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

20. Command will look like it froze again, let it work. It'll go for awhile, then give you another line with the name of the directory you're currently in.

21. Reboot and hope for the best.

Hope this helps someone and feel free to critique this guide. It was a bit of a meandering process and there are probably ways to make this easier and less step intensive.

I removed the GPS icon and for me, no matter if I edited one line or the other or both, both GPS Icons were gone even when it was enabled. If anyone knows how to get just the disabled icon out, let me know.

I used post #17 by Sturmtief for a good bit of this, it was very helpful. Check it out in the below thread. The rest I got from a bunch of different sources, little bits of info here and there.

http://xdaforums.com/showthread.php?t=747311