yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] spurnout:
I think I figured out the problem. The instructions say PC36IMG.zip but the file is PB36IMG.zip. I renamed and will try again now.

Edit: That was the problem! It's in the middle of updating right now! Whooo!
[EVO 4G Android Development] maejrep:
Is the zip named PC36IMG.zip ? Capital PC and IMG, lowercase zip. I made the mistake of calling it PB36IMG.zip the first time, and that caused a problem until I noticed it.

The zip contains a signature (required for flash verification), which might be why it won't extract, if your zip tool is overly strict about requiring the zip format. The signature is attached to a section of the zip file that isn't normal for most zips.
[EVO 4G Android Development] spurnout:
Yeah that was the problem but don't worry, I figured it out! Phone is booting now, now I just need to figure out the recovery! Gotta do that at home though since I'm leaving work in a few min! Thank you though!
[EVO 4G Android Development] geeserver:
HELL YEAH!!!!!! Time to take some of these apps I dont want on here.
[EVO 4G Android Development] infamousjax:
Can you remove apps from Android mode using root explorer? or do you have to remove them in the recovery using ADB?
[EVO 4G Android Development] toastcfh:
link fixed so file is named correctly.
[EVO 4G Android Development] maejrep:
Have to use recovery. /system is not writable from android.
[EVO 4G Android Development] infamousjax:
Hey, that's good enough for me!
[EVO 4G Android Development] Bales75:
Clicking the link still tries to open PB, Error 404
[EVO 4G Android Development] oxeneers:
Awesome work, toast. And in no way do I mean to undermine you or your hard work when I say - not having ability to write to system while in Android is tough. I would say "dealbreaker" but that's the internet's favorite word now-a-days.

I wonder if this "unrevoked" **** will have a writable system during Android. Hmmm..

But great work! Just not very useful/great .. too complicated to get it all running. Thanks though.
[EVO 4G Android Development] Tenny:
I has root...

Sweet work guys..

Though you might want to mention that this will cause you to lose all data... as I'm sure more than a few will wonder (I was pretty sure it did when I started this... )
[EVO 4G Android Development] mbell75:
Will this work for Mac users?
[EVO 4G Android Development] infamousjax:
I'd be very grateful if anyone can report after removing the bloatware if there are any performance increases and/or bad side effects.

As soon as I get my phone, I'll write up a list of certain .apks that can be deleted without fear of force closing, crashing, etc...
[EVO 4G Android Development] toastcfh:
yes just run the mac script instead in the zip.

@ those who clicked the old link and get 404 now that its fixed. restart ur browser or clear cache and history
[EVO 4G Android Development] finebrian224:
Thanks for all your work!
[EVO 4G Android Development] mbell75:
Thanks much!
[EVO 4G Android Development] maejrep:
It sucks, I agree.. There's clearly a way to unlock it, and the radio does it automatically when going into recovery, we just need to find out how to do that.

But I don't think I'd go as far as "dealbreaker" ;) What do you really do while booted into android that requires writing to /system? The only thing I can think of is adding/removing apps from /system, which I'd prefer to do from recovery anyway, when I can guarantee that nothing will be interrupted when it happens.

To each his own I guess.
[EVO 4G Android Development] apristel:
Ya most ppl probably wouldn't even notice...Most seem to remove apps using adb or just flash a stripped/custom rom.

This is excellent.
[EVO 4G Android Development] finebrian224:
I am new to this Android and rooting. I understand what root is for. What is recovery for? After I have rooted the EVO how, what is the point of doing the recovery instructions?

I really need a noob guide.
[EVO 4G Android Development] Condo20t:
Just finished my backup but I had to use start instead of run for Windows 7.
[EVO 4G Android Development] maejrep:
I think by "Run", he meant double-click the .bat file :)
[EVO 4G Android Development] Condo20t:
That would have been a lot easier. I got it going through a command prompt.
[EVO 4G Android Development] efuse:
can anyone verify that after flashing this you can still run the RUU and go back to stock?-
[EVO 4G Android Development] toastcfh:
u can for sure

;)
[EVO 4G Android Development] efuse:
great, can't wait for friday!
[EVO 4G Android Development] pingpongboss:
WOW the dam bootloader couldn't find the ZIP in my 16gb microsd card, but when I switched to a 8gb one it worked... wasted so much time
[EVO 4G Android Development] maejrep:
I think that's somewhat well-known.. Bootloader is a much much lower-level piece of software than recovery (which runs same linux kernel as android) .. as a result, it probably does not support large sdcards.
[EVO 4G Android Development] theillustratedlife:
I've read your instructions, and noticed that it warns that you will lose your data.

Which step erases your data? Is there a way to back it up before rooting? Is there a way to root my current install, or do I have to wipe first?

Thanks!
[EVO 4G Android Development] Repnepto:
Correct me if I am wrong at any point. To avoid any issues if I root the phone using the 8 gb card it comes with I dont have to worry about any of the data being lost cause as far as i know i didnt lose anything. Also once rooted I can just put in my 16gb card with all my crap on it and I would be in buniness. Meaning once gaining root the .zip on that card is no longer needed.
[EVO 4G Android Development] maejrep:
The first root flash will wipe, and no way to backup beforehand. It won't touch your sd card though.

Once you're rooted, you can do update.zip-style flashes that may or may not wipe automatically, plus the custom recovery will have the nandroid option to do backups.
[EVO 4G Android Development] maejrep:
Correct on all counts. You don't have to use a different sd card as part of the process, but based on pingpongboss's experience, i'd suggest not using a 16GB :P Otherwise whatever daily sd you use is good enough. Just remember to rename the file when you're done, as if you don't, it'll try to re-read the zip next time you enter bootloader (via volume-down key). If that happens, don't flip out, it will still ask you to confirm yes/no if you want to flash; but it takes a long time, and it's an inconvenience.
[EVO 4G Android Development] theillustratedlife:
Thanks.

Do you know how similar the Grack exploit is to yours?
[EVO 4G Android Development] pingpongboss:
Pictures of the process here: http://androidforums.com/htc-evo-4g/90122-root-out.html
[EVO 4G Android Development] toastcfh:
not at al alike. they still havent got it sticky yet but will be releasing it soon. i cant wit to see what the exploit was and hope between us and them together we find a nand exploit to give us absolute root.
[EVO 4G Android Development] spurnout:
I'm having trouble doing the nandroid backup. I got to recovery mode and ran the windows bat file and then navigated to Backup and when I select Nand backup I get an error message saying "Error : Run 'nandroid-mobile.sh' via adb!" Any idea how to get around that?
[EVO 4G Android Development] maejrep:
I don't know anything about grack's exploit that they haven't already released. But the fact that it is an exploit and not a userdebug RUU means it will only get as far as what you have currently when booted into Android.

That is, they can't write to /system, but worse, they can't load a custom recovery (because adb is disabled in stock recovery). This RUU has a rooted & adb-enabled recovery, which is what makes it possible to write to /system, and flash custom ROMs.

Obviously that should not take any of the limelight at all away from what the grack guys have done -- it's no simple task by any means to exploit a pretty well-protected phone, and they deserve all the respect they get for achieving it! We just happened to get lucky, that's all.
[EVO 4G Android Development] maejrep:
Try the suggestion. I've seen that once before, and running the shell script explained why it was happening, IIRC... Just do:

adb shell /sbin/nandroid-mobile.sh
[EVO 4G Android Development] theillustratedlife:
I'd like to take this moment to let out a chortle that two separate exploits were found immediately on this device before public availability, while other handsets are still unrooted weeks after they went on sale.

If it wasn't for the NAND protection, you'd think HTC wanted us in there. =)

(Incidentally, if they would have given us engineering SPLs in the I/O phones, it probably would have delayed the root issue on general-release phones a while longer).

Can you explain NAND protection a bit further, please? Are the changes being overwritten on startup, or are they being blocked before they occur? Is NAND protection being implemented at the firmware level?
[EVO 4G Android Development] spurnout:
Well I am doing it in Windows. and I typed "adb-windows shell /sbin/nandroid-mobile.sh -b" and then I got "nandroid-mobile v2.2.1

Using G1 keyboard, enter a prefix substring and then <CR>

or just <CR> to accept default:" but I can't type anything.

Edit: Ignore this, I ran the backup on the phone and now it seems to be doing it! I can't wait to flash a custom ROM/kernel!
[EVO 4G Android Development] maejrep:
Yup! I'm enjoying the irony of it as well :p

In the spirit of not derailing this 38-page thread (cof), and in the spirit of spurring ideas from people on these forums who are as interested in it as I am (and no doubt someone here is more experienced :p), I started a new thread about this: http://xdaforums.com/showthread.php?p=6677795#post6677795
[EVO 4G Android Development] chippillie:
Agreed I never write in android anyway so this does not bother me:)
[EVO 4G Android Development] theillustratedlife:
Could you drop the ENG hboot into a hex editor and change the version & modification dates appropriately?
[EVO 4G Android Development] maejrep:
I've gone over it in IDA for a couple hours now ;) It may well be that simple, but it's not just the "0.79.0000" version part, since I did try changing that and it didn't help. But it could be a different version that's read from some other byte in the image. Like I said, still investigating.. :x
[EVO 4G Android Development] jabbawalkee:
I was able to root my Evo this morning but had issues with adb. I am VERY familiar with adb and always used it on my Nexus One and myTouch. However, when I try it with my Evo, it says "device not found." I do have USB DEBUGGING enabled so that's not the issue. Does anyone have any ideas how I can get it to work? Also, I'm wondering what the command adb shell mv means and if there's any way I can flash the recovery without adb? Thanks in advance and good work toast!
[EVO 4G Android Development] pirarre:
I am also lost at this step.

"- Extract the evorecovery.zip to your desktop

- plug your phone into a usb port on your desktop

- In a shell:

Code:

adb reboot recovery"

What does "in a shell" mean?
[EVO 4G Android Development] jabbawalkee:
Disregard. Just do adb shell reboot recovery via adb then your phone will go into recovery turn.open the file
[EVO 4G Android Development] lolz mclollerson:
Subscribed. You guys are amazing! Post up e-mail address, one beer is on me.
[EVO 4G Android Development] clayginn:
Only one thing better than Root before release. A new Freshhhhh ROM before release. Now that would be sick
[EVO 4G Android Development] watzone69:
Well, now I know what I'm doing as soon as I get home from Radio Shack on the 4th.:D

Very nice to see you here Calkulin! I enjoyed flashing your ROMs when I had my Diamond.
[EVO 4G Android Development] mrozzeh:
I'd like to see how toast did it, he wasn't involved with the people who posted the evo root earlier.
[EVO 4G Android Development] toastcfh:
updated first post :D
[EVO 4G Android Development] pingpongboss:
You're my hero!!!!!!!
[EVO 4G Android Development] richse:
Re: {how to root your htc evo} <coming soon to a thread near you>

Is Flipz getting an Evo too? Fresh On the evo would be amazing!

-------------------------------------

Sent via the XDA Tapatalk App
[EVO 4G Android Development] Greenarcher707:
That was wicked fast. I can't wait to root mine.
[EVO 4G Android Development] maejrep:
Once again, for your enjoyment ;)

This is all (well, mostly :D) from toast

Neocore reports a surprisingly low score, and linpack scores a 40, but given it's the WORLD'S FIRST CUSTOM EVO ROM, you gotta believe it's only going to get better from here :)

Camera doesn't work yet, there's a glitch or two in things like charging LED, roaming (seen in screenshots), and no sign of 4G yet (I am in a coverage area, so we can definitely work to get that going).
[EVO 4G Android Development] West650:
Amazing, and the phone isn't even out yet lol.
[EVO 4G Android Development] pingpongboss:
Re: {how to root your htc evo} <coming soon to a thread near you>

holy crap im so exited about this. any chance of posting an alpha version for us to test out? I promise we'll find lots of bugs for you guys. Great work people!
[EVO 4G Android Development] extrafuzzyllama:
it shouldnt be released until june 4 so ppl buying it that day can get root and htc wont have time for any sort of patch
[EVO 4G Android Development] watzone69:
Am I dreaming?! Did I fall asleep in front of the laptop again?! (pinch) Nope, I'm awake!

You guys are fantastic!! This is truly a great moment.

Jeez, this is going to be the longest 6 days ever.
[EVO 4G Android Development] maejrep:
See page 3 for screenshots :)
[EVO 4G Android Development] aliwaqas:
Wow, seriously its gonna be big. You have been able to dismantle Grack's monoply over eVO 4G rooting. congratz, BTW any idea when you will be releasing the ROM and detail?

thanks/
[EVO 4G Android Development] chuckhriczko:
Grack doesn't have a monopoly. Toast and Maejrep are probably going to do what Grack is doing and not release until June 4th.
[EVO 4G Android Development] joeykrim:
is this root method the same as grack or different?
[EVO 4G Android Development] cmart4:
incredible......now the last few days wait will be even longer.

hope y'all post an idiots how-to guide for noobs like me! :)

chris
[EVO 4G Android Development] chavo2005:
looks like I will be goin EVO on Launch day!!!
[EVO 4G Android Development] psx2p:
they wont patch the boxed units and my guess is they have millions of units already sealed and ready so an update now wouldn't go into effect for some time. even then it would be voluntary by the user.
[EVO 4G Android Development] plmiller0905:
Thanks...for helping me out. I'm gonna wait a little bit and give it another shot later.
[EVO 4G Android Development] joeykrim:
first, this is amazing, great work!

second, bunch of questions to understand the overall process and approach being used here. hopefully i can help contribute to this great community after i look thru all these files, catch up on all the threads and get my EVO tomorrow!

basically, keishou gave you a userdebug RUU with root and adb-enabled in recovery, PC36IMG.zip?

after loading this PC36IMG.zip userdebug RUU with root and adb enabled in recovery, you have root and adb access but the stock recovery binary still doesn't apply an update.zip w/o verification protection.

the EVO-recovery.zip is your custom work (script to load busybox, flash_image, and other binaries plus a custom recovery binary) to allow people to install a custom recovery with replaces the stock recovery eliminating update.zip verification protection?

after EVO-recovery.zip has been applied, the user now has a custom recovery binary which will allow custom ROMs to be flashed providing a kernel with root access integrated in normal android mode but due to NAND protection, still not able to write to /system from normal android mode.
[EVO 4G Android Development] finebrian224:
Nice pics! These should be very helpful to a noob like me.
[EVO 4G Android Development] Dreddge:
I feel you here...I have never dabbled in ADB. Sadly, I dont plan to start.
[EVO 4G Android Development] iTouch24:
we need to clean up this thread and remove all posts that were made prior to the how to being released .. that way it is easier to follow the new questions on root process to help out all those looking to root ...
[EVO 4G Android Development] Deviation:
Post cleanup aisle #7. ;)

Awesome work!
[EVO 4G Android Development] Badious:
Damn, instructions are up even before release day, now I have to wait till tomorrow morning to try it out. Toast you rock!
[EVO 4G Android Development] wackyfordrums:
Yo Toast

Do you have the custom rom to install after its rooted and flashed?

wackyfordrums@yahoo.com
[EVO 4G Android Development] D3fpo3t:
i have a question about toastcfh

how much does a can of his favorite coffee cost cause i just received my SSDI deposit into my bank and well I hope to give him enough coffee to last a month or two! i figure a can should last a week that means i want to donate enough for 4-8 cans of coffee
[EVO 4G Android Development] EVOme:
Do I lose SenseUI with this root?
[EVO 4G Android Development] wackyfordrums:
Evo Root

you need this website for the recovery? and if so what off the site do i need? off of it?
[EVO 4G Android Development] tokuzumi:
It's a stock, rooted rom. You won't see any difference. You are now able to run apps that require root access.
[EVO 4G Android Development] extrafuzzyllama:
no its stock 2.1 with sense ui with root
[EVO 4G Android Development] EVOme:
Thanks....like what apps require this type of access?

Android newb...forgive me in advance.
[EVO 4G Android Development] tokuzumi:
Wifi tether, for one. SetCPU is another (although, you don't really need this app). You can do a search in the market for "root", or "requires root", and get a more exhaustive list (if you already have an android phone).
[EVO 4G Android Development] EVOme:
Thanks a lot! I can also uninstall all the Sprint apps I will never use once this is done as well, correct?
[EVO 4G Android Development] tokuzumi:
I know you can uninstall those apps via adb commands, but I think there's an app for that in the market. The name of the app eludes me. Maybe someone else knows the name, and can clue you in.
[EVO 4G Android Development] swaze:
At this point you can only remove apps through Adb. Once they have unlocked the process for doing it through android then you would be able to use root explorer to do it from your phone, but not yet.
[EVO 4G Android Development] EVOme:
Nice!! Now all I need is my darn phone. 7am can't get here soon enough. I'm going to bed at 6pm today to get the day over with.

Thanks, guys!!
[EVO 4G Android Development] swaze:
One quick question that perhaps the noobs may be asking pretty soon. I dont have my EVO yet, but just something i noticed.

I see flipz has a rooted stock rom available to download. Would that be needed to flash, or is it the same as just rooting the stock one on the phone already. So basically after rooting and flashing recovery, if I did a nand, it would essentially be the same thing?
[EVO 4G Android Development] p-slim:
if he has a stock rooted rom and you root your stock rom they are exactly the samething. after you run custom roms you might want to go back to stock, then you would use flipz rom.
[EVO 4G Android Development] p-slim:
where do i find the codes to remove programs through adb?
[EVO 4G Android Development] jgangsta:
quick question for root noob so how do i remove sprint crapps
[EVO 4G Android Development] joeykrim:
after doing this rooting process, you will only have root in recovery mode. you will only have the custom recovery once you run the EVO-recovery.zip files.

the /system won't be changed by this process unless you flash a custom ROM from the custom recovery.

if you load the custom ROM flipz has uploaded from the custom Recovery after loading the userdebug RUU, your /system will now be the same, completely stock, with the addition of root access.

if you don't load any custom ROMs, only use this root method, userdebug RUU and custom recovery, your system will remain the exact same and not have root.

hope that makes sense! thats as much as ive gathered from the posts this morning and dont have my own EVO yet to test.
[EVO 4G Android Development] tokuzumi:
I'm not that much of an android expert. I barely get by with my android knowledge. Someone who is an adb expert will need to chime in here.
[EVO 4G Android Development] joeykrim:
assuming this is similiar to other android phones, once you've followed the process in post 1, flash userdebug RUU, load custom recovery, through adb shell you remove the applicaton's .apk file from /system/app.

you can either copy it to your /sdcard or just delete it from the /system/app directory.

rm is the delete command, mv is the move command and cp is the copy command.

example:

cp /system/app/Test.apk /sdcard/Test.apk - copies Test.apk from /system to /sdcard

mv /system/app/Test.apk /sdcard/Test.apk - moves Test.apk from /system to /sdcard

rm /system/app/Test.apk /sdcard/Test.apk - deletes Test.apk from /system/app

hope that helps! i dont have an EVO yet so i can't test it or be much more detailed.

if by codes you mean, the name of the applications,

ls /system/app - will show you all application file names loaded in the /system/app directory. simply replace the name Test.apk in my commands above with the exact file name. linux is case sensitive.
[EVO 4G Android Development] mikevillarroel:
Why don't you try root manager, that's what i use to remove system appl directly from the phone
[EVO 4G Android Development] swaze:
Ok I think I get it. So if I want my /system to be changed just flash flipz ROM?
[EVO 4G Android Development] Kshawn:
Hope this helps whom ever.

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

I personally use root explorer on my samsung moment as it is easier/faster. Doesn't hurt to have some adb knowledge under your belt tho.
[EVO 4G Android Development] swaze:
If you want to remove those sprint apps, this is how I did it on my hero. I would think it would be the same process.

adb remount

adb shell

cd /system/app (this will change your disk to system/app you may also change to another folder as well)

ls -a ( a list will show of all the apps inside your system app folder)

rm whatever.* (replace the whatever.* with the name of a apk you want to remove )
[EVO 4G Android Development] Roman G:
So am I correct in the fact that you can use market app root explorer to remove sprint apps?

It does not say anything about SU on the first page?
[EVO 4G Android Development] a63548:
Just finished booting into the rooted rom. Thank you to everyone involved :)

Also, just a heads up to anyone, I tried using the 2GB sdcard Google gave out additionally with the phone at Google I/O. However, no matter how many times I tried it didn't seem to find PC36IMG.zip at the white bootloader screen. I then tried a default 16GB sdcard from a Motorola Droid and it worked great.
[EVO 4G Android Development] p-slim:
How come root explorer wont work currently with root access?
[EVO 4G Android Development] tokuzumi:
From what I gather, root is only available via recovery. I think the system folder is still not accessible when the phone is booted into Android.
[EVO 4G Android Development] -viperboy-:
Because there is no access to /system from the phone. Right now, that is only available via adb recovery on your computer.
[EVO 4G Android Development] Roman G:
So basically if you cant use a file explorer to remove apps, are we able to use any root type apps?
[EVO 4G Android Development] joeykrim:
based on all ive read here, root explorer will work correctly if it is run while the phone is in recovery mode. might need to load the EVO-recovery.zip in this thread for root explorer to work 100%, not positive but if you have issues with root explorer, try loading the EVO-recovery.zip first, then try again.

if the phone is in normal android mode, it will not work because even though we have root, NAND protection is preventing the /system from being modified.
[EVO 4G Android Development] swaze:
Nope, not yet. Eventually you will but not yet.
[EVO 4G Android Development] cail9970:
I still cannot get functional titanium backup root

Any suggestions