yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] shoobshoober:
Hi, I had similar problems as skeith but now its something different. I've read the entire thread and haven't found a solution. Have tried everything that I've read. Now, I get a message saying that the handle is invalid after checking MTD configuration.

Should I try the unrevoked root method as well? Does that give you full root? It's been very confusing because there's been so much to read. I've scoured the forums but I'm not sure which guides are up to date enough.

My phone version is

hardware: 0004

Android 2.2

Software # 3.29.651.5

Hboot is 0.97 I believe I did it earlier but I cant remember the complete digits.

If its any useful information I got this phone during thanksgiving.

The log is as follows

Thanks in advance!

------------ AutoRoot.bat Begin - v1.8 - Thu 12/16/2010 19:09:44.87

Params=1'' 2'' 3'' 4'' 5'' 6''

Checking for ADB...

PLEN='1' PSTATE='device' RETURNTO='s1' STATE=''

------------ AutoRoot.bat Begin - v1.8 - Thu 12/16/2010 19:09:59.82

Params=1'' 2'' 3'' 4'' 5'' 6''

Checking for ADB...

PLEN='1' PSTATE='device' RETURNTO='s1' STATE=''

PING ADB Counter - State Changed '1' out of '1'. ADB State is 'device' expected 'device'

------------ AutoRoot.bat Begin - v1.8 - Thu 12/16/2010 19:10:37.93

Params=1'' 2'' 3'' 4'' 5'' 6''

Checking for ADB...

PLEN='1' PSTATE='device' RETURNTO='s1' STATE=''

------------ AutoRoot.bat Begin - v1.8 - Thu 12/16/2010 19:24:13.48

Params=1'' 2'' 3'' 4'' 5'' 6''

Checking for ADB...

PLEN='1' PSTATE='device' RETURNTO='s1' STATE=''

PING ADB Counter - State Changed '1' out of '1'. ADB State is 'device' expected 'device'

------------ AutoRoot.bat Begin - v1.8 - Thu 12/16/2010 19:24:22.37

Params=1'' 2'' 3'' 4'' 5'' 6''

Checking for ADB...

PLEN='1' PSTATE='device' RETURNTO='s1' STATE=''

PING ADB Counter - State Changed '1' out of '1'. ADB State is 'device' expected 'device'

Found the phone connected as 'device'.

Checking MTD configuration...

dev: size erasesize name

mtd0: 00c00000 00020000 "wimax"

mtd1: 000a0000 00020000 "misc"

mtd2: 00480000 00020000 "recovery"

mtd3: 00300000 00020000 "boot"

mtd4: 15e00000 00020000 "system"

mtd5: 0a000000 00020000 "cache"

mtd6: 1aba0000 00020000 "userdata"

'check.bat mtd' returned 'na'

Passed to ERRHANDLER

Attempting to dump the recovery log.

---------RECOVERY LOG DUMP BEGIN---------

/cache/recovery/log: Permission denied

----------RECOVERY LOG DUMP END----------

------------ AutoRoot.bat End
[EVO 4G Android Development] xHausx:
You can press control + c or close the window to stop it. After that it should let you boot
[EVO 4G Android Development] xHausx:
Were you able to run out afterward?
[EVO 4G Android Development] bulldogimaging:
do I need to restart the process after that or has it been rooted from there thanks for the help
[EVO 4G Android Development] xHausx:
Are you using windows vista by any chance?
[EVO 4G Android Development] xHausx:
It depends how far it got, are you able to boot into the recovery from your bootloader? If so you should see a screen with a red exclamation mark in a triangle, that's your recovery. With your phone on that screen open a dos shell and run 'autoroot makenandroid' from the autoroot directory. Make sure you let you phone finish flashing before you do anything though.
[EVO 4G Android Development] bulldogimaging:
when u say open dos shell do I do the cd into the autoroot folder and then run the 'autoroot makenandroid' nope it takes me to the HTC Logo and 4 trianglesso I assume it had not gotten far enough
[EVO 4G Android Development] xHausx:
Yup, were you able to get in to the recovery?
[EVO 4G Android Development] bulldogimaging:
Nope it takes me to the HTC Logo with the 4 triangles any othr suggestions I am on a 64bit windows 7 box
[EVO 4G Android Development] shoobshoober:
I am currently running win xp sp3 on a dell studio. I've already tried the different adb installation methods. And if it's any help, I down graded my laptop when I first got it. Thew drivers are mostly from hp because dell does not offer xp for the 1535 line
[EVO 4G Android Development] xHausx:
You'll ned to run the ruu to get out of it, you'll need to manually flash the ud firmware from the bootloader to prevent it from doing that
[EVO 4G Android Development] bulldogimaging:
can u explain what u mean by the ud firmware from the bootloader to make that happen is that how I get around the RUU cycling I am so close yet so far
[EVO 4G Android Development] xHausx:
Yup, you will have to make a copy of the pc36img_ud file, rename it PC36IMG and then place it on your sdcard
[EVO 4G Android Development] xHausx:
K, when I get home I will try it out on xp and see if it does the same
[EVO 4G Android Development] bulldogimaging:
So I have run the RUU and I am have returned back to the factory phone. So let me clarify I need to rename the pc36img_ud. and then just flash it through the bootloader and then re run the auto root program or will I be rooted after flashing that file.

Thanks

D
[EVO 4G Android Development] xHausx:
You'll need to tell it to skip the part where it tries to flash the pc36img_ud. Give me a few and ill update this with instructions on how to do it.
[EVO 4G Android Development] bulldogimaging:
Thanks I really Appreciate all the help
[EVO 4G Android Development] mr.BeBoT:
I'm in the same situation too! reverted back using RUU, already have a custom ROM I want to flash to and got the same loop when using 'autoroot quick'. Same results whether I use the full package or autoroot only.

Thanks for the support xHausx!
[EVO 4G Android Development] xHausx:
K, this should do the trick:

Turn adb debugging on and them put the PC36IMG.zip on to your sdcard. Then, with the phone back in charge only mode, open up a dos prompt and CD to the autoroot folder. Once there run

'autoroot -d fastboot'

It should run its course and stop before it flashes the pc36img. Once it ends type:

'fastboot reboot-bootloader'

It will then reboot to your bootloader with the android guys at the bottom. Once there push Power to select Bootloader and say Yes when it asks to flash the PC36IMG.zip. It will complain part of the way through about the bootloader but should continue. Once it finishes say yes to let it reboot.

At this point it may try to reboot in to the phone or go straight back to the bootloader, if it goes to the rom type

'adb reboot recovery'

If it goes back to the bootloader say No when it asks to flash and then select Recovery.

Once in the recovery you'll see a red triangle with an exclamation mark in it. From here you can use

'autoroot makenandroid' to finish rooting.
[EVO 4G Android Development] jminor4326:
64 Bit Win 7 Issues

I used this program on my new 0004 hardware, 2.02 hBoot and bot triagles oin four corners. I was unable to do an RUU on my 64 bit Win 7 computer. I went to a 32 bit VISTA box and it worked. I then tried to root using Autoroot and got the four triangles again. How do I root this phone?
[EVO 4G Android Development] jorwex:
Silly question...

If we prefer to not flash the radios in particular, is the "Quick Method" the one for us?

Or does the following quote (placed in between the normal and quick methods in the first post) apply to both methods, and the quick method is just a smaller zip? Does the normal method rely on the user to do anything manually? like flash the rom and radios?

I'm a little fuzzy with the process based on the instructions. I'd like to retain the stock rom for now just to compare my 4g and 3g speeds post-root, skip the radios, but actually do unrevoked-forever. Then after a bit, flash a new rom.

My info:

Hardware version

0003

HBOOT-0.97.0000

3.29.651.5

Thanks the info so far!
[EVO 4G Android Development] JaMoFo:
Nevermind ... i got it :)
[EVO 4G Android Development] andnad:
Whenever I run the bat file it just flashes black and disappears even when running as an administrator of windows 7
[EVO 4G Android Development] jminor4326:
Hardware 0004 Won't Root

I have run Autoroot several times, all times it leaves me with 4 triangles, then I have to do the RUU. still leaves me unrooted. I've sent my log file, but I haven't had a response in 7 hours. The only way I can use the Autoroot is by clicking on the .bat icon. I can't use the cmd prompt in Win 7 32-bit. just sits there even though it indicates I have admin privileges. On my 64-bit home computer I use the cmd prompt, but it still leaves me w/ 4 triangles. I have all my apps and data 'locked' in Titanium and can't set up my phone. How do I root my EVO to access that and other programs?
[EVO 4G Android Development] skeith223:
Hey Hausx Im using windows vista 32 bit is this why Im having problems?
[EVO 4G Android Development] xHausx:
Using the quick method will skip the updates and will leave you with the pre-release firmware and a custom recovery. The firmware it uses has the older radios with it though, so that will affect your speeds. In your case it sounds like Unrevoked 3 should do what you are wanting to. You should be ok running it with your firmware and hboot versions.

You may need to delete the cmd.exe file from the autoroot folder or run it manually through a cmd shell.

Shouldnt be but I am not sure yet, the only thing I can think of is that there is something else you have installed that is interfering with it. After market sync programs other than HTC Sync have been known to do that. Tomorrow I can try to make some time to work with you over google chat or IRC if you would like. Send me a PM and I'll get back to you about it.

You got me while I was sleeping. For now, until I can update the script, I added a work around for it to OP.
[EVO 4G Android Development] jorwex:
I guess I was reluctant to use Unrevoked 3 because I read that if you have trouble, it is hard to troubleshoot as it is a 1-step process (whereas your method has logs to interpret).

The only reason I want to skip the radios is because there are a plethora of posts and stickies preaching to NOT flash your Wimax radio. I understand that a big part of that is not using a radio backup of someone elses, as it may wipe out your keys (even if you can just reflash your initial Amon Ra nandriod backup to regain them), but I guess I don't fully understand the best way to go about it. I didn't want to update my radios without exhaustively reading up on it.
[EVO 4G Android Development] xHausx:
I've flashed mine many many times and they've been alright, most of the wimax updates come straight from the official RUUs so you know they won't wipe your keys. Not without wiping out the keys to every single evo out there at least. The radio updates I have included are not the latest ones so they've been thoroughly tested, I'm still waiting to update to the new ones myself until they have been out there long enough that I know there are no issues with them.

Still there is always risk involved when flashing the radios, a bad Radio flash is a very easy way to turn your phone into a paperweight.
[EVO 4G Android Development] jorwex:
I know we're getting a bit off topic here, but are there funny incompatibilities with certain rom/radio combos? Or if I'm happy with my 4g reception, I should have no reason to flash a different one cuz it will be the same experience no matter what rom I flash (ie new radios ONLY IMPROVE reception)?
[EVO 4G Android Development] rickster86:
Ok, I'm running the workaround for the 4 triangles and when it does the flash of the renamed PC36IMG file in the 'res' folder, I'm getting the following errors:

RADIO_V2: FAIL-PU

BOOTLOADER: FAIL-IC

Is there something I'm doing wrong? I'm following the whole guide step by step. I didnt have this issue with my personal device. They both have the same software version, hboot and radio version, but this one doesnt seem to want to take it. Any help would be appreciated.
[EVO 4G Android Development] xHausx:
From what I understand there may be, sometimes having an updated radio doesn't always equate to better performance either. A lot has to do with the area where you are using your phone and what the network is like.

Try flashing the RUU to restore it twice in a row and then retry, sometimes you need that second flash before everything gets reset. Could you please post the autoroot.log files as well? It collects a lot of data about the phones configuration that may show something.
[EVO 4G Android Development] rickster86:
Ok. I'm posting the log file now..will try a double restore to see what i can come up with..will keep you posted.

Edit: Is it preferred to do it by the RUU or will the fastboot flash work just as well?
[EVO 4G Android Development] xHausx:
Either will work, they both do the same thing.

Edit: Yeah your new phone has the newer partition structure. That's why it doesn't like it when you flash the older PC36IMG.zip, it should just skip it and keep going though.

Edit 2: Sorry wasn't thinking. First try to enter the recovery and see what 'adb devices' says, if it shows it as "recovery" you may be able to continue on, if it says "offline" then you must reflash the RUU
[EVO 4G Android Development] rickster86:
Ok. I tried the RUU but got a USB 170 connection error. I also did the fastboot string to flash the zip and it also failed. Here is the error: FAILED (remote: not allowed). I am running as admin. By the way, I have the standard HTC recovery screen on (phone with red triangle and exclamation point in middle of screen). I do, however, have adb access now. So, is there a string for adb that will accomplish the same thing as "fastboot flash zip pc36img.zip"?
[EVO 4G Android Development] rickster86:
No problem man. ADB devices shows recovery, so should i just run the batch file again or is there another string I should do, like load a recovery through ADB?
[EVO 4G Android Development] xHausx:
You can try continuing on with 'autoroot makenandroid' or you could finish by hand if you would rather do it manually. At this point you can run the start-recovery file and it will bring up the recovery on your phone.

To finish all you would need to do is make a nandroid, flash the URFSOff.zip and then flash the Sprint Lovers rom through fastboot.
[EVO 4G Android Development] rickster86:
Hey thanks a lot. I ran the start-recovery batch file and got it to load the kernel and the rom i needed on there. Now one quick question: Since I ran the batch file, is the amon-ra recovery on there permanently or do i have to find the zip and flash it before i reboot the device? Once again thanks for all your help.
[EVO 4G Android Development] xHausx:
That is just a temporary set up, it will erase it once you reboot. You still need to unlock your NAND before you can flash the recovery permanently.
[EVO 4G Android Development] rickster86:
You wouldnt happen to have those strings handy for the s-off would you. Or are they in the OP. I might have missed them due to little sleep :(
[EVO 4G Android Development] xHausx:
To unlock the NAND use the recovery to flash the URFSOff.zip file that can be found on the SD card. Then use

adb shell reboot bootloader
fasboot oem rebootRUU
fastboot flash zip 3.30.651.2_PC36IMG.zip

If it gives an error saying to flush immediately this is normal, just flash it again it should complete. Once it finishes download the attached zip file to the autoroot directory and use the following to flash it

fastboot flash zip AmonRA_1.8-newkernel.zip
fastboot reboot-bootloader

After that you should be good to go, use the bootloader to start the recovery and flash away :)
[EVO 4G Android Development] rickster86:
Dude I gotta give you props. That fixed it all. Thanks :). I came from a WinMo background so Im still learning the android stuff. Appreciate it a lot and i hope i didnt sound too "needy". The rom and everything got flashed and the phone is up. Once again, major props and thanks again.
[EVO 4G Android Development] xHausx:
No problem man, glad I could help. That info about the radio errors will help me out with the next version of this.
[EVO 4G Android Development] rickster86:
Yeah it was starnge to run into that, but the explanation about the new partition and the old pc36img kinda shed some light on it. I'm glad i could point in the direction of progress with those radio errors.
[EVO 4G Android Development] Noobe:
Sent from sentinelsforce@yahoo.com
[EVO 4G Android Development] ccossin:
Android n00b Alert

Just to clarify this for a n00b (me), I can use this method on Android 2.2, Software 3.29 with hboot 0.97?

Apologies for the query. However, this is my first Android phone. I'm much more used to WM phones.
[EVO 4G Android Development] boliviano3:
Forgive me for the dumb question but I didn't see it posted in the OP. Do we need to have the Android SDK installed in order to use this method?
[EVO 4G Android Development] playya:
You have an older HBOOT so you can probably use the unrevoked method or simpleroot if you like as well.
[EVO 4G Android Development] ccossin:
Much appreciated.
[EVO 4G Android Development] xHausx:
This will work with your phone, as playya has mentioned there are other ways that will work also though. This way will teach you how to do it manually but is much more involved.

not for windows, I included all the files you will need in the zip.
[EVO 4G Android Development] boliviano3:
Simpleroot still works on froyo?
[EVO 4G Android Development] boliviano3:
Great, thanks
[EVO 4G Android Development] ccossin:
My n00biness knows no bounds

My Evo is Hardware rev 3

Will the flash of the 3.30 ROM and Radio cause problems?

I ask because the 3.30 stuff is for a camera I don't have and I've heard it's possible to break 4g if the WiMax gets screwed up.
[EVO 4G Android Development] csolarz31:
alright, so I get the "#" but when I "flashboot" it reboots into the recovery screen and fastboot usb is turned on..

I switched it to bootloader, it looked for and I presume, did the update. but it doesnt take and the new recovery doesnt either. In the command prompt when "flashboot" it says

"mv /sdcard/evorotkit/eng-pc36img.zip /scfard/pc36img.zip"

"failed on '/sdcard/evorootkit/eng-pc36img.zip' - no such file or directory

I know I have it on the sd, i ran it three times checked it

Any ideas?
[EVO 4G Android Development] sk8rjess:
i'm getting

/sdcard/evorootkit/rageagainstthecage-arm5.bin: Permission denied

not sure why. being ran as admin, and there is enough space on the sd card.
[EVO 4G Android Development] xHausx:
make sure your sd card is not mounted as a disk drive
[EVO 4G Android Development] xHausx:
Shouldn't I've been running it on my phone and I still have an 002. This will also back up your wimax in case it does get corrupted.

The file doesn't seem to be moving to the right spot. rename the eng-pc36img.zip file from your hard drive to pc36img.zip and place it in the root of your sd card. Then run flashboot again and it should go through. Also, be sure you have the # prompt before running flashboot.

You will get the "no such file" message after the first try because it has already been moved, that is normal.
[EVO 4G Android Development] csolarz31:
renamed it and no such luck, it still cant recognize the pc36img.zip

additionally the run flashboot command puts the phone in FASTBOOT USB and doesnt look for the update :-(
[EVO 4G Android Development] sk8rjess:
duh my fault. i found out apparently my download was corrupted.. well the pc36img is. i'm using my evo for internet access. is there any way you could upload just that for me? the main file took over 3 hours for me.
[EVO 4G Android Development] xHausx:
Thanks for the heads up, I updated the original post. I'm thinking my copy of the pc36img.zip is corrupted because everyone says it is being rejected. You can find the original one I used from toast's tut here:

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

See ^above^
[EVO 4G Android Development] kakashi_s1:
just out of curiosity. For what versions of SBOOT is this compatible with? 0.76 and higher?
[EVO 4G Android Development] xHausx:
This should be compatible with all versions of the hBoot, the sBoot shouldn't affect it either. Of course if you already have the .76 hBoot then most of this is unnecessary since you could just push the recovery with fastboot.
[EVO 4G Android Development] ccossin:
I'm running out of hair to pull out.

I've tried to download the "new, uncorrupted" version of pc36img.zip twice now and both times it's quit downloading at 117MB and 120MB out of a reported 171MB. Both times the archive gets me "unexpected end of archive."

Am I doing something wrong here?

Also, you changed the "evorootkit" folder to "moveme." is there any signifigance in that besides a name change? Do I need to re-download the whole package?
[EVO 4G Android Development] xHausx:
I was able to get a good copy that my bootloader would accept so I'll upload it to another mirror. I'm uploading a full .zip w/ the ROM atm though so it may be a minute.

Edit: The upload to multiupload.com just reset on me, you have an hour or so to grab a drink or smoke if you need to. :)

The name change was just to avoid confusion, if you still have the old batch files you can still use the ones you have.
[EVO 4G Android Development] xHausx:
Could you do me one more favor real quick? I just want to double check your RSA keys to make sure they are still intact.

From an adb shell use the following

grep RSA /dev/mtd/mtd0

You should see two lines at the bottom that say

---RSA Begin---

---RSA End---
[EVO 4G Android Development] rickster86:
If there is supposed to be anything between those two lines, there are no RSA keys there.
[EVO 4G Android Development] xHausx:
As long as you see them you're good, its normal there is nothing inbetween them. If you haven't already you will want to make a NANDroid to save them for safe keeping. Your 4G relies on those and if they get lost you'll need a new phone to fix it.
[EVO 4G Android Development] rickster86:
I kinda figured they were for 4G. I tested it even before your request for the grep string, and the 4G was working. So as long as those two lines show after running the autoroot and flashing of kernel and rom, everything should be peachy, right?
[EVO 4G Android Development] xHausx:
You got it, there are a few other things that can go wrong but everything else should be fixable.
[EVO 4G Android Development] rickster86:
Well, once again, thanks for the help and time it took to originally get this project going. If you need any more info from the phone or anything, just shoot me a PM within the next couple of hours. Its a friends phone and i have to take it back to them. My personal evo didnt have this problem as it had the old partition on it.
[EVO 4G Android Development] piper at the gates:
Note: If you see the HTC logo and four triangles or it tries to flash more than twice you will need to cancel rooting by pressing Ctrl+C and then flash the RUU from there. Let it first finish if it is in the middle of updating. 'fastboot flash zip PC36IMG.zip' will work instead of the RUU as well. Afterward you can use the work around.

I am confused on this step. which ruu am i flashing and how. i have the htc and four triangles
[EVO 4G Android Development] rickster86:
The RUU he is referring to is the stock Sprint software which can be found here: http://xdaforums.com/showpost.php?p=8826738&postcount=1. But for that to flash or run, about 95% of the time you need HTC Sync installed on your PC. With the "PC36IMG.zip", you dont need HTC Sync. Just download it from the OP (make sure you get the 3.30 one and not the 3.70, because you will not be able to get root access if you flash the 3.70), rename it to PC36IMG.zip and put it in the folder with the autoroot and run that command ('fastboot flash zip PC36IMG.zip'). It's essentially the same thing, except the fastboot command doesnt require additional software outside of the ROM itself.
[EVO 4G Android Development] piper at the gates:
so im at the four triangles and i can do the fastboot command right now without having to reflash to stock?
[EVO 4G Android Development] rickster86:
Well the fastboot will just put the stock rom back on so your phone is usable. From that point you can follow whats in post 573 and 577 to get the phone to work. Try the autoroot makenandroid first before you try to manually do everything. Post #577 shows the commands to do it manually.