yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] D_Rob:
*Edit* If you came here from my sig, read every last bit of the first post on page 1 by unforgiven512. Then if you need a little more detail peek here.

This is what I did. Note, I had the OTA and I use VISIONary r10 which I have attached. These are most of the steps they have listed with only the excact ones you need to do to do it. When I did it last night I had to specify a specific folder that was not listed on the first post. I take no credit, I just combined what others had done, and this is if your using adb.

Step 1

Firstly, run VISIONary to gain temp root (meaning install VISIONary r10 and root)

Step 2

Go to command prompt on your PC and Push the .ko file appropriate for your phone, and hboot-eng.img to /data/local/ (it will look like this: (adb push hboot-eng.img /data/local/hboot-eng.img)) Do the same for the wpthis.ko you need, OTA if you took the OTA, and pre OTA if you didnt update for wifi calling.

Step 3

Enter: (adb shell) into cmd prompt from your computer.

Step 4

Code:

su

insmod /data/local/wpthis-[YOUR_VER].ko

It should return:

Code:

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

That is good.

Step 5

FINAL WARNING: THIS STEP COULD SEVERELY DAMAGE YOUR PHONE. USING THE INCORRECT FILE COULD CAUSE IRREPARABLE DAMAGE, MAKING YOUR PHONE NOTHING MORE THAN A BRICK.

That noted, if you would like S-OFF, go ahead and run this command in your terminal.

Code:

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

Step 6

Run VISIONary again, this will lock in root. But wait, you're not done yet.

Step 7

This step will lock in your perma-root and S-OFF.

Code:

sync

Wait a minute or two, and reboot.

NOTE: after these steps I had to run visionary when I rebooted. As soosn as it finished, I rebooted again and then I was rooted.

Congratulations, you are S-OFF!! Go ahead and power off your phone, and hold down VOL DOWN and press POWER to boot up into your bootloader. Check the top line to confirm you have S-OFF. Enjoy!!

Ps. dont brick it cause it wont be my fault. Hope it helps.
[G2 and Desire Z Android Development] xzxxzx:
Wonderfully written instructions and very easy to follow. Rooted my phone without a hitch. Thanks to everyone for the hard work that made this possible! Now to have some fun... :D
[G2 and Desire Z Android Development] ZombieUsr:
Quick question, I have read the OP several times today, and was wondering this; I have the last update of VISIONary (the last update that was on the Android Market), I don't know if this is r10 or not. Also too, can this be done from the terminal emulator from the G2. Seeing as I do not have ADB on my PC. Unless anyone has a link to ADB to download. Thank you
[G2 and Desire Z Android Development] moyism:
ZombieUsr, quick answer for the visionary edition; if you go to settings -> applications and go to manage them, you can check what version you have. For adb, google "android adb" and you should find everything you need to do this (aka it's a free dwonload) ;)

Also yea, you can do the majority of the steps via terminal on the G2 (I actually did this for the command steps using ConnectBot) if you can't get adb working (I had issues doing some of the commands via it). I actually used a combination of both, adb on the PC to push the files over and connectbot on the G2 to do perm root w/o much issues.

D_Rob, thanks for the additional instructions as they helped me a bit when I did this just a few minutes ago. Pretty "dummy proof" as long as you understand what's going on.

unforgiven512, scotty2 and all others involved for this perm root, thanks! Using your instructions with D_Rob's had no issues rooting my phone at all. And I lol at myself since I thought I'd wait a few more days until I do it, just in case of any major issues popping up cause of this but... ;)
[G2 and Desire Z Android Development] KidJethro:
You really should get ADB goin on your pc, makes doin all this stuff soooo much easier. I had used it way back in the Android 1.5-1.6 days on the G1, but since then have been through a couple different laptops, a new phone and a deployment to Iraq, so I had totally forgotten how to set it up and how it worked. I looked for an ADB guide with google and found this one-

http://www.emagi.co.uk/4438/how-to-setup-adb-android-debug-bridge

Followed that step by step and had a first time go with adb and fastboot. I would suggest getting PDAnet up and running on your phone and computer before starting with the ADB setup. That will pretty much guarantee you have zero usb driver issues.
[G2 and Desire Z Android Development] steviewevie:
Did you read this bit of the first post ?
[G2 and Desire Z Android Development] slinkygn:
This does stand to reason.
[G2 and Desire Z Android Development] steviewevie:
Doesn't this thread give you everything you need ? -> http://xdaforums.com/showthread.php?t=835971
[G2 and Desire Z Android Development] demon187:
When you use visionary r12 do you need the hboot.img
[G2 and Desire Z Android Development] byebyeloser:
It is my understanding that you only need hboot-eng.img to activate s-off.

It is also my understanding that visionary r12 will also place the hboot-eng.img on your phone (purely for convenience) but not "install" it to your phone. You will need to do that yourself with the dd command if you want to use it.
[G2 and Desire Z Android Development] nousdefions7sfg:
Need stock recovery image!!

hey guys i was setting up my phone for this and my daughter accidentally installed clockmod's custom recovery image before i had my G2 permanently rooted! lol phone works fine just cant root. if anyone could post the stock recovery image that would be great!
[G2 and Desire Z Android Development] ositoazul:
problems with SU after rooting.

I need some serious help. I followed the instructions and everything seem to be working until I rebooted my phone. When I run Visionary it says that my G2 is already rooted, but when I go into Terminal Emulator or the adb on my PC and I enter SU I get the su: permission denied. I need to get this fixed so I'm able to install the custom ROMs. Any help is greatly appreciated. :eek:
[G2 and Desire Z Android Development] byebyeloser:
http://xdaforums.com/showthread.php?t=835971

This should help you...

and possibly the guy above me... idk

I assume you just need to apply step two and start over, but im also a noob so dont blame me
[G2 and Desire Z Android Development] Tomb77:
I deleted visionary because I though maybe I had a bad dl. Went to re dl it and its not an apk or my phone is not recognizing as so. Tried to get it off of Pauls site to no avail. Any help here would be great.

edit: Can someone please send me the apk. I will pm my gmail to you.
[G2 and Desire Z Android Development] boogsta161:
Locked out of Root

I'm having a similar issue.

Using the Visionary method I had root. After gaining root I removed Visionary. Currently I have 'S-OFF', however once in the OS if I try to run commands in the Android shell or adb it tells me 'permission denied'. I took it a step further and installed Visionary again, but now Visionary is telling me "Your device is already rooted".

- S-OFF

- typing 'su' in adb or android shell returns 'permission denied'

- Visionary r10, and r11 return 'Your device is already rooted' message.

I heard that the issue may have been caused by me removing Visionary after I rooted the phone. For some reason there are folders that Visionary creates that cant be re-created with a re-install of Visionary (?).

Anyone have any idea of how to resolve this?

--------

UPDATE 10:24PM: Hey guys I got it figured out. So, after removing Visionary I downloaded a different revision of it and tried to obtain temp-root with it. For me that was the problem.

*** I am not responsible for your bricked phone. ***

I downloaded Visionary r10 - For some reason, this build got around the "Your device is already rooted" error. It took between two or twenty tries however it finally stuck. I had an issue at one point where it even looped and opened 6 concurrent sessions of Visionary, however appkiller fixed that. I went back into visionary again, and it forced temp-root.

From there I just went back through the steps on here and all is well.

Thanks all
[G2 and Desire Z Android Development] GoT_VtEc?:
Got it working....guess I was using the hboot.img file that came with Visionary rather than the one I downloaded....fail on my part

BTW thanks to everyone who worked on this.... #G2root, Paul, Unforgiven and everyone else who took part :D
[G2 and Desire Z Android Development] D_Rob:
Did you reboot after running visionary and then try it?
[G2 and Desire Z Android Development] Smokexz:
I think I will wait till gingerbread hits or maybe till there is a one click root.
[G2 and Desire Z Android Development] chopperpl:
Visionary taken off android market?????

I've just reset my g2 to factory defaults, so I can start from scratch, and it seems Visionary was taken off the market. That means without temp root I can't perm root...:confused:

Update: It is available from this website:

http://android.modaco.com/content/t...350/10-nov-r12-test-visionary-one-click-root/
[G2 and Desire Z Android Development] GoT_VtEc?:
If you go to the visionary thread you can download R11 I used it and it worked fine for me
[G2 and Desire Z Android Development] DJMartini:
Anyone help?

*This can be deleted sorry for duplicate*
[G2 and Desire Z Android Development] DJMartini:
Anyone help?

I've been reading people having problems attempting to root from pre-OTA than attempting to update OTA and re-rooting than getting the error: failed (Exec format error)

However, I'm getting this error when attempting to root off the OTA.

have adb

pushed hboot-eng.img and wpthis-OTA.ko to /data/local

started VISONary r10 for su

attempting to run insmod /data/local/wpthis-OTA.ko

getting:

insmod: init_module '/data/local/wpthis-OTA.ko' failed (Exec format error)

I've tried this from adb shell on pc and from terminal mode on phone. I even thought chmod 777 might enable x to fix this , but still no go

-rwxrwxrwx shell shell 7769 2010-11-09 20:31 wpthis-OTA.ko

-rwxrwxrwx shell shell 7769 2010-11-09 20:31 hboot-eng.img

Anyone help with this?

Thank you
[G2 and Desire Z Android Development] Tomb77:
I used this method(phone terminal) with r13 and it seems to have worked. Used perm root on app on the second run of visionary and it truly gave it su.
[G2 and Desire Z Android Development] GoT_VtEc?:
I was getting the same error, it seems as though I was running the wrong wpthis-OTA.ko file....for some reason when I installed Visionary it seemed to have made a copy of this file where I had it located on my SD card and when I got rid of it and copied the right files to /data/local downloaded from the OP I was then able to get passed this error.

Good luck
[G2 and Desire Z Android Development] Tomb77:
Could this be an issue? relating to the above, I noticed that visionary r13 created a .ko in /data/local along with .ko from the instructions here.
[G2 and Desire Z Android Development] DJMartini:
That did it!

Thank you sir!
[G2 and Desire Z Android Development] lordloki77:
this has probably been asked, but can i return it to a non-rooted state if i have to take it in to tmobile?
[G2 and Desire Z Android Development] igobloxxx:
This also worked for me, thank you! I have been fighting that error all morning.

However I can't seem to achieve perma-root.

I have S-OFF , but running su from the terminal keeps reporting 'access denied'

All commands in the Ops post were completed successfully, but I still can't get perma-root. Using the temp root with ON BOOT, still works but without doing that I can't get su access.

Any ideas?
[G2 and Desire Z Android Development] pbelcomp:
Here is a link to the thread that has the instructions.

xdaforums.com/showthread.php?t=835971
[G2 and Desire Z Android Development] igobloxxx:
Disregard previous post, Resolved.

Running the temp root and then perm root after another reboot did the trick.

Again anyone getting the (Exec format error), you are most likely using the wrong wpthis-XX.ko file. <thanks GoT_VtEc?>

And thanks to Paul and everyone else that invested their valuable free time in the G2 root conquest!
[G2 and Desire Z Android Development] ccb04:
Does anyone know if Paul is coming out with a one click root method?? Im tempted to do this but would wait if he was coming out with an easier way
[G2 and Desire Z Android Development] demon187:
Can i use root explorer for this instead of adb
[G2 and Desire Z Android Development] dynamikd:
Yes you can!

Sent from DynamikD's R00t3d & OC G2
[G2 and Desire Z Android Development] amack10:
Could someone repost the files needed for this. I try to dwnload the individual files but it leeds me to a webpage full of text. I tried the mirror but everytime it downloads the only thing in the zip is tge pre ota file
[G2 and Desire Z Android Development] Deliximus:
desire z

i tried 3x. i still get S-ON.

rooted is permanent though. ihave the desire z and used the proper hboot and wpthis-z files but was directed to the g2 instructions.

my question is, when i run 'sync' in the terminal emulator, is anything supposed to 'happen'. i get no indication of anything happening but a "#" that appears on the next line. i waited 3 minutes, powered off, then started back up normally. Then turned it off, then checked to see S-ON. any tips please?

Thanks.
[G2 and Desire Z Android Development] demon187:
If i use root explorer to push files do i still need to use terminal emulator to push the .img cuz when i get to sync nothing happens
[G2 and Desire Z Android Development] chopperpl:
Suggestion

I suggest all you guys experiencing problems to root your phones from clean\wiped system. I just finished flawless rooting including install of eVil's Desire Z rom. I already had OTA installed. I just wiped the phone to factory settings (OTA is preserved), then temp-rooted with Visionary r12. Next, I perm-rooted by following this thread, and continued with custom rom install steps posted by eVil.

It was very easy, simple, and problems free. This will save you time, and keep this helpful thread clean.

Cheers
[G2 and Desire Z Android Development] zgames2002:
Thank you!
[G2 and Desire Z Android Development] ccb04:
Cant Open?

I am getting "Can't open" after i type the 1st command..Ppl were having this problem. Is there a fix? I read all 50 pages but i dont know what an absolute path is..Someone plz help i want to root my phone
[G2 and Desire Z Android Development] GoT_VtEc?:
Great Im glad it worked for you guys ;)
[G2 and Desire Z Android Development] Rahzelhx:
I have perm-root but for some reason can not get s-off. I have tried to run thecode to overwrite the hboot but no luck wonder if it is due to the fact I have no adb to push it to /data/local I'm trying to apply it from the sd card using

# dd if=/sdcard/download/hboot-eng.img of=/dev/block/mmcblk0p18

sorry i'm at work dunno if that last /mm******** part is actully what I typed in
[G2 and Desire Z Android Development] ccb04:
CAN'T OPEN

Can someone help with the "cant open" error after typing the 1st command..I put the files in the data/local folder where the vison_oc.ko is...Is this the right folder to put them in? If so i don't know why i keep getting "Can't open" Someone help i already read all the pages and am not the only one with the problem. I am using super manager as well..And i dont know what an absolute path is..Someone Help PLZZZZZ
[G2 and Desire Z Android Development] kemo8388:
good job!

Awesome work gentlemen! I will be helping spread the word of your success... just one question although slightly off topic of the g2. Does anyone know if this will work on the mytouch 4G?
[G2 and Desire Z Android Development] billyjr2:
do i need to push the hboot-eng zip,or unzip and push the file....thank you

where can i find VISIONary r12 to perma-root
[G2 and Desire Z Android Development] demon187:
I am using visionaryr13 my phone is perm root i used root explorer and moved ota and hboot to data local put command in using terminal emulator then sync but nothing happens please what am i doing help
[G2 and Desire Z Android Development] Snuggl3s:
So i have S=OFF but no Perma Root??? Helps! lol
[G2 and Desire Z Android Development] phesone:
Yea doing a factory reset helped me get permanent root. Before that I was unable to stay rooted after rebooting. Starting fresh from a clean system, everything worked perfect. I never posted here with my problems but posting now cuz it does help. Thanks
[G2 and Desire Z Android Development] Snuggl3s:
Is it ok to repeat all the steps again after i have S=OFF after the factory reset?
[G2 and Desire Z Android Development] osokrayzay:
lol, I had s-off and but no perma root. I rebooted like 4-5 times till it finally gave me permission. mmm i think the last time i rebooted was i click on visionary permaroot and it rebooted auto. Then I finally gave me su permission, but I remember trying it before and it didnt work , idk I do have permaroot now tho.
[G2 and Desire Z Android Development] Snuggl3s:
Yay got it to stick! haha took a wipe and restart but i got it. Thx for the help! =)
[G2 and Desire Z Android Development] jacsonmoore3:
this might need a video made, cuz some people just ain't that bright...and reading was not there TOP subject in school.................... :)
[G2 and Desire Z Android Development] narynan:
I seem to be unable to locate a DL for visionary r12 or r13.

The modaco has r12 pulled from the site, and I can't seem to track down r13. Thanks for any help
[G2 and Desire Z Android Development] narynan:
Or the files are MIA, and people want pretty clear instructions that don't assume you know how to run adb.

Some peeps want to make sure all the ducks are in a row before they give it a shot. And, some people ARE just plain stupid. But even a video won't solve that. TV proved that. =)
[G2 and Desire Z Android Development] naria01:
Anyone experience this problem

I rooted my device and everything has been great! Thank you! But there is one small issue I have encountered on my phone. When the phone is completely powered off, and I plug the charger in, the phone will turn on and go straight into recovery... Anyone know why this phone is acting like this? I'm running stock OTA with root...
[G2 and Desire Z Android Development] t24moore:
Wow insult peoples intelligence who are trying to learn and not tryng to brick thier expensive phone. I build engines for a hobby, if you were trying to learn to replace a piston how would you feel if I just told you to "slap it in there?" Theres a lot more to it than just unbolting a piston and putting one in there.

Anyways, Im having a problem as well. I have read through almost every page here. I keep getting access denied when using adb. I moved the su and superuser files to the root directory of the sd cards but where to I copy the other files that look like they go in a TMP folder?
[G2 and Desire Z Android Development] sinistersai4d4d:
Me too. What gives.
[G2 and Desire Z Android Development] sinistersai4d4d:
Fixed it.

The first problem I had was I had Visionary 11 AND 12 (+plus) installed and both were set to root on boot. This was just a left over quirk from after doing the perm root since I just assumed it had to be set to root on boot, and after installing Vis12 I forgot to uninstall Vis11. Apparently Vis12 doesn't overwrite Vis11 so having both apps root on boot was a bad thing.

So I deleted both visionary apps (When they tried to root on boot I backed out of them and just uninstalled them)

Then I rebooted and was still not permrooted (although S was off)!

Sooo I reinstalled Visionary 12(+Plus)... and checked root on boot AND the r/w partition setting. Then rebooted..

With the lone visionary now installed and working solo it rebooted and ran on root and I was rooted..

So now i"m like, ok.. it rooted with visionary, but I don't want visionary in order to root...

So I uninstalled visionary 12 (for the second time) and rebooted and now the root stuck.

I think that visionary 12 needs to run after the first reboot with those two settings checked... run on boot and the partition setting. After that happens once I think it makes the root stick.. or at least it did for me.
[G2 and Desire Z Android Development] Gwanatu:
Same here. I get S-OFF in recovery but everything tells me I'm not rooted.
[G2 and Desire Z Android Development] sinistersai4d4d:
Read the two posts before your last post^
[G2 and Desire Z Android Development] OFinch:
can someone link me to the video on how to do this or make one? thanks
[G2 and Desire Z Android Development] sinistersai4d4d:
Its in the G2 Android Development page.. you passed it to come in this thread.

http://xdaforums.com/showthread.php?t=837315
[G2 and Desire Z Android Development] Gwanatu:
I did this and the one from the other post and it still is whining about root. I was able to flash and get in to Clockwork Recovery and make a NANDroid backup just fine, so I'm pretty sure root is working outside of the stock ROM here. Should I try to flash to another and see what happens, or should I try to go through the steps to root it again?
[G2 and Desire Z Android Development] pbelcomp:
The link for r13 is in post#133 of this thread: android.modaco.com/content/t-mobile-g2-g2-modaco-com/320350/10-nov-r12-test-visionary-one-click-root/
[G2 and Desire Z Android Development] AtreyuY2K9:
I don't get it. I have r13 and have parma root so I ran the dd line under terminal it runs like it should then i ran "sync" waited a minute then powered down went in to fastboot and it still has "s on".

Any ideas?
[G2 and Desire Z Android Development] sinistersai4d4d:
I'm Perm rooted. How can I overclock automatically without using a Gscript?

At least with visionary this was all automated.. Not really sure what the next step would be and the thread about clocking is over my head. I thought it would be easier with perm root.
[G2 and Desire Z Android Development] Gwanatu:
Alright so I think this was the problem; I was using Visionary R12. I don't know if it does something different from R11 or not, but uninstalling R12 and installing R11, and then going through the manual process of temp rooting and following the instructions in the OP got it working for me. Perm root achieved! Woot! Thanks so much everyone!

Perma root didn't work for me, so I followed the steps in the youtube video found in This thread. Super easy instructions and it worked for me using Visionary R11 to temp root first (as I noted above).

http://xdaforums.com/showthread.php?t=834219
[G2 and Desire Z Android Development] hypergraffic:
THAT worked like a charm after following BlackPrince310's Youtube vid.

Thanks!
[G2 and Desire Z Android Development] sinistersai4d4d:
Yeah, don't really follow that thread. I'm sure root overclocking never required downloading and flashing that many files and using adb etc. I guess I'll just sit tight rather than muck something up that's clearly out of my realm.
[G2 and Desire Z Android Development] GrandMstrBud:
Hello, I'm sure it's been asked but what's the difference between this and the rage perm root?
[G2 and Desire Z Android Development] Zaldor:
Stuck on HTC green boot?

Help - I used Visionary r12 and perm boot (after successfully doing temp) - now it won't get past the HTC green boot. I can get into fastboot/recovery, I tried using the img that is in the downgrade thread, it said the zip was invalid - meaning I did something wrong... anyone help?

Thanks!!
[G2 and Desire Z Android Development] fredsanfordX:
That was posted after I asked.
[G2 and Desire Z Android Development] OFinch:
can someone post a download link to R11 visionary? thanks much appre

EDIT: Found it.. thanks anyway guys.. gonna try to gain root tomorrow
[G2 and Desire Z Android Development] ciliano.o:
how come when i try to use clock roc recovry i still says i need boot ? do i have to follow the steps again ? i followed everything right
[G2 and Desire Z Android Development] ztmike:
For all those who prefer a video I found a easy how-to video guide here

http://www.youtube.com/watch?v=tU9zn_BEth4

A big thanks goes out to this guy as the video worked for me.

He also put together a MyTouch 4G perman root video.