yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] jimbob_sf:
TP on OTA ICS. Never rooted, ran the script, and it worked perfectly. The instructions were spot on. The "bootloop" step was on the last reboot. It appeared to bootloop, but it came back to the lock screen too fast so it didn't seem like a full boot looping sequence, but more like a repeat of a final booting step. Anywho, worked as advertised.

I had updated my Android SDK two weeks ago to root my Nexus, so i had the current adb program.
[Asus  Eee Pad Transformer Prime] -viperboy-:
Then what is failing is the step before this.
[Asus  Eee Pad Transformer Prime] arrigo13:
I'm trying to run the commands through adb and now I get

failed on "data/local/tmp' - No such file or directory

/system/bin/sh: In: not found
[Asus  Eee Pad Transformer Prime] newellj79:
y

so any suggestions?
[Asus  Eee Pad Transformer Prime] John Kotches:
If that is a direct cut and paste, you are missing the leading / for /data .
[Asus  Eee Pad Transformer Prime] arrigo13:
No, it was me not having coffee in the morning and missing key stroke while typing. I'm getting my @$$ kicked by adb today.
[Asus  Eee Pad Transformer Prime] sparkym3:
When does it show this message. If you have run through this step previously

adb shell mv /data/local/tmp /data/local/tmp.bak

then it would no longer exist (changed to "/data/local/tmp.bak"). If this is the case then that step can just be skipped. Look at the list of files in "/data/local" to confirm the bakup file is there.
[Asus  Eee Pad Transformer Prime] Smurph82:
I don't know if this will help as I am currently unable to try anything, but using

Root Explorer to just view the folder contents. There is nothing showing in the data

directory on my TP, no other directories or files.
[Asus  Eee Pad Transformer Prime] chinly43:
I'm also getting permission denied at adb shell etc

I apparently don't have any permission to access /data - I tried to ls to see what was in there, and that was denied as well.

I'm not super-familiar with adb/unix commands, but when we were trying to get mlb.tv running on unapproved devices, we were changing the build.prop files, and in order to copy into the /system directory, we had to change permissions on it. We used "mount -o remount,rw /system". Could something like that help here?
[Asus  Eee Pad Transformer Prime] newellj79:
my data directory is also empty... grrr why did i have to be so hasty in flashing ics, and not use rootkeepr!!!
[Asus  Eee Pad Transformer Prime] arrigo13:
Right after the first cd entry. I did try the steps earlier and they worked but, i'm not seeing the bakup file. the second fail is right after line 2.
[Asus  Eee Pad Transformer Prime] sparkym3:
Doing the first few steps puts it in a mode where it is thought to be an emulator so you are logged in as root. The "adb remount" command should be all you need to mount it as rw.

You will only have access to /data if you are root, but it is actually the /data/local directory that the shell always has access to if you cd directly to that directory you should be able to run the ls command.
[Asus  Eee Pad Transformer Prime] chinly43:
Never got adb shell "echo... to work, so I moved tmp.bak back to its original location and will start over.

sparkym3, still need ls -l /system/xbin ?
[Asus  Eee Pad Transformer Prime] -viperboy-:
Without root, you cannot see the /data partition, that is normal. When rooted, you will see /data and all subfolders. Tool is 99% done, btw :)
[Asus  Eee Pad Transformer Prime] sparkym3:
We got it from cykotix, it looks like the sticky bit was not carried over. This should not be a problem. Even if you are not able to push the su file you should still be able to update the permissions and have everything work correctly.

Thanks
[Asus  Eee Pad Transformer Prime] John Kotches:
So you do want to wipe out the contents of local.prop? Forgive me asking I dont have the procedure in front of me. Is local.prop backed up prior or is it a new file?
[Asus  Eee Pad Transformer Prime] sparkym3:
I was going to back it up, but the file does not exist in the ICS directory structure so there is nothing to back up.
[Asus  Eee Pad Transformer Prime] badger32d:
Pardon my ignorance, but if local.prop does not exist, why are we issuing a command to remove it?

Aside from that, worked perfectly for me coming from a factory honeycomb to ics upgrade prime. Never rooted it on honeycomb (silly me) and got all excited with ics and updated before attempting nachoroot.

I did notice that after every adb command my adb server restarted, claiming it was out of date, this also seemed to kill the launcher service on my prime. Anyone else notice this?

-Windows 7 Ultimate x64, brand new android-sdk install.

Thanks sparkym3 - worked like a charm.

-- Note: I did not have any bootloops when rooting mine, just throwing that out there.
[Asus  Eee Pad Transformer Prime] chinly43:
Can't really explain why, but my second effort successfully got past the echo command where I got stuck the first time. GOD, those bootloops would've been stressful without that warning. Anyway, it worked! Great job!

EDIT: I will say that Asus Sync tried to start the first time, but did *not* the second time. Only difference I can think of.
[Asus  Eee Pad Transformer Prime] sparkym3:
It does not exist originally, when we do the echo it is created so we clean it up at the end.

Yes, I was also seeing the adb server out of date message with Win7 x64.
[Asus  Eee Pad Transformer Prime] badger32d:
Durr, I suppose I should read back over the commands first. Thanks man.
[Asus  Eee Pad Transformer Prime] jjdevega:
When I grow up I want to be just like you!

... Wait a min, just realized that I'm 33 wife and two girls! I guess in my next life:D
[Asus  Eee Pad Transformer Prime] Mixy:
Just wanted to report anotherone that this worked for the first time around.

WW version, running unrooted (and never rooted before).
[Asus  Eee Pad Transformer Prime] jballz0682:
Confirm Root Using Ubuntu/Linux

Can anyone confirm that this worked on Ubuntu/Linux? I notice some users saying that they had a problem getting root using Ubuntu and that's all I have/am willing to use.
[Asus  Eee Pad Transformer Prime] -viperboy-:
There is your answer (to the 2 posts above it). local.prop is a file that IF it exists with the proper commads in it, Android will do something with it, in this case, making adb root. We want to remove it because it makes the tablet buggy, as it is a debugging feature.

LOL, I'm not that awesome :)
[Asus  Eee Pad Transformer Prime] LNKNPRKFN:
ok i will try ty

**EDIT** That was a NO GO aswell, i will keep trying all the suggestions !!! thx for the help sparkym3
[Asus  Eee Pad Transformer Prime] sparkym3:
I think I have your answer from your screenshot you are typing

adb shell ln -s /data/loca/tmp

as opposed to

adb shell ln -s /data /data/local/tmp
[Asus  Eee Pad Transformer Prime] John Kotches:
In your screen print...

You are missing an argument to ln -s and you have a typo on /data/local.

Also, you can cut/paste the text from a command prompt.
[Asus  Eee Pad Transformer Prime] John Kotches:
Sparky:

Aint remote debugging fun?
[Asus  Eee Pad Transformer Prime] John Kotches:
Theres also a missing argument in the first mv command.
[Asus  Eee Pad Transformer Prime] sparkym3:
Yes there is, good catch. Everybody makes mistakes though. When I originally coded it I misspelled kernel to kernal and was wondering why it would not work. Thankfully I noticed it pretty quickly.
[Asus  Eee Pad Transformer Prime] John Kotches:
Sparky,

My previous comment about remote debugging was not meant as a knock on the OP.

Learning often involves mistakes and I've made plenty in my career :D
[Asus  Eee Pad Transformer Prime] sparkym3:
I have also made some and that is why I would recommend anybody that is having issues should copy and past each of these commands manually as to avoid any possible variance.
[Asus  Eee Pad Transformer Prime] adiliyo:
worked on my prime that was rooted with jcases' method before the ICS update.

i did it manually though, not with the bat file.
[Asus  Eee Pad Transformer Prime] Smurph82:
Great advice! Why re-invent the wheel as you have already typed it out for everyone.
[Asus  Eee Pad Transformer Prime] newellj79:
Thanks sparky for getting this working for us. Sadly I'm one of the people it does not work for. I am copy pasting and have tried all the variations. At this point I'm waiting for viperboys program. Hoping it will work, but if it simply runs these commands, I don't know. Thanks viperboy for working on it too.
[Asus  Eee Pad Transformer Prime] djkinetic:
worked perfectly for me on a fresh TFP that was OTA Updated to ICS with no root originally
[Asus  Eee Pad Transformer Prime] antnyp85:
Sweet, rooted again. Had original root then lost during ICS update. Thanks!!! Keep up the good work :-)
[Asus  Eee Pad Transformer Prime] Andrmgic:
Works perfectly.

Thanks!
[Asus  Eee Pad Transformer Prime] rjscott2005:
Huzza! Manually attemped the adb process and it didn't work. Okay, no problem nothing broke. Tried the batch file and it worked perfectly. Thanks!
[Asus  Eee Pad Transformer Prime] copc:
Had root on HC, updated to ICS before I had a chance to use root protector.

Tried it manually, looked like it worked.. (Copy/Paste method)

No errors

looked at the tablet and opened SU app and it just went dark then to home screen?

Opened es explorer and Titanium and both failed to get root access?

Tried it manually again after a complete shutown/startup

Again no errors everthing looked ok

Opened SU app and it never prompted me to allow access, but showed all the root apps and that they are allowed. Tried ES explorer and it worked, Titanuim still give an error? (I will try to remove and reinstall titanuim when I get home)

But so far it looks like send time was a charm from a Windows 7 64b machine, using manual method. I know it was not a entry issue as I copy and pasted the first time and the second time I just used the cmd history with up/down arrrows to recall what I had pasted.

All looks good... I will post my findings on titanium from home.

Thanks to the DEVS!
[Asus  Eee Pad Transformer Prime] funfair:
Works perfectly! Had boot loops but after finishing the script all was OK :-)

Great work!

New WWE prime without root after OTA.
[Asus  Eee Pad Transformer Prime] jacobrv:
One more to the list.

Rooted using viper on HC.

Lost root moving to ICS.

Used this the manual way.

Root works.

Yay!

I had the "boot loops" but it doesn't actually reboot, it's just that final part of the boot. Like from when the screen normally dims to when the desktop shows. But since it's not actually a reboot, commands entered and ran just fine.

Thanks guys.
[Asus  Eee Pad Transformer Prime] sparkym3:
If you can get screenshots of the entire process with output messages I can look through it. Maybe another set of eyes may notice something.

Also, you could try doing all of the adb shell commands within the shell and only exiting the shell to remount, restart, and push (if you have not already tried that).
[Asus  Eee Pad Transformer Prime] newellj79:
ill grab the pc and take screenies right now as i try to walk thru it... will do it all in shell this time.
[Asus  Eee Pad Transformer Prime] -viperboy-:
Mine will have more features and ensure root is achieved without just running through without verification. I just had to eat and take a break lol
[Asus  Eee Pad Transformer Prime] cykotix:
What do you get with `adb shell ls -la /data/local`?
[Asus  Eee Pad Transformer Prime] chinly43:
Just a quick heads-up, under list of devices attached, that's your device's serial number (I censored it in this post, but it's not in yours). In case you don't want that information broadcast to the world.
[Asus  Eee Pad Transformer Prime] dsmitty166:
It blows my mind why some people who lost root can root and others can't. Done this 5 times now. My sdk is up to date as well
[Asus  Eee Pad Transformer Prime] franky_402:
i was having problems with adb shell "echo ro.kernel.qemu=1 > /data/local.prop" i kept on getting permissions denied, so i typed adb shell rm /data/local.prop and then i was able to issue the command adb shell "echo ro.kernel.qemu=1 > /data/local.prop" and it succeeded and i show root!! So if you are having problems then try that!!

And Verified i Now have root once again!!! YAY

Can anyone who is having this problem try this out and let me know if it works for you or not?
[Asus  Eee Pad Transformer Prime] newellj79:
trying now

edit... THANK YOU THANK YOU THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! That got it!!!! I've been trying since 630am!
[Asus  Eee Pad Transformer Prime] franky_402:
Im glad it worked for ya, Im glad to help, Hit thanks if your happy :)
[Asus  Eee Pad Transformer Prime] newellj79:
Wish i could hit it a few times! :) Thanks again man.
[Asus  Eee Pad Transformer Prime] ScottIsMyName:
Instead of removing the file, you could have also just done:

"echo ro.kernel.qemu=1 >> /data/local.prop"

The >> tells the OS to append to the file /data/local.prop instead of creating that file. There may be a permissions problem if that file already exists. If the file doesn't exist already, >> acts exactly the same as >
[Asus  Eee Pad Transformer Prime] franky_402:
I tried that and was still getting the errors, it was driving me crazy
[Asus  Eee Pad Transformer Prime] -viperboy-:
Automated root tool using sparkym3's root method...

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

Works 100% as confirmed by quite a few people :)
[Asus  Eee Pad Transformer Prime] b0nza1:
Good job bro.... Awesome work.
[Asus  Eee Pad Transformer Prime] dsmitty166:
This works...simple as that
[Asus  Eee Pad Transformer Prime] adampdx:
Not for all.
[Asus  Eee Pad Transformer Prime] dsmitty166:
Does this method work?
[Asus  Eee Pad Transformer Prime] adampdx:
I don't know. It seems to be working for most, but not me. I've done the manual method twice and used PrimeTime v3 5 times and can't get root. I'm wondering now if I should be removing su before I start the process.
[Asus  Eee Pad Transformer Prime] ChristoA1:
That might be a good place to start: Get it as close to stock as possible before starting. Also, there are some posts regarding needing to remove build.prop in case you hadn't seen them. Then again, you may already have!
[Asus  Eee Pad Transformer Prime] dsmitty166:
What's your error?
[Asus  Eee Pad Transformer Prime] adampdx:
When I use this method, I get no error. But it still doesn't work. When I use PrimeTime I get permission denied when trying to create the local.prop file.
[Asus  Eee Pad Transformer Prime] sparkym3:
I updated the OP, but i dont know if u have seen and tried it. It is possible that local.prop file exists already. Try to run rm on local.prop , see OP for more detail.
[Asus  Eee Pad Transformer Prime] adampdx:
It's still a no-go. Sadness. Well I've been at it for a while so I'm going to pack it in and check back tomorrow.

Edit: This is after I used the manual unroot process and then tried PrimeTime to root. Did I mention that I was rooted on HC and did the update yesterday, thus loosing root?
[Asus  Eee Pad Transformer Prime] dsmitty166:
Ya I rooted with primetime. Lost root due to the update, and the only way I could regain it was with primetime.
[Asus  Eee Pad Transformer Prime] LNKNPRKFN:
OK so i finally got root...THX TO zedomax over in http://xdaforums.com/newreply.php?do=newreply&p=21307130

SHUT DOWN ASUS SYNC IN TASK MANAGER

and it worked FLAWLESSLY

Rooting...
adb server is out of date. killing...
* daemon started successfully *
Start Rooting...
reboot #1 - DO NOT DISCONNECT YOUR DEVICE!
reboot #2 - DO NOT DISCONNECT YOUR DEVICE!
remount succeeded
1399 KB/s (22364 bytes in 0.015s)
1287 KB/s (843503 bytes in 0.639s)
1085 KB/s (1075144 bytes in 0.967s)
2099+1 records in
2099+1 records out
1075144 bytes transferred in 0.044 secs (24435090 bytes/sec)
rebooting

Thank you to ZEDOMAX, sparkym3, -viperboy- and everyone else with their work and support... without this community, I and Everyone else would have NOTHING!!!
[Asus  Eee Pad Transformer Prime] adampdx:
I finally made this work. I used the batch script from this thread but I added @adb shell rm /data/local.prop before @adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop". No wipe needed.
[Asus  Eee Pad Transformer Prime] sparkym3:
I added this piece to the OP but I'm not sure people are seeing it. Thanks for the post.
[Asus  Eee Pad Transformer Prime] cmat1120:
THANK YOU SOOO MUCH <-- sorry for the caps but thats how happy I am now haha. Such a simple thing too!
[Asus  Eee Pad Transformer Prime] ScottIsMyName:
@sparky:

I recommend adding this to your script before creating the local.prop file

adb shell "[[ -f /data/local.prop ]] && rm /data/local.prop"

This might prevent the people who already have this file from getting the permission denied errors.
[Asus  Eee Pad Transformer Prime] adampdx:
I saw it but it wasn't working for some reason. I'm sure it was something I was doing, so the script just made it a little more fool proof. Thank you for the root!
[Asus  Eee Pad Transformer Prime] -viperboy-:
Thanks for the info, added it to viperMOD PrimeTime 3.1, uploading now :D

If you do it through a batch file, you can just do:

adb shell rm /data/local.prop > nul

That will execute the code, but not show output to the console, error or not.
[Asus  Eee Pad Transformer Prime] John Kotches:
Just got around to rooting this morning...

Ran through first time, like a charm -- was previously rooted with HC and did not preserve with OTA Rootkeeper.
[Asus  Eee Pad Transformer Prime] wildestpixel:
Many apologies for the cross post - is the exploit also valid in HC on TF101 ? Is anyone owning both 101 and 201 able to confirm ?
[Asus  Eee Pad Transformer Prime] LNKNPRKFN:
i have both but my TF101 has been rooted since it came out so i cant confirm it to work but i do believe it does...
[Asus  Eee Pad Transformer Prime] sparkym3:
Most likely it will work, but u may want to move the local.prop file into a backup instead of deleting it and then restore it once complete. This would be in case it contains anything in it that you my want.

It should not hurt to try since it will just fail to give the adb shell root access, but shouldn't cause damage.

As a disclaimer, I do not have a tf101 and therefore cannot confirm any of this.
[Asus  Eee Pad Transformer Prime] nukeruss:
New to ADB and it did not work for me.

Can anyone see where I went wrong. Seems like it should have worked to me but when i try to use apps they all fail to get root access. Any help would be appreciated.

c:\androidsdk\platform-tools>adb shell mv /data/local/tmp /data/local/tmp.bak

c:\androidsdk\platform-tools>adb shell ln -s /data /data/local/tmp

c:\androidsdk\platform-tools>adb reboot

c:\androidsdk\platform-tools>adb shell rm /data/local.prop > nul

c:\androidsdk\platform-tools>adb shell "echo \"ro.kernel.qemu=1\" > /data/local.

prop"

c:\androidsdk\platform-tools>adb reboot

c:\androidsdk\platform-tools>adb shell id

uid=0(root) gid=0(root)

c:\androidsdk\platform-tools>adb remount

remount succeeded

c:\androidsdk\platform-tools>adb push su /system/xbin/su

839 KB/s (22364 bytes in 0.026s)

c:\androidsdk\platform-tools>adb shell chown 0.0 /system/xbin/su

c:\androidsdk\platform-tools>adb shell chmod 06755 /system/xbin/su

c:\androidsdk\platform-tools>adb shell rm /data/local.prop

c:\androidsdk\platform-tools>adb shell rm /data/local/tmp

c:\androidsdk\platform-tools>adb shell mv /data/local/tmp.bak /data/local/tmp

c:\androidsdk\platform-tools>adb reboot
[Asus  Eee Pad Transformer Prime] dsmitty166:
Try viperboys fix. I couldn't get this one to work but primetime worked awesome. It's worth a shot. I has no errors just like you, but no root access
[Asus  Eee Pad Transformer Prime] nukeruss:
I've tried them all multiple times. keep getting permission errors with the others.
[Asus  Eee Pad Transformer Prime] fezza:
I'm afraid the only way to gain root again is to factory reset which will get rid of the permission errors and then you can use the ICS root.
[Asus  Eee Pad Transformer Prime] John Kotches:
it looks like it should have worked.

try clearing the program data for superuser, and seeing if you can get it ti work without the factory reset.

After v that, tart with terminal emulator and type in su - and see if super user prompts for approval.
[Asus  Eee Pad Transformer Prime] nukeruss:
tried clearing data and that did not work.

Tried terminal emulator and that responded permission denied.
[Asus  Eee Pad Transformer Prime] dsmitty166:
Permission errors as in? Please be specific
[Asus  Eee Pad Transformer Prime] nukeruss:
For the two automated versions of root, it says permissions denied when it reboots following the exploit. Vipermod reports back the id values as 2000 each instead of 0.0. I've tried each method at least 3 times each and they have all failed. This manual method looks like it works until I try to use root and then superuser and all root apps are denied root access. I even tried it with the extra command in the post but still no luck.

My only concern about factory resetting is that it has the gamestop games on it and I don't know if I want to risk losing them yet. I backed them up using androzip but I just am not sure that they will install correctly following a factory reset.
[Asus  Eee Pad Transformer Prime] John Kotches:
nukeruss,

In the procedure, after running this command:

c:\androidsdk\platform-tools>adb shell chmod 06755 /system/xbin/su

Run this command and paste the output here:

c:\androidsdk\platform-tools> adb shell ls -l /system/xbin/su
[Asus  Eee Pad Transformer Prime] -viperboy-:
Are those games in /data or /system? If in /system, factory reset won't affect them. If in /data, they will get deleted but you can easily install them back like any .apk but you need to factory reset to root. You probably have some permission issues in files needed to root, likely a root method that wasn't undone after a failed attempt.
[Asus  Eee Pad Transformer Prime] dsmitty166:
Just reset it :-D. If it doesnt install I have the apks and can get you them
[Asus  Eee Pad Transformer Prime] Mcoupe:
SparkyM3,

Sorry for the OT question, but after reading thru the whole thread i have to ask.

Are you an electrician that club races a BMW M3? There is someone with the exact user ID on the BMW CCA Club Racing forums. I know its a long shot, but thought it was kinda ironic.

Sorry for the OT. And thanks for the hard work.....I sent a thanks!

Jason
[Asus  Eee Pad Transformer Prime] nukeruss:
This is what I got. I'll probably just factory reset. Thanks.

c:\androidsdk\platform-tools>adb shell chown 0.0 /system/xbin/su

c:\androidsdk\platform-tools>adb shell chmod 06755 /system/xbin/su

c:\androidsdk\platform-tools>adb shell ls -l /system/xbin/su

-rwsr-sr-x root root 22364 2012-01-03 18:53 su
[Asus  Eee Pad Transformer Prime] tbns:
I need to return my tablet(s) to Amazon which are rooted using this method. Will a factory reset undo root? If not, is there a manual way to undo this rooting method?
[Asus  Eee Pad Transformer Prime] -viperboy-:
Use my tool to unroot.
[Asus  Eee Pad Transformer Prime] tbns:
I was trying to mess with it the other day, but beleive it or not, I couldn't figure out how to 1) install the drivers, and 2) kill ASUS sync ;). Didn't show up in running apps. I'm an OS X type of guy, so used to the terminal methods.
[Asus  Eee Pad Transformer Prime] John Kotches:
nukeruss,

that's correct on the permissions and the file size so at this point I'm at a loss as to why it would fail.
[Asus  Eee Pad Transformer Prime] nukeruss:
I performed a factory reset and rooted using vipermod primetime on the first try. I then restored all of my gamestop apps using androzip. Good thing I moved my backups to the sd card because the internal memory was wiped with the factory reset.

Thanks a lot to all who helped.
[Asus  Eee Pad Transformer Prime] dsmitty166:
Glad you got it working man

Sent from my Inspire 4G with ICS!