How to unroot G2? - G2 and Desire Z Q&A, Help & Troubleshooting

I am giving this phone to someone and need to unroot it. I have S-OFF and all. Is there a simple way of doing this with ADB?

guitarfreak846 said:
I am giving this phone to someone and need to unroot it. I have S-OFF and all. Is there a simple way of doing this with ADB?
Click to expand...
Click to collapse
http://theunlockr.com/2010/12/01/how-to-unroot-the-t-mobile-g2-htc-vision/
No need for ADB. Just a hex editor and a little patience. Unrooted my first G2 to send in for warranty replacement this way no problem.
GL.

I have a Mac...so this should run well with XP running in a VM I'm assuming...

guitarfreak846 said:
I have a Mac...so this should run well with XP running in a VM I'm assuming...
Click to expand...
Click to collapse
Yep. The hex editor is just a simple program. Just open it up edit the line and save/close. Doesn't require any power.
I ran it in bootcamp Windows 7 on my Mac.

If you used gfree to obtain radio S-OFF and Super CID, you will need to use gfree to return to S-ON and set the default CID back as well. There are instructions in the Wiki.
The guide linked to earlier in the thread will work if you obtained "S-OFF" through the engineering hboot method. If you don't want to use a hex editor, there is also a pre-modified misc.img file in the dev forum (can't remember which thread). I think there is also a command-line tool for changing the version number that you can run from terminal in one of the downgrade threads.

ianmcquinn said:
If you used gfree to obtain radio S-OFF and Super CID, you will need to use gfree to return to S-ON and set the default CID back as well. There are instructions in the Wiki.
The guide linked to earlier in the thread will work if you obtained "S-OFF" through the engineering hboot method. If you don't want to use a hex editor, there is also a pre-modified misc.img file in the dev forum (can't remember which thread). I think there is also a command-line tool for changing the version number that you can run from terminal in one of the downgrade threads.
Click to expand...
Click to collapse
Thanks for clarifying. I guess I just assumed he used the HBOOT-ENG.
As far as the Hex Editor goes, its really easy to use and you only modify one section of one line. I just personally prefer to do it myself so theres no chance I get a bad misc.img .

ianmcquinn said:
If you used gfree to obtain radio S-OFF and Super CID, you will need to use gfree to return to S-ON and set the default CID back as well. There are instructions in the Wiki.
The guide linked to earlier in the thread will work if you obtained "S-OFF" through the engineering hboot method. If you don't want to use a hex editor, there is also a pre-modified misc.img file in the dev forum (can't remember which thread). I think there is also a command-line tool for changing the version number that you can run from terminal in one of the downgrade threads.
Click to expand...
Click to collapse
how do i use this method? i used gfree to ulock it.

Related

[Q] Undo old permaroot & S-OFF from pre-gfree, or update to new S-OFF?

Hi guys,
I've been reading through the forums over the past two days but I have to admit it's hard to find what I am looking for now that the G2 forum and the DZ forum are merged, and the search isn't getting me anywhere for this one.
I have Bell Canada Desire Z permarooted and S-OFF'd, with CWMod. I did this before the newer gfree method and from what I can gather this can lead me to some kind of endless loop if I try to flash back to the a Bell RUU or other RUUs for that matter. It also worries me that I can't try new radios, etc.
I am getting very poor battery life compared to others so I want to have my phone replaced. I have an extended warranty from FutureShop so I probably don't even need to reset the phone to stock again (they swap on the spot) but I would like to anyway. It will also allow me to test the battery again with the stock ROM.
So, how do I go about flashing back to the Bell ROM and turning S-ON, and unrooting? Keeping in mind that I used the pre-gfree method. I believe it was Visionary R12 and gtab's guide.
Also as the title implies, I was wondering if it's possible to use the new (better) S-OFF even if I am already S-OFF'd the old way?
Any help is appreciated!
You can use gfree and achieve "real" S-OFF without having to unroot.
Just run it. Worst that'll happen is it fails if you happen to be on a kernel it doesn't like. If this happens, no harm is done, just a reboot.
Just run gfree from where you are, as the previous poster said.
That will put you in a much safer position, where you can get stuck in that boot loop that you can if you've only got the eng hboot.
Then you can flash whichever ROM you want. Then you can undo gfree if you want via its new options (see the Wiki).
Regarding your point about the merger, IMHO this issue isn't anything to do with the DZ specifically, and lots of users are posting about similar stuff with their G2s. It's all the same
Thanks guys,
I've done gfree (which is MUCH easier than the thread and wiki make it look - they need to simplify the text, it's overwhelming to look at given how simple the procedure is) and flashed the Bell RUU.
Now I am just about to root, and use gfree to undo the S-OFF I guess?
Will let you know how that turns out. Thanks again!
Ok,there is a new gfree method to get root and S-Off.
And gfree can now also be used to set radio S-ON.
But what about the backup "part7backup-1291675121.bin"
which gfree created at my sdcard?
No longer needed?
And with the new root and S-Off method,is it now possible to
to flash stock RUU 1.34.405.5 to get all original?
Because with old UBERROOT method this doesn`t work!
Ganii said:
Ok,there is a new gfree method to get root and S-Off.
And gfree can now also be used to set radio S-ON.
But what about the backup "part7backup-1291675121.bin"
which gfree created at my sdcard?
No longer needed?
And with the new root and S-Off method,is it now possible to
to flash stock RUU 1.34.405.5 to get all original?
Because with old UBERROOT method this doesn`t work!
Click to expand...
Click to collapse
I'd keep that backup file as it is a dump of your original partition 7 before gfree mods it. You can dd i back and put everything back to how it was, if you ever need to. Do you need to keep it on the phone? No.. store it somewhere on your PC.
With the old "fake" S-OFF you would get stuck if you flashed a stock rom because it would overwrite the engineering HBOOT which was the only thing making your phone think it had S-OFF. With gfree method, you have real S-OFF, so this should be fine.
See http://forum.xda-developers.com/showthread.php?t=838484 for details.
tl;dr You should be fine.
Hm,little bit confused!
The backup I need to get original original partition 7
but not to get S-On.
To get S-On I can use the new gfree method,it`s now
possible with this!
I did the old UBERROOT method with real S-Off!
P.S.I read here about this:
http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2
Not 100% sure I understand the question...but:
You don't need that backup file. If you delete it nothing bad will happen. Paranoid people (like me) would copy it to a safe place, but there's no real need.
You can flash whatever roms you like, including stock ones, as long as you have real, radio (gfree) S-OFF.
Hi guys, thanks for the help! I got it all settled, it was easy.
As I mentioned above, I used gfree to do a true S-OFF, which was easy.
Then I ran Bell's RUU and it worked without any issues. I assume the RUU install also flashes the HTC recovery back to the phone, I didn't check but it must..
A little summary for anyone who needs help in the future..
If you rooted/S-OFF'd using a method older than the current rage/gfree method (the one in the wiki) then you need to redo the S-OFF using gfree.
Steps:
Use gfree -f to S-OFF again
Run the stock RUU file on your pc (you need HTC sync installed for this)
Temproot (first part of the wiki guide) the stock ROM
Use gfree -s on to S-ON your phone
Reboot, and everything should appear like stock (aside from still being sim-unlocked).
Were u sucessful in returning your phone to htc after u did the above?
I didn't have to return it to htc, just to future shop, and it was fine.
Sent from my GT-I9000 using XDA App

20$ for your Time!

i need my phone rooted, Android 2.2- 0004 hardware- 3.70 Softy- 2.15.00.11.19 Baseband..... I will pay Via Paypal, I just needed rooted before I sell it! If any body can help Developers pls..... Remove this if it is pointless.
Thank you for your Time
Have they found a root method for 3.70 yet?
i dont know if they have yet...
Yes they have. Zikronix has a thread on how to do it.
Sent from my PC36100 using XDA App
Will unrevoked work?
No it doesn't...the unrevoked dev team is working on one.
leenypost was refering to this thread:
[ROOT][GUIDE] HBoot 2.02/2.10 SOFF - Root! The Final Frontier Edition - Upd. 12.21.10
i think they have but im not the one that wants to do it, i cant cuz my other evo got rooted with Simple root so i didnt have to do it the long Way but i dont have that phone anymore. Any takers?
All you need to do is follow the link ICEReaction posted. It's very straightforward.
just downgrade using a stock RUU then use old root methods
im VERY noob wen it comes to cmd, shell cd to etc. and all that i guess the hard part is the Command prompt i can open but wen changing or anything i get path not found etc
rayveno said:
just downgrade using a stock RUU then use old root methods
Click to expand...
Click to collapse
This will not work. If your phone is new and came with hboot 2.02 or 2.10 it is a no go. If you have an older EVO you can flash a rom with a lower SW version and then use an RUU that matches that version if you like and then use unrevoked to root... But that's way more work to then get back up to 3.70 than just following the supplied thread.
Thread moved to Q&A.

How to unroot?

What's up! I'm wondering if someone can help me unroot and put back to 100% stock...
I used the rage/gfree method.
Sent from my HTC Vision using XDA App
http://forum.xda-developers.com/showthread.php?t=835971
That should do the trick.
He doesn't give instructions for gfree, so I'm not sure if this is the correct method.
Sent from my HTC Vision using XDA App
Ah - apologies.
No worries bro, hopefully someone else can help answer this question for me.
Sent from my HTC Vision using XDA App
I typed in unroot G2 in bing search and the unlockr site was second one down, this method worked great for me.
I looked it and read it all.
Since I used gfree to obtain s off and super cid/sim unlock, will it work?
Sent from my T-Mobile G2 using XDA App
mftek said:
I looked it and read it all.
Since I used gfree to obtain s off and super cid/sim unlock, will it work?
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
I'm not 100% positive on that. I also have a Behold 2 and, it was rooted when I got it.
I had no idea how it was rooted. I used the unlockr site for it too and, it work for it.
To me, the way the instructions are wrote, it sounds like it will work to un-root all methods of the G2 root process.
Hopefully a more experienced person will chime in shortly.
tooter1 said:
I'm not 100% positive on that. I also have a Behold 2 and, it was rooted when I got it.
I had no idea how it was rooted. I used the unlockr site for it too and, it work for it.
To me, the way the instructions are wrote, it sounds like it will work to un-root all methods of the G2 root process.
Hopefully a more experienced person will chime in shortly.
Click to expand...
Click to collapse
No, those guides will technically remove root since they restore the shipping ROM but will leave you with S-OFF (since you used gfree---if you had only used the engineering HBOOT to obtain S-OFF, the guides would have been fine). Did you take a look at the actual Wiki: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Returning_to_Stock?
ianmcquinn said:
No, those guides will technically remove root since they restore the shipping ROM but will leave you with S-OFF (since you used gfree---if you had only used the engineering HBOOT to obtain S-OFF, the guides would have been fine). Did you take a look at the actual Wiki: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Returning_to_Stock?
Click to expand...
Click to collapse
When I used the unlockr method, my s-off went s-on.
tooter1 said:
When I used the unlockr method, my s-off went s-on.
Click to expand...
Click to collapse
Did you use gfree to to obtain S-OFF though? If you used the engineering HBOOT to do it, as I said in my post, those guides would work fine as is. Flashing the shipping ROM with the PC10IMG file will replace the engineering HBOOT with the shipping one (which is S-ON). If you use gfree though, you get true radio S-OFF (the engineering HBOOT is a fake one that tricks the phone into thinking you have S-OFF, thus allowing write access to the system). This is done by modifying partition 7 on the phone. Since this partition contains information specific to your phone, it is normally left untouched by a PC10IMG or RUU. This is why if S-OFF is obtained through gfree, simply replacing the HBOOT with a PC10IMG file won't revert you to S-ON.
ianmcquinn said:
Did you use gfree to to obtain S-OFF though? If you used the engineering HBOOT to do it, as I said in my post, those guides would work fine as is. Flashing the shipping ROM with the PC10IMG file will replace the engineering HBOOT with the shipping one (which is S-ON). If you use gfree though, you get true radio S-OFF (the engineering HBOOT is a fake one that tricks the phone into thinking you have S-OFF, thus allowing write access to the system). This is done by modifying partition 7 on the phone. Since this partition contains information specific to your phone, it is normally left untouched by a PC10IMG or RUU. This is why if S-OFF is obtained through gfree, simply replacing the HBOOT with a PC10IMG file won't revert you to S-ON.
Click to expand...
Click to collapse
Worked perfectly for me. I flashed stock rom, installed PC10IMG.zip and then used gfree to turn s-on and remove sim unlock.
Sent from my T-Mobile G2 using XDA App
ianmcquinn said:
Did you use gfree to to obtain S-OFF though? If you used the engineering HBOOT to do it, as I said in my post, those guides would work fine as is. Flashing the shipping ROM with the PC10IMG file will replace the engineering HBOOT with the shipping one (which is S-ON). If you use gfree though, you get true radio S-OFF (the engineering HBOOT is a fake one that tricks the phone into thinking you have S-OFF, thus allowing write access to the system). This is done by modifying partition 7 on the phone. Since this partition contains information specific to your phone, it is normally left untouched by a PC10IMG or RUU. This is why if S-OFF is obtained through gfree, simply replacing the HBOOT with a PC10IMG file won't revert you to S-ON.
Click to expand...
Click to collapse
What should I do first if I used gfree to return to stock on my T-Mobile US G2? I also flashed the eng-hboot.
I used this guide http://forum.cyanogenmod.com/topic/14344-how-to-root-a-new-g2/, and I flashed the "PC10IMG-altered.zip" right after I used gfree to get radio s-off.
Edit: I just followed the xda wiki and I didn't run into any problems.

[Q] This guide ok to use for rooting?

http://forum.xda-developers.com/showthread.php?t=1055581
I have bought a desire z brand new amazon uk. I plan to root straight away. If it comes gingerbread stock i will downgrade. Most probably it will come froyo so i will be able to use that guide... right ???
Have any one of you ever used that guide successfully?
Does it still work?
Which guide is it a rewrite of ?
And most importantly: is this guide ok to follow to root my phone ?
Look at the wiki everything you need to know is there under HTC Vision
http://forum.xda-developers.com/wiki/HTC_Vision
bombadier said:
Look at the wiki everything you need to know is there under HTC Vision
http://forum.xda-developers.com/wiki/HTC_Vision
Click to expand...
Click to collapse
is that the guide you followed ?
Thats the guide that I used,although I didn't have to downgrade from gingerbread,but everything you need is there,I would call it "the official guide to rooting"
bombadier said:
Thats the guide that I used,although I didn't have to downgrade from gingerbread,but everything you need is there,I would call it "the official guide to rooting"
Click to expand...
Click to collapse
when it says $ adb push gfree /data/local/tmp/ does it move the irregular files or just the file that says gfree. By irregular i mean any files like gfree.c. BTW what command moves the gopt.c and gopt.h files as i see none obvious commands which would in the wiki ?
Follow the wiki exactly,it is a step by step guide,if you are using windows you can cut and paste the commands as well so no need to worry about mistyping.
bombadier said:
Follow the wiki exactly,it is a step by step guide,if you are using windows you can cut and paste the commands as well so no need to worry about mistyping.
Click to expand...
Click to collapse
Thanks, I plan to use that guide instead. Thanks for bringing me to the light
P.s. what is the difference between normal hboot and engineering hboot ???
Read this
http://www.virtuousrom.com/2011/06/t-mobile-g2-users-migrating-to-desirez.html
Its to do with the partitions and amount of RAM available,you can also use fastboot commands,depends on what ROMs you are wanting to run,anything resource heavy(sense 3 and above) then you will need to flash the engineering hboot to get them to run,everything you need is in the wiki/virtuous,best of luck
bombadier said:
Read this
http://www.virtuousrom.com/2011/06/t-mobile-g2-users-migrating-to-desirez.html
Its to do with the partitions and amount of RAM available,you can also use fastboot commands,depends on what ROMs you are wanting to run,anything resource heavy(sense 3 and above) then you will need to flash the engineering hboot to get them to run,everything you need is in the wiki/virtuous,best of luck
Click to expand...
Click to collapse
I read up, your referring to the DZHBOOT for G2 users for them to be able to use roms for the desire z. I got this off of the cyanogen mod forums:
The ENG hboot is what unlocks NAND protection. Without the NAND unlock, we wouldn't be able to flash ROMs or have custom recovery.
so basically engineering hboot is a hboot with s off
Yes,with the engineering Hboot you have S-Off and can flash anything Radios,Roms,Recoveries

unrooting the DHD

Having spent time looking on here, I cannot seem to find the info I need... I rooted pre-AAHK (by downgrading and using visionary), so am not sure if I would be able to use the Hack Kit to un-root my phone
I realise that running the correct RUU is likely to be the way to go... what about S-Off? As far as I have read, running the RUU does not put your phone back to S-On.
Would someone mind letting me know if this is the correct order to do things:
Downgrade to 1.32 (by running the 1.32 WWE ruu) - Would it be possible to run 1.32 WWE ruu regardless of what my CID currently is? Also, would this give me WWE/unbranded CID?
Temp root with visionary.
Use the S-Off tool to get to S-On. If wanting to return to carrier branded, then you would also be able to change the CID to whichever Carrier ID wanted.
Install RUU of choice, be that branded or non-branded.
I think that's it... if someone could confirm if I've got this right or let me know if I've gone for overkill?
Cheers all!
I suggest you download AAHK and RTFM, it is included in the download.
FurryCup said:
I suggest you download AAHK and RTFM, it is included in the download.
Click to expand...
Click to collapse
Yes... thanks... I have already read this post explaining that the AAHK can unroot but, as I said...
D-U-R-X said:
I rooted pre-AAHK (by downgrading and using visionary), so am not sure if I would be able to use the Hack Kit to un-root my phone
Click to expand...
Click to collapse
As I rooted pre-AAHK and I used jkoljo's tool to get both Radio and ENG S-Off and changed my CID to SUPERCID, I was not sure that I would be able to use the hack kit to do the unroot... especially if I want to return my phone to branded... the way that I understand the AAHK would work is that it would put my phone back to unbranded

Categories

Resources