yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] rjhollan:
I tried the 3 adb commands from netarchy (I got 1.47.651.1 when I picked up the phone), but it doesn't seem to have any effect. The /sdcard filesystem is still read only:

$ adb shell ls /sdcard/data

/sdcard/data: Permission denied

I checked the FAQ in the 2nd post of toastcfh's thread, but can't make any of that work either:

$ adb shell mount /sdcard

Usage: mount [-r] [-w] [-o options] [-t type] device directory

$ adb push /tmp/flash_image /sdcard/flash_image

failed to copy '/tmp/flash_image' to '/sdcard/flash_image': Permission denied

I can stuff the SD card into my MacBook Pro and write the flash_image and mtd-eng.img files directly to the /sdcard/data directory, but I'm not sure if it's safe to reboot into recover and flash these, given that the steps above didn't work....

This is what things look like after the Part 1 epic easy root bits:

$ adb shell ls -l /dev/mtd/mtd1

crwxrwxrwx root root 90, 2 2010-08-03 20:06 mtd1

$ adb shell ls -l /data/local/rights/mid.txt

lrwxrwxrwx shell shell 2010-08-03 20:06 mid.txt -> /dev/mtd/mtd1

what am I missing here?

Also, the first step of part 2 is to go into recovery from part 1 and do a nandroid backup before i flash anything. I don't seem to have this ability (since this is the first time I'm trying to root this device).

Can the simple flash exploit not be used for a first time root?
[EVO 4G Android Development] bcrn85:
Can any one help me please. When I start with the code in the command prompt it says adb is not recogonized as an internal or external command, operable program or batch file. What am i doing worng? I downloaded the SDk.
[EVO 4G Android Development] SteelH:
You are not in the right path and you didn't set the abd path in your path statement. This is not an ADB help thread.
[EVO 4G Android Development] jrmithdobbs:
Instead of doing toast's part 2 and downgrading PRI then going through the hassle of upgrading it, now can't we just:

1. use this method & flash the mtd-eng.img to misc

2. use toast's part 1 recovery to flash amonra and unrevoked-forever.zip to get S-OFF

3. flash the engineering hboot from this thread: http://xdaforums.com/showthread.php?t=752832

4. flash rooted stock 2.2 update from here (wipe cache and dalvik-cache): http://xdaforums.com/showthread.php?t=743352

5. You now have a fully rooted stock phone running engineering hboot in less than a quarter of the time with no wipe necessary.

(Now take a backup of your wimax partition for the love of god!)

Only downside to it is that your phone is (for now) S-OFF with no way of reverting. Not really much of a downside.

Edit: Think I'm missing something here actually, you'd have to do all of toast's part 1 which requires a wipe.

Can flash_image flash to the recovery partition if we use this same method to make it writable? Or can that only be done from inside android once nand is unlocked?
[EVO 4G Android Development] mattchew86:
Kudos to you guys for figuring this out.

Unfortunately I have no idea how to get into adb shell, let alone what I would be doing there in the first place. :(

Good work though.
[EVO 4G Android Development] XsMagical:
you can get adb by downloading Android SDK

http://developer.android.com/sdk/index.html
[EVO 4G Android Development] mrwright83:
So when will the gingerbread evo have root guys:D
[EVO 4G Android Development] vampshocker:
From the little I know, there are almost there. I heard they managed to get temporary root. We just have to play the waiting game.

My mom got her evo 3d yesterday, and asked me to root it for her and put the aosp dialer. I told her she has to wait until the brilliant guys at xda figure their thing.
[EVO 4G Android Development] gzibell:
I have been attempting to follow all of the ongoing developments with rooting the 3d. I haven't seen anything yet saying this will work to root gingerbread on the evo. It is working with the sensation and 3d. I think I saw one post or tweet or something saying it may work on other devices. But it would have to be modified for each specific device. Hopefully the Evo is one of them. Had to get a warrenty replacement that shipped with 2.3.3.
[EVO 4G Android Development] jacsonmoore3:
why i cant get past

adb shell /data/local/part2???

all it's saying is: part 2 is scanning

for like 5-10mins...whats the deal??
[EVO 4G Android Development] AZwldcats:
This is from July 2010

Does it apply anymore?
[EVO 4G Android Development] cmdrogogov:
No, the exploit was fixed with a patch from Adobe afaik (please correct if this is misinformation)
[EVO 4G Android Development] SteelH:
Thread closed. Outdated method no longer works.
[EVO 4G Android Development] enormous:
Can't chmod it, not sure who I'd chown it to?
[EVO 4G Android Development] plmiller0905:
Thanks for trying to help me out. Ido have Android SDK installed and I tried to run adb shell from within the folder but I get a message of "No devices found"
[EVO 4G Android Development] enormous:
Also not sure why the script is trying to rm -r those 3 files, but throwing errors to /dev/null, since if you're not rooted those files aren't going anywhere (at least not on my phone).
[EVO 4G Android Development] seankent4uf:
No - sorry - I jumped the gun. Go ahead and do step 9, then flash the SPL. Post when you've made it through.
[EVO 4G Android Development] SharkUW:
Yah, I'm trying to figure out wtf. On my phone ../flashlight is 777'd. I don't know why this would be different.
[EVO 4G Android Development] plmiller0905:
I got it...I forgot to activate "debugging" on my phone. How do I run "part1"?
[EVO 4G Android Development] enormous:
Are you rooted already?
[EVO 4G Android Development] seankent4uf:
Double check the USB connection? Make sure you are in Disk drive mode too with USB debugging enabled.
[EVO 4G Android Development] N00dle:
I forgot about that. :-) heh

This is the thread for the Root safe update correct? http://xdaforums.com/showthread.php?t=715915
[EVO 4G Android Development] SharkUW:
Yes, but that wouldn't effect file perms. I'm also wondering why the browser app is 70. That seems high, but I have no idea how it goes about assigning those users. Mine is app_4
[EVO 4G Android Development] ricksakuma:
Can anyone tell me another URL to go to? Tried some flash lights but mo luck on getting refresh prompt thanks
[EVO 4G Android Development] plmiller0905:
Thanks I forgot to check "Debugging" so I'm in adb shell but how do I run "part1"?
[EVO 4G Android Development] Chem_Guy:
Hey everyone, im a bit stuck. My browser isnt asking me to refresh the webpage after installing part1. I tried uninstalling Dolphin and using the stock browser but that didnt help. Also, I tried continuing onto part2 but the shell says "part2 is scanning" indefinitely. Any ideas?

Thanks!
[EVO 4G Android Development] THunDA:
darn, cant get the link to work for recovery.img in toasts thread.. anyone have a link for it?
[EVO 4G Android Development] -shift-:
i'm still stuck at this point as well. i tried googling flash games and trying out a flash games, but still no prompt for refresh.

EDIT. nvm, now it just worked.
[EVO 4G Android Development] enormous:
I wonder if this was developed using an OTA'd phone, or the RUU? That might explain the discrepancies with the file permissions?
[EVO 4G Android Development] SharkUW:
Potentially. Good call. Somebody with this issue should redo their phone with whatever update path they didn't use.
[EVO 4G Android Development] seankent4uf:
From $, what happens when you type "sh /sdcard/part1" and hit enter?
[EVO 4G Android Development] :
I did this from a cleanly wiped phone updated to the latest OTA. I don't think it matters tho. That flashlite dir shows up the first time you hit a flash page.
[EVO 4G Android Development] plmiller0905:
How do you run "Part 1" file that you place on your SD card?
[EVO 4G Android Development] flyingwolf:
check out http://bestlittlestudio.com for the flash (its my page, but the main page has an auto loading flash slideshow (no music I promise))

Oh, and i seem to be stuck at part one, the bit.ly page opened on the phone fine for me, but no request for refresh, how long should it take?
[EVO 4G Android Development] enormous:
"Clean wipe" through on-phone menus? Or another means? (RUU?)
[EVO 4G Android Development] shawnathan9:
Try a factory reset in the settings of your phone. I just did and went to a flash game site.. games loading!

Too bad my gf's coming over soon. I can't get to this until later...GOOD LUCK!
[EVO 4G Android Development] SharkUW:
The script junks the directory and has Flash recreate it. It then junks the directory and symlinks sharedobjects to the root of com.android.browser. The permissions appears to be the problem. That dir must be removable for this to work.
[EVO 4G Android Development] Chem_Guy:
Thanks for the link. This seems to be the dominant problem right now.
[EVO 4G Android Development] :
from recovery... wipe data. just tried again, worked.

Make sure you power off from the phone when it tells you in part1 and restart it.
[EVO 4G Android Development] SharkUW:
Best command ever.

cat /system/bin/rsync /system/bin/rsync /system/bin/rsync

lol
[EVO 4G Android Development] Chem_Guy:
So the fix for the problem with the flash website is to wipe the phone? If so, is there a way to backup my apps? (contacts are backed up)

Thanks!
[EVO 4G Android Development] plmiller0905:
I run adb shell, i type "sh /sdcard/part1" and i get "Can't open SDcard/part1"

I run Connectbot and get the same message.

How do I run this "part 1" file?
[EVO 4G Android Development] shawnathan9:
Unmount the SD Card ala "charge only" in the connection settings? USB Debug?

:eek:
[EVO 4G Android Development] Karl:
hmm i cant get it work.. ever time i get to part 7

get adb promission denied
[EVO 4G Android Development] flyingwolf:
How are you getting to part 7, I start, type in sh /sdcard/part1 it tells me to go to the bit.ly website and just sits there. Never asks for a refresh or anything.

Any clue why it is crapping out like that?
[EVO 4G Android Development] ManInCamo:
I had to wipe my phone to get the part 1 part working, and now I'm waiting on part 2 to scan but it's been quite a while. 15+ minutes so far. How long is this supposed to take?
[EVO 4G Android Development] vladthedog:
I gotta go to work in a few hrs ;).. Decided to do this ASAP instead of waiting. I'm through this part, and it looks like I jump right into the Tutorial for rooting part 2, and scroll down to "step 3 - ~FLASHING ENG BUILD:". I put the PC36IMG.zip on my sdcard and its actually doing the update as I type this!

It looks like it was successful and I'm now rebooting. It looks like I should now to the recovery part. my question is, the tutorial ends with notes about a nandroid restore.... which was in part 1 of the tutorial... that I didn't do....... .so.... what should i DO? :) Thanks for any help.

EDIT: should I even do the recovery.img part? obviously that write-up was a CYA in parts to make sure you could recover from a mistake. I have root (i'm too tired to explore much more, but i got the # at shell so I should be happy bout that right? :))

I hope this is not too off topic, but what should I do from here in order to CYA while I explore? I understand just enough linux (all my systems run linux) to get myself in trouble. I can see what I'm doing, but not smart enough to think up hacks like this on my own. So, thanks!
[EVO 4G Android Development] Karl:
u use java 10.1? i am
[EVO 4G Android Development] Karl:
part 2 is putting files on sd card or you mean file part2?
[EVO 4G Android Development] Karl:
what file is Engineering SPL from toast?
[EVO 4G Android Development] Chem_Guy:
He means file part2. I got the same error.
[EVO 4G Android Development] ManInCamo:
after running the adb command for file part2 and awaiting the code output.
[EVO 4G Android Development] gx1400:
After I reboot and the white HTC logo screen is still up I hear the windows connected to device sound and 'adb shell /data/local/data2' connects, but it stays on 'part 2 is scanning' forever and never gets to step 9
[EVO 4G Android Development] Karl:
how did you get to that point

i get permission denied when i try to adb shell /data/local/part2
[EVO 4G Android Development] THunDA:
Well I have a # sign in adb now.. getting closer..lol

I cant seem to get the last step to work in toasts part 2 thread for flashing recovery.. it seemed with work with no errors but when I select recovery from the boot menu it just shows a phone with an explanation mark..

any ideas ?
[EVO 4G Android Development] Karl:
# means rooted i think

try simple root now let it do it for you
[EVO 4G Android Development] ManInCamo:
Try using a separate CMD window
[EVO 4G Android Development] plmiller0905:
How did all of you get that link "http://bit.ly/ad0pRn" to refresh" I did 3 factory resets and still this page doesn't refresh? I'm on some Setting Storage Page.
[EVO 4G Android Development] banksj17:
im getting close but I am still getting permission denied
[EVO 4G Android Development] Karl:
i used java 10.1 not the lite version
[EVO 4G Android Development] plmiller0905:
Do you have a link for that?
[EVO 4G Android Development] flyingwolf:
This is really getting annoying, I completely wipe the phone, start from scratch, and I get the refresh request, refresh and nothing for 10 straight minutes.

Say screw it and try again, now I get no refresh request, this is really beginning to piss me off.

I'm not a moron here, been rooting and hacking on phones since they weighed 2 pounds.

This is really annoying me.
[EVO 4G Android Development] Karl:
i think the site is down now
[EVO 4G Android Development] justinisyoung:
edit- nevermind
[EVO 4G Android Development] banksj17:
Ok so I got al the way to step 9 before it said that I don't have the permissions.
[EVO 4G Android Development] Karl:
sorry i meant flash not java

http://xdaforums.com/showthread.php?t=686736
[EVO 4G Android Development] Karl:
man this suxx wish it was simple
[EVO 4G Android Development] SharkUW:
For anybody that runs the part2 script successfully but has flash_image fail. The correct directory for that is "/data/local/" NOT /data/. The path is currently incorrect in the instructions.
[EVO 4G Android Development] Karl:
site down for anyone else
[EVO 4G Android Development] gx1400:
any ideas?
[EVO 4G Android Development] THunDA:
thx ill try that!
[EVO 4G Android Development] flyingwolf:
Perhaps the post should be updated to state "After refreshing the page you can go to step 6".

According to the file it should give you a command to reboot and run part 2.

"echo reboot and run part2".

So um yea.
[EVO 4G Android Development] justinisyoung:
yeah, it looks like you exited your root shell somehow... after it said "crw-rw-rw- root root 90, 2 2010-07-05 19:37 mtd1" you didn't get a # prompt?

okay, you got me. i take back what i said. but you probably should have tried running part 2, just to give it a shot.

sorry about what i said earlier.
[EVO 4G Android Development] SharkUW:
Well, you know what "echo" does. Try "cat /system/bin/rsync" through an adb shell.
[EVO 4G Android Development] caryroberts1:
Told me to reboot in in the command prompt
[EVO 4G Android Development] snoonan:
Finally!

Thanks to all who helped! I'm finally a happy camper... and I've turned off the checks to automaticaly get updates.

Here were I needed assistance/ran into issues:

1. Use /data/local/ instead of /data/

2. Don't expect an ADB root shell until you've finished with toastcfh's "Part 2" portion.

--

Sean.
[EVO 4G Android Development] flyingwolf:
**** happens.

I did try part two (I'm a daredevil hehe) and it just sat there scanning for a good bit, full wipe and trying again.
[EVO 4G Android Development] CYDVicious:
Recompiled Instructions...

CYD's Note Step 10:

CYD's Note, here's my Successful console log of Step 1-9...with a few of my typos/mistakes. Also note, that I have added my android tools path to my PATH environment variables. If you haven't done that, then you will need to run adb shell from the android sdk tools folder.
[EVO 4G Android Development] Chem_Guy:
Wiping my phone worked. I got past the part2 file though I may have missed the # prompt.

Now, adb is not recognizing my phone.

What should I do?

Thanks!
[EVO 4G Android Development] plmiller0905:
This really starting to piss me off. I've jailbroken plenty iphones and ipod touches. And I've rooted other Android phones but I can't get this page (http://bit.ly/ad0pRn) to refresh for anything. I've wiped the phone , now 4 times and still the page doesn't refresh...wtf :mad::mad::mad:

Anybody know how i can get this to refresh?

I also tried:

CYD's Note: If you installed Flash 10.1 or use Dolphin, this won't work. I powered off, and powered on holding vol Dn, and cleared storage, (wiped clean) then turnning debug back on, went into adb and started over, this time using stock Internet browser, and it worked first time. When it loads the Flash Settings it will finish and the Command Prompt will ask you to refresh...go onto step 5.
[EVO 4G Android Development] gx1400:
I never got the # prompt, every time part 2 finished, it would exit adb shell back out to windows command prompt. Is this because i can 'adb shell /data/local/part2' instead of 'adb shell' then 'sh /sdcard/part2' or something?

i dunno, seems to be working. flashing PC36IMG.zip now.... man i'm going to be tired in the morning for work...
[EVO 4G Android Development] flyingwolf:
Ok, I type in "cat /sdcard/flash_image > /data/local/flash_image

chmod 755 /data/local/flash_image

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

And get $, apparently I need more Mt Dew, or more sleep, not sure which.

CYD, what should I expect to see after Step 9?
[EVO 4G Android Development] fuzzy25:
May need to download drivers for your os. if you have win 7 64bit or vista 64bit I can get them to you.
[EVO 4G Android Development] Karl:
OMg i wanna break something.. this is pissing me off
[EVO 4G Android Development] gessin64:
OMG AM STUCK ON PART 9

9. When your phone finished booting, flash toastcfh's mtd-eng.img to misc:

Code:

cat /sdcard/flash_image > /data/flash_image

chmod 755 /data/flash_image

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

Am not getting the "#" to run this code , i keep getting pushed back to CMD HELP HELP HELP
[EVO 4G Android Development] flyingwolf:
Check the last page, (15 I think), CYD posted a nice writeup with a modified directory.

It works.
[EVO 4G Android Development] CYDVicious:
I updated my post with my console log...

http://xdaforums.com/showpost.php?p=7078116&postcount=145
[EVO 4G Android Development] myswagislethal:
still stuck on http_://bit_.ly/_ad0pRn its not working!

wiped the phone 3 times and still no luck. please help
[EVO 4G Android Development] flyingwolf:
Cyd,

In your console log you flashed to /data not /data/local.

That right?

NVM, I see you flashed to local first, then to data for the second one.
[EVO 4G Android Development] flyingwolf:
If that page wont work go to http://bestlittlestudio.com

Its a flash exploit, so that flash page will work.
[EVO 4G Android Development] Chem_Guy:
Thanks, though these didnt seem to help. adb recognizes my phone when it is set for HTC Sync. Weird...

I finished the steps in the first post. Now onto the second.

A few tips for others:

Make sure your phone is set to charge only when installing part1

The "popup" after installing part one, happens in the CMD window
[EVO 4G Android Development] myswagislethal:
okay ill try that!
[EVO 4G Android Development] gessin64:
works perfectly now omg thank you guys are great
[EVO 4G Android Development] plmiller0905:
How long should Part 2 be scanning for?
[EVO 4G Android Development] Chem_Guy:
Does this mean that we can start at step 3 of the other tutorial? The Nandroid backup is a bit confusing.

Thanks!
[EVO 4G Android Development] Genjinaro:
Part 2 is a peice of work, its scanning for fricking ever! I wiped & everything. :/

Can anyone dumb this step down in vivid detail?
[EVO 4G Android Development] Tundricles:
Lalalala *twittles thumbs*
[EVO 4G Android Development] h40:
forever too

Yeah, should part 2 take forever to scan?
[EVO 4G Android Development] Chem_Guy:
No, it should be rather quick. Are you sure you did part1 correctly?
[EVO 4G Android Development] plmiller0905:
I know I did part 1 correct. I followed the instructions to a T and 10 minutes later part 2 is still scanning. I'm going to start over and give it another try.
[EVO 4G Android Development] h40:
there was no indication that I didn't do it correctly, it told me to reboot after refresh
[EVO 4G Android Development] jiqqaman:
edit - nvm..
[EVO 4G Android Development] -shift-:
this is the same question i have. what happened to step 2? please elaborate, i'm so close! lol

EDIT. nevermind once again. please keep in mind that the the PC36IMG.zip file was named as eng-PC36IMG.zip. It needs to be renamed as PC36IMG.zip for it hboot to recognize the image.
[EVO 4G Android Development] Tundricles:
how did you get past the scanning forever part?
[EVO 4G Android Development] flyingwolf:
Wiped, followed step one rebooted when instructed.

Got ready for step 2 while phone rebooted. As soon as I heard windows see it I started, bam, right into shell first time.

Part 2 took about 35 seconds.

Followed the rest of the instructions.

Note, if you put in a command and it spits it back out at you, your successful, you only fail if it gives you an error.
[EVO 4G Android Development] jiqqaman:
i havent.. i just wiped my phone again so i can start again

when you first run part1 it says to reboot your phone and then re-run the script again

I wasn't reading that part my first time around
[EVO 4G Android Development] chandlerw88:
anyone use simpleroot on this. i cant find a working link to the recovery for toast part 2
[EVO 4G Android Development] h40:
The mirror 1 worked for me, 5 minutes ago. Did you try that?
[EVO 4G Android Development] plmiller0905:
After you reboot the phone and run the script again, let me know if you get past the Part 2 scanning. I saw that too but forgot about it.
[EVO 4G Android Development] caryroberts1:
Yes, you have to reboot first if it tells you to, then it will work and you can move past that.
[EVO 4G Android Development] h40:
This worked for me too, after several extended scanning fails.

I opened a second cmd window, executed the reboot in the first cmd window and waited for the windows usb sound then ran part2, took about 20-30 seconds.

TY
[EVO 4G Android Development] Tundricles:
hmm might be a good time for me to enable windows sounds for once.. havent done it in years.. hate those sounds lol
[EVO 4G Android Development] jiqqaman:
yes i got pass the part 2 scanning part

this is not my evo lol, i already have root, im doing it on my girlfriends evo...
[Liquid S100 General] unacceptable:
So I was following the rooting procedure on the unlockr.

Got to:

IV. Install Superboot and Custom Recovery Image

1. Download Superboot2.zip

Superboot.zip (updated 6/23/10)

2. Unzip the superboot.zip file.

3. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

4. Then double click the install-superboot-windows.bat file and wait for it to finish. The phone will reboot.

well the problem is the phone hasn't booted yet... it posts acer screen, an acer + android screen then nothing... just backlight.