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:
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.
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!
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. 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…
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
This procedure does that.
Is there any way to flash back to stock recovery to remove Clockworkmod and leaving system files in place?
Yes, but its a bit more complicated to do.
Why would you want to do that though?
Hey can you tell me if my phone can be rooted on this version?
System version Blur_version1.32.24
Firmware version 1.5
Hey can you tell me if my phone can be rooted on this version?
System version Blur_version1.32.24
Firmware version 1.5
im getting an error saying its a read only file..
im getting an error saying its a read only file..
That would mean you never did S-Off, did you?
im getting the same read only message and the s is off
im getting the same read only message and the s is off
it says permission denied when i type su n hit enter… =(
it says permission denied when i type su n hit enter… =(
make sure to type SU then enter before you do dd if=/dev/block/mmcblk0p17 of=/sdcard/misc.img
make sure to type SU then enter before you do dd if=/dev/block/mmcblk0p17 of=/sdcard/misc.img
make sure to type SU then enter before you do dd if=/dev/block/mmcblk0p17 of=/sdcard/misc.img
Does this get rid of clockwork recovery boot?
No, it doesn’t get rid of clockwork recovery boot.
Does this get rid of clockwork recovery boot?
Does this get rid of clockwork recovery boot?
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.
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.
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?
thanks for your guide.
thanks for your guide.
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?
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?
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?
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?
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
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?
I followed all the steps, but my phone is not recognizing the PC10IMG.zip file. Help PLEASE!!
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.
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.
how did you partition you sd card
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!
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.
Mine did this even before I unrooted….I called T-Mobile and, they are sending me another one.
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!!
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
also i got past everything and now my misc.img says a different number than the one posted up
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
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
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
you have to actually put .img after renaming file
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
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.
nvm i got it. i just did a damn mistake. thank you for the tutorial. 🙂 now i can return my phone for warranty exchange.
what steps did you do? and where did you get your working (PC10IMG.zip) the one here is not reading it
helpppp
helpppp
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 🙁
Hello? I need some help. I have the clock work thing too.would this tutorial help me? I’m chris
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!
Thank You!!! Your so much help!
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
did this my phone is unrooted but it still says s-off i flashed it a second time and still nothing. help please
did this my phone is unrooted but it still says s-off i flashed it a second time and still nothing. help please
What do I do if I recieved this message “/dev/block/mmcblk0p17: cannot open for read: permission denied”
type in su and enter first in the terminal emulator to get the # sign instead of $ in your command line
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?
were u able to find a solution to your problem? im having the same issue.
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?
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.
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?
try a different sd card in your phone and put the files on that one.
this really don’t work for me i have done it a few amount of times, but it just wont work.
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
no you do not. Temp root is simply that… TEMPORARY! When you turn the phone off, it will be unrooted.
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 ..
everything seems to have gone smoothly, except i notice it still says S-ON
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. 🙂
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?
You are absolutely the best!!!! Thank you thank you thank you thank you!! worked like a charm.
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
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?