yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] mellospace:
Newbie question here...

Have a question about rooting. I just got a brand new evo yesterday with the 003 hardware, hboot 2.02, and 3.30 Software. I know with the new update on this thread that it can be rooted. But I'm new to rooting and have been reading a lot lately to learn before trying to do it. One thing I dont quite get, to type those command prompts, do I need to install anything on my computer, any drivers or anything? Or just need to download that folder and put it on C: and those commands will work?

From the FAQ...

I know about the HTC Sync drivers needed, but where are those ADB and unrevoked drivers that are mentioned there? Those need to be installed?

Sorry for the newbie question and thanks to anyone that can help me with it.
[EVO 4G Android Development] zikronix:
Good info...I didnt know that... Added to the first post!
[EVO 4G Android Development] bigj225:
I believe adb drivers come with sync
[EVO 4G Android Development] jauger:
Zik quick question, those of use stuck with the half/root, should we s-on and return to stock before we do this? yeah I know dumb question, just curious
[EVO 4G Android Development] zikronix:
no once you flash the recovery you should be ok....
[EVO 4G Android Development] snandlal:
Runningnak3d???

When it type in fastboot oem-78, i get the same info as if you typed fastboot. All the commands and usage data. Am i doing it wrong?
[EVO 4G Android Development] canon3133:
First of all thanks for all the hard work.

Had my 003 Hboot 2.02 for 2 weeks and been following this thread since day one. Going to try and root it tonight, keeping my fingers x-ross.

Since I'm new to this, I just want to make sure I'm not missing anything.

By following this root method, will I run into or do anything that will break my 4G access?
[EVO 4G Android Development] zikronix:
You shouldnt...but any flashing of anything is always risky.
[EVO 4G Android Development] runningnak3d:
You are typing fastboot oem-78 from the Android SDK tools directory, right?

-- Brian
[EVO 4G Android Development] PinchyPin:
Hey zikronix

I've been following this 2.02 issue since day one and I am one of the HW0003 with 2.02.

I gota say you guys are FAST!!

Thank you all so much for all the hard work.

I have one simple question,

My phone came stock with 2.02, and 3.30.651.2. I did the OTA 3.30.651.3 update.

Can I still use this method to successfully Root and use Sprint lover Rom?

Thanks again.
[EVO 4G Android Development] runningnak3d:
Err I am sorry. I was at work so I couldn't get the syntax, but I have been messing with this for the past 4 days with no luck you would THINK I could remember the syntax... :P

It is: fastboot reboot oem-78.

I will edit the other post as well...

-- Brian
[EVO 4G Android Development] snandlal:
still getting commands and info with fastboot reboot oem-78
[EVO 4G Android Development] canon3133:
Thanks zikronix,

Is there anything I can do to minimize the risk?
[EVO 4G Android Development] bboysmerf:
the new recovery works like magic just got fresh running on my phone.....Hboot 2.02 0004 hardware white back....has anyone gotten cyanogen to run.....i flash that then the gapps and i get stuck on the htc evo screen...i flashed the stock kernel #17 and still a no go......anyone have any ideas.....
[EVO 4G Android Development] runningnak3d:
Well I just pseudo-bricked my phone again, so I had to actually do this very procedure...

adb reboot oem-78 -- that I *know* is correct, cause I just did it :)

-- Brian
[EVO 4G Android Development] mayanka89:
So I am able to push recovery, but when I

adb shell busybox --install /sbin

I get

- exec '/system/bin/sh' failed: Permission denied (13) -

Any ideas?
[EVO 4G Android Development] zikronix:
Im wondering if we have to reboot in to the rom...we shouldnt...can you do that and try to do the recovery again.
[EVO 4G Android Development] PinchyPin:
.........................
[EVO 4G Android Development] zikronix:
What version... try 6.1 and toasts kernerl
[EVO 4G Android Development] snandlal:
Yes. It displays the syntax info for fastboot
[EVO 4G Android Development] runningnak3d:
Just finished fresh flashing and I will give that a shot. :)

Don't suppose you are on IRC...

-- Brian
[EVO 4G Android Development] zikronix:
no google chat....you shouldnt have to reboot into the rom because allwe were doing before was going in and running a mv command.
[EVO 4G Android Development] bboysmerf:
i was flashing the 6.1.......flashed a toastmod kernal and still stuck..that is the only rom i cant get to boot every other rom i tried works great.....thanks for the response........
[EVO 4G Android Development] mayanka89:
I also got

- exec '/system/bin/sh' failed: Permission denied (13) -

But...I followed all the steps...

# ./data/local/flash_image misc /sdcard/mtd-eng.img
# reboot bootloader
67-194-75-55:hboot mayanka$ ./adb push recovery /
push: recovery/etc/mtab -> /etc/mtab
push: recovery/etc/fstab -> /etc/fstab
push: recovery/sbin/wipe -> /sbin/wipe
push: recovery/sbin/unyaffs -> /sbin/unyaffs
push: recovery/sbin/ums_toggle -> /sbin/ums_toggle
push: recovery/sbin/um -> /sbin/um
push: recovery/sbin/tune2fs -> /sbin/tune2fs
push: recovery/sbin/toolbox -> /sbin/toolbox
push: recovery/sbin/sdparted -> /sbin/sdparted
push: recovery/sbin/recovery -> /sbin/recovery
push: recovery/sbin/reboot -> /sbin/reboot
push: recovery/sbin/parted -> /sbin/parted
push: recovery/sbin/nandroid-mobile.sh -> /sbin/nandroid-mobile.sh
push: recovery/sbin/mkyaffs2image -> /sbin/mkyaffs2image
push: recovery/sbin/mke2fs -> /sbin/mke2fs
push: recovery/sbin/log2sd -> /sbin/log2sd
push: recovery/sbin/fs -> /sbin/fs
push: recovery/sbin/flash_image -> /sbin/flash_image
push: recovery/sbin/fix_permissions -> /sbin/fix_permissions
push: recovery/sbin/e2fsck -> /sbin/e2fsck
push: recovery/sbin/dump_image -> /sbin/dump_image
push: recovery/sbin/busybox -> /sbin/busybox
push: recovery/sbin/backuptool.sh -> /sbin/backuptool.sh
push: recovery/sbin/adbd -> /sbin/adbd
push: recovery/system/bin/sh -> /system/bin/sh
push: recovery/system/bin/linker -> /system/bin/linker
push: recovery/system/lib/libstdc++.so -> /system/lib/libstdc++.so
push: recovery/system/lib/libm.so -> /system/lib/libm.so
push: recovery/system/lib/liblog.so -> /system/lib/liblog.so
push: recovery/system/lib/libcutils.so -> /system/lib/libcutils.so
push: recovery/system/lib/libc.so -> /system/lib/libc.so
push: recovery/.DS_Store -> /.DS_Store
32 files pushed. 0 files skipped.
2181 KB/s (3699721 bytes in 1.655s)
67-194-75-55:hboot mayanka$ ./adb shell busybox --install /sbin
- exec '/system/bin/sh' failed: Permission denied (13) -
[EVO 4G Android Development] runningnak3d:
So close, but still so far away...

Yea, tried rebooting into the ROM just for the heck of it and got the standard issue white screen. adb saw the device, but that was about it.

I am trying to read the DOCs for the SDK, but can you give me some clue as to what sets permissions when you do an adb push recovery / ?

-- Brian
[EVO 4G Android Development] zikronix:
Ill look at it as soon as i get home
[EVO 4G Android Development] wrxphantom:
I have the same issue without a fix.

Anyone figure out how to fix this problem. I would love to room my replacement phone..

thanks in advance
[EVO 4G Android Development] danh18:
Cool

Ok thanks dude! I must say your support here has been PHENOMENAL!
[EVO 4G Android Development] djorijun:
I'm a bit confused, do I run the windows script attached prior to running the hboot? I'm assuming this hboot.zip can only be run after the recovery image has been created.

Basically I tried rooting hboot 2.02 before seeing this thread and ended up with the Red Triangle w/exclamation. So I had to run my RUU and start all over. This is my wife's Evo which was just shipped yesterday.
[EVO 4G Android Development] zikronix:
updates first post. No...that script that was attached (no longer is) was for users of the old version.
[EVO 4G Android Development] djorijun:
Cool so no script. But how do I run this hboot.zip without being rooted? I've rooted plenty of phones since the Hero was released and always known you have to have a recovery image loaded before being able to zip from flash. but I can't seem to get that far since having 2.02
[EVO 4G Android Development] zikronix:
there is a script...choose one of your liking on the first post.

I gotta head to work...so hopefully one of the options works for you.
[EVO 4G Android Development] greemthumb:
ok so when i get to the red triangle and type in to commands i get

cannnot stat 'files' : no such file or directory

- exec '/system/bim/sh' failed: no such file or directory
[EVO 4G Android Development] nibert:
Getting

"- exec '/system/bin/sh' failed:permission denied (13) -" at the red triangle after successfully pushing files / said it copied 30 files 0 skipped. Any thoughts?
[EVO 4G Android Development] greemthumb:
it seems like i have root but i cant install amon ra's recovery while in the stock recovery and when i try with the phone on it says flash_img:not found
[EVO 4G Android Development] zikronix:
it looks like something didnt copy right...could you explain how you got to this point?

what version did you use

i see this

/system/bim/sh

it should be bin check your commands
[EVO 4G Android Development] zikronix:
what version did you use?
[EVO 4G Android Development] nibert:
Used the hboot202-s_off-v2_manual.zip
[EVO 4G Android Development] zikronix:
download this extract it

when you get to the red triangle

run recovery-windows.bat see if it works....if it does ill update accordingly.

Ok fixing manual update
[EVO 4G Android Development] greemthumb:
haha that worked your the man
[EVO 4G Android Development] nibert:
That worked, just flashed the unrevoked forever zip with it and confirmed that it's showing s-off
[EVO 4G Android Development] TheNexxuvas:
Not sure why even this is failing for me. I think I screwed something way up with this EVO.

Getting nothing but permissions denied when I run any of the above. Haven't tried a manual yet, but thinking I will get much of the same.

This is after 3 hard resets, there is absolutely nothing configured on my phone, not an email or contact.
[EVO 4G Android Development] zikronix:
great...reuploading manaul version v3 and updated manual method.
[EVO 4G Android Development] zikronix:
dont know its hard to say what errors are you getting...

what file are you using?

updated manual hack to version 3 and added donation links.
[EVO 4G Android Development] foresure84:
finally got this stubborn mofo to s-off any progress with downgrading the hboot.... thnx for all your hard work, i can only imagine what you and amoamare, went through to make this happen for the community a donation will come to both you guys you deserve it, all 4 of my pc's look like helter skelter
[EVO 4G Android Development] nibert:
Tried to install ra 1.8.0 but through adb flash_img wasn't found. Through fastboot I was getting remote:denied. Ended up renaming the ra image to recovery.img and putting it in that PC36IMG-radios_recovery. After flashing that I'm almost back to where I was before replacing my phone.

Thanks for the work you guys have done.
[EVO 4G Android Development] ageesm:
Just wanted to extend my regards

I have been a long time WM users and these forums have been an unparalleled resource. I recently got an Evo about 2 days ago. I had done all my research into rooting/custom roms etc. Just to find out once I got it that I was unable.

I had been following this thread and the other one for the past day or two and want to extend my thanks to everyone involved, I followed the steps on the manual root and once the v3 was posted it was a lengthy, but ultimately fairly simple process.

Thank you very much for all of your hard work, continuing to make this one of the best communities on the internet.
[EVO 4G Android Development] uavtech:
Recovery fix worked for me!! Now able to flash custom roms on 0003 h/w with hboot 2.02!!!!
[EVO 4G Android Development] zikronix:
Is your phone detected by the computer at that point?
[EVO 4G Android Development] mayanka89:
How would I check that? I mean I still can hit adb shell and get #, and can reboot bootloader, but when I try that step again I still get denied.
[EVO 4G Android Development] wrxphantom:
did you have the same error i am experiencing?

and then you did the recovery fix?

what were your steps and problems thanks
[EVO 4G Android Development] zikronix:
Adb devices
[EVO 4G Android Development] mayanka89:
67-194-75-55:hboot mayanka$ ./adb devices
List of devices attached
HT0AWHL02665	recovery

So I am connected.

Same thing when I try a sudo command

sudo ./adb shell busybox --install /sbin
- exec '/system/bin/sh' failed: Permission denied (13) -
[EVO 4G Android Development] wantanotherbeer:
Excellent -- worked like a champ. Didn't have to use the Recovery Fix with hardware 0003 hBoot 2.02. Actually tried the Recovery Fix and it broke it, had to go back a few steps.

All is working great now.

AWESOME work!!
[EVO 4G Android Development] chubbzlou:
When you type adb shell do you see # or $? If you see$ you need to do the root access again.
[EVO 4G Android Development] mayanka89:
I did get the #, as you can see in the code I posted above. So...I'm kind of lost right now...
[EVO 4G Android Development] fryman:
Worked great for me!!!! I can flash anything and restore backups :)

Thanks AMON_RA and zikronix for all your hard work!!!
[EVO 4G Android Development] chubbzlou:
If I was you I would unplug my phone reboot and start over. Just to make sure I did all the steps. Good luck.
[EVO 4G Android Development] strauss0829:
So are we able to root the phone now if you have 0003 and what do we need to DL (WHAT TOOLS AND DRIVERS) ???????????????
[EVO 4G Android Development] torremitsu:
I can testify to this lol. I'm expecting my new evo in the mail any day now
[EVO 4G Android Development] strauss0829:
Is people able to root now with 0003 hardware and if so what do i need to download ?? What tools ??
[EVO 4G Android Development] chubbzlou:
Yes we can flash roms now. All you need is sdk installed and follow the steps on first post.
[EVO 4G Android Development] zikronix:
looking into that permissions problem now

try this command instead shouldnt make a difference

adb push recovery/

adb shell busybox --install /sbin

adb shell nohup /sbin/recovery &

if that doesnt work try doing this

adb push recovery/

adb shell busybox chmod 0777 /system/bin/sh

adb shell busybox --install /sbin

adb shell nohup /sbin/recovery &
[EVO 4G Android Development] mptherealmp:
Does this Amon Ra recovery fix give you the option to flash zips from SD card folders or just the root?
[EVO 4G Android Development] zikronix:
just the root...but it is written specificially to fix this problem
[EVO 4G Android Development] mayanka89:
adb push recovery/

Doesn't work, needs that space in between. Kicks back Android Debug Bridge version 1.0.26 and all the commands possible.

Also tried

adb shell busybox chmod 0777 /system/bin/sh

But got same permissions denied.
[EVO 4G Android Development] zikronix:
The space thing makes sense

but nothing else does....wtf is this a windows, mac or linux box

If windows what version
[EVO 4G Android Development] mptherealmp:
Thanks. I heard he was porting his 2.0 recovery to the Evo which will allow us to do that.
[EVO 4G Android Development] mayanka89:
Mac. You think that might be the problem?
[EVO 4G Android Development] zikronix:
maybe i dont know...im grabbing at straws here that shouldt be the issue...but i really dont know because i just ran it on my phone and it worked fine? and its been working all this time...the only thing we have changed was actually rebooting into the rom after flashing but some oen tired that same results
[EVO 4G Android Development] jaxtripp:
I am experiencing the exact same issue.

sudo ./adb shell busybox --install /sbin

- exec '/system/bin/sh' failed: Permission denied (13) -

now any attempt to adb shell is permission denied.
[EVO 4G Android Development] zikronix:
linux or mac?

do you have a windows box to try on.
[EVO 4G Android Development] Noobe:
Hello i get to step nine and i get the following below.Also when the phone is in bootloader i get a failed to install the HTC bootloader on my pc while the phone is connected. Can anyone please help

PS: Im on windows 7 64 bit

C:\android-sdk-windows\tools>adb shell busybox --install /sdin

- exec '/system/bin/sh' failed: Permission denied (13) -

C:\android-sdk-windows\tools>adb shell busybox --install/sbin

- exec '/system/bin/sh' failed: Permission denied (13) -

C:\android-sdk-windows\tools>adb shell nohup /sdbin/recovery &

- exec '/system/bin/sh' failed: Permission denied (13) -

C:\android-sdk-windows\tools>
[EVO 4G Android Development] jaxtripp:
linux (ubuntu 10.4)

I will have access to a windows box tomorrow and will try.
[EVO 4G Android Development] mayanka89:
A few of us are struggling with this. Seems like you're on Windows. I'm on Mac, and another guy with the problem is on Linux...
[EVO 4G Android Development] jaxtripp:
I'm getting...

adb shell

- exec '/system/bin/sh' failed: No such file or directory (2) -
[EVO 4G Android Development] jj970:
BRICK!

Well, at least you guys don't have a $200 paper weight...

Just got a 0003 phone new from Sprint to replace a refrub they gave me to replace my original EVO (USB port went bad).

Don't do what I did...

I tried unrEVOked first and it didn't work...of course. I didn't know it might not...

Then I tried another method on XDA (How to root Android 2.2 on the EVO 4G) but I didn't see that it was an outdated topic.

Finally, got to this topic and followed the steps exactly...until the part where I'm rebooting to bootloader and letting it flash the P36IMG...It had already done the rageagainstthecage...said spawning children...

Anyway...as it was booting, hung on the HTC splash screen and I waited a long time. About an hour later, I went back to it and the screen is black and I can't turn it back on.

Nothing happens when I press power.

So, yeah..don't do what I did.
[EVO 4G Android Development] zikronix:
look at the faq and search the thread for rom.zip ....you might be able to fix your phone
[EVO 4G Android Development] zikronix:
i gotta go pick some one up form the airport

the people having the permission denied...download this

evo-recovery.zip

unzip it and run recovery-windows.bat and see if it works

be back in a bit
[EVO 4G Android Development] runningnak3d:
Are you sure it isn't powering on? *NOTHING* you can do on these forums will prevent the phone from powering on. Even though you only get a black screen, can you type fastboot devices and see if it sees your phone?

-- Brian
[EVO 4G Android Development] Noobe:
Make sure next time u go ahead and get ur phone upgrade from best buy and pay 10.69 a month for extra protection that covers the phone for everything except for lost or stolen without a deductible and when u brick ur phone let your car step on it so they cant boot it and find get to the software LMAO

Seems so let me know if i can do anything to help. Its one thing after another since i tried to root this phone since last week.
[EVO 4G Android Development] mayanka89:
Nope, same thing.

sudo ./adb-mac shell busybox --install /sbin

- exec '/system/bin/sh' failed: Permission denied (13) -
[EVO 4G Android Development] zikronix:
I need a windows person to try it
[EVO 4G Android Development] jaxtripp:
Installing Android SDK on my windows box now. Will know in a few minutes...
[EVO 4G Android Development] jsantiago.antonio:
I'm at step 14

adb shell mv /sdcard/PC36IMG.zip /sdcard/PC36IMG-MR.zip

adb reboot bootloader

My Error:

- exec '/system/bin/sh' failed: No such file or directory (2) -

I keep getting the file doesn't exist, Is it safe for me to Re-Try the steps?

I'm on Windows 7 x64.
[EVO 4G Android Development] zikronix:
Can some one try rebooting the rom instead of going right to recovery after flashing the eng build.

Once your inside check root by doing adb shell.

Type reboot recovery if you have root # and then try to go into recovery again.

Then some one try after flashing the mtdeng just before you reboot type synk
[EVO 4G Android Development] zikronix:
Safe to retry
[EVO 4G Android Development] strauss0829:
U mean the android 2.2 sdk
[EVO 4G Android Development] strauss0829:
So all I have to DL is the manual hack file and is there a link for the sdk or anything else i might need
[EVO 4G Android Development] zikronix:
Nope thats it
[EVO 4G Android Development] chubbzlou:
Google android sdk
[EVO 4G Android Development] strauss0829:
and then what do i do next lol where so I get the sdk
[EVO 4G Android Development] mayanka89:
I did the first thing, and still got a Permission denied.

I did have # root when I rebooted into the rom.
[EVO 4G Android Development] chubbzlou:
Install the sdk dl the zip on the first post the follow the steps you should be good from there.
[EVO 4G Android Development] zikronix:
Did you get any errors during the flash of the eng rom
[EVO 4G Android Development] strauss0829:
1) Make sure usb debugging is on, and plug in your phone, DO NOT MOUNT USB

2) Open a command prompt and change to where ever you unzipped the files to.

3) Type the following (this must be excuted from the folder you unzipped to)

what are you supposed to type to get in before adb???
[EVO 4G Android Development] canon3133:
A Big Thanks to zikronix

A big thanks to zikronix, I was able to root my EVO tonight, I did run into couple of issues after step 9.

After entering the following:

THe DOS prompt did not return, so I was unable to continue w/ step 11

I even try opening a second command window to enter the command, but got

So I went into adb shell and manually moved the files solved the problem :D
[EVO 4G Android Development] zikronix:
I rewrote the instructions post haste. Ill update and correct when i get home.
[EVO 4G Android Development] canon3133:
Open a DOS window (Start>Run>cmd>ok) will bring up the window, navigate to the folder where you unRAR the file and just type the adb commands

hope this helps
[EVO 4G Android Development] strauss0829:
and where do I get the evo drivers for win 7 64bit
[EVO 4G Android Development] mayanka89:
No errors during flashing. Just re-did the steps for trying your second solution, but I get

# synk

synk: not found
[EVO 4G Android Development] zikronix:
Sync sorry wife typed that ****
[EVO 4G Android Development] strauss0829:
And one more thing where do I get the 64 bit Evo win 7 drivers
[EVO 4G Android Development] mayanka89:
Lol that's what I thought is should have been!

Anyway, doing the # sync still gave me a permissions denied.

At this point, is there anything else we can try for me? If not, it would be nice to know how to get back to stock from here.

Thanks for all your help!
[EVO 4G Android Development] zikronix:
Flash stock ruu i really dont know why it isnt working doesnt make any sense can you run .md5 on the main zip
[EVO 4G Android Development] egghead221:
Hi, I am getting the following error during step 7:

# ./data/local/flash_image misc /sdcard/mtd-eng.img

./data/local/flash_image misc /sdcard/mtd-eng.img

mtd: read all-zero block at 0x00000000; skipping

mtd: read all-zero block at 0x00020000; skipping

mtd: not writing bad block at 0x00000000

error writing misc: No space left on device

Can anyone help me with this? Thanks
[EVO 4G Android Development] strauss0829:
when I open cmd prompt to start all this ...I put the hack files on the c drive inside another folder called android-sdk-windows ...how the **** do I get into that folder in command prompt someone please helppp
[EVO 4G Android Development] zikronix:
I think the zip is borked on the server looking into that now
[EVO 4G Android Development] Sko0baQueZ:
its giving me device not found
[EVO 4G Android Development] mayanka89:
I got the right checksum, so I don't know if it is that.
[EVO 4G Android Development] egghead221:
Yeah, I did as well.
[EVO 4G Android Development] zikronix:
Im rezipping and recreating the files.
[EVO 4G Android Development] jj970:
NOT a brick!

Hmm...I think I'm having the same issue...

After the I type:

adb shell nohup /sbin/recovery &

it says:

Nohup: appending output to nohup.out

I never get a prompt again. What should I do?

Thanks again for all the help.