yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] Wicked68:
Rooted my G2 like 3 days ago with this method, had no problems. It took like 5 mins, first try. I had been using Visionary to temp root for like a month and a half before attempting permanent. I have no regrets. I am now running CM7, added a bootsound, I'm rockin. I have ADB installed on my PC, I'm gonna try to learn it and be able to use it.

If I need a replacement I will be unrooting it before I send it back, because yeah, they will charge you like $400 bucks, when they receive the rooted device back, after 1st sending you a replacement. I want to know for sure though. If you send 1 back that is rooted, but still has the stock rom, will they still charge? Safest way to not lose money will be to unroot it
[G2 and Desire Z Android Development] Noebody:
Does this method turn radio s-off?
[G2 and Desire Z Android Development] eunkipark92:
Well that scares me... cause then I will be charged with 800 dollar since I sent them two.

The first replacement had a crappy back with no sd card lock in thing.

So I sent them original one and first replacement. Both stock rom with both s-off.

If they do charge me I will act like I didn't know anything. Since they didn't say anything about s-off avoiding warranty when I contacted them.. just void sticker phyiscal dmg and water dmg.
[G2 and Desire Z Android Development] Wicked68:
Yes, as far as I know, it does, it completely roots your phone. I flashed CM7 which changed my radio, so, I assume so. I haven't tried to update my radio independently.
[G2 and Desire Z Android Development] Wicked68:
I'm assuming, with the Stock ROM back on there, they shouldn't catch it, especially if you sent it back for a hardware problem. They usually only check for water damage, cracked screen, bad use. I doubt they will boot into bootloader to see if it's S-Off, unless you send it back because its bricked, won't come on, or something. Let us know.
[G2 and Desire Z Android Development] eunkipark92:
Lol even they do tried to charge me I will act like I do not know anything and tell them the phone came with like that.

I hope they don't catch it though...
[G2 and Desire Z Android Development] dpk97:
So i hAve to downgrade my g2 to do this?
[G2 and Desire Z Android Development] ianmcquinn:
No, G2's do not need to be downgraded in order to root.
[G2 and Desire Z Android Development] ianmcquinn:
Yes, you will have radio S-OFF, SuperCID, and SIM/subsidy unlock.
[G2 and Desire Z Android Development] ianmcquinn:
The latest guide on unrooting the G2 is found in the Wiki: http://xdaforums.com/wiki/index.php?title=HTC_Vision#Returning_to_Stock.

The basic steps are to modify your version number if needed (i.e., you had the OTA update already), flash the stock T-Mobile ROM (this will restore your software to stock and remove the engineering HBOOT if you flashed it), temp root one more time and then use gfree to turn S-ON/set your CID. At that point you can do the OTA update again if you had it pre-installed and then factory reset to remove the temp root files and your G2 will be exactly as it was when you first got it.

If you want to go an easier route, you can change the order of the steps so that you don't have to temproot again during the process. In this case, you would modify the version number, use gfree to restore S-ON/CID, and then flash the stock ROM. This is slightly more risky since if you had screwed up at some point with the previous method, as long as you had radio S-OFF still, it would be trivial to recover. It's unlikely anything would go wrong with this method, but since you restore S-ON prior to flashing the stock ROM, you don't have that safety net.
[G2 and Desire Z Android Development] dpk97:
Where it says:

$ su

# cp /sdcard/root_files/perm_root /data/local/perm_root

# chmod 777 /data/local/*

# /data/local/perm_root

Do i have to type in the spaces between the dollar signs and number signs or do i just go ahed and type it in?
[G2 and Desire Z Android Development] ianmcquinn:
No, you do not need to type the leading space (though they shouldn't hurt either).
[G2 and Desire Z Android Development] steviewevie:
The $ and # and the space should already be there, that's the command prompt. You don't type the $ or the #, and if you do so then it won't work. Don't worry about that space at the start, but carefully follow where other spaces should be later in that command line.
[G2 and Desire Z Android Development] eunkipark92:
they did not charged me for the sending in the s-off phone

i sent them two rooted g2 with stock rom on it
[G2 and Desire Z Android Development] Tomb77:
I am having issues exacting the files, can someone post the necessary ones directly? Thank you

edit: When i open the zip what should be there? I don't think all necessary files are there.
[G2 and Desire Z Android Development] Wicked68:
Good to know, in case I ever need to get a replacement. I rooted with no problems, just my luck I would unroot, and f*ck some sh*t up, hahaha
[G2 and Desire Z Android Development] jdedeaux:
ive sent soo many rooted phones back to tmobile and never got charged. i guess it really depends.
[G2 and Desire Z Android Development] CyberVillain:
Anyone more then me having problems getting into temproot with Visionary R14 and the Z? I get a black screen and then the phone gets really slow and i have to reboot to get it up running normal again.
[G2 and Desire Z Android Development] jdaclutch:
"syncing data....

#"

does this mean I'm done? and I can go ahead and type the hboot command? Anyone help,please?
[G2 and Desire Z Android Development] stephen31686:
just got a replacement g2 in the mail (sent in a g2 running CM7 and the screen had gone out, fingers still crossed) but I just rooted and flashed cm7 using this method, did not flash the hboot bc I had never needed it before, but if I do run into a time when I need it, do I need to restore my stock rom before flashing or can I just enter the commands from any rom I'm running as long as the image is still on my sdcard??? Thanks
[G2 and Desire Z Android Development] Wicked68:
You run temp root again, don't restart your phone. Sometime it does that, when the temp root doesn't take. Just push temp root again, it should work and stop the lag

G2 (HTC Vision/Desire Z), Rooted, CM 7.0.2, Pershoot Updated Kernel
[G2 and Desire Z Android Development] Wicked68:
If you saw a bunch of commands before, yeah, you should be able to go ahead

G2 (HTC Vision/Desire Z), Rooted, CM 7.0.2, Pershoot Updated Kernel
[G2 and Desire Z Android Development] jm1218:
Please help, thankyou in advanced.

First off, thank you for this guide on how to root my G2. I didn't want to mess with ADB, and followed the instructions to the "T" and successfully rooted my phone.

My question may seem noobish, but I appreciate any help. I have downloaded "G script" and "Set-CPU" but I guess I do not know what to do from there. I also have "SUPERUSER", but just cannot figure out how to set my cpu speed.

Can anyone help with detailed instructions for a noob? Thank you in advanced.
[G2 and Desire Z Android Development] lainvalenajr:
Since your rooted you should download rom manager and flash clockwork. After that dowload a rom, make a back up of current rom, then flash the new rom.
[G2 and Desire Z Android Development] jm1218:
Definitely would be more then happy to download both those programs, but as far as after that of "downloading a rom", "and making a backup", I am completely at a loss. Anyone mind helping me out with step by step instructions. Sorry Im such a newbie.
[G2 and Desire Z Android Development] eunkipark92:
After you download the rom manager, open it up click doewnload clockwork recovery. Click htc vision or htc g2 whatever it says. Ur gonna get a pop up msg just allow it.

Now open the rommanager again click reboot into recovery.

When ur in recovery, using ur volume button or trackpad go down to back up and install.

Now click back up

Its gonna take a while.

To install a new rom

Now click factory reset

Go into advanced and choose wipe out dalvik cache

now choose install from sdcard.

Go to the folder where u saved the custom rom

Click it

Gonna take a while

After that choose reboot system.

ur done

Ur first boot is going to take a while around 5min to 10min

If u want to keep ur apps and such download titanium back up from the market and back up your apps. Do not back up system apps though. After that when ur on a new rom installthe titanium back up again and restore it and ur done
[G2 and Desire Z Android Development] jm1218:
"Go to the folder where u saved the custom rom"

I do not know how to make a custom rom:confused:
[G2 and Desire Z Android Development] eunkipark92:
You just download from the thread. There are multiple roms on xda android developsection

Such as miui, cyanogenmod 7 htc sense etc.
[G2 and Desire Z Android Development] danjus:
Thanks a bunch!

This was easy root - thank you !!!
[G2 and Desire Z Android Development] Modernly:
Thanks

Just got my insurance replacement G2 (original took what could be considered the MOST minor corner impact and the digitizer cracked, so ****ing lame) and was rooted in minutes.

Stoked.
[G2 and Desire Z Android Development] richierich118:
Thanks I got my g2 when it first came out in oct. I rooted it with the long method look me awhile to do it. Had to replace it and got a new g2 and rooted with this in minutes great work
[G2 and Desire Z Android Development] xsteven77x:
I must have missed something here. There is a sticky at the top that to sum it up, says visionary is the devil app. Bricks phones, busts ****. Why do we even have this method open and available for people to use? There are better ways to do this, and if it is such a high brick risk, why do we still have this so newbies can come and F there stuff up? Not getting it...
[G2 and Desire Z Android Development] astriaos:
That is only if you attempt to permanent root with visionary. You can get temp root without any difficulty however if you try to perm root with visionary you can have issues.
[G2 and Desire Z Android Development] xsteven77x:
Alright i understand now. Though i still feel noobs who know nothing about rooting or anything of the sort are not gonna understand that and probably still brick there phones. Even in 1% of new users brick there phones, that is 1% too much figuring there is other better alternative ways of doing it.
[G2 and Desire Z Android Development] jwalk74:
Hey guys, I have a Vibrant, rooted, running 2.3.4, all that stuff, but never messed with terminal emulators before today. Just got a G2 to have another phone to play with. Got to say, the author of this OP did a perfect job describing what to do! I followed line by line, double checked everything I typed, and I am rooted/S-Off in a matter of 7-8 minutes!

Great job!

And MANY THANKS!
[G2 and Desire Z Android Development] Richard1510:
They are talking about using visionary to prem root. If you try and perm root with the visionary app there is a high brick risk.
[G2 and Desire Z Android Development] jwalk74:
well... i spoke too soon... now i'm stuck, went to use titanium and says i no longer have busybox. different apps say 'not rooted', others say 'no busybox', i still have S-Off, but my system will not mount as RW, only R. I am confused!!! i made a nandroid back up last night and now clockworck says 'no backup'. Really starting to dislike this phone after all!:confused::confused::confused:

I am getting 'segmentation fault' in terminal emulator... any ideas?????????
[G2 and Desire Z Android Development] Richard1510:
Did you try and click the problem button in titanium backup?
[G2 and Desire Z Android Development] jwalk74:
tried that through titanium, d/l busybox but said it failed, tried with Stericson "busybox" from market, no luck there. Many apps that require root say busybow is not installed but i can see it through Astro. one app tells me that /system/xbin and /system/bin are not RW
[G2 and Desire Z Android Development] jwalk74:
Resolved

I fixed it! Flashed a different rom, then installed Busybox 1.17, my phone didn't like the newer Busybox.

I posted this so maybe it will help somebody one day.
[G2 and Desire Z Android Development] jibbz:
hey guys i just got a g2 a month ago... so far so good...its really fast n easy to use.. now i wanted to turn it up a natch, and root it... is it a good idea??? i mean i dont want my phone to get slow or anything
[G2 and Desire Z Android Development] Sinistah_:
You can overclock it to make it even faster than it is now. Id say rooting your phone is a good idea. I'm sure everyone here would tell you the same.
[G2 and Desire Z Android Development] lainvalenajr:
Its a great idea...
[G2 and Desire Z Android Development] matt_b:
this is by far the easiest and most stable way of rooting a g2. i did it to my own and also a friends the other day.

thanks for a great guide.
[G2 and Desire Z Android Development] dwsco:
Thanks!

Worked like a charm (except for the teeny tiny characters in the terminal emulator :) )

Thanks a bunch..
[G2 and Desire Z Android Development] vatovec:
Can I use this root method if mine DZ build is 1.82 or do I have to downgrade it?
[G2 and Desire Z Android Development] alexgarrett:
no data! Gah!!!

I followed the intructions to the letter, and everything went great. I have at&t service, and when I booted back up with my at&t sim in it, I have signal bars and can make calls, but no data network signifier or data connection. I went into my network connections and made sure data connection was enabled and chose the at&t network, and after a couple more reboots, still no data! Can anyone please help me figure this out? Is there something I'm missing?
[G2 and Desire Z Android Development] longhorn24:
Does this work with the mytouch 4g? (htc glacier)
[G2 and Desire Z Android Development] cnote74:
You need the apn settings for at&t in order to receive data
[G2 and Desire Z Android Development] alexgarrett:
Funny story, I downloaded and flashed a sense rom and I'm on the Edge network! For an unlocked G2 on AT&T, that's as good as it gets. They can't use the 3G or HSPA+ networks, so I think all is good now. Thanks for your quick response!
[G2 and Desire Z Android Development] cnote74:
Your welcome
[G2 and Desire Z Android Development] trench619:
this looks like it might work for me, i just have a few questions first.

You talk about the OTA update that's 1.72 needing to be downgraded. I have a HTC G2, which is running "Build Number: 1.22.531.8" which i think is the OTA, and if I'm reading correctly I will not have to do the down grade with my phone?

Also, I have tried to run VISONary before and got temp root, after temp root I tried to pera-root the phone with VISONary and it didn't work, although the phone works just fine without any weird glitches or issues. Has me attempting perma-root with VISONary done anything to my phone that will make this "VISIONaty\gfree" way described in this post not work?

Thanks for the help. I'm hopping to finally get this thing rooted for once.
[G2 and Desire Z Android Development] trench619:
I’m looking for a replay to my above message… I know I just posted it last night so I’m aware I’m being a little impatient, I just figured a bump in the post would possibly get me a quicker response.

I’ve wanted to root my G2 since the day I got it and this method looks like it’s very promising, I just needed a few questions answered before I jump in and brick the phone on accident.
[G2 and Desire Z Android Development] trench619:
I followed the instruction to a T on this guide for rooting my G2. After the process was over I attampted to check and see if i have it rooted and S-OFF.

I press and hold down the volum key, then power on the phone. the phone will not boot at this point at all, it just flashes a orange light at the top of the phone by the speaker and the screen stays black.

I did NOT do the Flash this hboot section for fear of bricking my phone.

I have to then pull the battery out and place back in to get my phone to boot up. Did I do something wrong? Do I not have root access?

Please Help, kind of worried now.... well, not kind of, VERY worried now. Phone seems to boot slower and icons on desktop take a wile to appear after it's booted up.
[G2 and Desire Z Android Development] sheeksta:
Will this method work with a 3 month old G2 that has the latest stock ROM?
[G2 and Desire Z Android Development] sheeksta:
Mad Props!

I gotta give MAD PROPS to this amazingly easy root guide/kit. Took me ten minutes (if even that) and the G2 was free and golden. Awww THANK YOU! :):):):)
[G2 and Desire Z Android Development] suchavibrantthang:
man...i keep d/l the root_files.zip but i keep getting errors when opening with winrar. kaspersky says this file has trojans too. this sux.

says:

xxxxxx\root_files.zip: The archive is either in unknown format or damaged

any suggestions?
[G2 and Desire Z Android Development] nitewalker033:
Worked great for me on my wife's G2
[G2 and Desire Z Android Development] tarroyo:
On the second command how many spaces is that between cp and /sdcard

Same with permroot and /data how many spaces between those words?
[G2 and Desire Z Android Development] andslide:
It worked perfectly but I'm having issues with updating the superuser app
[G2 and Desire Z Android Development] arsonist63086:
This method works perfectly no issues what so ever on my g2... but I would recomed once this method is done to install the stock rooted rom that on this form (sorry I can't post the link) that's what I did and it works grate
[G2 and Desire Z Android Development] Rosemberg91:
help i used this guide now my htc vision is s-off but at the boot remain the bootscreen htc and lock... is my htc briked?? :mad: :(
[G2 and Desire Z Android Development] bstromberg:
this guide rules. i rooted my wife's first g2 a while back with the rage method which was a huge pain in the ass. i just rooted her 2nd g2 (warranty replacement) in like 5 minutes while she was sleeping like a ninja...so awesome. thanks OP!
[G2 and Desire Z Android Development] arsonist63086:
^^^ I laughed when I read the ninja part ... lol

For the vision ppl you guys should read to o.p. all the way threw and not skip a step. Also I believe it says it might cause some issues with vision so best to stick with other method and g2 ppl use this ..
[G2 and Desire Z Android Development] chef2:
question[][]

I plan on flashing the Virtuous gingerbread rom on the G2 after rooting it. I dont NEED to flash ENG HBOOT do i? I would rather avoid the risks explained.

ALSO Anyone point me to a flash of CWM so i can put gingerbread on?

thanks thanks
[G2 and Desire Z Android Development] tarroyo:
how do u know when its done? I see syncing data then below it I see a # sign
[G2 and Desire Z Android Development] ReyRey2k8:
i can comfirm that this does work still and to answer tarroyo's question, the # after its done sync means you are able to type in another command just like after you would type in "su" to check if you have root permissions
[G2 and Desire Z Android Development] merkin110:
I rooted my warranty exchanged G2 and am probably going to return it since the touch screen works like crap. What is the best way to get s-on and factory ROM reinstalled?
[G2 and Desire Z Android Development] nvillamob:
I rooted my phone last night using this method. Thanks so much to the OP for creating this guide.

I've got a question though: after rooting i went to the market to install Superuser but it won't install properly. I get a message saying "installation of superuser unsuccessful." The app shows up in my app list in the market but not in my list of apps under Manage Apps > all apps. Has anyone come across this? how can I install superuser?

Also I can't uninstall the Superuser Permission app that came with the zip file.

thanks for the help.
[G2 and Desire Z Android Development] Ditamae:
Followed the directions to the letter, and everything went swimmingly. Thanks so much OP!
[G2 and Desire Z Android Development] lexi1986:
Hi Guys,

I have a European (Dutch) HTC Desire Z and I want to get back to stock rom en radio etc. I have my S-OFF my device with "Gfree". Is it safe for me to go back to a stock rom and radio? And does someone know which rom and radio I must use. Hope someone can help, it's NOT the TMOUS version which I own.

The reason why I want to go back to stock is my touch screen is not responding at some points and I need to send it to HTC. Hope someone can help me. Thnx
[G2 and Desire Z Android Development] Krustak:
Hi,

doesnt work for me. When I tryied to temp root, than my phone stuck on black screen after "please wait" screen. Only reboot helped me to go back..

I got latest stock HTC ROM, 2.3.3
[G2 and Desire Z Android Development] wesg631:
I have done all the steps on my previous g2 but an anger fit caused me to get a new one I have tried it on the new one and I get all the way to the end and it says /data/local/perm_root: not found any help would be greatly apperciated
[G2 and Desire Z Android Development] wesg631:
Nevermind its hard to see the spaces lol just did it thanks for the guide
[G2 and Desire Z Android Development] PsychoPomp:
Thank for putting this together, saves a lot of time.

@krustak

I believe this method only works with 2.2.
[G2 and Desire Z Android Development] wesg631:
Say I want the desire z hboot but I have a g2 could I just flash the desire z hboot like the g2 one or will I have to do it through adb
[G2 and Desire Z Android Development] wesg631:
Anyone
[G2 and Desire Z Android Development] lucasleiva:
So if i do this right it ill have hboot? Wich means i could install those vertuous unity roms?
[G2 and Desire Z Android Development] coszy:
You can download the hboot from the virtuous official web.
[G2 and Desire Z Android Development] lucasleiva:
Oh cuz it said in the guide if you want engineering hboot run this command and I did and it worked, so is that different from the desire z hboot?
[G2 and Desire Z Android Development] lucasleiva:
BTW I have to send my phone back to be replaced if I did a back up before I flashed any roms through clockwork recovery can I just restore that and flash the pc10.img file or whatever its called to unroot ?
[G2 and Desire Z Android Development] xxqbnxx:
Does anyone know if this works with stock gingerbread ?
[G2 and Desire Z Android Development] Ditamae:
No, it doesn't. You need to downgrade. I believe there are multiple guides... such as:

http://xdaforums.com/showthread.php?t=1178912
[G2 and Desire Z Android Development] xxqbnxx:
Hey Thanks a lot !
[G2 and Desire Z Android Development] :
If you don't need to downgrade, this literally takes about 2 minutes. Sweet.
[G2 and Desire Z Android Development] Ditamae:
ENG Hboot (G2)

Just thought I would mention that after skipping the step to obtain engineering hboot months ago, while using this guide (with ease) to root, I decided I did in fact want it. I followed the OP's instructions from page 15 or so and it took all of 5 minutes - including the time to make a nandroid. So if anyone wants to flash ENG Hboot after the fact, this worked for me:

This assumes you have the "root_files" contents from the OP on the root of your SD card, of course.

Code:

$ su

# cp /sdcard/root_files/flash_hboot /data/local/flash_hboot

# chmod 777 /data/local/*

# /data/local/flash_hboot

Once again, thanks ianmcquinn.
[G2 and Desire Z Android Development] imranbandial:
for some reason,visionary dosent work on my g2,2.3.4,when i attempt temp root,it says rooting and stays on black screen.
[G2 and Desire Z Android Development] CoNsPiRiSiZe:
Weird mine works like a charm... have u tried hitting the home button when u get to the black screen?