yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] Tokinjedi:
the adb works. tried to root with this method, http://xdaforums.com/showthread.php?t=834228 , since visionary was not working. alas, it did not work either. it works right to the step where i run the root file near the end but i get write denials. i get access to the root terminal but titanium and rom manager both say they can not access root. i should have temp root by that step should i not? almost forgot, it also shows it cannot find su in the system/xml directory or something like that. it has to do with the xml directory as thats what stands out in my brains memory. :mad:

ADD: forgot to check the hboot since i put a eng one in there and i have s-off achieved. i know thats important but i do not know where to proceed from there at this point. again i am at work pullin another 12 hours at work so progress is slow. >_<"
[G2 and Desire Z Android Development] ianmcquinn:
Oh, you're actually in good shape if you have the engineering hboot installed (you are now rooted). The root script just sets up things on your phone so that you can actually do stuff it it. Can you list the actual error you got? Also, did you uninstall Visionary?

Another thing that might be worth trying since you said su works in terminal is to start up Titanium Backup, hit the problems button, and then have it try to install BusyBox for you (it's normally installed by the root script).
[G2 and Desire Z Android Development] Tokinjedi:
mkdir failed for /system/xbin, file exists

cp: cant 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

sorry if something is wrong, had to manually type this in. it was the xbin not xml. visionary is uninstalled. su does not work in terminal, at least when i type su in it gives me denied. i only get root terminal after i run the rage cmd from the terminal emu. but even then titanium and rom manager give me no root rights.

also, i have been typing the command to push the wpthis-ota file wrong, been typing in wipthis-ota.ko and not telling it where to put it. but after i figured that out i get the same errors but with a extra error that shows

killall: rage: no process killed
[G2 and Desire Z Android Development] ianmcquinn:
These errors make it seem like some of the files didn't get properly pushed to your phone. Try doing this---follow the instructions from my guide, except instead of steps 4-6, run rage to get temp root and the root prompt instead.
[G2 and Desire Z Android Development] kobexu:
thank you so much for the instruction, now my G2 is properly rooted using your method and i have installed CM 6.1 rom on it.

I have a question, since gfree does subsidy/sim unlock as well, does that mean now my phone is also sim unlocked after completed all the process in your post?
[G2 and Desire Z Android Development] ianmcquinn:
Yes, the phone is now SIM unlocked so any network can be used.
[G2 and Desire Z Android Development] 2G1J:
I followed the instructions and decided to delete a bunch of the stock apps. However, when I reboot my phone and try and open up titanium backup it says it can't acquire root privileges. The apps didn't come back upon reboot and it says s-off when I hold vol down while powering up. Should I try the process again?
[G2 and Desire Z Android Development] Tokinjedi:
no go, keeps giving me cp not found. seems something does not want to load where it needs to go.

so i tried a different way this time. pushed your perm_root file through adb to my phone then ran your perm root commands and got:

copying needed files

mkdir failed for /data/local/tmp, file exists

cp: not found

cp: not found

cp: not found

cp: not found

running gfree...

/data/local/perm_root: /data/local/tmp/gfree: not found

syncing data...

installing busy box...

mkdir failed for /system/xbin, file exists

cp: can't stat '/system/xbin/busybox': not a directory

unable to chmod /system/xbin/busybox: not found

installing superuser...

cp: not found

cp:not found

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

syncing data:

#

perhaps i need to push the rest of the files from your root_files?

its like when i get the temp root terminal going, i don't really have temp root. even tho the hboot shows s-off. maybe if i can just flash a different recovery or something and get a rom on there ill be ok.
[G2 and Desire Z Android Development] ianmcquinn:
Yeah, that's actually what I'm thinking may be best for you. Since you do have S-OFF, you should be able to just flash a new recovery. Try using the PC10IMG on this post (http://xdaforums.com/showpost.php?p=10583834&postcount=33). It'll restore your phone to stock, flash ClockworkRecoveryMod, and leave your engineering HBOOT.

And those errors you got make sense if the root_files directory is not located on your SD card. Is it there?
[G2 and Desire Z Android Development] ianmcquinn:
Was everything working before you removed those apps? Which apps did you remove and how?

Also, did you make a backup before doing so? You might just want to restore the backup if you have one and then remove the apps a few at a time to make sure it's ok (if you are using Titanium Backup, you might want to freeze the apps first instead to make sure your phone still functions correctly before actually uninstalling them).
[G2 and Desire Z Android Development] ianmcquinn:
I think I responded to you in the ClockworkMod thread, but in case you didn't see it:

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

http://xdaforums.com/showthread.php?t=900460
[G2 and Desire Z Android Development] 2G1J:
Yes, everything was working until I rebooted the phone. I followed the steps again and it seems to be working now.
[G2 and Desire Z Android Development] Tokinjedi:
SUCCESS! ran the file from the link and changed the recovery. able to get root terminal in emulator. will i be able to update to the newest clockwork recovery with this? will flash enoms official and let you know how it goes.:D

installed enoms official with no problems. have full root access now through terminal, titanium, ect.

Thanks for all the help, give you another thanks if i could.

ends up i could and did.
[G2 and Desire Z Android Development] ianmcquinn:
Awesome. Glad you got it all working!
[G2 and Desire Z Android Development] bibow:
how do I know my device is rooted?

Hi. just followed the guide and no problemes appeared. But when i hold down volume down and the power button it just starts as normal. any ideas?
[G2 and Desire Z Android Development] ianmcquinn:
Did you keep holding the volume down button until it turned on? While the phone is off, you should hold volume down and then press the power button. Keep holding the volume down button until you see the phone turn on.

Should be a white screen with green text at the top and three little green Android robots on skateboards down at the bottom.
[G2 and Desire Z Android Development] bibow:
yeah. tried that.. notting happens. any other way I can check if its rooted? or should i just try it again? (do it all over)
[G2 and Desire Z Android Development] ianmcquinn:
Try typing su in terminal to see if it works (should also get a popup asking you to allow superuser access). This only works if you are rooted.

You can also install an app like Titanium Backup (it checks to see if you are rooted each time you start it up).

Still doesn't explain why you can't get into the bootloader though. That should work regardless of whether or not you are rooted.
[G2 and Desire Z Android Development] turok_14373:
omg omg omg. i had put off rooting my phone til a guide like this came along. s-off baby. thank you. domo. muchas gracias, dankie, merci, grazie,
[G2 and Desire Z Android Development] marmar82:
My sentiment exactly!!!!
[G2 and Desire Z Android Development] deliriousDroid:
If I already have permroot no s-off through visionary, would this work for me to get s-off?
[G2 and Desire Z Android Development] djquestt:
I just wanted to say thank you I'm sure many peopleincluding myself has put off rooting because previous guides were so confusing you are both a scholar and a gentleman
[G2 and Desire Z Android Development] quickwiz00:
I just want to say, thank you so much for all the time and work you have put into helping others.

I am a first time android user and recently purchased the G2. My phone came with the OTA factory installed, my build number is 1.22.531,8......

I followed the directions exactly and when I enter boat loader, S-off is displayed. Does this mean my phone is perm rooted?

The reason I ask is because when I download titanium backup and then try to run it I get a message saying "Sorry, I could not acquire root privileges...."

Also, I have placed a non T-mobile sim card in the phone and the sim card is readable and I also get service, indicating the phone is sim unlocked.

Finally, super user permissions has given Titanium backup root access. Not sure if this matters but I chose not to perform the engineering hboot.

Edit: It appears all I had to do was upgrade busybox in titanium backup. Thanks again for this awesome guide
[G2 and Desire Z Android Development] borodin1:
While I'm fairly good with ADB, I found this guide very helpful and it made things so easy that I rooted my wife's G2 in less then 5 min (using ADB of course to type everything, I'm not that great with G2's keyboard). It literally took me at least 2 hours to do it on my MT4G so I can't thank you enough for the script. Now, if only life was that easy :)

Once again, thank you.
[G2 and Desire Z Android Development] Daughain:
This was perfect, and exactly what I needed. Many thanks to all involved!
[G2 and Desire Z Android Development] steviewevie:
All you need to do is run "./gfree -f" to get radio S-OFF, so just do the bits to get gfree on your phone and run it.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] deliriousDroid:
So since I have perm root all I have to do is put in the following code? But omit the 2nd line?

$ su
# cp /sdcard/root_files/perm_root /data/local/perm_root
# chmod 777 /data/local/*
# /data/local/perm_root

Like so:

$ su
# chmod 777 /data/local/*
# /data/local/perm_root
[G2 and Desire Z Android Development] da_enlightener:
I need some help. I followed all the instructions including the engineering hboot portion. Now my phone is stuck at the htc splash screen.

I'm using a desire z. Any ideas on how to fix this?

i've tried going to recovery and formatting the cache but and doing a factory reset. None have worked.
[G2 and Desire Z Android Development] ianmcquinn:
Sorry, I don't have a Desire Z so I don't know what may have gone wrong... I'll add a warning to the OP though just in case it's something Desire Z related.

Here's one thing you can try though. Do you have a ROM you'd like to flash to? Download the zip for that ROM and put it on your SD card. Also copy the PC10IMG.zip I've attached to your SD card. Boot into the bootloader and it'll ask if you want to flash the new recovery. This will give you ClockworkMod Recovery. Then enter the new recovery and use it to flash the new ROM.

Edit: I think I know what's wrong---the Desire Z uses a different HBOOT than the G2. Try using the PC10IMG.zip file I posted down below to see if that helps.
[G2 and Desire Z Android Development] ianmcquinn:
Forgot to attach the zip file...
[G2 and Desire Z Android Development] ianmcquinn:
What exactly do you mean you have permroot but no S-OFF?
[G2 and Desire Z Android Development] jaoyina:
Can I turn off USB Debugging after doing all the steps?
[G2 and Desire Z Android Development] steviewevie:
You can turn off USB debugging when you've finished, yes.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] Gene_Bailey:
I also used visionary succesfully to perm root and then used terminal emulator to install the eng hboot.. but I don't have subsidiary unlock or the other nicety provided by the gfree method. I'm already running custom roms and I have clockwork installed (not 3.0).. would using this method ruin what I've got going? I really want to unlock the phone
[G2 and Desire Z Android Development] deliriousDroid:
Visionary has a option to permanent root that's basically just a temporary root that sticks around. It gives super user control, but not much else.
[G2 and Desire Z Android Development] ianmcquinn:
So are you talking about the temproot on boot option? Just disable it and the rest of the guide will work for you.

If you are talking about the actual attempt permroot button, that should have actually given you S-OFF if it had worked (though it seems to be hit or miss and has led to problems for some people, but I'm not familiar with it).
[G2 and Desire Z Android Development] ianmcquinn:
This method shouldn't ruin anything for you but is probably overkill since you already have everything set up how you want. Just grab the gfree file from the Wiki, unzip it, and copy the gfree file to your SD card. Then in terminal, run the following commands:

$ su
# cp /sdcard/gfree /data/local/gfree
# chmod 777 /data/local/gfree
# /data/local/gfree -f
# sync

You shouldn't need to do anything else.
[G2 and Desire Z Android Development] defyeo:
bro i have the same problem. i am stock phone cant boot. is there a way to fix this? i tried transferring that file to my sd card. it doesnt read it

need help
[G2 and Desire Z Android Development] kunundrum0:
worked perfectly on the first try!!!! thank you for making it easy
[G2 and Desire Z Android Development] deliriousDroid:
I have just tried this, and it is saying that the file is not found for

# cp /sdcard/gfree /data/local/gfree

I moved it to the root of the phone and tried from there, also saying its not there. Any ideas?
[G2 and Desire Z Android Development] da_enlightener:
Thank you very much.

The pc10img file worked.

After that I had to revert to a stock bell rom. This is the one i used http://xdaforums.com/showthread.php?t=815253

Didn't have to use clockwork to flash a new rom, simply named my rom.zip to PC10DIAG.zip and put it on the sd card.

Bootloader automatically flashed the rom.

Still have s-off.

Thanks again.
[G2 and Desire Z Android Development] Gene_Bailey:
I thank you very much for this info, I'll try it now!
[G2 and Desire Z Android Development] ianmcquinn:
Did you copy the gfree file from the zip in the Wiki to the root of your SD card? Did you unmount the SD card from computer after transferring the file? Also, what do you mean you moved it to the root of your phone?
[G2 and Desire Z Android Development] ianmcquinn:
What kind of phone do you have? Did you try any other kinds of rooting procedure first or was this the first thing you did? Did you flash the engineering HBOOT as well? Do you actually have S-OFF when you enter the bootloader?
[G2 and Desire Z Android Development] deliriousDroid:
I just downloaded the gfree right from my phones web browser and then unzipped it into my sdcard. And by the root of my phone I mean I just copied it into my phones hard drive.
[G2 and Desire Z Android Development] ianmcquinn:
Hard drive? Do you mean the internal flash? I guess in your file explorer, do you have a file called gfree in the /sdcard directory? That is what the command is expecting. If you extracted the zip into another directory, you'll either need to copy the gfree file to the root of your SD card or modify the cp command with the new location.
[G2 and Desire Z Android Development] deliriousDroid:
Yup, internal flash. Knew I would find out what to call it sometime. Nd yes, I have the gfree file in my sdcard, but it says it doesn't exist when I use the cp.
[G2 and Desire Z Android Development] ianmcquinn:
That's really weird. You have su access in terminal though? If you do an "ls /sdcard" in terminal, does gfree show up?
[G2 and Desire Z Android Development] deliriousDroid:
Yes, when I put in Su, it asks for permission. And ls/sdcard just gets me another "not found"
[G2 and Desire Z Android Development] ianmcquinn:
You are missing a space in the command: "ls(space)/sdcard"
[G2 and Desire Z Android Development] deliriousDroid:
I was... but that command only brings up "/sdcard"
[G2 and Desire Z Android Development] defyeo:
I have desire z. I already fixed it. D recovery img for desire z transferred to sd and it workd. And yes i have s-off when i entered bootloader.

Tnx bro
[G2 and Desire Z Android Development] ianmcquinn:
Hmm... maybe try "ls /sdcard/" instead? Wouldn't think that would make a difference, but maybe. Browsing the SD card with a file manager works though? How did you copy the file to your phone before? Using Root Explorer? If so, try using it to copy the gfree file to /data/local/ and then setting its permissions to allow read, write, and execute for everyone. Then try running "/data/local/gfree -f" in Terminal to see if that works.

I just remembered you were the one with Visionary set to root on every boot. Have you tried disabling that and then following the guide as is?
[G2 and Desire Z Android Development] ianmcquinn:
Awesome, glad you got it working.
[G2 and Desire Z Android Development] deliriousDroid:
Yes, putting /after the sdcard made a difference. But now I am starting to get the importance of writing everything into the terminal character for character and space for space more importantly. So now I am getting the terminal to say these programs are running, so I went through the code, and it says it did it all, but nothing seemed to happen. It should show the processes happening right?

And no, I have a permanent root through visionary, don't need to reroot on every boot, but it doesn't provide s-off.
[G2 and Desire Z Android Development] deliriousDroid:
Update: I have gotten it to run, it showed the script. But I don't have nand or s-off. And after a reboot, back to no root.

Sent from my SilverBullet "RootedHTCDesireZ"
[G2 and Desire Z Android Development] ianmcquinn:
What was the output of "gfree -f" though? Any errors? Or are you saying it stated that it had patched your phone and you still don't have S-OFF in the bootloader. And what do you mean after reboot, back to no root?

I guess what I'm most confused by is that you say you have permanent root but no S-OFF. If you don't have S-OFF, I don't think you can have permanent root. I have no idea what the permroot function in Visionary actually does, but from the scattered reports I've seen around the forums, when it doesn't work properly like in your case (because it didn't give you S-OFF), it does something funny to your system partition, but I really don't know more than that.

One option is to get your phone completely back to stock with one of the shipping images and then start the root process fresh...
[G2 and Desire Z Android Development] deliriousDroid:
Yeesssss, success. Finally. I was trying it with just the temp root after I got it the commands wrong the first time, but I decided to switch back to full visionary perm root and try it, it worked. There was a error before, something about voltage ,Idk what it means really :D

Now I do seem to be having a issue with superuser, I've never had one before. But it keeps asking for permission for the same apps over and over again, every time I need to use them. And some apps when loading it keeps asking during the loading time. Has anyone experienced this problem before?

EDIT: it was just conflicting with my old superuser.

Sent from my SilverBullet "RootedHTCDesireZ"
[G2 and Desire Z Android Development] ianmcquinn:
Great! And if you have anymore issues with conflicts caused by Visionary, you can always flash a custom ROM to take care things...
[G2 and Desire Z Android Development] deliriousDroid:
True that... thanks again :)

Sent from my SilverBullet "RootedHTCDesireZ"
[G2 and Desire Z Android Development] awsrasool:
no S-OFF or unlock!!

hi, I am sorry if I misunderstood whats going on here. So i downloaded the file and followed all the instructions. After typing in the commands to get perm root, and the things started executing, the phone restarted on its own... When it booted back I checked and I do have perm root ... but for some reason when i reboot the phone while holding vol down, i see that it says S-ON... also i tried to put a sim card from another carrier in the phone, but the phone wont accept it and asks me to enter the unlock code...

so basically, are we supposed to get S-OFF with this? or did something go wrong and I only ended up with perm root???
[G2 and Desire Z Android Development] stringbean98:
Rooted but problems with Market

First off, Thank you!!! I got my G2 rooted quickly and painlessly thanks to this guide. My first attempt at rooting my old myTouch 3G was an ordeal.

Anyway, i seem to be having a problem on Market, where I will try to install an app (e.g. Google Maps) and it will show as downloading but after a few seconds, it disappears without finishing the installation. I tried a few different apps from the marketplace and it does the same thing. Just a download indication, and after that it vanishes. Anyone have any clue?

Thanks in advance!

anthony
[G2 and Desire Z Android Development] ianmcquinn:
Yes, this is supposed to give you S-OFF. What do you mean you have perm root though? How can you tell this? I don't believe you can have perm root without S-OFF.

Also, the phone should not have rebooted on its own while running the steps. What kind of phone do you have and what firmware? Did you try any other things to root prior to this?
[G2 and Desire Z Android Development] ianmcquinn:
Not positive what is going on, but based on threads for other ROMs, lots of people are seeing the problem, so it might be something on Google's end...
[G2 and Desire Z Android Development] Herrera91:
You're not alone. Both my brother and I are experiencing this issue. Seems like it really is on Google's end...
[G2 and Desire Z Android Development] awsrasool:
I just got my phone back from the bell service center (broken LCD) ... they did a hard reset on it ... so am still everything stock this was the first thing i did after sync my gmail...

android 2.2

kernal -- 2.6.32.21-gd2764ed htc-kernal

build/software number -- 1.34.666.5

After completing the steps (phone rebooted by itself), and the phone rebooted i went into the terminal emulator and typed 'su' and it asked me for superuser permission i granted it and i got the '#' ... also used titanium backup to restore some of my apps and it worked fine... when i restart with vol down ... i get

Vision PVT Ship S-ON

HBOOT-0.85.005 .....etc

Am not too sure if i should just remove perm root and do the steps again or just try to follow the detailed s-off steps on the other threads...
[G2 and Desire Z Android Development] steviewevie:
S-OFF is totally separate from permanent root, and you can have one without the other. Though often the procedures are designed to get you both of those. All you need to do for perm root is get temp root, disable the NAND write protection, then lock in the root.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] jonesxp:
Hey guys is this method good if I have a G2 with 1.22?

Is it 1.22 for the G2 equivalent to 1.17 for the Dezire Z?

sorry for all the questions I'm getting my G2 today and I want root so I can install new roms.

Thanks.
[G2 and Desire Z Android Development] steviewevie:
Yes, you can use this method. 1.17 is for the G2 as well though, not the DZ.

Sent from my HTC Desire Z
[G2 and Desire Z Android Development] ianmcquinn:
Did you happen to see the output of gfree before the device rebooted? Also, did you try flashing the hboot before the reboot or did it reset itself after running perm_root? Not sure what would have made the phone reboot...
[G2 and Desire Z Android Development] ianmcquinn:
I understand that root is a separate thing than S-OFF, but I thought S-OFF (whether true radio S-OFF or the fake S-OFF obtained through the hacked HBOOT) for the G2 is what allows permanent read/write access to the system partition (that's how people made it sound in the earlier rooting guides and the wiki anyway). Is this not the case?

Or are you saying that having permanent root doesn't also imply you have permanent r/w access to system (which seems like an odd definition of root user privileges then)?