[myTouch 4G Android Development] topgun303:
How to get S =off and superuser permissions

Make sure you are on 2.2.1 software and fastboot is turned off, usb debugging is turned on and phone not connected to computer via usb cable... before u attempt this.

First make sure you have visionary(downlod link) and terminal emulator(market) installed.

http://android.modaco.com/content/software/320350/19-nov-r14-visionary-one-click-root/

Place the visionary download file into sdcard and install the apk using astro file manager.

Root.rar (all files plus a script to make things a little easier. )

http://www.mediafire.com/?flit79p2y069bb3

md5sum: 46361b0cc8652d88688c0ab66d44950b

1. Download the root.rar file and unzip it to /sdcard on your device.(it should be a folder after unzip.[place the whole folder called root directly into sdcard])

2. Run VISIONary to gain temp root. Open visionary and check "set system r/w after root" then click on "temproot"..screen will go blank..thats normal.

Now open terminal and run some commands.

Terminal Emulator Method

3a. Start terminal emulator up on your device.(I prefer this method b/c you can see the output.)

a. type "su" + enter to gain root privileges.

b. Type "cd /sdcard/root" + enter.

c. Type "sh root.sh" + enter.

d. Follow the on screen prompts.

Turn off your phone and hold vol down and power. on the top u will see s =off.

select "fastboot" then shutdown or powerdown. Power you phone back on.

Open terminal and typr "su"..it will say permission denied. Thats normal

Now open visionary again. Make sure "set system r/w after root" checked then click on "temproot"..screen will go blank.. thats normal. Now click on "Attempt Permroot now" phone is reboot and you are all set :)

Go back into terminal and type "su" and it will say user permissions granted.

or

Thanks to Mackster248 for makeing a youtube video on how to root. Disclaimer [This video tutorial uses visionary r11 and my guide uses visionary r14]

http://www.youtube.com/watch?v=eHrtVzlsA_s

If any one is having problem with "su" permission denied, Try using visionary r11.

download link for: visionary r11 http://xdaforums.com/showpost.php?p=9278164&postcount=899

-----------------------------------------------------------------------------

Flash a Custom ROM----Make sure fastboot is off and usb debugging is on.

1. Before we flash anything lets flash clockwork so that you are able to get into recovery. From the market download Rom manager(free). Open rom manager and click on "flash clockworkmod recovery". Wait few min. Rom manager will download and flash clockwork. Turn your phone off and Hold vol down and power. In the hboot menu select recovery and then the phone will restart. You will get a phone with yellow triangle error. Thats normal. Don't panic. Take the battery out for couple on min. Turn the phone back on. Open Rom manager again. Now click on "flash clockworkmod recovery". It will flash the recovery second time. We are doing this to make the clockworkmod stick. Now turn the phone off and see if you can get into recovery again. It should work. :)

2. Make sure you are permrooted and S =off. Also make sure you are able to get into recovery before you start flashing stuff. Download rom from XDA developers and save it to your computer.

3. Once it is saved, plug in your phone via USB cable and mount the SD card so we can save files to the sd card.

4. Copy the ROM’s .zip file over to the root of the sd card (NOT in any folders on the sd card, just on the root of the card) (do NOT extract it, leave it as a .zip).

5. In the custom recovery screen, select Nandroid then Backup and backup your current ROM.

6. Then select Wipe Data and wipe caches.

7. Then select Apply ".zip from sd card" and choose the ROM you downloaded earlier.

8. Once it is done flashing, click reboot system. Once it reboots, you are all set. Enjoy!

or

Thanks to Mackster248 for makeing a youtube video on how to flash rom.

http://www.youtube.com/watch?v=ah_vsW44lss

I am not responsable for damage to your device from flashing. Do this at your own risk.

Credit for these steps: http://theunlockr.com/2010/11/15/how...ryhboot-s-off/

Credit for these steps:http://xdaforums.com/showthread.php?t=834225

Hey devs let me know if something need to be corrected in the steps.