yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] :
Zw4nzig, yea thanks for friending me, and stuff, but um I was wondering did you manually install Flash 10.1 on your Eris to get that flash site to display 10.1 as you said "blah blah blah blah".

I wiped my Eris fresh/clean before I tried all of this EVO based Eris method stuff, and I lost my Flash 10.1 that I got from another forum actually. DO I need to install that one again? Thanks.
[Droid Eris Android Development] :
Um that's okay I don't need it. In fact, I'm waiting for you guys to come up with even more "Eris friendly" scripts that will make root finally work for all of us. For now I'm kind of just watching you guys but yea I will continue to watch your progress.
[Droid Eris Android Development] zw4nzig:
My Eris is running whatever was installed on it when I did the RUU OTA update.. I last flashed it using that and have had flashlite since then, I presume.
[Droid Eris Android Development] :
Hmmm yes I too am wondering if I have the correct Flash - I figured it would say something about flash lite not flash 10.1balaaaaaa

And I am not getting those syntax errors either :/ you better try recopying stuff around. Post exactly what you have if it continues to get that error, that seems like a simple error for it to be anything that was actually missed by who wrote it.

EDIT: mine must be okay then I spose
[Droid Eris Android Development] :
Oh sure!!! yea I gotcha now. Ok, so if my Flash is indeed screwed up, should I reinstall my OS using RUU OTA or what, in order to obtain flashlite properly again? I need some advice here. The reason I would use RUU to get it back, is twofold: I haven't done much with my current OS so far, and flashlite will NOT re-install on my current leak v3. So yeah.
[Droid Eris Android Development] :
Im far from the expert here but I don't see why the RUU wouldn't fix your problem here...? anybody else wanna throw in some input before feel bad about possibly sending you on a goose chase
[Droid Eris Android Development] thisismyanonymousaccount:
I made some changes to the scripts and tried this a few times but didn’t have any luck.

I get never get part 2 to finish.

I tried moving part2 to /data/local so I could run it as soon as adb came up but still no luck.

I am running a plainjane based rom.
[Droid Eris Android Development] :
Hey, um on second thought maybe I won't use the RUU OTA yet. I'm going to wait and see what you guys come up with, better yet, I'll wait until one of you has TOTAL success and confirms that they're rooted, if this can be confirmed by the rest of us, then we can celebrate and all try it right there and then and hopefully all have the root that we all want. :D
[Droid Eris Android Development] CamdogXIII:
i just used the scripts that rycheme was working on and tried to run them and that was the result.

of course, everytime i switch to disk drive on the phone, win 7 keeps asking me if i want to scan and fix the removable disk, so that file in particular could be corrupted, who knows.
[Droid Eris Android Development] :
you got done with part1?? You're not on a leaked 2.1v3??
[Droid Eris Android Development] :
Well I'd say re-copy the original script files to a different folder on your SD card and see what happens.
[Droid Eris Android Development] :
As the dude said, it was a plainjane ROM and likely not leak 2.1v3. Though that dude should confirm for us.
[Droid Eris Android Development] :
Or find a way to show us what YOU have. Because I have yet to experience this error and if there is in fact no syntax error then there is something REALLY weird.
[Droid Eris Android Development] zw4nzig:
Ok, so I'm getting ready to dive into this, but I wanted to check something before I start.. are the images provided in the hackfiles.zip for the EVO appropriate for use on the Eris, or is this going to royally screw it up? What img files, if not those, should we be using for this?
[Droid Eris Android Development] CamdogXIII:
i would say that they wouldn't be suitable to use because i think the .img file is the engineering image they used for root the first time.

Which that is evo specific, but i could be wrong lol.
[Droid Eris Android Development] :
Yea you're right zw4nzig, we need an Eris-compatible IMG file to flash to the Misc partition as per the EVO instructions (I don't know, would that work to "unlock" the MTD thingy), as well as a recovery IMG file to flash to recovery, if I got that far, I'd go with Amon_RA rather than Clockwork or others, is this wise?

Someone should give me input on this.
[Droid Eris Android Development] zw4nzig:
Odd, I got the same error as the other guy as far as Syntax.. 32: End of file unexpected. (Expecting "DO")
[Droid Eris Android Development] CamdogXIII:
well i'm glad i'm not the only one lol. but it's weird that not everybody has.
[Droid Eris Android Development] :
Hmm there is something still screwy with your copy of the scripts, I think.

UPDATE: Did you guys check for 'Do' in your script? Find the proper line to add it to, yes definitely add it if it isn't already there. If that's missing, that would cause this error I think.
[Droid Eris Android Development] thisismyanonymousaccount:
I changed the scripts.

/data/data/com.android.browser/app_appcache/

and

/data/data/com.android.browser/flashlite/sharedobjects

respectively.

You don't need to go to the flash site listed in the EVO forum. Any flash site will do i think. I think i went to flashgames247 as it was the first hit when i searched for flash games in Google.

I also couldn't find rsync or whatever the file in the original script is so i used su form /system/bin. The leak does not have su so pick a file it has and update the script accordingly.

In reading the EVO thread it says if part 2 takes longer then a a minute to reboot and try again.

Keep in mind all this might be incorrect and i may have the directory's wrong. Hopefully it helps someone. I am not sure if the bug even exists on the Eris but it is worth a shot.

good luck
[Droid Eris Android Development] :
Wow thanks. This could get us closer, but only if the Eris really is able to have a Flash Lite exploit to get root. You're right it may only exist for EVO, but then again.....
[Droid Eris Android Development] zw4nzig:
#!/system/bin/sh
if ! ls /sdcard/part1 > /dev/null; then echo "put these scripts in the root of your SD card"; exit; fi
if ! ls /sdcard/part2 > /dev/null; then echo "put these scripts in the root of your SD card"; exit; fi

cat /sdcard/part2 > /data/local/part2
chmod 755 /data/local/part2

if ! ls /data/data/com.android.browser > /dev/null 2> /dev/null; then echo "power down your phone from the power menu and re-run"; exit; fi

rm -r /data/data/com.android.browser/???????????????????????????????? 2> /dev/null
rm -r /data/data/com.android.browser/???????????????????????????????? 2> /dev/null

echo visit http://bit.ly/ad0pRn in the EVO Internet browser app
while true
do
ls /data/data/com.htc.flashliteplugin/ 2> /dev/null > /dev/null && break
done

mv /data/data/com.htc.flashliteplugin/ /data/data/com.flashliteplugin-.$$ 2> /dev/null
ln -s /data/data/com.android.browser/ /data/data/com.htc.flashliteplugin/

echo refresh that page or reopen it
while true
do
ls -d /data/data/com.android.browser/???????????????????????????????? 2> /dev/null > /dev/null && break
done

DIR=`ls -d /data/data/com.android.browser/????????????????????????????????`

cat /system/bin/ip /system/bin/ip /system/bin/ip > $DIR/foo

echo reboot and run part2 do

This is the content of my part1 file, and it is still experiencing the error concerning Line 32, with and without the extra "do" I put in there.
[Droid Eris Android Development] :
I'm thinking it would be in both - people don't develop device to device they develop by os version
[Droid Eris Android Development] :
Yep you are correct. :cool:
[Droid Eris Android Development] CamdogXIII:
it's not supposed to be there.

when i add it to another line i get

C:\Users\****>adb shell
$ sh /sdcard/part1
sh /sdcard/part1
/sdcard/part1: 34: Syntax error: end of file unexpected (expecting "done")
$

and if i put it at line 32 it is just going to echo "echo reboot and run part2 do"

i'll try recopying the scripts again
[Droid Eris Android Development] :
I think this happens when a string is never ended, so possibly missing a quote
[Droid Eris Android Development] thisismyanonymousaccount:
the script i used

#!/system/bin/sh

if ! ls /sdcard/part1 > /dev/null; then echo "put these scripts in the root of your SD card"; exit; fi

if ! ls /sdcard/part2 > /dev/null; then echo "put these scripts in the root of your SD card"; exit; fi

cat /sdcard/part2 > /data/local/part2

chmod 755 /data/local/part2

if ! ls /data/data/com.android.browser/app_appcache > /dev/null 2> /dev/null; then echo "power down your phone from the power menu and re-run"; exit; fi

rm -r /data/data/com.android.browser/app_appcache/???????????????????????????????? 2> /dev/null

rm -r /data/data/com.android.browser/app_appcache/???????????????????????????????? 2> /dev/null

echo visit http://bit.ly/ad0pRn in the EVO Internet browser app

while true

do

ls /data/data/com.android.browser/flashlite/sharedobjects 2> /dev/null > /dev/null && break

done

mv /data/data/com.android.browser/flashlite/sharedobjects /data/data/com.android.browser/flashlite/sharedobjects-.$$ 2> /dev/null

ln -s /data/data/com.android.browser/app_appcache/ /data/data/com.android.browser/flashlite/sharedobjects

echo refresh that page or reopen it

while true

do

ls -d /data/data/com.android.browser/app_appcache/???????????????????????????????? 2> /dev/null > /dev/null && break

done

DIR=`ls -d /data/data/com.android.browser/app_appcache/????????????????????????????????`

cat /system/bin/su /system/bin/su /system/bin/su > $DIR/foo

echo reboot and run part2
[Droid Eris Android Development] :
Whoa ok, um, then don't worry about it, just don't add the Do anywhere in it.

Don't worry one of us will get the correct script and post the changes for all of us. UPDATE: Thisismyanonymousaccount may already have, you guys should try that one too.
[Droid Eris Android Development] CamdogXIII:
i just tried his script, same error for me

EDIT: I think later i'll rerun the RUU and try the scripts again. start fresh or something
[Droid Eris Android Development] zw4nzig:
Using the new script just posted, I get "expecting do"...

If I add do as line 32, it expects "Done" on line 33. If I had "Done" on line 33, it expects "do" on line 33.

this thing doesn't know what it wants.

Edit Land:

I am edging closer and closer to my Eris suddenly starting to experience Silent Call and whatever other bugs the Eris has, so that Verizon will just give me an Incredible. Has anyone had any luck with getting one in that method? :-D
[Droid Eris Android Development] rycheme:
Ok - here's a rundown of what I had done thus far:

1) Downloaded the hackfiles from http://wackynoodle.com/hackfiles2.zip

2) Modified the part1 file to change the following directories:

Evo: /data/app-cache/com.android.browser

Eris: /data/data/com.android.browser

Evo: /data/data/com.android.browser/flashlite/sharedobjects

Eris: /data/data/com.htc.flashliteplugin/

Evo: /system/bin/rsync

Eris: /system/bin/ip

3) Modified the part2 file to change the following directories:

Evo: /app-cache/com.android.browser/????????????????????????????????/.*foo*

Eris: /data/data/com.android.browser/????????????????????????????????/.*foo*

4) I cannot find an equivalent for the /app-cache/ folder so I changed that to /data/data/

5) I have not fixed the character length (????) to match what it might be for the Eris

6) I am able to get the script to correctly echo line 13 and can successfully create the symlink in line 20 of the part1 file. I cannot get the script to correctly echo line 22

7) I have not substituted the mtd-eng.img or flash_image with any other files because I cannot get the part1 script to complete
[Droid Eris Android Development] :
My link still seems to be failing, am I missing something I should do to reset after running it?
[Droid Eris Android Development] zw4nzig:
What language is this (Woops, I'm a newb.) so that maybe syntax checking in NP++ can figure out where the error is?
[Droid Eris Android Development] :
unix shell script

EDIT What error? I'd suggest getting it from that pastebin from earlier - that's the closest to "working" that I have cept the link isn't working on line 20
[Droid Eris Android Development] zw4nzig:
I thought that it was getting the "expecting do" error due to some missing quotes earlier in the file..
[Droid Eris Android Development] :
Oh my bad - well based on the changes listed the paste-bin version was lookin up-to-date so copy from there and see if the error persists. Mine stopped once I went back to the paste-bin version - well as var as the "do" on line 32
[Droid Eris Android Development] zw4nzig:
Paste-bin version still shows the error.
[Droid Eris Android Development] jimbonj:
If you are getting a syntax error on line 32 it is because your browser/editor/whatever saved the file with Windows style line endings instead of unix style line endings.

Take the file you saved, go to dos2unix.org and have it convert the file to unix style for you (don't open and re-save the file after downloading the new version from dos2unix.org or you will need to convert it again).

If you have a linux environment or something like cygwin installed you can also use the dos2unix program to convert the file.
[Droid Eris Android Development] :
Ah you are very smart.

Notepad++ also allows you simply specify its format - mine auto-decided that it was Unix style.

EDIT: stupid windows ;P
[Droid Eris Android Development] :
One of you should try it out again using the changes made in notepad++ or those utilities (to convert the text file format). Report your results.
[Droid Eris Android Development] rycheme:
So I'm looking at the contents of /data/data/com.android.browser and none of the directories are 32 bytes long...

Looking at the original hackfiles, the move is of the flashlite/sharedobjects directory and then a link creation to the shared objects, but the link is dto the info in the /data/app-cache on the Evo - which doesn't exist on the Eris. So basically that means that line 19 SHOULD be unnecessary.
[Droid Eris Android Development] jimbonj:
Yup, I use Notepad++ on my personal machines and had no trouble until I re-tested using my work computer which just has standard notepad. I do a fair amount of bash scripting for work and personal projects so it instantly clicked what happened.

If anyone's having problems with the script actually running because it is giving a syntax error or something this is likely the problem.
[Droid Eris Android Development] :
Careful - if we remove lines from the original script in our copy, we're removing variables from the "experiment", in other words, this line 19 would have been needed to root on EVO, so therefore, it would (in theory) be needed on the Eris too, but since Eris does not contain these directories, this fact alone already shows that this hack may not work on the Eris in it's present state. Keep trying things, though. Report any failures or successes you have.

If there's a way to root using this Flash Lite exploit we'll find it.
[Droid Eris Android Development] :
Is this why i error upon link? Perhaps a directory with similar purpose should be found elsewhere.
[Droid Eris Android Development] :
Is there an Application Cache folder present on the Eris? I will look right now other should too here. That's what I assume "app-cache" stands for.
[Droid Eris Android Development] :
Sounds good, people keep being skeptical, but they're same brand exploiting the same application flaw - we must be able find enough similarities to cause the same exploit.

I don't want to go buy an sd card and spend hours trying to press it in at the correct moment in time to root my phone.
[Droid Eris Android Development] rycheme:
I'm still trying to repair the flashlite plugin on my phone before trying again.

Two things that I'm wondering, based on my reading it appears that it is a particular cookie that causes the exploit. Could we:

a) Use another third-party browser

or

b) Use the full version of flash (flash_for_21.apk)

To achieve the same goal?
[Droid Eris Android Development] zw4nzig:
Ok, so I got it to load the file, and the script executes..

"File already exists, reload!" i reloaded, and my keyboard promptly crashed, followed by a freeze and a white screen, followed by a hang, a freeze, another white screen, and another white screen.

I promptly called Verizon Wireless and am getting a replacement phone sent out. Either this phone will have 1.5 on it, or I'm going to push for an Incredible.
[Droid Eris Android Development] :
Let me know if they give in to incredible.... I'd purposely do that to mine if I could pull that off
[Droid Eris Android Development] Gambinno:
I've been keeping up with all the changes to part1 and 2 that everyone is doing and part 1 seems to work for me. The only problem I get is in part 2 when it says "part 2 is scanning". I guess it never find the file it's scanning for but my phone is fine..
[Droid Eris Android Development] :
I think this is where we need to look into those img files
[Droid Eris Android Development] ericFuels999:
Wasn't jcase working on a misc image for part 2? You might pop in to the IRC and check it out.
[Droid Eris Android Development] :
Back later tonight and hopefully tomorrow - I'd still sound optimistic if I knew where to look to know what destinations and directories to change. If anyone has bright ideas on that let me know and I can screw with it a bit. Otherwise I'm just here for syntax, regular tech, and moral support as I'd love to get this ***** rooted.
[Droid Eris Android Development] rycheme:
I ended up having to flash the RUU to get flashliteplugin back. I'll be on IRC later tonight to keep trying.
[Droid Eris Android Development] thisismyanonymousaccount:
Has anyone gotten part 2 to finish the process on this yet?

anyone?
[Droid Eris Android Development] rycheme:
Well doesn't that just stink, now that I've reflashed the RUU (I was on leak v3), I cannot ls /data/data

opendir failed, Permission denied

Not only that, but when I do an ls /data/data/com.htc.flashliteplugin/lib - there isn't anything in there.

*facepalm*
[Droid Eris Android Development] ericFuels999:
I don't think part 1 is consistently working yet.
[Droid Eris Android Development] thisismyanonymousaccount:
I am pretty sure the explanation i posted on page 7 and the script I posted on page 8 are enough to get Part1 working consistently. At least it did for me.

As i said, i never got part2 to hit. I even tried copying it to /data/local so i could run it via adb as soon as possible (pre sd card mount).

As i said, in the EVO thread they said if part 2 doest hit in the first minute or so then reboot and try again.

Then again, the directories i have may not be right.

Good luck
[Droid Eris Android Development] ericFuels999:
Ah, my apologies. I didn't see your previous post. Your part 1 script runs for me as well, but I have a feeling the directories may be incorrect, as part 2 has not hit at all for me.

Great progress, though. Thanks for your hard work.
[Droid Eris Android Development] :
Mine continues to require a reboot -- Not sure where to go from here. And I have tried to reboot
[Droid Eris Android Development] :
Yea that's kinda strange, you think it wouldn't do this, but it happens. Still One of us will have to figure it out I bet :cool:

*facepalm*
[Droid Eris Android Development] jimbonj:
As of yet I'm not able to get part 1 to get farther than:

$ sh /sdcard/part1

sh /sdcard/part1

visit http://bit.ly/ad0pRn in the EVO Internet browser app

link failed File exists

refresh that page or reopen it
[Droid Eris Android Development] thisismyanonymousaccount:
if this is the message you get

"power down your phone from the power menu and re-run";

double check the script and the directories to make sure they are correct. As i said i am running the script as root on plainjane rom.

I put what i think the directories are on page 7. I'm not sure what other directories they would be but i also am not sure they are correct.

If you get past that then rebooting is step 8 in the EVO guide.

Also, don't forget to change the directories in part 2 of the script as well.

The guide suggests running part2 as soon as possible which i why i suggested copying part2 to /data/local

after you go to a flash site and part1 says to reboot, use adb reboot and as soon as you see the htc logo do adb shell quickly followed by

sh /data/local/part2

good luck
[Droid Eris Android Development] :
Ah and I'll point out that when it continued to ask me to reboot I was using your script from page 7, not the paste-bin one, so haven't gotten to run a diff on the files, perhaps I should change my stuff around a bit. Not sure I'll get to much of a look at the stuff while at work today, but I'll see what I can do.

EDIT

Isn't it page8?? -- also the thing that I'd think is wrong is with your page 8 stuff is that it refers to app_appcache inside the fully-qualified-named browser folder, didn't we decide we couldn't exactly find a real appcache? I could be wrong, but that's definitely why my I'm getting referred to a reboot.
[Droid Eris Android Development] thisismyanonymousaccount:
Here are the output I was working with and what i based my directories on. As i said this is with a rooted ROM so it may be different but it is the plainjane rom. Where is it asking you to reboot. After going to the website or before it says to visit the website.

# pwd

pwd

/data/data/com.android.browser

# ls

ls

cache

app_thumbnails

app_appcache

app_geolocation

app_sharedimage

shared_prefs

databases

app_databases

app_icons

flashlite

lib

app_plugins

#
[Droid Eris Android Development] :
odd... is there anyway for me to ls that app_appcache? That seems to be whats causing mine to fail early..
[Droid Eris Android Development] thisismyanonymousaccount:
you have execute permission on the directory .

drwxrwx--x app_53 app_53 2010-07-08 07:56 app_appcache

try to do

ls /data/data/com.android.browser/app_appcache and tell me what happens.
[Droid Eris Android Development] :
Ah well there's the problem then. I have an app_appcache but permission stops at com.android.browser. Can't even ls that app_appcache folder which would cause this failure I'm getting.
[Droid Eris Android Development] adorablepuppy:
Reporting failure on ls /data/data/com.android.browser/app_appcache/ as well.
[Droid Eris Android Development] :
also for anyone that is tinkering with the script files they updated their hackfiles http://xdaforums.com/showthread.php?t=718889 I'm not sure if that was brought to attention. Also not sure if that means anything to us as we can't currently access the stuff we need for the ones we already have.
[Droid Eris Android Development] ericFuels999:
Hey, I don't know if anybody already mentioned this (IRC or otherwise), but the video tutorial on the original EVO thread shows the guy going to flashgames247.com, rather than bit.ly/ad0pRn and clicking on the very first game at the top of the page. I haven't got time to test it myself, but that might make it load faster, I don't know.

http://www.vimeo.com/13124383 <-- link to vid tutorial in case you wanna check (somewhere around the 6:00 mark, I think)
[Droid Eris Android Development] :
I believe its been decided that it will cause (what we hope) the exploit for whatever site you go to that includes flash.
[Droid Eris Android Development] thisismyanonymousaccount:
what permissions do the app_appcache folder have on the stock rom?
[Droid Eris Android Development] jimbonj:
drwxrwx--x app_39 app_39 2010-06-11 11:48 app_appcache
[Droid Eris Android Development] thisismyanonymousaccount:
and you get an error when you do

ls /data/data/com.android.browser/app_appcache

really?