yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] juanshop:
could anyone do a more noob ( like me ) friendly guide? or this is as easy as it gets? im new to the world of android ( i come from windows ) and i really would aprecciate and give some dollars to beer found or whatever to anyone who does this :) because i don't think is too noob friendly or maybe im just too stupid, i don't know haha, although, thanks for the job!!!! htc couldn't stop you guys, and this is just amazing :)
[G2 and Desire Z Android Development] ws6driver:
ok now i get mkdir failed for /system/xbin, file exists

mount: device or resource busy
[G2 and Desire Z Android Development] logicMASS:
This guide worked so much better for me then the Visionary. I was unable to hold perm root.

Thanks for this. :D
[G2 and Desire Z Android Development] firehawk1:
This worked perfectly for me.

Thanks guys =D

Will be donating.
[G2 and Desire Z Android Development] juanshop:
anyone who wants to help me online? let's say messenger, yahoo messenger, idk, i can give some money on paypal for the help :) anyone? ( im not rich so dont expect alot of money but is something :) )
[G2 and Desire Z Android Development] innerlight:
This makes no sense. I've tried to do this through my phone and its not working. Where am I putting these files at? Am I putting them at the root of my sd card?
[G2 and Desire Z Android Development] donaliar:
i have a little problem..everything went well. but when i reboot the phone, open up terminal app. i typed in "su" and it said "permission denied"..what could i have possibly done wrong? thanks for all the help in advance, i appreciate it.

Edit: nevermind..i got it to work. Thanks a lot man!!
[G2 and Desire Z Android Development] innerlight:
How did you get this to work?
[G2 and Desire Z Android Development] fearedbliss:
Alright, I reflashed my phone to stock and tried this method and it works.
[G2 and Desire Z Android Development] donaliar:
i just pretty much followed what was said in the OP.
[G2 and Desire Z Android Development] innerlight:
So where did you place the files at?
[G2 and Desire Z Android Development] donaliar:
did u do adb push? just put the unzipped files at where your command prompt files are directed to.
[G2 and Desire Z Android Development] innerlight:
I can't use adb. I'm at work and am trying to do it through terminal explorer.
[G2 and Desire Z Android Development] janus zeal:
Terminal Emulator just FCs over and over. Going to try using Visionary.
[G2 and Desire Z Android Development] tomato16:
Thank you for taking the time to explain this so clearly! In case anyone else is interested, the wiki page containing permanent root instructions along with "true" S-OFF can be found here.
[G2 and Desire Z Android Development] tomato16:
You might already have root access. Try accessing the "root" folder by typing

If you do not get an error message, you should have root access.
[G2 and Desire Z Android Development] steviewevie:
Don't worry about it, that # prompt means you have got root access, so it worked ! You have temp root, so carry on with the procedure to get permanent root.
[G2 and Desire Z Android Development] draganfodder:
When I follow the instructions of either this guide or the gfree one I end up with the same error at

/data/local/tmp/root

I get a read out that is as follows

mkdir failed for /system/xbin. File exsists
cp: can't stat '/system/xbin/busybox': Not a directory
unable to chmod /system/xbin/busybox: Not a directory
/data/local/tmp/root: /system/xbin/busybox: not found
cp: not found
cp: not found
unable to chmod /system/bin/su: No such file or directory

Please help
[G2 and Desire Z Android Development] zedomax:
Works perfect!

Thanks, this is the best rooting method, worked perfect!

I took a video while I followed the directions:

[YOUTUBE]zuDzgFrJ3xs[/YOUTUBE]
[G2 and Desire Z Android Development] monyozt:
When I follow the instructions of either this guide or the gfree one I end up with the same error at

/data/local/tmp/root

I get a read out that is as follows

​
[G2 and Desire Z Android Development] wayde187:
I might be able to help. Send me a pm when you get this reply and then I will come back to this thread and explain a work around that I used when I had the same problem. I would just pm you but I noticed that there was at least one other person that also had a problem running the same command to lock in root.
[G2 and Desire Z Android Development] steviewevie:
Go back and double-check the earlier steps, looking for an error messages that might have occurred. Particularly, check the error message that you get from the "insmod" command. If that doesn't give you the "correct" error message then the rest of the procedure won't work. Or, alternatively, use the gfree method in the Wiki.
[G2 and Desire Z Android Development] monyozt:
I already follow the steps carefully.. tried 19times but still no luck :(
[G2 and Desire Z Android Development] steviewevie:
Did you get the correct error message from the insmod command, i.e. "function not implemented" ?

Did you use Visionary on the phone before trying the rage method ?

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] likingandroid:
I get to the following step. # /data/local/tmp/root and get error unable to chmod /system/bin/su No such file or directory.

What am I doing wrong?
[G2 and Desire Z Android Development] steviewevie:
Did you get the "su" binary pushed over to the phone ok via adb ?

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] likingandroid:
Please Help. From the attached screen shot it appears that I have root but when I reboot the root is gone.
[G2 and Desire Z Android Development] wang1404:
Thank you!!!!!! works like a charm fist time :D
[G2 and Desire Z Android Development] wang1404:
just continue and follow the steps. cuz youre doing right. I was shocked when i saw that but i went ahead and rebooted my phone and the root still there :D
[G2 and Desire Z Android Development] wang1404:
when at this step "# /data/local/tmp/root" you should get this "unable to chmod /system/bin/su No such file or directory." so follow the steps again and make sure you type every line correctly
[G2 and Desire Z Android Development] steviewevie:
Is the Superuser app installed ok ? And the su binary ? Because it sounds like something is wrong with one of those.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] Ricky300:
Is this applicable to HTC Desire HD?
[G2 and Desire Z Android Development] steviewevie:
Please ask over in the DHD forum, this forum is for the Vision (G2 and DZ).

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] BucketOfDoes:
Success!!

YESS! Man I don't know how I managed to do this but I forgot to perform step 6! I feel like anyone having the S-Off without root issue is missing something! you have NO CLUE how close you are! Thank you everyone for your contribution!
[G2 and Desire Z Android Development] MATOPETE:
Just an addition, I recently got a replacement G2 from Tmobile and wanted to make sure weather I had the pre-OTA or the OTA update installed and I looked everywhere and could not find it finally I learnt that if you HAVE Wi-Fi calling you HAVE the OTA update installed

Also just to make sure:

pre-OTA build number Settings > About phone > Build number > 1.19.531.1

OTA Build number Settings > About phone > Build number > 1.22.531.8
[G2 and Desire Z Android Development] cablemel:
Excellent ... worked great .. 10 mins ... thanks...
[G2 and Desire Z Android Development] einrae214:
Have s off but no root I used visionary and unistalled and tried rage method and got temp root but no perm I don't know were to turn for help also I get the error message after I performed second to last step while doing the rage method can some body help
[G2 and Desire Z Android Development] steviewevie:
You get which error message exactly ?

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] einrae214:
This. Is the error messageim getting too plz help
[G2 and Desire Z Android Development] kimchi29:
weird, everything goes through for me. once i restart the phone i don't have SU access. Ive tried like 5 times and everything goes through fine but don't have SU access
[G2 and Desire Z Android Development] kimchi29:
once you push the Superuser.apk file are you supposed to install it? My phone didnt come with Superuser installed. I did everything step by step wont perm root wont stick. Temp root works and everything works fine like in the video and looks the same. Once i restart the phone and go to the terminal emulator and type in SU it says permission denied. This had me thinking, after i push all the files should i find the Superuser apk file and install it, then do the steps after the temp root? or is superuser supposed to install on its own?
[G2 and Desire Z Android Development] G1ForFun:
^^^ It should be installed after you reboot.
[G2 and Desire Z Android Development] kimchi29:
hmm its not installing after reboot. i see the apk file on the phone after pushing it from abd. after i type in sync in terminal emulator, should i manually install the superuser.apk file then reboot?
[G2 and Desire Z Android Development] steviewevie:
The "root" script that you run to get permaroot should be installing the Superuser app. Try installing it manually if you like. You need to have done the other stuff in the root script too.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] kimchi29:
yea im doing everything step by step and it works just like in the video but superuser does not get installed when i do the /root/local etc.
[G2 and Desire Z Android Development] kimchi29:
alright, i followed this guide using gfree and got it to take!!

http://xdaforums.com/wiki/index.php?title=HTC_Vision#VERIFY_.28using_.22gfree_verify.22.29
[G2 and Desire Z Android Development] jomaxwel:
For gfree ya think I could just put all the files on my sdcard and change the commads in terminal for file locations so I could get away from ADB?
[G2 and Desire Z Android Development] steviewevie:
Yes, you don't need adb to do just the gfree bit, you can put the files on your SD card, copy them to somewhere else on the phone (e.g. /data/local) and then run it from there.
[G2 and Desire Z Android Development] jomaxwel:
Think this will work???

So what I came up with is. Place the rage, root and Gfree files onto root of my sdcard. temp root with visionary or run rage as $ /sdcard/rage? not sure on that one i guess will try rage first then revert to visionary if it fails. after i get temproot i will run:

$ su

# cd /sdcard

# chmod 777 gfree

# ./gfree -f

# sync

# /sdcard/root

# sync

thiink that looks like its worth a shot? any how figured i would try it and let ya know tomorrow unless you think im going to mess my phone up.
[G2 and Desire Z Android Development] ianmcquinn:
This won't work as you can't execute binaries directly from the sd card. You'll have to move gfree file to your actual phone (hence the use of ADB in the guide). If you are trying to avoid ADB completely, you should be able to temp root with Visionary and then copy everything you need with Terminal. If you are interested in trying, let me know and I'll try and write something up for you (been thinking about doing it anyway since it feels like a lot of people have problems with ADB and then screw up their phone following that YouTube video).
[G2 and Desire Z Android Development] jomaxwel:
Yes please. I just have had no success with getting ADB up and running. Thanks a lot man.
[G2 and Desire Z Android Development] Mylenthes:
Ok im in the process right now and im not too sure if i HAVE or DONT HAVE the OTA update. I got my phone a week ago and I have not yet been prompted to do an OTA. so yeah plz help.
[G2 and Desire Z Android Development] steviewevie:
What is your ROM version ? Go into Menu, Settings, About Phone. It will be 1.19 (pre-OTA) or 1.22 (OTA) if it is a G2.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] amitks:
You probably are tired of hearing this by now...but THANKS :)

Worked like a charm
[G2 and Desire Z Android Development] KarlssoN1337:
I have followed every step but I get a error when I'm writhing: "insmod /data/local/wpthis-OTA.ko"

insmod: init_module '/data/local/wpthis-OTA.ko' failed (operation not permitted)

Is this because I have 1.72.405.2 on my DZ?
[G2 and Desire Z Android Development] Pimmr:
Hi guys, I need some help...

I am trying to ROOT my new DZ. It is pre OTA, 1.34.405.5 (This is pre-OTA isn't it?)

I have pushed the pre OTA filed and have gotten to the following steps, everything before went exactly like the instructions mention.

When I get to the PERM ROOT step and I open the Terminal emulator (after it gave the FC as predicted), I enter this command:

# insmod /data/local/wpthis-pre-OTA.ko

it returns

init_module 'wpthis-pre-OTA.ko' failed ([B]Exec format error[/B])

instead of what is described:

init_module 'wpthis--pre-OTA.ko' failed ([B]Function not implemented[/B])

If I go to the next step anyway, it returns:

2048+0 records in
2048+0 records out
1048576 bytes transferred in 0.335 secs (3130077 bytes/sec)

If I enter

# /data/local/tmp/root

I get a whole list of errors similar to this user: http://xdaforums.com/showpost.php?p=10619714&postcount=390

If I sync anyway and reboot, I don't have root (on SU I get permission denied).

I asume this is because it doesn't give me the "Function not implemented" message but "Exec format error".

Does anyone know why I don't get the proper response?

Thanks
[G2 and Desire Z Android Development] fsxpilot:
I am certain this is a stellar set of instructions, but us inexperienced Android hackers could do with some definition of terms, if we had them, I am certain we could Root our G2 just fine. What is "Visionary", where to we find the "Android Terminal Emulator App" and are we to assume its run on our PC? What is "ADB"? and where to do find that? This information would help greatly, Thanks for all you do.
[G2 and Desire Z Android Development] rmcsc:
Perfect. Works flawlessly, unlike the instructions over at CyanogenMod's Wiki...
[G2 and Desire Z Android Development] captainreynolds:
Hello all,

I have rooted my own G2 before via this method with no hiccups whatsoever.

However, I am rooting my own friends phone from absolute, pure post-OTA stock and am running into an issue on the first command on the Terminal Emulator on the phone side.

I know for a fact all the files are in the correct place. Here is my problem:

I type in:

/data/local/tmp/rage (after having done chmod 0755 /data/local/tmp/* in adb shell)

and I get

Permission denied.

Ideas? Could use some help. Thanks!
[G2 and Desire Z Android Development] carlos2384:
i am at my wits end....

i have rooted a G2 in the past with this same method and it worked just fine... i am now doing it again on a different G2 and for some reason i just cant get it to work..

i am able to go through all the steps without any errors or anything going wrong.. yet when its all done and i reboot into HBOOT i still get s=on...

has anyone else had this issue or maybe i am missing something? any info is appreciated.. thanks
[G2 and Desire Z Android Development] Wicked1ab:
Dude I am having the exact same problem as you and it is super frustrating. I got my G2 back in Feb and was able to root it no problem first try, now my friend just got one this past week and for the life of me I can not get S-off! I've tried Visionary and this rage method and I just can't get S-off. maybe there has been a new OTA or something? idk if anyone can help us that would be great!!
[G2 and Desire Z Android Development] Wicked1ab:
So I'm not sure if there has been a new OTA and that is why we are having troubles but the phone I am trying to root now is Android version 2.2 which is standard I believe

kernel:

2.6.32.17-g9ab3677 for kernel

and build number which I'm assuming is what you are talking about is:

1.22.531.8 CL277427
[G2 and Desire Z Android Development] carlos2384:
the one that i have is newer one.. its only about a month or so old.. so i dunno maybe this method doesnt work with newer ones.. i cant think of any other explanation but its killing me!!
[G2 and Desire Z Android Development] Nicolfa:
Worked like a charm once I figured some windows things out.
[G2 and Desire Z Android Development] tarroyo:
Is it ok to copy n paste the steps in command prompt? or do I have to manually type them???
[G2 and Desire Z Android Development] anheuer:
Hey guys,

A friend of mine has the Desire Z and asked me to install a different rom on it since i did the same for my Desire HD.

I just wanted to know if this root method is posible with his rom version.

He has stock rom: 1.82.405.1

Android 2.2.1

Can i use this method or do i need to do somthing else first?

I am looking on the forums but there are sooooo many different stickies and threads that i got a little confused.

Thanks :)
[G2 and Desire Z Android Development] cjward23:
The best root method can be found here.

You will probably need to downgrade before you can root though.
[G2 and Desire Z Android Development] anheuer:
Thanks! awesome.

Do you also happen to have the link to the downgrade thread?

:D

i'm not lazy,.. :D

Edit.

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

is this the correct one? the others i seen were for 1.72.
[G2 and Desire Z Android Development] cjward23:
Read through the link I posted and you will find a link to downgrade tutorial :rolleyes:

Edit: the downgrade link in the wiki is for downloading from 1.72. The best place for advice is #G2ROOT IRC
[G2 and Desire Z Android Development] Kenzy-FIN:
http://xdaforums.com/showthread.php?t=1055581 and you can't go wrong..
[G2 and Desire Z Android Development] Glen L:
hi guys,

I got stuck at this step "$ adb shell chmod 0755 /data/local/tmp/*"

It says Operation Not Permitted.

I have version 1.34.405.5

any help would be appreciated.

btw.. i have a HTC Desire Z (unbranded)
[G2 and Desire Z Android Development] amk:
hi,

I have dz 1.82 + s-off and now stucks at ...click terminal - it says force close - then nothing happened. I can't get to terminal again. I need to restart dz then.

should I now s-on again + down to 1.34 so I can use rage to root?

please help. thanks.
[G2 and Desire Z Android Development] blackknightavalon:
Use this guide to root.
[G2 and Desire Z Android Development] emm_stra:
hello

does this tool work with sensation?
[G2 and Desire Z Android Development] xs2k:
Hello,

I have a G2 running the latest update and I have been stuck at this step:

5. Launch Terminal Emulator, it Force Closes. Launch a second time, and you'll have a root shell

If I try to launch the Terminal Emu after Manu-->Reset Term, the screen stays white for roughly 10 minutes, and it'll force close. After that, I can NOT open it again. Anyone stuck at this step? Pleassssssee HELP!!!
[G2 and Desire Z Android Development] xs2k:
Bump!!! Anyone?
[G2 and Desire Z Android Development] galaxymover:
For some reason, my G2 refuses to have its S-OFF. Ive downgraded to an earlier froyo rom and have tried every perma-root method i found here on xda and on youtube. gfree told me that it failed to powercycle my emmc chip, whatever that means. Can anyone help?
[G2 and Desire Z Android Development] Nipqer:
Pop over to the #g2root irc channel on freenode. Might be an issue with the froyo rom you downloaded, or the radio version you're using.

-Nipqer
[G2 and Desire Z Android Development] cwburns32:
Having same problem as you. Exactly.

Been trying this 3-4 times now for my roommates phone no dice, anyone here can help with this issue.

The G2 has been OTAd to 2.3.4, other than that nothing else has been done. Is there a special step you have to take for people with the 2.3.4 OTA.
[G2 and Desire Z Android Development] ACHILLES R32:
used this guide two weeks ago to root my g2 had no issues with terminal emulator, are you running the version thats currently on the market.
[G2 and Desire Z Android Development] cwburns32:
Yes, I was.
[G2 and Desire Z Android Development] desireless:
Same issue here. I'm on Desire Z. The phone gets laggy (and hangs occasionally) after the Emulator force close and I can never start Terminal Emulator again. Whenever I finally get to the emulator icon (after the lags and hangs) and tap it, it just gives me a blank screen. Have to reboot phone to repeat procedure and get stuck at this step again.

I have tried "Better Terminal Emulator Pro" too and it has the same problem.
[G2 and Desire Z Android Development] riccoex21:
Same here any help
[G2 and Desire Z Android Development] Boostjunky:
Also running into this issue. Anybody found a workaround yet?
[G2 and Desire Z Android Development] Boostjunky:
Well, for anyone running into this issue, I was able to root the phone by using the Wiki guide. It requires downgrading to Froyo, then using the old Froyo exploits to gain permanent root.

It all went very smoothly, and the instructions couldn't be more clear, so don't worry about missing any steps where the guide just assumes you know something...
[G2 and Desire Z Android Development] raul602:
care to link me please? i was at it for like 3 hours yesterday and got no where:(
[G2 and Desire Z Android Development] Boostjunky:
Sure thing.

http://xdaforums.com/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD

Make sure to read the whole process before beginning. And make a note of the "Downgrading" process, which will direct you to a different thread explaining how to do it.
[G2 and Desire Z Android Development] j.d.r:
Stuck with TEMPRoot

NEVERMIND!!! SORRY the posts right above mine have the answer.
[G2 and Desire Z Android Development] sarry86:
getting Unable to chmod /data/local/tmp/getac: Operation not permitted on my htc vision :confused:
[G2 and Desire Z Android Development] demkantor:
Not sure if you can temp root with rage without downgrading first, you'll find more info here

http://xdaforums.com/showthread.php?t=2348266
[G2 and Desire Z Android Development] blaze_3ds:
I cant open it :(
[G2 and Desire Z Android Development] PAVNEET101:
please help as i am stuck when i navigate to the temp root folder the adb doesn't work and when i am in adb folder the su doesn't work please help what to do ???

thank you
[G2 and Desire Z Android Development] Xionas:
I'm completely new to Android development, my experience only goes as far as what I'm assuming was the 1 click method for roothing my G1 way back when. I'm interested in rooting my G2 and willing to learn from square one so I can do it using this guide because its pretty clear on how to do it, I just need to know where to start learning things. I googled ADB to learn what it was/does and right now I'm looking at a lengthy tutorials on Android SDK. I'm confident I can just follow steps and input lines of code til I get to the end but I wont really understand it but my question is should I bother doing that or should I just wait until there's a 1 click method? (which I'm assuming is downloading a file and running it on my PC with my phone attached and it takes care of everything for me)
[G2 and Desire Z Android Development] Diablo2424:
Followed directions word for word, worked perfectly!!! Thanks soo much guys!

Can't wait for all the custom ROM's and recovery's to roll out!
[G2 and Desire Z Android Development] trigeek:
ADB is a pretty useful tool, even if you do root the phone via one-click. Definitely a useful tool. It does have a bit of a learning curve, and if the one-click drops tomorrow like it's supposed to- chances are you'll be able to get root faster that way than by getting ADB set up.

But like I said, ADB is still worth having.
[G2 and Desire Z Android Development] mikeybot:
Thank you for the guide!!!!

Worked perfectly.

Bit of advice to people just to be safe, factory reset first.
[G2 and Desire Z Android Development] tysklai:
From a cmd window or terminal, navigate to that folder and execute these commands:

I don't know to to execute the command in cmd. Anyone can help?