yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] theratdude64:
Yep, I had nothing after one reboot, then had it after a second one. VISIONary acted the same as you described.
[G2 and Desire Z Android Development] kicknik:
i have s-off but when i go to terminal and type su i get permission denied...

already restarted once and checked and still had s-off but still su permission denied

what do i do?
[G2 and Desire Z Android Development] outkastz:
I was in your position. Root the phone manually and all will be fixed. You don't have to look too hard to find the solution (now anyways) - I practically went the majority of the day without an answer then finally someone pointed me in the right direction. Look for the rage exploit.

Also, donated to scott - much appreciated. I donated $10 and honestly it wasn't nearly enough. Once CM6.1 is running I'll donate more :-)
[G2 and Desire Z Android Development] konoplya:
Can I use connectbot to root? I don't have adb on my work pc, so can I just copy the files over to my phone by connecting it to my pc and then running connectbot?

Also would it be adviseable to do a master reset or not? I never got prompted for the ota update either.
[G2 and Desire Z Android Development] kicknik:
do you mean root the phone manually as in with visionary..?
[G2 and Desire Z Android Development] outkastz:
I mean root the phone using this http://xdaforums.com/showthread.php?t=834228 or wait till the next release of visionary to drop which will do the dirty work for you.
[G2 and Desire Z Android Development] mark925:
Add me to the list of successful rooters. Just rebooted and have S-OFF! :)
[G2 and Desire Z Android Development] skushmer:
I rooted without adb. I put the two files on my sd card, then used terminal emulator and the cp command to copy them to /data/local, then continued with the instructions from the OP. I then rebooted, ran visionary, rebooted, went to terminal emulator and hit SU and got the good news.
[G2 and Desire Z Android Development] andrewilley:
Agreed 100%. Although I'm fairly tech savvy, I'm a complete noob at Android phones, my new Desire-Z being my first droid phone after several WinMo devices. I'm perfectly happy unlocking and flashing new ROMs to my WinMo phones, but I'm sensible enough to realise that I won't be touching this level of programming until either I've learnt a lot more about my phone, or a more friendly one-click solution (OK, several clicks, LOL) is built by the people who do know this stuff.

However major kudos and appreciation for all the work that has been done by everyone to get to G2 root - well done guys!

Andre
[G2 and Desire Z Android Development] GManLynx:
Alright guys, I'm sorry for this... but I can't even safe a file to my G2. I just got my first android device and I'm extremely confused.

I connected it to computer, I have USB storage on, usb debugging allowed, and I try to save the OTA file, I have hte update, and the hboot file in order for me to run it through terminal.

However, whenever I enter the removable disk, all I see is the following image:
[G2 and Desire Z Android Development] Diablo2424:
I rooted my phone using the non OTA file, as i had not received the OTA update yet... after rooting, about 2 hours later, i received a message asking if i wanted to install the OTA update. I would really like WiFi calling, however if i install this, will i loose my perm root? will i have to re-root the phone? and if so, at which step in post #1 do i start at for re-rooting?

thanks in adv.
[G2 and Desire Z Android Development] Neejay:
If you update, you'll need to re-root using the "wpthis-OTA.ko" file. Start from the beginning of the guide if I'm not mistaken...
[G2 and Desire Z Android Development] GManLynx:
Alright, I figured out what my problem was earlier now... whenver i type insmod /data/local/wpthis-OTA.ko i get hte respond insmod: cna't open '/data/local/wpthis_OTA.ko

Is this an okay repsonse? or am I doing somethign wrong.
[G2 and Desire Z Android Development] HcMAX:
rom

After that dont you need to install a rom?

if so which one? the cyanogen 6.1?

is there any guide to root the g2 for dummies?

thanks
[G2 and Desire Z Android Development] pr0naLd:
Glad i'm not the only one with this problem. hope someone can help us out
[G2 and Desire Z Android Development] fuzzy075:
worked great

Thank you.. sent beer money for the troubles. :)
[G2 and Desire Z Android Development] androidcues:
Andre you are a brilliant man. HALF THE PEOPLE on here should not be doing this to their phone they just have no freaking clue what they are doing. If the OP told them to jump off a bridge... they would... sad. Andre -- you are my hero I have mad respect for you.
[G2 and Desire Z Android Development] androidcues:
please stop doing what your doing put the phone down and enjoy the tmobile rom. you shouldnt be doing this.
[G2 and Desire Z Android Development] nvietmonkey@hotmail.com:
i keep getting "'cannot open for read: no such file or directory" when i typed in hboot-eng.img and .ko files
[G2 and Desire Z Android Development] ccullers:
Alright guys I rarely post on here not my thing just like to read and learn. I rooted last night no problem all was perfect. Decided I wanted to flash desire rom so I did with no issues. Well I hate sense so I flashed the shipped rom back over and of course lost root. I refollowed the instructions and rerooted. Visionary says I already have root but I am still S on. Visionary is not set to run on boot so thats not it. I dont know ADB to well to I have been going in terminal to root but I cant because superuser is not there. How do I regain root? and make sure superuser will grant permissions. Thanks to whomever has any help for me and the ones far smarter than I who got root in the first place.
[G2 and Desire Z Android Development] PvtKrebs:
god forbid someone learn something new. remember when you didnt know what the hell you were doing?

stop telling people they shouldnt be doing something. many people here are fairly smart and having an android phone is like another language, like myself. i had the iphone since day 1 and just switched to the G2. i'm learning, but it doesnt come easy, and instead of finding answers to my questions, i find people like you filling this thread with crap telling people that they shouldnt be doing this.
[G2 and Desire Z Android Development] ZeroSX:
Use an absolute path, or cd into the directory where your files are.
[G2 and Desire Z Android Development] RStuner:
Ok I got my s-off yesterday and now Im a bit lost...

I followed the instructions, Since I did have the OTA i used the OTA.ko file so on and so forth. I received all the nessasary good news prompts throughout the process, Now.......... I had removed Visionary yesterday as I had to get on with my day and was going to continue the root process today, well Visionary was gone, so no biggie, I downloaded the apk from a few pages back, now that everyone else noticed it. Well I installed, and rooted, and opened terminal, still no superuser prompt(#), just my ($) sign, so I issue a 'su' and im greated with no permission!!

No if I run the rage to gain access, then restart terminal go through the force close and reopen terminal, I am greated with my pohnd sign(#) so I am su right off the bat, so to make sure I issue another 'su' and no problems, so thinking I can contine with the steps I issue a 'sync' and immediately I am at a prompt again, I reboot, and open terminal expecting I can 'su' and permission denied.

I don't know now what to do. I don't want to re-do every step all over again if it's un-nessasry, anyone else in my boat?

BTW, s-off remains s-off but no root
[G2 and Desire Z Android Development] Ready2Mosh:
Once you run the process and do sync, you need to make sure visionary isnt set to run on boot, restart, then manually run visionary again, restart again, then root should stick.
[G2 and Desire Z Android Development] RStuner:
Question though, when I run the 'root' app do you get all these input/output errors and resource busy messages right before the sync command?

These are questions while I am cycling through the last instruction
[G2 and Desire Z Android Development] RStuner:
Still no root after vision, power, vision power, etc and Visionary was not checked for boot and still nothing.

There may be other issues here between finalizing the process and mixed rooting through rage vs. visionary.

I pushed all the busybox, rage, root, and all that from the temp root stage but now I get this.........

busybox: /system/bin/unzip: Input/output error

busybox: /system/bin/uptime: Input/output error

busybox: /system/bin/usleep: Input/output error

busybox: /system/bin/uudecode: Input/output error

busybox: /system/bin/uuencode: Input/output error

busybox: /system/bin/vconfig: Input/output error

busybox: /system/bin/vi: Input/output error

busybox: /system/bin/vlock: Input/output error

busybox: /system/bin/volname: Input/output error

busybox: /system/bin/wall: Input/output error

busybox: /system/bin/watch: Input/output error

busybox: /system/bin/watchdog: Input/output error

busybox: /system/bin/wc: Input/output error

busybox: /system/bin/wget: Input/output error

busybox: /system/bin/which: Input/output error

busybox: /system/bin/who: Input/output error

busybox: /system/bin/whoami: Input/output error

busybox: /system/bin/xargs: Input/output error

busybox: /system/bin/yes: Input/output error

busybox: /system/bin/zcat: Input/output error

busybox: /system/bin/zcip: Input/output error

cp: can't create '/system/bin/su': Input/output error

Unable to chmod /system/bin/su: No such file or directory

when I run root before the sync process.
[G2 and Desire Z Android Development] dj.hematite:
Power to The People!

I created an acct here, solely to sing your praises.

Thank you, thank you, thank you, and, nice work!
[G2 and Desire Z Android Development] Sv3nt3k:
Okay, got a quick question. I just rooted my phone last night and it works, went flawless. I just got notified of the OTA update. Should I consider this, would I need to re-root? Is there any danger in just running the update after a root?
[G2 and Desire Z Android Development] pbelcomp:
VISIONary

From MoDaCo's website:

Update: VISIONary has been suspended from the Android Market (oops!), so you need to download it below. For version integrity and usage tracking, please do NOT mirror this elsewhere.

r11 (current stable version)

r12 (test version - see changelog below for details)

I can't post links here, so you will need to go to his website.
[G2 and Desire Z Android Development] RStuner:
I believe when you run the update you will loose root and you will need to re-root your phone.

In my case I never had root but attempted after i did the update, only difference being when you root, you will use the wpathis-OTA instead of the pre-OTA.ko file and then continue through the steps.

I haven't had great luck with doing this after the OTA but it maybe something I am missing, so no discouragement to you, but hopefully you have an answer now.
[G2 and Desire Z Android Development] Sv3nt3k:
Yes, it does give me some answer. Thanks for the help!
[G2 and Desire Z Android Development] dhkr123:
What he said isn't about learning... its about NOT learning. Those people who jump into things without the faintest shred of understanding are those people who should stick with carrier ROMs. Those willing to learn will UNDERSTAND the process BEFORE attempting it. That is the big difference... taking the TIME to understand things before just going ahead and doing it anyway.

In fact, that particular type of person is the primary reason why the manufacturers are locking users out of proper access to begin with! Make it impossible for them to break! They don't care if knowledgeable and intelligent people can adjust things in a controlled and thoughtful manner to better suit their own needs... they just don't want every wannabe-hAXx0r messing up their hardware and sending it back for warranty!

If you don't understand what you are doing, DON'T DO IT!!!

In fact, I would go so far as to say that if you can't read and understand the SOURCE CODE of the hacks involved in this process, then EVEN IF you kinda understand what's going on, you *probably* shouldn't be doing it anyway...

A lot of people SHOULDN'T be doing things they do.

I see, so assuming that you don't know the local language, would you recommend that people get dropped off in the middle of rural China? Or do you suggest taking some time to learn the basics of the language first?

You're already sounding VERY different than those you're defending. You sound like your intention is to understand first and try once that has been achieved. Different situation. Not applicable. If only more people would follow your example.

The understanding must come before the application. There was a question asked, and the question itself proved that the person is WAY too deep into attempting something that he has NOT taken the time to understand. If he HAD taken the time to understand, the question would have been very different because he wouldn't have become hung up on the trivial problem that he was on.
[G2 and Desire Z Android Development] styles24:
I have Perma-root but i still have S-ON. Didnt use the VISIONary guide either. Did everything to the T!! What did i do wrong?

Edit: Nevermind. Used the visionary method for the S-OFF and it worked.
[G2 and Desire Z Android Development] Xeroproject:
Unforgiven - might want to modify the walkthrough, the current wording makes it sound like you don't have to push hboot-eng.img to data/local if you're using VISIONary R12. You do. Or drop on SD card and copy via RootExplorer.

Problems I'm having:

1)VISIONary R12 for temp

2)VISIONary R12 for perm (phone reboots)

3)VISIONary R12 for temp again (root didn't persist, but did copy Paul's .ko file to data/local

4)copied hboot-eng.img to data/local via SDcard --> RootExplorer

5)followed your Step 5 exactly, success

6)sync

7)rebooted into bootloader.....however still S-ON.....thankfully phone is not bricked, but I'm unsure what went wrong here.

Phone information:

G2, post OTA (Paul doesn't specify if pre or post OTA matters with R12)

Baseband Version:

12.28b.60.140eU_26.03.02.26_M

Kernal version:

2.6.32.17-g9ab3677

htc-kernel@and18-2 #1

Build Number:

1.22531.8 CL277427
[G2 and Desire Z Android Development] GManLynx:
I'm fairly Savy, but maybe I'm just a noob, but the only way for me to be able to use my SDcard was to take a picturew iht my phone first... before that it wouldn't regonize that. Sorry for not realizing that iwht an android you ahve to use the SDcard before being able to regonize it.
[G2 and Desire Z Android Development] Tomb77:
I did all the steps up to re running visionary11. All indications are that I entered everything correctly but visionary seems to hang on the second time. next steps would be open terminal gain su and enter sync. How long does visionary take? any suggestions? Thank you

Edit: Should I keep trying to get visionary to run or start over.
[G2 and Desire Z Android Development] RStuner:
Visionary usually takes about 30 to 45 seconds when its doing its thing.
[G2 and Desire Z Android Development] xdviper:
I'm trying to copy the files provided in the thread to data/local, but when i go into data from either astro or linda there isn't a local folder.... wtf?
[G2 and Desire Z Android Development] Tomb77:
You need to use root explorer
[G2 and Desire Z Android Development] :
I feel incredibly lucky I screws up the second commands twice and didn't brick my device.... thank god
[G2 and Desire Z Android Development] xdviper:
thanks dude, got it! S-off! yess!

THANK YOU GUYS!
[G2 and Desire Z Android Development] Buddhahb:
Problem with s-off

Sorry if it has been discussed already. I searched and couldn't find it so...

I have perm. root with Vision+ r12... When I type in the command

I get an error that no such file is found...

I'm using the terminal on my phone not adb... I used su to get super user permission first... What am I missing?

My root is fine, but can get S-off. Rebooted into recovery to be sure and it's still on
[G2 and Desire Z Android Development] Tomb77:
Did you put the files in /data/local and then do the commands?
[G2 and Desire Z Android Development] RStuner:
You need to push the hboot-eng.img image manually, or if the Visionary app did it for you then you need to see if it exists in "/data/local" and see if its there before you issue the dd command, mind you this command is very very brute, so don't make a mistake if doing this from your keypad.
[G2 and Desire Z Android Development] GManLynx:
Alright my phone is permanetly rooted, I am a newb to rooting... What should I do now?

And can I unlock my phone now?

Thnak you in advance
[G2 and Desire Z Android Development] RStuner:
Well I am going to sit back and just see what gets figured out lol, My views on my situation.....

I am VERY linux savy, its my daily os, I could not get my phone rooted and maybe it's cause I looked at something different, or cross threads, idk.

I do have s-off, i took that as easy, but I never got a response to my busybox question a few posts back. No i don't expect the novices to answer these questions and perhaps the folks that look at this are are work( while Im at work to but killing time ;) ) and I just wish to un-do all this and get it back to square one.

My Ventures......

I've redone everything from square one atleast 3 times, I've walked through every VISIONary pack out before and after they were removed. I've even re-installed the OTA hoping it would put my system files back into "un-messed with" order.

I issued a "lsmod" (warning not noobie steps here so don't walk in them) to see if the wpthis-OTA.ko module was running or is still running as it becomes a loadable kernel module albeit had errors but I had been granted root in a sense.

The Mystery...

I had what should be root!! I can load my rage pack from a terminal, adb shell, or a linux terminal! I get my pound sign, now hmm does that mean I get root?? Well in a perfect linux world, then yes, in my case, NO, I get my official root prompt and try rooty things and still denied like a sucka!

I'm making light of the situation in case you can't tell but I am trying to give more detailed info to the thread so that someone can have an "ah-ha!" moment and shine some light on these things.

My crutch..

I haven't attempted to root a device up until now so yes I still have freshness all over me. Upon looking at the fs on the device, I understand it completely, now what I haven't done is break down what is given to us to run/work and try to dissect what its doing becasue afterall, these guys are trustworthy and they aim to share the wealth, not be destructive. If there is something out there that has the idea of the "unroot" as in remove all things done, then let me know, if not, i will just leave the phone in the state it's in although i'd like to be more involved.

:D
[G2 and Desire Z Android Development] chibikit0:
Is it possible for me to reverse this (ie. get S-ON) using the files provided?
[G2 and Desire Z Android Development] RStuner:
No becasue with the above statement you are essentially writing over your bootloader with the file provided.
[G2 and Desire Z Android Development] shograt:
Seconding this. I have perma-root - visionary's not installed, can su, everything that needs su has it.

Running the dd, I get the copy confirmation (records in, records out, 1mb copied), I run sync and wait for 5+ minutes (just to be safe), and reboot... and I'm still s-on.

EDIT: experimentally, I disobeyed the instructions (visionary r12+ users only do steps 5 & 7), and did steps 4, 5, & 7. That seems to have worked. I'm s-off and still rooted.
[G2 and Desire Z Android Development] fredsanfordX:
Is it possible to go back to the default hboot by saving an image of it beforehand with dd?

I.E. # dd if=/dev/block/mmcblk0p18 of=/data/local/hboot-original.img

I'd like to be able to put the phone back to stone stock since it's going in for repair/replacement in a few weeks. USB port died... :/

Thanks.
[G2 and Desire Z Android Development] Buddhahb:
I feel like such a noob lol...

I used root explorer to put hboot-eng.img in /data/local because it wasn't in there... Ran the command again, this time it looked to be correct because it read/wrote the file like it should.... I sent the sync command... Waited and rebooted... Now I don't have perm root anymore, when I try perm root with visionary+ it doesn't work any more and when I go back into recovery to check I still have S=on....

Maybe I should just stop before I brick my beloved G2 lol
[G2 and Desire Z Android Development] RStuner:
An app can do all this but its difficult to write an app that can counter act or fix half made mistakes or unfinished steps.

I beleieve that is the issue, and that app isn't magical, and to produce such an app takes time. At first it seems it was a patched visionary sort of running a batch but if there are no locks or checksums to check for then it mearly is a quick and dirty fix.

Kudos none the less but we are expecting way to much out of a fast solution, time is the key.
[G2 and Desire Z Android Development] fahadanmar:
why its asking me for key once i try to run the zip files?
[G2 and Desire Z Android Development] RStuner:
You can't run zip files they must be extracted or unzipped then moved accordingly
[G2 and Desire Z Android Development] fahadanmar:
moved where?
[G2 and Desire Z Android Development] Xeroproject:
Confirmed that running 4, 5, and 7 worked for me as well. Going by the walkthrough as it currently is set did not get me permroot.

Also using the .ko file from VISIONary did not work, but the post OTA .ko in the original post did. Did steps 4, 5, and 7, then rebooted, confirmed S-OFF, and then re-ran permaroot from Visionary R12. Permarooted G2 here now.
[G2 and Desire Z Android Development] Arcadia310:
When trying to do insmod /data/local/wpthis-pre-OTA.ko why does it say can not open? I did this before on another G2 and it worked perfect.
[G2 and Desire Z Android Development] ImSoHungry:
followed instructions, worked like a charm.

/edit: omg i love this!
[G2 and Desire Z Android Development] Armani G:
alright I can't seem to get S-Off?? I did the command and reboot the phone everything seems to be working perm root is working I have the su app.. But S-On is not off.... I have the HTC Desire Z from Bell Canada...
[G2 and Desire Z Android Development] Circledog:
I'm stunned how easy this was...I can't believe I did it...noob who has a hard time setting my alarm clock on my phone! Thanks to all who made this happen!!
[G2 and Desire Z Android Development] konoplya:
did through terminal emulator. worked like a charm. s-off at the screen.

this means that its perma rooted then right?

also, wtf does s-off mean?

thnx!!
[G2 and Desire Z Android Development] Arcadia310:
Does anyone know why terminal can't read/write the files in data/local? I have wpthis-ota and hboot in data/local but when I do insmod /data/local/wpthis-OTA.ko it keeps saying can not open. :confused:
[G2 and Desire Z Android Development] D_Rob:
Will someone please tell me why after I rooted, if I run "cp" it tells me "cp not found"? It's killing me.
[G2 and Desire Z Android Development] konoplya:
according to the instruction it should do that.. unless you're talking about something else
[G2 and Desire Z Android Development] Arcadia310:
No the file says it failed, but mine says can not open. When I go onto step 5 it says can not open also.
[G2 and Desire Z Android Development] jbaruch76:
so i followed all steps, got s-off, but the phone is not rooted, do i need to have the root on boot option in visionary?
[G2 and Desire Z Android Development] D_Rob:
Do you have adb set up on your pc?
[G2 and Desire Z Android Development] osokrayzay:
meh, same here going back to see what I didn't do right hmm.