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 responses to “How To: Unroot the T-Mobile G2 / HTC Vision”

  1. […] This post was mentioned on Twitter by Luis Gomez, TheUnlockr. TheUnlockr said: How To: Unroot the T-Mobile G2 / HTC Vision – http://bit.ly/i46CgO […]

  2. […] suggestions. If I’m asked again, I’ll know exactly what to say: Check out this post at TheUnlockr. I can’t personally testify to the efficacy or safety of this method, as I no longer have a […]

  3. Centraldigit says:

    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?

    • TheUnlockr says:

      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…

  4. Jab184 says:

    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

  5. TheUnlockr says:

    Yes, but its a bit more complicated to do.
    Why would you want to do that though?

  6. Faith Anwar says:

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

  7. Faith Anwar says:

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

  8. Johnsonroda27 says:

    im getting an error saying its a read only file..

  9. Johnsonroda27 says:

    im getting an error saying its a read only file..

  10. Punjabirinky says:

    im getting the same read only message and the s is off

  11. Punjabirinky says:

    im getting the same read only message and the s is off

  12. Gtorres234 says:

    it says permission denied when i type su n hit enter… =(

  13. Gtorres234 says:

    it says permission denied when i type su n hit enter… =(

  14. BillNi says:

    Does this get rid of clockwork recovery boot?

  15. BillNi says:

    Does this get rid of clockwork recovery boot?

  16. BillNi says:

    Does this get rid of clockwork recovery boot?

  17. BillNi says:

    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.

    • oldblue says:

      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.

  18. Mike_da_man_of_steel says:

    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?

  19. Lumberjack40 says:

    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?

  20. Lumberjack40 says:

    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?

  21. Lumberjack40 says:

    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?

  22. Lumberjack40 says:

    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?

  23. Takken says:

    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

  24. Benjamincaballero10 says:

    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?

  25. Blaine says:

    I followed all the steps, but my phone is not recognizing the PC10IMG.zip file. Help PLEASE!!

    • Maverik007 says:

      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.

      • Maverik007 says:

        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.

        • George A.J says:

          how did you partition you sd card

        • JYergs says:

          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!

    • Maverik007 says:

      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.

  26. Evilvw says:

    Mine did this even before I unrooted….I called T-Mobile and, they are sending me another one.

  27. Sam says:

    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!!

  28. George A.J says:

    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

  29. George A.J says:

    also i got past everything and now my misc.img says a different number than the one posted up

  30. George A.J says:

    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

  31. Daveynielsen says:

    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

    • Ricky Mamoran says:

      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

  32. Ricky Mamoran says:

    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

  33. Zhollid says:

    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.

  34. 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 🙁

  35. Chrispatriots24 says:

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

  36. Christian says:

    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!

  37. KAYBEE says:

    Thank You!!! Your so much help!

  38. Ossy_19 says:

    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 

  39. did this my phone is unrooted but it still says s-off i flashed it a second time and still nothing. help please

  40. did this my phone is unrooted but it still says s-off i flashed it a second time and still nothing. help please

  41. rey says:

    What do I do if I recieved this message “/dev/block/mmcblk0p17: cannot open for read: permission denied”

  42. tbick says:

    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?

  43. Nithro says:

    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?

    • Pinguo777 says:

      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.

  44. Ryan LeMieux says:

    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?

  45. oj says:

    this really don’t work for me i have done it a few amount of times, but it just wont work.

  46. Miltonelizondo says:

    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

  47. Bebobori1986 says:

    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 ..

  48. b1ackahwk says:

    everything seems to have gone smoothly, except i notice it still says S-ON

    • Pinguo777 says:

      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. 🙂

  49. Onumis says:

    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?

  50. Grateful G2 Owner says:

    You are absolutely the best!!!! Thank you thank you thank you thank you!! worked like a charm.

  51. Patrick_west4 says:

    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

  52. Rob says:

    Hi there. I am having a problem where the version number is not 1.22.531.8 mine is 1.34.405.5 instead – does this make a difference?

Leave a Reply

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