yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] hightechlive:
i get al the way to the end and there seems to be a problem with

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

because it says error cant find chmod

any help?
[G2 and Desire Z Android Development] JayBlunts:
Clarifying the "CRUCIAL" part of these instructions

First timer here. Was able to get through the process without any gunshots or stab wounds. Thanks for all the hard work! :D
[G2 and Desire Z Android Development] steviewevie:
The "chmod" command is built into Android, so that should work. Are you copying and pasting in that command like that ? You're not accidentally doing "adb *push* chmod", are you ?
[G2 and Desire Z Android Development] ddgarcia05:
He I'm helping him root the phone. We just copy pasting the code. I believe he used visionary prior to using rage but was unsuccessful. We're now stuck with s-off but no root. I'll be using the hex editor shortly to restore stock and s-on then attempt to root with rage again. What do you think?
[G2 and Desire Z Android Development] k0nzious:
so the VISIONary + one click isn't a perm root?

i'm confuzzled.
[G2 and Desire Z Android Development] hightechlive:
I have tried this and all goes smoothly up until the last root command on Emulator Terminal it says:

mkdir failed for /system/xbin/, File exists

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

Any idea on what I'm doing to stop the last part here?

I have tried the Rage method. S-OFF but no root.

ant help?
[G2 and Desire Z Android Development] steviewevie:
Sounds like a good plan to me.
[G2 and Desire Z Android Development] steviewevie:
Not exactly "one click", but a few clicks and it should be. Only trouble is that it appears to be rather flaky. Given you can't see any error messages if anything goes wrong, I recommend using the rage method instead. At least you can see what it's doing,and it seems to be a lot more reliable.
[G2 and Desire Z Android Development] steviewevie:
busybox is missing. One of the earlier steps was to do "adb push busybox /data/local/tmp/busybox". I suspect either you didn't type this command correctly, or an error message came up that you missed.
[G2 and Desire Z Android Development] steviewevie:
Any chance we could get this guide updated and remove this dd step please ? It's really not necessary now we have gfree to get radio S-OFF, and it's very risky. If you do want to do it, it's a lot safer to do so *after* gfree, rather than before.
[G2 and Desire Z Android Development] hightechlive:
all we did was copy and paste

adb push busybox /data/local/tmp/busybox

is that what you are saying?
[G2 and Desire Z Android Development] steviewevie:
Sorry, I've looked at your previous posting and now I'm not sure. Have you use Visionary previously on this system before you tried rage ? Because your error messages look strange and I wonder if something has happened to the file system.
[G2 and Desire Z Android Development] ddgarcia05:
I believe he told that he did have visonary installed onto his phone but I don't know if he actually used it or just installed it. Very unlikely that it wasn't used. As previously suggested can we install the stock rom on the phone if we have s-off and NO root using the hex editor? I believe that should solve the issue with the busybox command as I think visionary did alter the system a bit.
[G2 and Desire Z Android Development] steviewevie:
I'm kinda tired and I've lost track of what he originally had on his phone. Didn't he have the stock ROM anyway ? In which case installing the same version of ROM shouldn't need any hex editor stuff. I might have missed something though. Or how about just a reset to factory settings and try it with rage ? I wonder if the file system is corrupt, that's some weird set of error messages if you try to think about reproducing it (I initially thought just busybox was missing but now I see it's not that simple).
[G2 and Desire Z Android Development] IcedZ:
Worked like a charm! MUCH better than the VISIONary method. I semi-bricked my phone using that and just spent 7 hours restoring it. This worked first try!

Thanks!
[G2 and Desire Z Android Development] Krisrk:
I have S-Off, but no root. I finally got adb working on my mac. Because I discovered that you have to type ./adb instead of adb. Well I followed the steps to a T. Pushed all the files.

But when I got up to the step that said to type this: /data/local/tmp/root I got an error saying busybox wasn't found basically. I tried changing that step to: /data/local/tmp/busybox And rebooted the phone. Neither method worked for me. I went back and have done this 4 times now. I keep running into the same problem at the same step. (Whenever I tried using the tmp/root I got the error... but when I used the /tmp/busybox way I got a huge prompt that talked about busybox and blah blah..., so it seems I got further by changing the step to locate the file at tmp/busybox)

If I can get this step working, then all I have is one more step which is to type: sync , and then wait for a minute and reboot.

Is there any suggestions, if anyone else has a mac and did root the manual way and got it working or had the same issue and then got it working?

Thanks in advance

--UPDATE followed the directions from post 220, user fromCliq2G2. I have stock G2 now... I will re-attempt root. But will not touch visionary again... since that is most likely what caused something to become corrupted. I didn't flash the OTA update either... I went to system updates and the file was available so I am just letting the phone handle the installation.

-- Success!
[G2 and Desire Z Android Development] suprajztwenty:
help please!!!

i make it to the last step before locking in root and im also getting the busybox error mumbo jumbo

VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

(You should see some messages indicating that it was written. Next, run:

Code:

# /data/local/tmp/root)

^^^^^^^^^^^^^^^^^^^^^^^

basically i did it ass backwards. i tried visionary first, i got a black screen and stuck. hit home tried again and seemed to take, but checking SU i get denied.

then i try this and get stuck a couple times but i did do a factory reset from the recovery as well as the 1.19 downgrade and im still getting the busybox errors even when using the pc.

i searched and seems like the only answer is to reflash. ive been at it for 4 hrs straight now and my head is about to explode...please talk to me like a child and help walk me through this...im SOOO close!

(edit)

i searched the error message in this thread and followed the last guys advice (see post 220) i think i did it right, full wipe/format and downgrade...do it again??? still getting the same busybox garbage
[G2 and Desire Z Android Development] fastludeh22:
A lot of people that tried visionary first got s-off from it but no root. Were you/are you s-off. I'm going to assume you are s-on since you flashed pc10img.zip, but worth asking. It will say in fastboot screen on phone. If you are s-off follow my post here: http://xdaforums.com/showpost.php?p=9284754&postcount=187

Also have you tried the gfree method? This way is kind of outdated.
[G2 and Desire Z Android Development] suprajztwenty:
for reference...

yes, somehow i got s-off WITOUT root at the end of it because of 2 types of errors. the main thing was the hboot driver (android 1.0 "cannot find drivers") pdanet seemed to do the trick at first...and then htc sync almost got it...but i actually needed to add to the string of my systems main path...whatever that all means. i copied and pasted from writeup and restarted and finally adb devices showed my serial...THANKYOU for the guide, after drivers were installed it flashed cwm like a charm. onto my first rom, virtuous...just finished, im out, thanks again man!
[G2 and Desire Z Android Development] Blackman778g:
I just want to thank you for this guide, It worked with out question. I love this guide!
[G2 and Desire Z Android Development] juanshop:
Why is this not a stickie anymore?
[G2 and Desire Z Android Development] steviewevie:
Just like the other guide to rage, this one is also a bit out-of-date. For now, you should use the guide in the Wiki, which is safer (no dd'ing of hboot).
[G2 and Desire Z Android Development] Keirnoth:
Thank you so much! Instructions worked to a T.

I also installed HTC Sync for the Desire Z before this so that it installed the necessary drivers. Got the Android SDK with ADB.

Followed the instructions down to a T. Double and triple checked all the commands. Worked without any problems!

Now I see people talking about S-On or whatever - do these instructions turn that off? Just what is it?
[G2 and Desire Z Android Development] steviewevie:
This guide copies an engineering bootloader to give you S-OFF. But the safest way is to use "gfree" to give you S-OFF, which is documented in the Wiki.
[G2 and Desire Z Android Development] xxMAGIC MANNxx:
Can somebody post a vid tutorial on how to do this??

G2 Rules!
[G2 and Desire Z Android Development] okidongkii:
HELP!

I tried to root my Desire Z, and for some reason maybe i missed the steps or something stupid,

and now my phone is stuck on the HTC screen

I removed the battery, put it back and tried to switch it on, nothing happened.

I did the factory settings back from the recovery boot, and it still stuck.

Is there anyway I can get my phone back?
[G2 and Desire Z Android Development] steviewevie:
Did you try using Visionary before you used the "rage" method ?

Can you get it into the bootloader (hboot), if you power off the phone, then hold Volume Down and then press the Power key till it turns on ? If so, what does it say at the top of the screen ?
[G2 and Desire Z Android Development] okidongkii:
I did try the Visionary before the "Rage" method.

And when I get in to bootloader it say on top of the screen:

"VISION PVT ENG S-OFF"

so, what should I do then?

i still have no idea..

thank you for replying this post
[G2 and Desire Z Android Development] boyfrom75:
Visionary broke my Tmobile G2 phone - VERY SAD HISTORY

This is a very sad history of this guy who losse his phone after using Permroot on Visionary... :(

http://xdaforums.com/showthread.php?t=879895#
[G2 and Desire Z Android Development] steviewevie:
Unfortunately Visionary either seems to work perfectly, or it messes up your phone like this. Which is why I strongly recommend people stay away from Visionary, because of the risk.

What ROM is the phone running ? You can flash the ROM from SD card via hboot, if you can get hold of the ROM image, or an older one.

Or what you can do is to go into the stock recovery, which is a screen with a red triangle and exclamation mark, then press Volume Up and Power together, to take you to stock recovery, then try factory reset.
[G2 and Desire Z Android Development] soypoi:
My phone says the same vision thing and the wiki said that was ok...but I've done the factory reset... anything I should do before attempting this process again?
[G2 and Desire Z Android Development] steviewevie:
Sorry, I'm confused where exactly you're up to on this.
[G2 and Desire Z Android Development] Razorless:
hey,

so i tried to root my desire z and im stuck

# Launch Terminal Emulator

# /data/local/tmp/rage

# Wait 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

terminal emulator force closes but wont start a second time. well, dont know what to do. sry if this was asked before. im kinda confused now :confused:
[G2 and Desire Z Android Development] maus010:
If your Build Number starts with 1.72 you're not able to root.

I have the same problem.
[G2 and Desire Z Android Development] Razorless:
that doesnt sound good...where can i look up the Build Number?

edit:

ok, got it.

build number 1.72xxxx

does this mean no root at all?
[G2 and Desire Z Android Development] Baphometa:
Was so nervous rooting my first android phone which also happened to be a g2 I paid full price for just a few days ago but this guide worked PERFECT

THANK YOU!!!

Now to find a good rom =D
[G2 and Desire Z Android Development] steviewevie:
Correct, you can't root at the moment. Hopefully this will change once all the various technical issues are ironed out. Check this thread for progress updates - http://xdaforums.com/showthread.php?t=886023
[G2 and Desire Z Android Development] okidongkii:
So many hour I spend to recover my phone,

Recently I follow your posts in this thread and other threads,

And now my phone is back,

Thankyou steviewevie for your replies.

Not just recovering my phone from semi-brick condition,

And now im also running my phone on CM 6.1 :D

Yeaaay..
[G2 and Desire Z Android Development] DefineIndecline:
i'll take running code over messing with visionary anyday. thank you so much!
[G2 and Desire Z Android Development] blackknightavalon:
Fixed it for you. :)
[G2 and Desire Z Android Development] IVI4V3R1CK:
Everything went by smoothly. There were a few bumps in the road, such as in the prep files it states you can DL the "z-combined" zip, but the z-perm-root were missing the two files needed to do the perm root. So I had to DL the files additionally. But everything else went through completely successful, and since it was just granting the access and not loading a ROM it kept all my original settings. Thanks!
[G2 and Desire Z Android Development] hamish909:
I've followed the Temp Root part of the guide but I still don't have root. Any ideas??
[G2 and Desire Z Android Development] orangeneko:
Thank you for the instruction guide. And thank you to those who said you have to uninstall SuperUser first! Once I did that and ran through the guide, I finally got the SuperUser Permissions prompt!! Hurrah =)

As a Droid newb, there were a few things that would've been helpful and would've saved me 4 hours of googling.

USB drivers for Droid - they are needed in order to try to push any files from your PC to your phone... and this was really hard to find! But luckily there was a thread on XDA where someone had them for Windows platform as HTC nor T-Mobile doesn't offer a driver set for US-allowed use. HTC requires a login/pw to get the HTC USB drivers... and their site says not allowed for US users... I almost killed myself here since both rooting methods mention pushing the files from your PC to your phone.

ADB, SDK, JDK are all exes needed in addition to the USB drivers for your HTC device in order to push the files from PC to phone. It would be nice if the instructions said you had to copy your G2TempRoot files to where the ADB.exe file is in order to push the files; else you get invalid internal,external, known command. They have to be in the same place else the command prompts dont work...

And lastly, make sure your phone doesn't already have SuperUser preinstalled like my G2 did. Once I saw someone mention removing this first before doing the root, I went back and repeated the root and bingo! It worked.

So after these important addition steps, it's just as the Instructions say. So thank you!
[G2 and Desire Z Android Development] Freaknik:
PLEASE can someone help. I type in C:\android-sdk-windows\tools but it tells me it cannot be recognized blah blah. Yes I've checked a thousand times that the file directory is located there. I actually got past that part by typing adb shell first and it gave me the $ sign. Unfortunatly it kept telling me permission denied. Any help its been hours.
[G2 and Desire Z Android Development] Alex530:
I keep getting permission denied aswell. Everything else works though
[G2 and Desire Z Android Development] steviewevie:
Glad you got it all working but you didn't need to do 4 hours of Googling, a look at the "adb for noobs" thread in this forum would have sorted most of that for you - e.g. you don't need a password to get drivers from the HTC site, you can just download HTC Sync ;-)

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] steviewevie:
If you are typing "adb shell" then that $ command prompt is on your phone and not your PC. So if you type any more adb commands to that $ prompt you'll get that message, because you need to be typing it to your PC's C: command prompt.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] steviewevie:
Which ROM do you have on your phone ? If it is the new 1.72 one, then rage currently doesn't work on that ROM. But on any earlier ROM it should work fine, so something has gone wrong in the procedure.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] anakin908:
Thanks a lot for this guide. Visionary just doesn't work for me, but this method works perfectly on the three phones I've tried it with.
[G2 and Desire Z Android Development] urmybaby:
best guide ever, thx bro
[G2 and Desire Z Android Development] Freaknik:
am i messing up
[G2 and Desire Z Android Development] steviewevie:
The initial commands are supposed to be typed on your PC, not the phone. When you do "adb shell" you're then getting a command prompt on your phone, so that's why the commands aren't working. Don't do "adb shell" first.

This guide is a bit out of date though, I recommend using the one in the Wiki - http://xdaforums.com/wiki/index.php...cess_.28Permanent_Root_.2F_.22Permaroot.22.29
[G2 and Desire Z Android Development] mister.knister:
Hi,

I have a problem rooting my Desire Z. I followed the instruction in post #1.

When I get to the point: "Launch Terminal Emulator, it Force Closes." that happens

on my phone. But after that I can´t start terminal emulator a second time so I can´t proceed. When I try to start terminal emulator the second time Sense hangs completly and I have to put out the battery to use my phone again.

I have never used visionary until now but I thought when I can´t get temp root with rage so I try it with Visionary R14. So installed it and clicked "temp root" and it happens exactly the same. Sense is crashed and I have to reboot.

System info:

Android: 2.2.1

Baseband-Version: 12.28e.60.140fU_26.04.02.17_M2

Kernel: 2.6.32.21-g540976a

Build: 1.72.405.2

I sucessfully rooted my desire z but a few days ago there was an Update OTA and since then I lost root and I don´t know how to get it back. Any Ideas ?

regards,

Mister.Knister
[G2 and Desire Z Android Development] randomsuffix:
Hey there,

Sorry for the very newby question, but I'm a lil' paranoid about rooting my phone since I don't want to royally arse it up.

I've got a sim free Z, Android 2.2, Kernel 2.6.32.21-gd2764ed

Are the instructions on the Wiki the ones I should be following? The disclaimer about them being beta makes a little nervous. :P

Ta' guys.
[G2 and Desire Z Android Development] djfoo000:
the wiki one is good. Visionary is too inconsistent. The beta tag has been there for a month already. Disclaimers will always be there though.
[G2 and Desire Z Android Development] zkid2010:
It's all over these forums friend: http://xdaforums.com/showthread.php?t=886023

Not sure but I think you're stuck w/o root for now.
[G2 and Desire Z Android Development] mister.knister:
Thanks, and damn. But I think time will bring a solution for a rooted phone again.

regards,

Mister.Knister
[G2 and Desire Z Android Development] Untouchab1e:
So does this method give us S-OFF?
[G2 and Desire Z Android Development] steviewevie:
This guide is a little out of date now, the most-up-to-date method of rooting and getting S-OFF uses "gfree", see the Wiki at http://xdaforums.com/wiki/index.php...cess_.28Permanent_Root_.2F_.22Permaroot.22.29
[G2 and Desire Z Android Development] tarreltje:
Ok need some help almost read the whole topic but didnt find anything.

After i do the rage command on my mobile with the terminal editor, everything went like i should, i get the forked thing , all nice but then i have to reset terminal editer. This also went fine. i restart terminal editor, get the message that it forced to stop, but then..... when i try to start terminal editor again, it doesnt do anything anymore... i wont get to see the editor anymore, it just makes my DHD sticky..

what is it that i do wrong???
[G2 and Desire Z Android Development] steviewevie:
You're in the wrong forum, this is the Vision (DZ/G2) forum, you need the DHD forums. I suspect that you have the 1.72 ROM though, which is currently unrootable.
[G2 and Desire Z Android Development] tomato16:
Would backing up the existing mmcblk0p18 partition prior to overwriting it allow for an easier way to remove permanent root later on?

So before we do this

We could create a backup first

Then if we later want to remove permanent root

Would this work?
[G2 and Desire Z Android Development] steviewevie:
That's removing S-OFF, not permanent root. That would remove S-OFF if you only have the "fake" S-OFF from the eng hboot (the full radio S-OFF via "gfree" is a lot better and safer). You still have to remove permanent root.
[G2 and Desire Z Android Development] tomato16:
Thanks! I'm still not understanding which part of the instructions persists permanent root. Does the eng hboot reference wpthis-OTA.ko to do something specific?
[G2 and Desire Z Android Development] steviewevie:
Permanent root is achieved by two things. The first is by disabling the write protection on the NAND internal storage, and this is done via the "insmod" command to load that wpthis kernel module into the running kernel. The second is through running the "root" script, which installs the Superuser app and the "su" binary - and since the write protection has been disabled, these changes can be permanently made to the system partition.

The newer way of doing this in the Wiki, which still uses the root script, but uses gfree before that, which has its own in-built dynamic kernel module to disable the write protection.

The eng hboot is actually nothing to do with permanent root. It's a way to set S-OFF (security off, so you can flash unsigned ROM images). Again, it's better to use the Wiki method and gfree to get S-OFF, because you then get a "real" S-OFF and not just a "fake" S-OFF (see the Wiki for an explanation).
[G2 and Desire Z Android Development] jonny_ringo_wvu:
Wait 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

In working through the guide to temp root, I got the "Forked #### childs" message and reset term causing exit. When I relaunch terminal emulator nothing happens. There is no Force Close. On reopening I'm left with "# #." Where did I go wrong? Thanks in advance for any help you can provide.
[G2 and Desire Z Android Development] trigeek:
There's a separate flash you have to do to the /boot partition to get this command to work. I haven't done it yet myself, and it's around here somewhere... if I find it I'll post a link here.

the shortened mount syntax does not work with the default busybox mount:

# mount -o remount,rw /system
mount -o remount,rw /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory

You'll need to specify the partition:

# mount -o remount,rw /dev/block/mmcblk0p25 /system
# mount -o remount,ro /dev/block/mmcblk0p25 /system

also note that you need commas between the mount options, not spaces. I'm guessing that Root Explorer uses the short syntax, since it's the most portable between devices... but it won't work for us just yet, until a replacement mount / toolbox is in place that supports the shorter syntax.
[G2 and Desire Z Android Development] juanshop:
i cant even go through the temp root... -_-
[G2 and Desire Z Android Development] ws6driver:
failed!

i get to the /data/local/tmp/root and it displays

unable to chmod /system/bin/su: no such file or directory

SOLVED! I was sending the G2temproot to the /data/local/tmp/root directories. Sorry.
[G2 and Desire Z Android Development] joackie27:
many thanks for sharing your knowledge
[G2 and Desire Z Android Development] mac404:
Worked like a charm. Thanks for making it very easy to follow!