yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] Apo11on:
thanks for the clarifications. Enabled USB debugging - made no difference. Here is the output from command prompt:

Choose an option: 1

-------Rooting-------

remount failed: Operation not permitted

Pushing PC36IMG.zip to SDCard...

1451 KB/s (176199552 bytes in 118.582s)

Rebooting to bootloader...

-------Unlocking Nand-------

BACKUP YOUR CURRENT ROM WITH NANDROID

Would you like to do so now? (y/n): y

goto was unexpected at this time.

C:\EVOEasyRoot>

Dont know if it makes any difference, but im running Win7 64bit here. HTC Sync doesnt always recognize the phone connection - got issues with it. Sometimes reboot helps, sometimes need to reinstall HTC sync.
[EVO 4G Android Development] rjmjr69:
OP..

After reading the pages it seems like all who are having issues have already tried rooting useing another method. IDK why anyone would try a FULL ROOT method after already being ROOTED to some degree come on people READ.

As for the rest has anyone who hasnt rooted yet tried this with any success?
[EVO 4G Android Development] looneylu:
did you install the driver for your phone on your computer?
[EVO 4G Android Development] Apo11on:
I think my first part is complete. Although it didnt say anything about this in the README when EVO went to white screen with some options I manually selected "Fastboot USB" option and then it proceeded to update, it flashed the PCIMG36.zip file from toasts guide root part I and after the phone rebooted it looked like brand new - all my installs where gone and I was asked to configure a bunch of things, like the first time when I took the phone out of the box.

However it still wont proceed with NAND unlock - stuck at this:

Choose an option: 2

-------Unlocking Nand-------

BACKUP YOUR CURRENT ROM WITH NANDROID

Would you like to do so now? (y/n): y

goto was unexpected at this time.

C:\EVOEasyRoot>

any suggestions?
[EVO 4G Android Development] Mast3rpyr0:
OK my apologies everyone, I finally went to bed after being up all night and watching the first world cup game. Ill get to work on the fixes now. I might have screwed up the input thing.. will post back asap.
[EVO 4G Android Development] arozer:
Hey Pyro, I figured out what my first problem was.. (why it kept saying "error: device not found"). The problem was that I didn't have "HTC Sync" installed on my computer.

Now when I try it, it connects just fine.

Another problem:

Now when I open up EVOroot.bat file, and choose option one.. it just keeps saying "Pushing PC36IMG.zip to sdcard" and just stays at that part. Won't move ahead.

What's the dilio?
[EVO 4G Android Development] Mast3rpyr0:
Its a big file, It takes awhile. But at the moment it is the wrong file, download it from the Rooting Part 1 thread or wait a few minutes and ill upload a new release
[EVO 4G Android Development] bprinehart:
Outstanding work man!! This community just keeps getting better and better all the time. Pyr0 I sent you a PM re: some external coverage, let me know if I can be of any assistance!

Thanks again!
[EVO 4G Android Development] Mast3rpyr0:
Uploading new package now. It will include absolutly everything. After this release you will just be able to download a new EVORoot.bat file from here instead of a huge 300+MB package everytime, but their were major issues in this one that i just wanted to make a simple as possible.

For everyone that was confused, i had a line wrong so you never saw the directions for rooting or anything after you selected it.

USE ONLY THE METHODS YOU NEED TO DO, AND IN THE CORRECT ORDER (1,2,3)!!!! IF YOU ALREADY ROOTED THEN SKIP OPTION 1!!!!
[EVO 4G Android Development] Junon:
Yes, I *have* tried to root in the past but because, even though everything seemed to work in the rooting process, I could never get wifi tether to work and in fact, couldn't even get unrevoked to work after that, I decided to flash the updated sprint rom, WITHOUT root to go back to stock and try from there.

After that, I was able to use unrevoked and assumed that performing the root process from scratch would work fine. So far, that is apparently not the case. Why is that?
[EVO 4G Android Development] Arthur101:
Are you still uploading?
[EVO 4G Android Development] rjmjr69:
Ill wait for the new release thank you
[EVO 4G Android Development] Mast3rpyr0:
Yupp its twice as big now since it has both the images, so its got another hour left. After this though you will only have to download a small file for any updates
[EVO 4G Android Development] Apo11on:
the big images can be downloaded from toast's thread...is there really a need to pack them in your release?

If you only updated the batch file with bug fixes can't you just post it?
[EVO 4G Android Development] eyecon82:
any successful roots this way starting from stock?
[EVO 4G Android Development] Apo11on:
root - yes, nand protection and perm recovery - no.

the script is buggy
[EVO 4G Android Development] rjmjr69:
So whats the eta now? Im getting antsy I have 3 phones to do.

One quick question do I have to flash a rom or can I just root and stay with stock for now?
[EVO 4G Android Development] Apo11on:
+1 .
[EVO 4G Android Development] Mast3rpyr0:
New package posted, sorry for the wait, idk whats up with my connection today.

Megaupload: http://bit.ly/c2j1lE

Lemme know if it works or not, it worked for me.
[EVO 4G Android Development] Mast3rpyr0:
I included them so its easier for first timers. After this yes i should be able to only upload the batch file.
[EVO 4G Android Development] jiqqaman:
Thanks again Mast3rpyr0. Just finished downloading the new package. (Thank god for premium MU) I just went completely stock, just to test this method. I'll let you know how it works.
[EVO 4G Android Development] rjmjr69:
So does this require a new rom or could I just run this and let it be? CAn OTA be applied after?
[EVO 4G Android Development] Mast3rpyr0:
It is suggested to install a custom rom after rooting, instructions for that can be found in the first post. I suggest flipz stock OTA with root rom.
[EVO 4G Android Development] chim4ira312:
can we root using this method after using the stock 1.32.651.6 RUU to UNroot?? or is root permanently disabled after this?

stock 1.32.651.6 RUU : http://shipped-roms.com/shipped/Supe...253_signed.exe
[EVO 4G Android Development] Mast3rpyr0:
I dont think root is ever disabled permanently. Go head and try it, the worst that should happen is it wont work and you'll just have to install the RUU again/
[EVO 4G Android Development] rjmjr69:
That doesnt answer my question tho. Can I just ROOT and Leave alone or DO I have to? I see you SUGGEST I do but thats just a suggestion
[EVO 4G Android Development] Mast3rpyr0:
I guess it couldnt hurt not to.
[EVO 4G Android Development] EtherealRemnant:
I downloaded the package and whenever I run option 2 or 3, it says it failed to replace the device flash_image because the system can not find the file specified.

I was already rooted... But even re-rooting and trying to unlock the NAND or flash permanent recovery ends in the same result.

EDIT: And the log.txt is zero help.

//////////////////////////////////////////////////////////////////////////

//	//

//	//

//	//

//	HTC	//

//	//

//	EVO 4G	//

//	//

//	Easy Root Utility	//

//	//

//	USE ONLY THE OPTIONS YOU NEED IN ORDER!	//

//	//

//	1. Install Root	2. Nand Unlock	//

//	//

//	3. Flash permanent recovery	//

//	//

//	//

//////////////////////////////////////////////////////////////////////////

-------Unlocking Nand-------

BACKUP YOUR CURRENT ROM WITH NANDROID

Press any key to continue . . .

remount succeeded

Pushing flash_image to SDCard...

Pushing mtd-eng.img to SDCard...

Replacing device flash_image
[EVO 4G Android Development] Apo11on:
same here...here is the full output:

Choose an option: 2

-------Unlocking Nand-------

BACKUP YOUR CURRENT ROM WITH NANDROID

Would you like to do so now? (y/n): n

Press any key to continue . . .

remount succeeded

Pushing flash_image to SDCard...

280 KB/s (76044 bytes in 0.265s)

Pushing mtd-eng.img to SDCard...

1367 KB/s (655360 bytes in 0.468s)

Replacing device flash_image

The system cannot find the path specified.
[EVO 4G Android Development] Mast3rpyr0:
Hmm thats not a very descriptive error.. its running the exact commands that are run for the original nand unlock. I dont know if its not finding the path on the device or on the sdcard..
[EVO 4G Android Development] EtherealRemnant:
I took a look at the sdcard and its there... I tried running the adb command directly in cmd and got the same error.

Running adb shell and then manually running the cat worked.
[EVO 4G Android Development] Apo11on:
there are these code lines in your batch file:

echo Replacing device flash_image | mtee /+ log.txt

adb shell cat /sdcard/flash_image > /data/flash_image | mtee /+ log.txt

I think the second command fails because there is no flash_image file under /data....before doing the "cat" the script should be checking if the file actually exists in that path
[EVO 4G Android Development] Mast3rpyr0:
Hmm that could be an issue.. idk if i can fun adb shell from my script and then send commands to it directly..
[EVO 4G Android Development] EtherealRemnant:
The fact that I can run that command exactly from the shell and it works suggests something else is going on...
[EVO 4G Android Development] Apo11on:
my /data folder has no permissions, not even read. I think chmod need to be done, not sure how you were able to run cat for a file in that folder
[EVO 4G Android Development] Mast3rpyr0:
Well i dont plan to install the nand unlock on my phone again because it prevented me from doing alot of things. If you still want to try it, try taking the " |mtee /+ log.txt" part off and see if it works, maybe its failing trying to find the mtee app..
[EVO 4G Android Development] jiqqaman:
you can have your script call another batch file for example:

START nandshell.bat

and in nandshell.bat you could place the shell commands
[EVO 4G Android Development] EtherealRemnant:
I lopped that part off because I had to do it directly from the shell but it does not work on command line.
[EVO 4G Android Development] Apo11on:
:mad:

In other words - you're not gonna help us and we just wasted half a day trying this buggy script and have to find another solution now? :mad:
[EVO 4G Android Development] Mast3rpyr0:
Nope, not that. I just wont be testing it on my device. The only thing that needs fixed is the way to send the cat command, and it should work fine after that.

I think i have a fix for that which I will fix up in a second.
[EVO 4G Android Development] Dunny9352:
I take it i run the bat file with my phone connected and in recovery.
[EVO 4G Android Development] Mast3rpyr0:
Yes phone connected, but just on, you shouldnt have recovery yet.
[EVO 4G Android Development] Apo11on:
from my personal experience with linux you get "The system cannot find the path specified." message when you simply dont have permissions for that folder or file. I did manual chmod to 755 for /data folder and then the cat command for file_image and chmod for /data/file_image and it works. When I tried to modified your script to do the same thing by adding "adb shell chmod 755 /data" before attempting the "cat" - it still failed with same message. After phone reboot permissions for /data folder get reset to none
[EVO 4G Android Development] Mast3rpyr0:
Patch number uno. see if this clears anything up. just copy the new files from the zip into the same directory as the rest of the stuff, overwrite the original files, and try again. Let me know how it goes.

All i did was take out the faulty commands, put them in a bash file which is copied to the sdcard and ran directly on the system.

REMEMBER THIS METHOD IS STILL IN BETA.

I will update the package with all the patches included as soon as everything is working.

NEW PATCH ON NEXT PAGE
[EVO 4G Android Development] Apo11on:
Pushing flashimage.sh to SDCard...

11 KB/s (114 bytes in 0.010s)

Running Flashimage.sh

/sdcard/flashimage.sh: permission denied

Part 1 Complete...

Pushing PC36IMG.zip to SDCard...
[EVO 4G Android Development] Apo11on:
i took a look at the script - you forgot to chmod the flashimage.sh to executable before attempting to run it
[EVO 4G Android Development] Mast3rpyr0:
*sigh*... And i thought i was gonna get to start a new app today :/
[EVO 4G Android Development] Mast3rpyr0:
*facepalm* duh.. my bash skillz are sub par :P new patch
[EVO 4G Android Development] jiqqaman:
hold on!!!!!!
[EVO 4G Android Development] Apo11on:
I added "adb shell chmod +x /data/flashimage.sh" before attempting to run flashimage.sh script and it worked.

The problem is though you only fixed it in one place in the script, and that "adb shell cat /sdcard/flash_image > /data/flash_image | mtee /+ log.txt" line is present several times
[EVO 4G Android Development] Apo11on:
did you fix it just the once, or all instances of that "cat" line in the script?

Edit: took a look at the last patch :nand2 and :recovery routines will still fail because they have same "cat" line unchanged
[EVO 4G Android Development] Mast3rpyr0:
New patch, changed it everywhere in the script.. please work..

EDIT: fixed the chmod line
[EVO 4G Android Development] jiqqaman:
echo Pushing flashimage.sh to SDCard... | mtee /+ log.txt
adb push flashimage.sh /sdcard | mtee /+ log.txt
echo Changing flashimage.sh permissions... | mtee /+ log.txt
adb shell chmod +x /data/flashimage.sh | mtee /+ log.txt

you have flashimage.sh pushed to sdcard and youre trying to chmod it in /data/
[EVO 4G Android Development] Apo11on:
Choose an option: 2

-------Unlocking Nand-------

BACKUP YOUR CURRENT ROM WITH NANDROID

Would you like to do so now? (y/n): y

-------Nandroid Backup-------

adb server is out of date. killing...

* daemon started successfully *

remount succeeded

it's been stuck on this stage for 7 minutes now, there is no progress line and there is nothing in the log. How do i know if it's doing anything? How long is the nandroid back supposed to take?
[EVO 4G Android Development] Apo11on:
I think that's OK - the script is doing "cat" from /sdcard to /data and he's actually running it from /data folder in the next line, not from /sdcard

Edit: My bad! You're right - He changed the location where the flashimage.sh script is run from - used to be /data, now it's indeed /sdcard folder
[EVO 4G Android Development] Mast3rpyr0:
You still have to do the backup on your devices recovery, my script cant do that(or at least not today it wont) it should have shown you directions at that point..
[EVO 4G Android Development] jiqqaman:
how do you run flashimage.sh from /data if it wasnt pushed there?
[EVO 4G Android Development] Mast3rpyr0:
haha you dont.. i fixed it so you might have to redownload the last patch, or just chance it to /sdcard in the script
[EVO 4G Android Development] jiqqaman:
downloaded patch 3

Changing flashimage.sh permissions...
Bad mode
Running Flashimage.sh
/sdcard/flashimage.sh: permission denied
Part 1 Complete...
[EVO 4G Android Development] Mast3rpyr0:
AHHH im so done with this haha.. not really.. but idk what to do with it.. why can we just run these commands but the script cant? I dont have much linux experience so im stumped..
[EVO 4G Android Development] Apo11on:
jiqqman is right - you chmode to executable in the wrong folder. you push to /sdcard and chmod the /data.

just change "adb shell chmod +x /data/flashimage.sh" to "adb shell chmod +x /sdcard/flashimage.sh" and you'll solve that problem
[EVO 4G Android Development] Mast3rpyr0:
Ya i changed that, it gets the bad mode thing that he got.. Sorry guys, I need to take a break on this or ill never get started on this app im planning to write. Ill be back on it later. If anyone would like to take a stab at it, please be my guest.
[EVO 4G Android Development] rjmjr69:
So this isnt working right?
[EVO 4G Android Development] eyecon82:
part 1 is...but not part 2 (nand)
[EVO 4G Android Development] Mast3rpyr0:
Yes, rooting works, but currently not the nand part, which means neither is the recovery part. Sorry about that, il get back on it asap i just need a break.
[EVO 4G Android Development] kthejoker20:
if it aint working delete the download link until it is.

You're gonna mess up some noobs.
[EVO 4G Android Development] admorris:
+1 big time on this...I was about to post the same thing.
[EVO 4G Android Development] Apo11on:
he left it up for debugging purposes, so others could give a hand and figure out whats wrong. it doesnt work indeed and the first post sholud reflect this.
[EVO 4G Android Development] Apo11on:
i thought i got passed the 2nd stage - nand unlock, because it did flash the part 2 image, but now i'm discovering my sdcard permissions are all screwed up, it looks like this:

d---rwxr-x system sdcard_rw 2010-06-16 20:01 sdcard

sdcard should have full write access
[EVO 4G Android Development] EtherealRemnant:
This is broken and should be marked with a major red flag until it is fixed. I did it manually and I'm done...
[EVO 4G Android Development] Mast3rpyr0:
Sorry about that, it is now marked as broken in huge red letters. My apologies for any trouble its caused anyone. Rooting does still work, but nothing after that. Still gotta figure out why things dont have permissions that they should have..
[EVO 4G Android Development] meccadon123:
Thanks

Thanks for working hard on this,much appreciated.
[EVO 4G Android Development] Apo11on:
I completed my root too, using toast's guide. was quick, and x10 easier than trying to fix this script. I wish I hadnt spent nearly a full day on this and gone with manual method to beging with
[EVO 4G Android Development] jiqqaman:
after many hours of trial and error, i finally have a fix for this! Going to unroot my phone and retry it all over again to see if its 100%!!
[EVO 4G Android Development] stdlyman3k:
Thank-you for working so hard on this for all of us noobs out their.
[EVO 4G Android Development] Mast3rpyr0:
So did it work? Feel free to post what you found.
[EVO 4G Android Development] T Mac:
This could be just what I need. Anxiously awaiting results of reroot one click....waiting...waiting...still waiting...:confused:
[EVO 4G Android Development] clamknuckle:
I tried the manual method and I don't think it worked, as I wasn't able to change the recovery. Looking forward to this one click method.
[EVO 4G Android Development] jiqqaman:
unrooting my phone right now, will get back to you as soon as I find out if the fix worked or not..
[EVO 4G Android Development] jiqqaman:
nope FAIL...

having trouble with:

adb shell cat /sdcard/flash_image > /data/flash_image
[EVO 4G Android Development] jiqqaman:
Read here: http://xdaforums.com/showthread.php?p=6878393#post6878393
[EVO 4G Android Development] ViViDboarder:
Hey, so there are no *nix scripts yet are there?

I'm trying to get my Windows computer running now but a .sh script would be awesome. I can try myself to translate the .bat to .sh also.

EDIT: So just looked at the .bat file. Looks like it's almost all 'echo' and 'adb' commands. Those don't change between environments do they?
[EVO 4G Android Development] bengylow:
Hi Jiqqaman,

z4root doesnt work on desire hd. do you know other way to root my desire hd ?

thanks.
[EVO 4G Android Development] Unknownforce:
Wow, way to bring back a post from the dead. This is over 6 months old. Look at a newer Root thread, and also try posting in the desire forums rather than the EVO forums...
[Touch Pro, Fuze General] SDreamer:
Was wondering what Opera people seem to like? I just tried the latest 9.7 from the thread on xda with all the versions (think the build was 3600), and didn't quite seem to think it was faster than the one built into the stock rom. So, I'd like to install a 9.7 version, but not sure which version works best with our devices. Also, is there a way to replace the old Opera 9.5 on our devices so it works with the landscape task launcher of manilla?
[Nexus One Android Development] FishFan319:
Its been done on the Incredible and Evo, now the Slide. This SHOULD BE IT. Here is their post with exact method. Adjust for the N1 and test on an unrooted phone. ASAP. This should be it!!!!!

QUOTED FORM EUGENE373 @ MT3GS FORUM:

Originally Posted by brokensanity

How-TO Root the Slide

First!! - Go to Settings > Application > Development and turn on USB Debugging. This should save you headaches.

NOW… Power Off the Slide

Download This Package > Slide Root.zip

kingofyo1's Video How-to > http://www.youtube.com/watch?v=sVjoKvy-YZg

Step 1.

Place the Contents of "Slide Root.zip" into your Android SDK Tools folder.

Step 2.

Open Command Prompt or Terminal and CD to the SDK/Tools Directory.

Step 3.

Power on the Slide into the bootloader by Holding Down ( Volume Down + Power Button )

Step 4.

Now run your loop file from the prompt (either type "loop" in windows or "./loop.sh" in a *nix like)

Step 5.

Once your loop is running in your prompt, select Recovery from the bootloader menu.

Step 6.

When recovery loads, you should Have an Offline Device. You can use ctrl+c to stop your script & see.

If this doesn't happen, Power Off and try again..

Step 7.

Un-plug your USB cable from the back of your phone & Plug it back in for it to Detect ADB Correctly!!! This is an important step. At this point you can adb devices to see if you can see your device and that it is in recovery mode.

Step 8.

Select Update.zip from the menu. (This will fail, but we already know that! Select it anyway).

Step 9.

adb push ota.zip /sdcard/update.zip (*nixlike users add a ./ in front of all terminal commands please.)

Step 11.

adb push slideroot.zip

Step 12.

This is Very important!! Have this Command ready in your prompt before applying update.zip again!!

adb push update.zip /sdcard

step 13.

Hit run update.zip, as soon as you see a Little Bar appear under the text push Enter to execute the command in your prompt (adb push update.zip /sdcard )

Step 14.

In successful, you should see Clockwork Recovery. If unsuccessful, repeat steps 12 & 13.

Step 15.

Now, go to the Partitions menu and Mount System

step 16.

Go back one level & select install any zip from sdcard. Select slideroot.zip & apply update from zip (This will finish the Root process).

Step 17.

Reboot your phone & wait for it to load completely. To confirm that your slide is connected as a device use the command adb devices. If this works, you will see it as a device. Your prompt will say something like:

$ ./adb devices

List of devices attached

HT05YUP12710	device

Step 18.

adb install Superuser.apk (If this looks like it works, but says it cannot locate directories, make sure you can find your device using adb devices… If things still don't work, my best advice is to start over)

Step 19.

After Superuser is installed try to use adb to shell to your device.

adb shell

you will get a $

Then type su

Superuser should pop-up asking if you give permission, do so.

Your $ should turn into a #. If so, you have root.

Congrats.

Special Thanks to:

Paul O'Brien:

Koushik K. Dutta:

&

The Guys using the Incredible OTA Spoofing Method
[Nexus One Android Development] Mi|enko:
Why don't you test it out and let us know the results? ;-)
[Nexus One Android Development] b9nez:
why do we care about the bootloader since both HTC and Google are ok with us unlocking it?
[Nexus One Android Development] usmc2k:
Im waitn for someone to try this out... hahaahah
[Nexus One Android Development] PhantomRampage:
If people don't unlock the bootloader they get to keep their warranty
[Nexus One Android Development] prophetjinn:
Most of the time, they'll replace our equipment. It's been done before, i'm witness to that.

I don't argue this would be a good idea but it's not THAT necessary. :\

Edit: only real upside i can see is getting rid of that annoying unlock icon but since i'm already unlocked there's no point. :P
[Nexus One Android Development] whorehay:
This would be pretty good for people like me, who has an unrooted Nexus One :)
[Nexus One Android Development] FishFan319:
The key is that we need a DEV with an unlocked phone in hand. I can switch my purple-tinted screen out and get it over to a good one, but that could take a few weeks, anyone else have the tools ready?