Often times, we tend to find stock ROMs for our devices boring, outdated, and more often than not, lacking tons of basic (basic for us anyway) functionality. Being who we are and our somewhat colorful history of tinkering with things, we tend to improve these stock ROMs by adding new features. The problem with this habit, pretty much ever since Android was introduced, is that the mods done for one OS tend to not work for the next. (While this was also the case for Windows Mobile, at least most mods worked well across ROMs and devices unless there was a significant version change in the OS such as going from WM5 to WM6.) So, how do we make sure that the knowledge about doing something like this remains alive and well? Simple, you teach a man how to fish, and that is exactly what XDA Recognized Contributor tdunham has done with his latest set of contributions to the site.
Adding items to the power menu has been around since the WM days, so this is not a new mod by any means. However, the way it is implemented into ROMs is often times different when jumping from OS version to OS version. In this particular case, the existing mods that could easily be found on most custom GB and ICS Roms for the Epic 4G Touch were rendered useless (the flashable mods, anyways). However, not only has tdunham provided the mods for the new JB leaks, but he has taken things a step further and decided to write a guide on how to add the code yourself! He goes into good detail as far as what lines of code need to be added where in framework-res.apk and android.policy.jar. Last but not least, the guide also shows how to remove unwanted items from the menu as well. So, if you wanted to get rid of the “take screenshot” option, now you can.
Please do keep in mind that you will need to know how to open, edit, decompile, and recompile these files in order to modify them. There are various guides throughout the site and tools that can aid you in this. If nothing else, Google is always your friend. Please leave some feedback on the thread and share what you have done so that others can learn as well.
This will allow you to have Recovery and Bootloader (download mode) right in the Power Menu selections.