yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] lainvalenajr:
Okay I rewritten Unforgivens Method to my own understand and I hope this will help some people. This is what I do when I Prem-root my phone and my friends. You can fallow this method IF you want to but I RECOMMEND to use the Gfree method. I want to say thanks to Unforgiven for this method.

1. Open Visionary and press Temp root(Temporary root). Make sure to uncheck everything.

2. The files you have download should be on the download folder. Download Es File Manger or Astro from the Market Open the application and move the files to /sdcard/(Root of the sdcard).

3. Download terminal from the android Market. Once downloaded open terminal.

4. Prepare to type the fallowing...

$ su

# insmod /sdcard/wpthis-OTA.ko (Note I assume that you have the over the air update from T-Mobile)

Once you type the codes correctly you should get this

init_module wpthis-OTA.ko failed (Function not implemented)

If you got this your doing it correctly

5. Okay this is the most serious part of typeing in terminal because you can brick you phone and no way to unbrick it without htc or something. Please make sure to look at the codes at least a few times. Okay type this in terminal.

dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18 (MAKE SURE ITS EXACTLY THE SAME AS THIS!)

6. On terminal type in the fallowing

sync (Leave it like that for 30 seconds at least.)

7. Pull out your battery or turn it off.

8. When your phone is off hold the fallowing:

Volume Down + Power.

On the top it should either say S-on but it should say S-Off.

9. This is that part where you get permanent root. Open visionary and press temporary root. (Make sure everything is uncheck) after you get temporary root press permanent root. Your phone should reboot. Head to terminal and type in su. If you get superuser permission you are s-off/Prem-root.

10. Download Rom Manager. Open Rom Manager and flash ClockWorkRecovery for the g2.

11. Start flashing roms.
[G2 and Desire Z Android Development] steviewevie:
I strongly recommend you do *not* use this method, for the reasons that guhl posted above.

Visionary is out-dated, has no support, can brick your phone, and there are far safer and reliable methods out there. At the time unforgiven wrote the procedure, Visionary was all we had. Now we have much better ways to do it.
[G2 and Desire Z Android Development] lainvalenajr:
Aha yes i do agree with you even so i posted it. Well I personally have been using only this method but thats only me. People remember it is your choice if you want to fallow it and I recommend the gfree method
[G2 and Desire Z Android Development] Stryder5:
Either you need to be in data/local, or run with the absolute path. Also, make sure you are using the proper ko file (OTA if you have the ota update, and pre-ota if you haven't updated).
[G2 and Desire Z Android Development] cparekh:
This thread will eventually get filled with confirmations, but verified and working for me. I tested this by uninstalling VISIONary, rebooting, then using terminal and ADB to get SU access. It seems to work, as I do have SU access and can use root explorer, titanium backup, and other root apps.
[G2 and Desire Z Android Development] ryaninc:
Somewhere in Taiwan, an HTC engineer is thinking, "Well, damn." :cool:

This is awesome news, guys, a huge thanks to all who made it possible. You all deserve mad respect.
[G2 and Desire Z Android Development] sylthecru:
Hotfile Link

I have added all three files to one zip.

hotfile.com/dl/81472814/97c50f4/G2-root.7z DOT html
[G2 and Desire Z Android Development] a-money:
hmm when i run the insmod command, i get Exec format error instead of the posted error

however i can do all the other steps just fine, the error is different and it seems im not booting into permaroot
[G2 and Desire Z Android Development] androidtoy09:
I suggest we wait for a more solid, intuitive and stable method. Im not dissing the op or anything. I appreciate his effort. But we all should be careful.

A does-it-all app would be nice right Paul? :D
[G2 and Desire Z Android Development] tdcrawford:
Confirmed- I'm showing S-OFF.

Great job devs, you guys rock!!
[G2 and Desire Z Android Development] Stryder5:
For those who have done this, is the OC and all those goodies still working for you?
[G2 and Desire Z Android Development] PlatinumMOTO:
Thanks to Neejay for the insight and thanks to all the devs in #G2ROOT especially scotty I know you slept like 6 hours for a week but congrats you guys did it in a month.

That's freaking awesome let the rom flashing begin! The G1 was the first android phone and the first of it's kind and now the G2 was the first of it's kind...to be cracked. Amazing!
[G2 and Desire Z Android Development] pixelwix:
will this allow as to flash the desire z rom?
[G2 and Desire Z Android Development] Shambala001:
I have done this and it works great, thx to all the developers who helped make it happen.

For those who need some help: (not my fault is something goes wrong)

Go to this link and learn a little about adb:

http://xdaforums.com/showthread.php?t=502010

Then simply follow the directions in the first post or:

This pushes the 2 files to your phone using adb (the 2 files go in the tools folder and the wpthis file is for whatever your phone needs, ie. pre ota or post ota)

adb push hboot-eng.img /data/local/hboot-eng.img
adb push wpthis-OTA.ko /data/local/wpthis-OTA.ko

Then I ran these commands

adb shell
su
insmod /data/local/wpthis-OTA.ko

Returns this error: init_module 'wpthis-OTA.ko' failed (Function not implemented)

dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18

Run visionary again to lock root (it will say already rooted)

sync

Wait 2 minutes then reboot

Then run VISIONary again, and reboot

Finished =D
[G2 and Desire Z Android Development] Radioactive Death:
In reading the IRC logs, it appears that after you do this process, you still need to run VISIONary one more time to get it to push superuser.apk and su to the proper place.

After that is done, is there a need for VISIONary at all anymore?
[G2 and Desire Z Android Development] Neejay:
Nope, remove it.
[G2 and Desire Z Android Development] fastludeh22:
Here's my slightly ot question. Does the g2 set the partations based on the spl like previous htc devices? If so then we should be able to flash the z spl after having s-off to get a larger /system, correct?
[G2 and Desire Z Android Development] Radioactive Death:
Thanks! Appreciate it
[G2 and Desire Z Android Development] richierich118:
Thanks to all who have done the work to get root. I really appreciate it
[G2 and Desire Z Android Development] a-money:
this is the only thing im stuck at, my error says Exec format error

any idea what the problem is, or should i just continue as normal, also when i run visionary for the second time, it just says its already rooted. is that correct?
[G2 and Desire Z Android Development] Arcadia310:
Do you put the files in the tools section of the android SDK? In my tools file there's already quite a bit of stuff in there

and...

do you run all of the following commands at one time then press enter, or do you do them separately then press enter?
[G2 and Desire Z Android Development] Stryder5:
Place the files in same section of where you run adb in order to push them.

Run each command separately.
[G2 and Desire Z Android Development] stian230:
yea exactly what I thinking .
[G2 and Desire Z Android Development] mbolden:
Tha CRaziEST thing went wrong! Help anyone?

My TMOB G2 has an the OTA update that was installed manually. I can temproot but no permroot.

I pushed the files (hboot-eng.img & wpthis-OTA.ko) to the correct location.

I ran temproot (all went ok & got superuser access)

Ran the commands from terminal (all went perfect- got the correct messages)

now- was I supposed to run 'attemp permroot now'? Because when I did, the phone rebooted.. and VIOLA I still didnt have permroot. Umm.. what am I doing wrong anybody?

Thanks!
[G2 and Desire Z Android Development] lainvalenajr:
I advice to do the wiki method if you are getting issues from this method to avoid any form of brick my friend
[G2 and Desire Z Android Development] bedlight:
Alright, so I just bought a G2 offline. I have no idea if this phone is rooted or if I need to root it. It did not have Superuser when I started it up. But, when I went to the bootloader, it looked exactly like the picture in the 1st post. It says ENG S-OFF & all that. It even has Clockwork Mod as a recovery. Now by the looks of it on here, that S-OFF os something that happens when you root it or when you're done rooting. So my question is, does anybody know if I'm already rooted?

I also have no idea if it got an OTA or not.
[G2 and Desire Z Android Development] XxFerociouS:
You are most likely rooted .

U can flash custom roms and stuff now if u want .
[G2 and Desire Z Android Development] bedlight:
Will my phone brick if I try to flash a rom & it isn't actually rooted?
[G2 and Desire Z Android Development] XxFerociouS:
Well from what u said I'm sure your phone is rooted

It won't brick as long as u have S-OFF

I had the same problem just flash a custom rom and you will be perm rooted with super user
[G2 and Desire Z Android Development] petreski:
Hello,

Does anyone tested it on Desire S ?

Thanks.
[G2 and Desire Z Android Development] marka2k:
Having a issue with Flashing the radio on a Desire Z I can and have flashed custom ROM and Radio before I have also verified through Bootloader I am still S-OFF.

When I try to flash the ZIP from recovery it verifies the image and begins the install then aborts.

Any ideas or suggestions are appreciated.

Thank you
[G2 and Desire Z Android Development] misfit61871:
Verify that your file is named PC10IMG.zip, I had the same thing happen to me before and could not figure out why, so I went to the PC10IMG.zip file on my SD card and when I went brought up the rename option I saw the problem: It was named PC10IMG.zip.zip, I had to delete the extra .zip and after that it installed just fine.

Now I always double check my file names lol
[G2 and Desire Z Android Development] marka2k:
I gave up and pushed the img file using the ADB method after I thought of trying that method; it worked.

Thank you for the reply.
[G2 and Desire Z Android Development] davidjz87:
i flashed the vison pvt img on my tmobile G2 so i can try out sense but i dont like it ive tried searching for hours actually saw the sun come up looking to go back to the G2 hboot. any help would be appreciated
[G2 and Desire Z Android Development] Jcki4:
hey im am a lil lost and confuse i was wondering witch way do i root my G2 HTC on T-mobile i thought it woud something like my evo 4G and EVo 3d

and BtW if its helpful my H-boot is 0.82.0008

update: apr 13 2011, 14:51:54

???
[G2 and Desire Z Android Development] Nipqer:
Use the Official XDA Wiki Guide

-Nipqer
[G2 and Desire Z Android Development] antivirus1:
can only get visionary 14r and its not doing anything.. stays on the black screen...
[G2 and Desire Z Android Development] steviewevie:
Do not use Visionary, please ! It has a high brick risk. This thread really should be locked, it was fine when this was the only way, but nowadays it's a very bad method to use compared to other methods.

Use the guide in the XDA Wiki, there's a link at the top of the forum.

Sent from my Desire Z running CM7.
[G2 and Desire Z Android Development] broncogr:
Thread closed as this method in now obsolete!!!
[G2 and Desire Z Android Development] Arcadia310:
And all I do is

adb push hboot-eng.img /data/local/hboot-eng.img

adb push wpthis-OTA.ko /data/local/wpthis-OTA.ko

?

Don't they need to be pushed to data/local?
[G2 and Desire Z Android Development] j.books:
don't use ADB then. use astro or root explorer or some file browser to manually put the files in the right place. after that use terminal. seriously tho, you should probably do some research elsewhere about such things if you don't already know. personally I'm going to wait a few days for people with more knowledge than me to implement this on their own devices so any bugs/issues are discovered and worked out. not that its all that complicated as is, but with time this might get streamlined into a one-click solution.

thank you devs! donations are in order
[G2 and Desire Z Android Development] starkruzr:
If VISIONary says "you are already rooted," how do I know root is "locked?" This seems like a missing step in the instructions.
[G2 and Desire Z Android Development] bobsbbq:
Thanks to all the people to make this happen and Scotty you just beamed us up. lol

Can someone in the development group give their opinion if this will definitely help root come to the MT4G soon or is it going to have to been all done from scratch.

I'm having lots of issues with my G2 and I was going to switch to the MT4G based on the fact I don't need a keyboard and especially a floppy one and some other issues. My 14 day remorse is about to expire so any help would be greatly appreciated.

PS I will send my Donation even if I do switch to the MT4G as this is awesome.
[G2 and Desire Z Android Development] a-money:
im also confused by this, and nobody seems to know the issues im having?

i have my card partitioned differently, maybe set it to normal
[G2 and Desire Z Android Development] Stryder5:
That's exactly what the commands do, but I would recommend, as other people mentioned, using some kind of file manager since you aren't familiar with adb.
[G2 and Desire Z Android Development] ThaGeNeCySt:
uninstall visionary, restart phone... run terminal, type "su".. if u gain super user access, you're perm rooted
[G2 and Desire Z Android Development] Arcadia310:
You're probably right, I'm just getting a little excited. :D
[G2 and Desire Z Android Development] Whoareyou:
HOLD uP, S-OFF, 2HY DO YOU ALL GET IT IN A MONTH AND ESPRESSO USERS ARE STILL WAITING ON THIS...., STILL, WITH S-OFF, I THINK Y'ALL CAN FLASH THE DESIRE Z SHIPPED ROM NOW!!!! :) :) :)
[G2 and Desire Z Android Development] adrieono:
when I open up the /data folder I only see my apps and a few other folders. not the /local folder.
[G2 and Desire Z Android Development] userfriendlyme:
this is where im stuck at also someone please eplain. i got all the way til i have to run vISONary again but its just telling me its already rooted its not running it again.
[G2 and Desire Z Android Development] Arcadia310:
Yeah I'm going to do that. So I would place the files in data/local via Astro? Then what do I do after that?
[G2 and Desire Z Android Development] Stryder5:
You may need to create it if you haven't done so before hand.
[G2 and Desire Z Android Development] cparekh:
I got that, but then I turned the "run at boot" part off, rebooted, ran VISIONary, waited two minutes, then rebooted, then I had root.

I actually seemed to have it even after the first reboot as Fastboot said S-OFF, but I rebooted and ran VISONary again, just to be sure.

Boot into Fastboot (hold down the action button) to see if you are S-OFF.
[G2 and Desire Z Android Development] Shambala001:
It will say already rooted but if the directions are followed correctly then it is locked.

Those commands do exactly that:

adb push hboot-eng.img /data/local/hboot-eng.img

But you can also use an app like root explorer to do this on your phone
[G2 and Desire Z Android Development] Neejay:
This means you're done guys. lol
[G2 and Desire Z Android Development] userfriendlyme:
the problem is the steps are saying "Close your terminal. If you are in adb shell, disregard :) Run VISIONary again, this will lock in root. But wait, you're not done yet.Fire your terminal back up, use su to regain superuser privledges"

the problem is its not running VISIONary again were getting the message saying phones already rooted thus if we reboot we still have S-ON...
[G2 and Desire Z Android Development] a-money:
is there anyone else getting different errors when trying the insmod command
[G2 and Desire Z Android Development] userfriendlyme:
cant be becasue when i reboot and check recovery its still showing S-ON. the last sep to run vsionary the apps not running anything to lock in root.
[G2 and Desire Z Android Development] Shambala001:
When you run VISIONary again it is being locked, yes it will say its already rooted, thats good. Now continue to run sync, reboot after 2 minutes, run VISIONary one more time, reboot, and your good to go.
[G2 and Desire Z Android Development] a-money:
i still see S-ON and when i boot i cant run su right off the bat

so im not done bro
[G2 and Desire Z Android Development] lightningtrip:
hahahaha.....you guys rock....!! :-)
[G2 and Desire Z Android Development] Neejay:
And you did the 'sync' and waited a few minutes, then rebooted?
[G2 and Desire Z Android Development] Neejay:
Ah, didn't know you were still getting S-ON. I had the same message pop-up, but I was rooted...hmm...
[G2 and Desire Z Android Development] KShatzkes:
OMG I can't wait to get home and do this! Anyone got Cyanogen up and running?
[G2 and Desire Z Android Development] Brondar1:
S-off achieved

Not since the day that Tenfar uploaded picutres of his gold carded S-off have I been this excited. As an abosolute complete noob I am proud to say thanks to all who worked on this so hard as I now have S-off without a $2500 goldcard...
[G2 and Desire Z Android Development] tdcrawford:
To those worried about VISIONary saying you're already rooted- it's not a big deal. As long as you performed all of the other steps correctly, you should be rooted. Restart holding Power+Volume Down and check to see if you see "S-OFF" at the top. If you do, you're good to go.

Also, make sure you turn off "Run at start" in VISIONary before you restart!!!

I personally had to restart twice to get permroot.. not sure why, but I restarted once and checked to see if "S-OFF" was showing (which it was) but didn't have root when the phone booted up. Restarted again (didn't change anything), and everything was fine.

Again, thanks to the devs for making this happen. All of your hard work and time is greatly appreciated.
[G2 and Desire Z Android Development] userfriendlyme:
im trying aain but yes its still S-ON for me even after those steps going through them again now.

EDIT: everything already copied to /data/local. i re did the terminal commands and as suggested ran VISIONary then # sync waited and then ran VISIONary again. i rebooted and its now showing S-OFF.
[G2 and Desire Z Android Development] Kalandros:
So they finally did it. Way to go guys! The day I check back on the forums after a short abscence. Woohoo! Gonna wait until I can get some stabler roms before I commit the change.
[G2 and Desire Z Android Development] edwardlanti:
You guys rock!!! I did it using the root explorer.. so freaking easy :). Now we just have to wait for Cyanogen
[G2 and Desire Z Android Development] Jorsher:
Thanks again guys. Let me know where to send some beer money.

Instructions were easy and straightforward. Great feeling to have S-OFF. I had my doubts, and surely didn't expect to see it this soon.

Thanks again, easy as pie :D
[G2 and Desire Z Android Development] tony28:
Thanks all of you guys, who did it... YOU ROCK !!!! :)
[G2 and Desire Z Android Development] Anomaly:
Guess I can order this phone now. Good work devs.
[G2 and Desire Z Android Development] nk02:
hboot-eng

wpthis-OTA.ko

wpthis-pre-OTA.ko
[G2 and Desire Z Android Development] ZeroSX:
There's already a user-compiled (as in not cyanogen, unsupported) build floating around. @work atm, haven't been able to test.
[G2 and Desire Z Android Development] jakobdroid:
just rooted my pre-OTA G2 and it worked beautifully. After restarting my phone from checking for S-OFF, I instantly got a dialog for the OTA update. Is it safe to update? I'll just have to reroot with the other ko correct?
[G2 and Desire Z Android Development] The Great NY:
Once you guys do all the steps and do the "sync" command. Wait for two minutes. Then reboot. This first reboot sets the s-off

Once the phone boots up run visionary once. and reboot. Your root should be locked. I advice taking visionary off the "run on boot" setup for this
[G2 and Desire Z Android Development] jeeper251:
Exact same scenario here too.
[G2 and Desire Z Android Development] The Great NY:
Yes you will need to reroot with the other ko file. Although I'm unsure if the new ota update will mess something up if installed with the non ota root package. Maybe. Someone more knowledgeable can chime in.

Ill be donating shortly for this. Awesome work to those involved.
[G2 and Desire Z Android Development] fastludeh22:
Guys s-off and root are NOT the same. Soff let's u flash unsigned imgs in fastboot. The perm root comes from wp being turned off, then the rage exploit (which is what visionary uses) gives u the root access your use to, its just perm now since wp is off. This process does all of that to pave the way for the future...
[G2 and Desire Z Android Development] Stryder5:
After you run the sync command, make sure to do a full reboot. After it does a full reboot, you can then boot into recovery/fastboot to check whether S-Off is there or not. I made the mistake of booting into recovery/fastboot and the permaroot didn't hold so I had to repeat the steps. Thought I bricked for a second.
[G2 and Desire Z Android Development] fastludeh22:
There is no spl (hboot) in the update, so u shouldn't have to do this again. However, u might have to reroot via rage/visionary (see 2 posts back) if the update deletes it from /system, which it may or may not, will test when I get home tonight.
[G2 and Desire Z Android Development] k50aker:
Can I do it through a terminal emulator on the phone?
[G2 and Desire Z Android Development] jakobdroid:
Well, just finished the OTA. After the phone restarted, visionary gave me a dialog 'already rooted'. So I'm guessing this survives the current OTA update.
[G2 and Desire Z Android Development] lightningtrip:
yes, I do everything thru TE
[G2 and Desire Z Android Development] userfriendlyme:
you can use root explorer to push the files and then yes the terminal on your phone for the commands.
[G2 and Desire Z Android Development] luis86dr:
Where's the guide? Don't see it in the op

[G2/HTC Vision]
[G2 and Desire Z Android Development] Carloswithac:
Donated $20. Thanks, guys!
[G2 and Desire Z Android Development] Code3VW:
I haven't started this yet...but I'm following all of this through in my head (and on my cmd window running adb shell) and sync in the window comes back with not a valid command...just wanted to verify that we do sync ON THE COMPUTER in the adb shell, and not on the device in the terminal emulator...

Correct?
[G2 and Desire Z Android Development] pmstc:
Yep, that's how I did it. I downloaded the files via 3G to my SD card, then copied the files to /data/local/ and was able to do everything through terminal emulator. I love that thing.

Thank you all of the devs who worked hard on this! Works great.
[G2 and Desire Z Android Development] ratchetrizzo:
this is great news. I just ordered a g2.

Bye Bye slide, it can go on the line I just upgraded (thank god for upgrades, still have one left!)
[G2 and Desire Z Android Development] KShatzkes:
Worked flawlessly!

Now, questions. Since we have permanent root, can we now uninstall bloatware off this phone? If so, how? I still can't click uninstall under many of the bloated apps.

Also, I'm guessing we should leave those files in /data/local? As in, we shouldn't delete them after rooting, correct?
[G2 and Desire Z Android Development] Omeer:
Awesome!!! I'm officially S-OFF! Thank you and the entire team behind this root. Now, would you mind if I created a noob proof guide based on this?
[G2 and Desire Z Android Development] jakobdroid:
i ran sync through my phone's terminal and it worked just fine.
[G2 and Desire Z Android Development] richierich118:
Do i have to be on the latest ota to do this. I have not updated my phone to the new ota. ok nvr mind just reread the 1st post and i see what i have to do
[G2 and Desire Z Android Development] Code3VW:
You don't see this?
[G2 and Desire Z Android Development] Code3VW:
Thanks for the heads up!
[G2 and Desire Z Android Development] Code3VW:
Read the first post...there is a .ko file for people that don't have the OTA (pre OTA) and a .ko file for people that do have the OTA (OTA).