How to Permanently Root the T-Mobile G2
We knew it was only a matter of time before the resourceful developers on the #G2ROOT team would be able to permanently root the T-Mobile G2 — and hopefully soon it’s brother, the HTC Desire Z.
As with all phones, rooting the G2 is not without a certain level of risk, so by continuing further you assume those risks which include, but are not limited to, bricking your phone, voiding your warranty, and/or destabilizing the currency of your nation.
First off, you’re going to need some files, those can be downloaded from the thread at XDA-Developers. The files in question are hboot-eng.img and either wpthis-OTA.ko or wpthis-pre-OTA.ko, depending on whether you have gotten the OTA update or not. Place them on the root of your sdcard.
Next, before you go any further, head to the Market, download, install, and run VISIONary to get temproot (only run it once, don’t set it to run at boot).
1. Open a terminal emulator and type su (enter)
2. Copy the two files mentioned above to /data/local/
3. Type insmod /data/local/wpthis-(YOUR_VER).ko (enter) (where “(YOUR_VER)” refers to the OTA or pre-OTA file, depending on your device)
4. You’ll get a message similar to this: init_module ‘wpthis-OTA.ko’ failed (Function not implemented)
5. Type dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18 (enter)
6. EXIT out of terminal
7. Run VISIONary again to lock your root in place (don’t set it to run at boot)
8. Open your terminal emulator again, and type su (enter)
9. Type sync (enter)
10. Wait 5 minutes
You should now have permanent root. To double-check, fire up your terminal emulator and type su (enter). If you get the superuser prompt without any errors, you’re all set! Now we just have to wait for a custom recovery image and custom ROMs to start flowing!