How To: Unroot the T-Mobile G2 / HTC Vision

I. Before You Begin

1. The only real reasons to unroot a phone are if you need to send it in for warranty or if you flashed something that you can’t undo by flashing other ROMs.

2. THIS PROCEDURE CAN BE DANGEROUS, PLEASE FOLLOW THESE INSTRUCTIONS CAREFULLY AND AT YOUR OWN RISK.

II. Change the Version Number

1. Download the HexEditor and extract it somewhere on your computer:

HexEditor

2. On your phone, download Android Terminal Emulator (free) from the Market.

3. Open the Terminal Emulator and type the following with hitting enter at the end of the line:

dd if=/dev/block/mmcblk0p17 of=/sdcard/misc.img     (FYI that’s mmcblk[zero]p[one][seven])

4. Now plug the phone in via USB cable and mount the SD card so we can transfer files to it.

5. Copy the misc.img file on your SD card over to your desktop of your computer.

6. Right click the Hex Editor program and Run As Administrator.

7. Click Open and select the misc.img file to open it in the Hex Editor.

8. At the top right of the window, you’ll see Image and next to it, 1.22.531.8, highlight that and change it to 1.19.531.1. Then click Save and save it as miscnew.img

9. Place the miscnew.img on to the root of your SD card (NOT inside any folders just on the SD card).

10. Unplug the phone.

11. Open Terminal Emulator again and type the following with hitting enter at the end of the line:

dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p17     (FYI that’s mmcblk[zero]p[one][seven])

12. Once that is done, you can continue with the next section.

III. Unroot the G2

1. Download the Stock Bootloader/Recovery/Kernel file and save them somewhere on your computer.

Stock Bootloader/Recovery/Kernel (PC10IMG.zip)

2. Plug the phone in via USB cable and mount the sd card so we can transfer files to it.

3. Place the file you just downloaded on to the root of the SD card (NOT in any folders, just on the SD card itself).

4. Turn off the phone.

5. Turn the phone back on by holding down Volume Down and Power until the bootloader screen comes up. It should automatically find the PC10IMG.zip file and ask you if you want to update the phone, select yes and wait for it to finish updating. Click reboot.
Once it finishes, you are back to the original stock ROM with S-ON and you can send your phone in for warranty.

IV. (Optional) Flash the OTA Update

1. Download the OTA Update.

OTA Update (update.zip)

2. Plug the phone in via USB cable and mount the sd card so we can transfer files to it.

3. Delete the PC10IMG.zip file off your SD card.

4. Place the file you just downloaded on to the root of the SD card (NOT in any folders, just on the SD card itself).

5. Turn off the phone.

6. Turn the phone back on by holding down Volume Down and Power. Then select Recovery and wait for it to boot to recovery mode.

7. Once you see the screen with the red ! point, hold Volume Up and Power until the menu comes up.

8. On the menu select apply sdcard:update.zip. Follow the prompts to update and reboot. The phone will reboot a few times and eventually come back into the regular Android OS. All done!

Thanks to Marc91988 for the original how to!

81 thoughts on “How To: Unroot the T-Mobile G2 / HTC Vision”

  1. DOes this undo any changes made to the system and data folders while rooted? ALso, doesnt rooting and flashing a different kernel (for overclocking) make it so OTA updates will not come to your device?

    1. 1. Yes this completely undoes everything including any system changes. It’s as if you never rooted in the first place.
      2. Yes, but too be honest being rooted you can just flash the OTA once someone makes it an update.zip and 9 times out of 10 you’ll get the OTA faster that way than if you sat and waiting for it to get sent to you over the air…

  2. how do you put back the hboot that comes with the phone i flashed my hboot to use sense and now i want to put it back to stock

  3. Hey can you tell me if my phone can be rooted on this version?
    System version Blur_version1.32.24
    Firmware version 1.5

  4. Hey can you tell me if my phone can be rooted on this version?
    System version Blur_version1.32.24
    Firmware version 1.5

  5. Man i did everything as said above everything went good even got rid of clockwork recovery boot. However mine still says S-OFF lol what do you think thats all about? I’m gona test to see if i have root but i dont think i do.

    1. It’s probably because you didn’t flash the Engineering HBoot when you originally rooted your phone. You should flash that, THEN follow these steps again, and you should get S-ON.

  6. Mike_da_man_of_steel

    What does it mean if it says update error update to old? but clockwork recovery is still there and s-on is phone still rooted?

  7. question, im gonna try and send in my phone, butt i want to do a factory reset. should i do it before, or after i unroot?

  8. question, im gonna try and send in my phone, butt i want to do a factory reset. should i do it before, or after i unroot?

  9. question, im gonna try and send in my phone, butt i want to do a factory reset. should i do it before, or after i unroot?

  10. question, im gonna try and send in my phone, butt i want to do a factory reset. should i do it before, or after i unroot?

  11. Will i be needing different files at section III where I am unrooting my Desire Z, since the stock bootloader etc should be different from G2 and Desire Z

  12. Benjamincaballero10

    Once I unrooted and installed the new OTA,my G2 was working great(so I thought) but the I wasn’t being connected to the network. my screen is saying “No Service” help?

    1. Anyone have anything on this? I’m getting the same issue. When the bootloader comes up it detects PC10IMG.ZIP but gives the message, No Image or Wrong Image. I’ve downloaded PC10IMG.ZIP from two different sites just in case. Checked the CRC on it. Everything seems to be good to go. I need to send my G2 back for warranty work, so any help would be greatly appreciated.

      1. I figured it out. If you haven’t partitioned your SD card using the recovery, it will not detect the PC10IMG.ZIP file. I wasted alot of time figuring that one out, haha.

        1. IF YOU ARE HAVING THIS PROBLEM, MAVERIK figured it out. I just did it and he is right. You must reboot into “recovery” , go to advanced and then click partition sd card. it will clear your sd card out, so you must go back in, drag and drop PC10img.zip back onto your sd card, then you will be good to go!!!! Maverik thanks for this post if you didn’t post that I would have been way lost. Good looking!

    2. Anyone have anything on this? I’m getting the same issue. When the bootloader comes up it detects PC10IMG.ZIP but gives the message, No Image or Wrong Image. I’ve downloaded PC10IMG.ZIP from two different sites just in case. Checked the CRC on it. Everything seems to be good to go. I need to send my G2 back for warranty work, so any help would be greatly appreciated.

  13. HELP! Ive an Temporary Rooted G2 (not permanent) and need to send it back to TMobile! Do I have to perform this procedure to get it back to stock to gain phones warranty?

    Thanks in advance!!

  14. my misc.img is not reading when i put it in the hexeditor?? it shows that it has 0kb for the misc.img? why is that so… and the cyanogen mod comes with no market or any other stock apps

  15. okay so i got past everything and when i go in to the boot mode or whatever its doesnt grant me the permision to put it back to factory settings? it just scans the sdcard says i have the PC10IMG.zip and nothing happens what am i doing wrong??? this mod sucks.. i cant even sync my gmail to get my contacts

  16. I have everything back to stock, I am sending the phone back next week and i still have clockwork mod recovery is that going to matter and will that void my warranty? I dont want to get charged 280 bucks. I dont know how to remove CWM

    1. hey did you have any issues with the PC10img file ive encountered an issue where its saying invalid file and it’s not being recognized by my bootloader and i have tried the new one that they all say to rename any advice

  17. i have used your version many times however for some reason the stock boot loader kernel(PC10IMG.zip) is not being recognized so its not letting me remove my s off i am currently running fire and Ice v1.7 great rom but my screen is really glitchy so i wanted to start over however it continues to not recognize pc10img file is there a different file to use to get me into the master reset so i can reload the OTA thanks

  18. Hi theiunlockr.
    i have a G2 and i manage to the S-ON but when i tried to reboot it still have the clockwork recovery. What did i do wrong? Pls help me. Thank you.

    1. nvm i got it. i just did a damn mistake. thank you for the tutorial. 🙂 now i can return my phone for warranty exchange.

  19. um im a noob with flashing roms and i flashed a mexdroid or mexperia(file name) on my G2.i didnt like it at all . would this help me even though i didnt back up the rom with rom manager? i need help 🙁

  20. Chrispatriots24

    Hello? I need some help. I have the clock work thing too.would this tutorial help me? I’m chris

  21. im not rooted but i still have s-off can someone help the box for my g2 to be returned will be here in three days! help!

  22. Man thanks to whoever posted this!!! God bless you!! Lol I’ve been trying to unroot my phone and flash the stock ROM for months. Thanks again! You’re a Godsend 

  23. I went through the tutorial but when I went through bootloader for the PC10IMG.ZIP it said “main version is older update fail!” the phone does have s-on now but the OS is MIUI still… need to send back for warranty can anyone help?

  24. Hi there, I have big, big problem. I used this tutorial to “unroot” my phone, but I have HTC Desire Z, not T-Mobile G. Everything goes fine, but now I have my phone with T-Mobile ROM, but am not T-Mobile user. Is there any possibility to have my phone back wiht Desire Z ROM?

    1. I would suggest that you ask around on forums for the G2 if anyone has this same file but with the Desire Z rom and not the G2 rom and then follow the same steps.

  25. I did the rooting process on www. theunlockr .com for the Tmobile G2 now I’m trying to unroot it and but the orginial rom back on it…but the SD card was formatted by accident how can I fix this and unroot it?

  26. I temporary rooted my G2 but lost it when my battery died and i want to return my phone.
    do i have to do all this or not?
    Please answer

  27. in the first step when i try to change it to 1.19.531.1.i cant cuz is alreaady there but when i check the build number 1.22.531.8 and in the misc it comes out the 1.19 i try going to pic10.img shit and it never updates it loads but never gives me the update shit to change it.. please email me here bebobori1986@gmail.com with some help please i need to send it back before the 4 this month thanx any help would be very appreciated ..

    1. the purpose of this is to get it say S-ON. That means that you have turned the security on your phone back on and that you are now unrooted so that you can file your warranty claim. 🙂

  28. I went through these steps to unroot my g2 and it wen’t through but I still have S-off.  On the last TP it did say bypassed.  Anyone know how to get this corrected to get S-on again?

  29. this does not work anymore i have tried and tried and it says no image or wrong image m on android 2.2.1
    i have an app i can use to unroot but how do i get back to stock with s on and as well as get rid of clockworkmod and get recovery image stock back thanks email me instructions at patrick_west4@yahoo.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.