yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z General] steviewevie:
Ok, good, you have done most of it now. You should be ready to flash 1.72 now. You can accept the OTA but I recommend you flash the entire ROM. Then you will be at 1.72, still with S-OFF, but you will have lost root. Then you can re-root as per guhl's posting.

Sent from my HTC Desire Z
[G2 and Desire Z General] ludow:
Thank you Steve! :)
[G2 and Desire Z General] premist:
I have done the above, did psneuter (step 4 from 1st post) then followed guhl's post but the part:

"Then do the new method to gain temp-root as describe her http://xdaforums.com/showpost.php?p=10428115&postcount=54 till the end of the topic 4 and use THIS ROOT ADB SHELL to do"

when I click on that link it refers me to the first post, which step do I follow to get a temp root?
[G2 and Desire Z General] YOSEFE:
Sorry to bother you again,

I am now stuck at:

# /data/local/tmp/root

/data/local/tmp/root

killall: rage: no process killed

mkdir failed for /system/xbin, File exists

cp: can't stat '/sdcard/Superuser.apk': No such file or directory

cp: can't stat '/sdcard/su': No such file or directory

#

Why am I getting this?
[G2 and Desire Z General] YOSEFE:
Furthermore, when I successfully come to thie step below:

ON YOUR PHONE:

Launch Terminal Emulator

$ /data/local/tmp/rageWait for the message: "Forked #### childs."

Menu > Reset Term - Terminal Emulator will exit.

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

Everything is fine, except when I get to:

"Launch a second time".

Terminal does not open, and a while later, the screen turns grey, and no command line.

What may be happening here? If I can get past this stage, I should have perm root as before.

Please help.
[G2 and Desire Z General] jrkr:
I got that too when I was in the phone's shell via the PC. I had forgotten to unmount the sdcard. If I understand it correctly you can't read & write to the sdcard from the PC and the phone at the same time. So unmount it from the PC.

What you want to do is to pull down the notification windows on your phone. There you see the connection mode for your USB connection. Switch to HTC Sync mode for the USB connection. You should see a notification on your phone that it is mounting the sdcard.

After that you should be able to complete this step. I am now assuming you have the Superuser.apk & su on your sdcard.
[G2 and Desire Z General] jrkr:
You must complete the previous step before this will work.
[G2 and Desire Z General] YOSEFE:
Sadly, even as I write, my phone is in sync mode, but on the final terminal selection, nothing happens, then screen turn grey, like I said before.
[G2 and Desire Z General] LooieENG:
Sounds like you forgot to do step 15

adb install AndroidTerm.apk
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push rage /data/local/tmp
adb push root /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/*
adb push su /sdcard/
adb push Superuser.apk /sdcard/

Notably the last 2
[G2 and Desire Z General] YOSEFE:
I have done that step, however, I will go over it again.

Followed steps, Terminal will not open as before.

Wondering whether it is memory.

Trying to flash a different RUU.
[G2 and Desire Z General] YOSEFE:
Still more, no joy.
[G2 and Desire Z General] ludow:
I can't follow those fragmented instructions (links, links, deleted posts etc. Please community, step by step guide getting perm root and S-OFF with 1.72! Anybody?!
[G2 and Desire Z General] jrkr:
I had exactly the same results when I didn't root properly. I was in 1.72 with S-OFF and the rooting procedure didn't execute properly.

What error messages do you get during the whole process?
[G2 and Desire Z General] YOSEFE:
Thanks for your attention.

My problem is with the following procedure:

ON YOUR PHONE:

Launch Terminal Emulator

$ /data/local/tmp/rageWait for the message: "Forked #### childs."

Menu > Reset Term - Terminal Emulator will exit.

Launch Terminal Emulator, it Force Closes.

Launch a second time, and you'll have a root shell. <<<<<<<< This last line to the left of the <<<... is the problem.

When I launch a second time, either the terminal emulator does not open, or after a longish delay it opens in grey with nothing showing, unlike the blue showing that it is ready to receive commands.

What could be happening here?
[G2 and Desire Z General] CTCNetwork:
Hi,

This sounds very much like what was happening to me after I did that fated OTA update.

And that was where the Visionary process was failing after the update.

I would be checking to see if you do have root on the phone.

Des. . . ;)
[G2 and Desire Z General] YOSEFE:
What I have on the phone is S-OFF.
[G2 and Desire Z General] YOSEFE:
steviewevie and everyone following this thread - especially those who now have permanent root re: DZ & 1.72.

4.Code: Do I need every line here?

adb push psneuter /data/local/tmp

adb push misc_version /data/local/tmp

adb shell chmod 777 /data/local/tmp/psneuter

adb shell chmod 777 /data/local/tmp/misc_version

adb shell /data/local/tmp/psneuter

adb shell

AND

6.Code: Do I need both lines here?

/data/local/tmp/misc_version -s 1.33.405.5

exit

THEN

15.Code: Do I need every line here?

adb install AndroidTerm.apk

adb push busybox /data/local/tmp/

adb push gfree /data/local/tmp/

adb push rage /data/local/tmp

adb push root /data/local/tmp/

adb shell chmod 0755 /data/local/tmp/*

adb push su /sdcard/

adb push Superuser.apk /sdcard/

My question is whether I still need the following three lines since I already have S-OFF on 1.72:

1. adb push misc_version /data/local/tmp

2. adb shell chmod 777 /data/local/tmp/misc_version

3. /data/local/tmp/misc_version -s 1.33.405.5

Please shed some light.
[G2 and Desire Z General] jrkr:
My answer is no, you don't.

OK assuming you are in 1.72 with S-OFF:

adb push su /sdcard/su
adb push Superuser.apk /sdcard/Superuser.apk
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/*

adb push psneuter /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell /data/local/tmp/psneuter
adb shell

Finally execute this inside the shell you opened with the previous command >adb shell<:
/data/local/tmp/root

Now I made the mistake to not unmount the sdcard from the PC before the command '/data/local/tmp/root'. The memory card must be mounted by the phone otherwise you can't execute those files from within the shell (which is running inside the telephone).

I hope this is somewhat correct.

adb push psneuter /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell /data/local/tmp/psneuter
adb shell

Do you have the # (root) prompt after executing this?

haha feels like the deaf leading blind. (myself n00b)
[G2 and Desire Z General] steviewevie:
You need to click on that link to get to the procedure which shows you how to downgrade 1.72. But you only need to do up to and including step 4, you don't need to do the rest and downgrade. Then as guhl said, once step 4 gives you a root shell (i.e. # prompt), run the "root" script as his post says. That root script should turn the temp root into permanent root.

Sent from my HTC Desire Z
[G2 and Desire Z General] steviewevie:
YOSEFE, rage doesn't work on 1.72, which is why the terminal emulator didn't give you the # prompt. But the psneuter procedure is the way to go, then run the "root" script after psneuter gives you the # prompt.

Sent from my HTC Desire Z
[G2 and Desire Z General] premist:
Thanks Stevie, I now have the permanent root!

In the terminal emulator I typed su and I got the prompt for the 'superuser permission' which I allowed and then got the #

However if I try and open the superuser permission from the menu I get the message:

"The application Superuser Permissions (process com.noshufou.android.su) has stopped unexpectedly. Please try again."

And I have to force close, I have tried reopening it, restarting my phone and that message keeps appearing, should I be worried?
[G2 and Desire Z General] YOSEFE:
steviewevie,

I am now so confused.

Can you do me a complete working list of scripts? Can I send you or post here a copy of the complete terminal entries and results from my pc terminal so that you can see what is going on and have a fuller picture of what my problem is?

Without the "folking" bit of script, if I enter the "root" script, I get an error.
[G2 and Desire Z General] YOSEFE:
What did you do to get that far? I can't even get there.
[G2 and Desire Z General] premist:
After I downgraded to 1.34 and got S-OFF, I upgraded back to 1.72.

I ran psneuter:

adb push psneuter /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell /data/local/tmp/psneuter
adb shell

Which should give you something like this:

>adb shell /data/local/tmp/psneuter
property service neutered.
killing adbd. (should restart in a second or two)

This gave me a # when you run the ADB shell, exit out of the ADB shell.

Then run:

adb push su /sdcard/su
adb push Superuser.apk /sdcard/Superuser.apk
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/*

Now in the ADB shell on my computer I ran:

/data/local/tmp/root

Which gave me a message like this:

/data/local/tmp/root
killall: rage: no process killed
mkdir failed for /system/xbin, File exists

When I opened a terminal prompt on my phone and type in 'su' I got a prompt from the superuser permissions to allow the terminal to gain super user status, once I allowed that I got a # at the terminal prompt.

Hope this helps
[G2 and Desire Z General] dekaru01:
Guys, I really think that an easy, step-by-step tutorial for rooting 1.72 is needed. There's much information in this thread, but mostly scattered around. There should, in my opinion, be a separate tutorial just for obtaining permaroot on 1.72 (without all the downgrade stuff).

I now understand that from where I stand permaroot is possible, but I haven't upgraded yet because of a lack of a proper tutorial. And I don't consider myself a noob. I can only imagine what they are going through trying to make any sense of all the different bits and pieces of info in this thread.

Also, why is this thread in General and not in Dev? Seems highly counter-intuitive to me.
[G2 and Desire Z General] CTCNetwork:
Hi,

I agree that we need a single post (with the associated files required to complete the process) with the usual excellent step-by-step process required to complete the process.

Excluding the downgrade process is a no-no as it is intrinsically required for those on 1.72 who previously did have root access but didn't feel the need or urge to go that step further and get S-OFF.

Or maybe a guide for each process depending on the state of the phone in the one topic?

Des. . . ;)
[G2 and Desire Z General] YOSEFE:
I agree too. It will be good for those who are achieving a success to make a not of the working procedures.

I will keep checking to see how this develops. DZ's update is truly frustrating, and I give HTC a thumbs down over this unreasonable restriction which limits the full potential of such a wonderful device, which is not free from them, but expensive to buy on our part.

Mourn, mourn, mourn.
[G2 and Desire Z General] jrkr:
You tried to execute the application "root" on your computer. If you followed the instructions the "root" program should be located (pushed to) in the location /data/local/tmp on your phone.

You should then open a shell (adb shell with root privs!) on you computer and from there execute the "root" program on your phone.

You execute it by typing this command "/data/local/tmp/root" in the shell.
[G2 and Desire Z General] steviewevie:
No, flashing *only* the radio works ok if you already have root/S-OFF (and you keep root/S-OFF). But apparently if you flash the new radio gfree will not work, so you have to have already used gfree.
[G2 and Desire Z General] steviewevie:
I am not sure whether you might lose S-OFF as well, because I think you will get a new bootloader, and I wonder if the security has changed so that gfree's editing of the radio config partition doesn't help ? Would be interesting to hear from anyone who has tried (i.e. whether you keep S-OFF after the OTA).
[G2 and Desire Z General] tbalden:
Tried RAGE temproot method with this thred's files http://xdaforums.com/showthread.php?t=886999 (updated APK and su executable). I get till the part where it Force Closes the Terminal,but starting the terminal again freezes, no root terminal there unluckily. No idea if these two should work or not together, i just wanted to test if it gives me temp root.

(im after the OTA update to 1.72, stock ROM,im just usually using root for setCPU to work with vision_oc.ko module and wake-up on optical pad and MarketEnabler)
[G2 and Desire Z General] steviewevie:
Interesting that rage doesn't work either :(

Looks like HTC have done well at closing down some of the existing loopholes. Let's hope that the amazing devs that are around here manage to sort all of these issues out.
[G2 and Desire Z General] steviewevie:
Thanks to rmk40, it looks like we have some progress, patched versions of su and Superuser to work with the 1.72 ROMs.

See http://xdaforums.com/showthread.php?t=886999 for more info.
[G2 and Desire Z General] DanWilson:
But no unlocking method to use these files... :(

Imagine they unlock fastboot oem unlock for us!

Trolololololol
[G2 and Desire Z General] MacaronyMax:
I updated with the OTA Yesterday because it fixed my menu key.... Only if I'd know :p
[G2 and Desire Z General] tbalden:
Hopefully when xmas is over we'll have a solution for rooting as ppl will have more time on hand. Currently ota 1.72 update is a nowayback or ahead step.

--- sent from htc z using tapatalk pro
[G2 and Desire Z General] MacaronyMax:
Has anybody tried donwgrading with a Gold Card?? ;D
[G2 and Desire Z General] DanWilson:
My question in the other thread.

I'm probably going to try it, but don't want to lose my data.

Hell, anything for root, eh?
[G2 and Desire Z General] MacaronyMax:
Aha Yeah.. :D I'm going to try now anyway... Not much data to loose , Got it yesterday :p... Plus I already have a Goldcard which I used for my Hero ;)
[G2 and Desire Z General] wez89:
So if im right, updating to the latest HTC Firmware will de-root and assuming it will S-ON with the new bootloader???
[G2 and Desire Z General] DanWilson:
I can't find my spare SD card, and a couple of GBs backed up from my old one won't fit on my HDD, damn Mac! I'll keep looking though, I want that card!

You'll need to tell me how it goes. It's our last hope.

Until some serious hackers come along.
[G2 and Desire Z General] DanWilson:
Yep.

/////
[G2 and Desire Z General] MacaronyMax:
Will doo.... But I've got too wait an hour for the stock RUU download :/

:D
[G2 and Desire Z General] DanWilson:
Gasp! Perhaps I'll do something useful while we wait.

...

...

.:confused:.

...

...

Erm, I can't do useful things!

I'll sing!

"I've... had.. the time of my liiife....

And I've never felt this way before,

and I swear, this is true

and I owe it all to you!"

:P
[G2 and Desire Z General] MacaronyMax:
Haha! ;)

lmao :p :D Hopefully it will get quicker..... :D
[G2 and Desire Z General] DanWilson:
IF I SING LOUDER!!?!?

"OOOOOOOOOOOOOO

BARBARA STREISAND!"

Faster yet? Or do you just not like my singing?

:D
[G2 and Desire Z General] MacaronyMax:
Both ;)

It's gone down to like 40mins, Kicked everybody of the internet :p Sill too slow though...

Also great song btw :D
[G2 and Desire Z General] DanWilson:
Lulz.

*phones Barack Obama*

"Hello, how did you get my number?"

"SHUT UP AND GIVE ME THE DAMN RUU NAO!"

"Wow. Location found, missile locked, nuke inbound. Have a nice minute!"

*Hangs up*

"Damn, still no RUU."

*BANG!*
[G2 and Desire Z General] valve90210:
I'm a third agreer, I've got permanent root on my Desire Z but haven't done the S-off stuff as I didn't really see a need for it, as I am not planning on flashing diferent ROMs etc, I only really want root to allow me to setCPU to underclock when the screen is off etc to give me better battery life.

A simple step by step would be brilliant!
[G2 and Desire Z General] steviewevie:
I agree with you. Trouble is, this just keeps getting more complicated, because how you root etc depends on which ROM you have. But I agree that we need a clear guide to do rooting (not downgrading) at 1.72, to go with what we have already.

Sent from my HTC Desire Z
[G2 and Desire Z General] YOSEFE:
When I type su on my phone, I get the message:

su: unknown user root.

What have I missed?

Thanks.
[G2 and Desire Z General] YOSEFE:
This gives me:

permission denied

Why is that?
[G2 and Desire Z General] jrkr:
I don't know what exactly gives that message. I assume you don't have root privs in the shell. Is it a $ prompt or a # prompt?

I suggest you start from the beginning. Now to make it work copy the entire input/output from your command window here so we can follow what you type and what replies you get. Also state which connection type the USB is on at the various stages. I think we won't get progress until you do that. It is very hard getting an idea of the problem based on single error messages without having the whole context.

Also is it anything of this that you feel you don't understand? I mean adb or executing a shell on your phone etc. I don't know much but I may be able to explain, also there are others here who surely can explain.

adb push su /sdcard/su
adb push Superuser.apk /sdcard/Superuser.apk
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/*

adb push psneuter /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell /data/local/tmp/psneuter
adb shell

Finally execute this inside the shell you opened with the previous command >adb shell<:
/data/local/tmp/root
[G2 and Desire Z General] ludow:
Agreed about guide. :) But nobody seems to be interested. :eek:
[G2 and Desire Z General] neonlite:
im interested! all the guides are related to the firmware below 1.72. :(
[G2 and Desire Z General] premist:
When you rooted did you run the commands in the same way as you have posted?

It's just I did the psneuter command first then the root command and mine worked fine, so was just wondering.
[G2 and Desire Z General] jrkr:
I am not sure now that you mentioned it, I followed the sequence in guhl99's post but I did go back and forth having all kinds of problems so what sequence it was in the end I cannot tell.

If you are sure about the sequence you followed then I think we should go with that!
[G2 and Desire Z General] YOSEFE:
I decided to step back by reflashing with rom 1.34, and go from there.

I got root, but when I restart the phone, root is gone even though I have S-OFF.

I will install 1.7 and have a "final" go at it.
[G2 and Desire Z General] YOSEFE:
I now give up.

Thanks for all the support.

Will check back as things get more clearly defined.

We are very close, and not far from making this perfect for all.
[G2 and Desire Z General] CTCNetwork:
Hi,

Thanks for trying at least. I'm pretty new to Android as well so will also be keeping an eye on what is happening.

Being clued into adb is pretty important so glad I have that set up correctly...

Will see you back when all is much clearer.. :)

Need to back up all the info on the phone as well!

Des. . . ;)
[G2 and Desire Z General] antoinoid:
Hi there,

I try to install 1.72 after succesfull root and s off (radio s off ok).

When I try to install "update.zip" through clockworkmod recovery, I have :

E:Error in /sdcard/update.zip (Status 7) Installation aborted

Where did I mess ?

Thanks, boys'n girls
[G2 and Desire Z General] antoinoid:
uuuuuup, boys'n girls !
[G2 and Desire Z General] YOSEFE:
The one who went away has now returned with a positive report.

I am happily running my DZ on rooted 1.72 (OTA).

I used a combination of:

1. visionARY r12

2. Superuser

3. Terminal Emulator (as always)

4. ADB (as usual)

5. Post #s 375, 380, 381 & 387

6. http://xdaforums.com/showthread.php?t=837315 (Video & Referent: http://xdaforums.com/showthread.php?t=833965.) Step 4

Code:

$ su

# insmod /data/local/wpthis-[YOUR_VER].koIt should return:

returned a different error to the one below:

Code:

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

so I did not get bothered, I skipped step 5 and proceeded to Step 7 which reads:

'This step will lock in your perma-root and S-OFF. If you are using adb shell, you should still have your shell open. If you have used VISIONary r12 to perma-root, and are just wanting to apply S-OFF, your terminal should still be open. If you have just completed step 6, go ahead and reopen your terminal, and type su and press enter to regain root access.

Code:

# syncWait a minute or two, and reboot. 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!!'

In between fiddling and trying installation, uninstallation and reinstallation of Superuser and visionARY r12 it worked, and I have root.

It is hit and miss, but carefully done, one can still get there through hours of trial and error. I spent 12 hours trying to get this yesterday upto about 1.30 am this morning.
[G2 and Desire Z General] ludow:
Well done YOSEFE! :)

I gave up ages ago. HTC won this time. :mad: I hope somebody will write the guide. Desire Z is boring w/o perm root and S-OFF. :(
[G2 and Desire Z General] YOSEFE:
Achieving S-OFF is the easiest part. If anyone plans on trying a bit at a time towards rooting, what you want to do is get started by following guidance to root DZ running on 1.34 ROM or if you are already 1.72 OTA'd, by downgrading back to 1.34, root or re-root.

After rooting or re-rooting your 1.34 DZ, if you have S-OFF, OTA update to 1.72; and it will only be a matter of time before you get root on there again.

Keep trying. As long as you follow the guides, you have no need to fear that you will brick your Vision. This is always on our minds when we are attempting rooting or flashing a new ROM.

There is hope for everyone if I, who has been a windows person both on PCs and Mobile Phones can do it.
[G2 and Desire Z General] iamthechickengod:
I ran psneuter but I am not sure what you meant by usual methods to lock this to permaroot. Where should I start? I was able to run psneuter with and stopped with this

/data/local/tmp/misc_version -s 1.33.405.5

exit

I and not sure what the next step is after this.
[G2 and Desire Z General] CTCNetwork:
Hi,

Glad to hear you have managed to achieve this. Well done.. :)

Something for me to start preparing for.. :)

Des. . . ;)
[G2 and Desire Z General] zbrah:
hey guys sorry to sound like a newb but how do i root my g2 running 1.72 or is it possible to just to achieve s-off without rooting because i just want to unlock the phone? could anyone show me an easy to use guide thanks guys i know it would easiest to use gfree so guide using it would be most helpful
[G2 and Desire Z General] tbalden:
do u have a g2 or z? g2 had an 1.72 update recently??
[G2 and Desire Z General] keinengel:
Has anyone managed to get permroot using the su binary and superuser.apk included in the zip from the Wiki?

I just rooted mine using rmk's updated su and Superuser.apk - I'll update the wiki with the guide later :)
[G2 and Desire Z General] ludow:
No guide for 1.72 (perm root and S-OFF)? Thread title says now possible! :eek:

Somebody....please...write...that...guide. Thanks.
[G2 and Desire Z General] YOSEFE:
There are several tips on the forum. Agreed there is no perfect guide. The reason is that following the tips, most who have achived root have to some extent done so through informed trial and error. That is certainly what happened to me twice.

If I had a second device, I would try to record the steps till I achieve root.

"S-OFF" is not a problem, the guidelines on forum are perfect for that, as is downgrading from OTA 1.72.
[G2 and Desire Z General] ludow:
You maintained S-OFF after OTA?