yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] thekayman:
Thanks OP.... followed your steps and I have restored root after JB Update

FYI the numbered steps with a didn't work but I followed the rest and its worked.
[Asus  Eee Pad Transformer Prime] ranwanimator:
Didn't work for me. I had access to # in adb shell, but after doing the steps now I get

1|shell@android:/ $

So I'm guessing I lost root. Very frustrating. Hopefully someone finds a method to root JB quickly.
[Asus  Eee Pad Transformer Prime] Restorer:
Finally got ADB to work and give me the root prompt but can't get past stage 11 : "mount: Operation not permitted". I take it this means I've lost root for good?
[Asus  Eee Pad Transformer Prime] valentinrascu:
Asus relleased 4.1 firmware on asus support. Put on sd and update....

Inviato dal mio Transformer Prime TF201 con Tapatalk 2
[Asus  Eee Pad Transformer Prime] ranwanimator:
After updating to JB, isn't that the same thing as doing a factory reset? I fail to see how this will help.
[Asus  Eee Pad Transformer Prime] Restorer:
Big thanks to the OP for the method but please note for any lazy people like me who are copy/pasting that there are a few typos that will cause errors if you are pushing the files as named in the supplied zip:

In the lines below change the "s" to "S"

4. adb push C:\(location of attached files)\superuser.apk /data/local/tmp

8. chmod 644 /data/local/tmp/superuser.apk

18a. chmod 644 /system/app/superuser.apk

Also in the lines below change the "C"s to "c"s .

14a. Chmod 755 /system/bin/busybox

14b. Chmod 755 /system/xbin/busybox

18a. Chmod 644 /system/app/Superuser.apk
[Asus  Eee Pad Transformer Prime] thenrz:
I just figured something out. I found a su-backup in /system/usr/we-need-root . I have lost root again since making this guide. My permissions were screwed up on su. I was able to restore root by doing the following:

adb shell:
$ cd /system/usr/we-need-root
$./su-backup; su (that is a semicolon immediately after the ./su-backup)
# mount -o remount,rw /system
(do what needs to be done)
#exit
...

su-backup must have permissions as such: (get permissions by typing this into adb shell: ls -l /system/usr/we-need-root ) If you get an error, than this specifically won't work for you.

Required su-backup permissions for manual root restore
$ ls -l /system/usr/we-need-root/su-backup
-rwsr-sr-x root ...

basically, if you can find a su-backup with proper permissions (and cannot restore root with voodoo or supersu), you can manually use that to repair your root access configuration. Maybe this is well known... but to those who don't this could be useful.
[Asus  Eee Pad Transformer Prime] leipy:
Root restored

this last peace worked for me root has been fully restored
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
I have a su located in /system/xbin/ and su-backup located in /system/. Will this work for me? What would I need to do?
[Asus  Eee Pad Transformer Prime] thenrz:
If you have adb access, get into a shell and type su then hit enter. Post what happens and we can go from there.
[Asus  Eee Pad Transformer Prime] hx4700 Killer:
You sound like you are in the position I was in before a full wipe and reinstall of full OS from ASUS site. I had tried every method and some tinkering of my own and couldnt get a root prompt.

The key to all of this is begin able to remount the file system as rear/write so you can put files in /system/bin and system/app so you can SU at will.

Without that ability you are screwed so it essentially takes a "hack/exploit" to get root initially so you can then install the proper files to get root permanently.
[Asus  Eee Pad Transformer Prime] thenrz:
Hx do you have a su-backup kicking around? From my experience, if you have a su binary in bin or xbin even with fct permissions, su-backup with proper permissions can bring it back even if voodoo/supersu cant. Dunno if my case is unique, but worth a look.
[Asus  Eee Pad Transformer Prime] hx4700 Killer:
I had an SU in /system/xbin and /android/data (something like that anyway) for some reason. Its totally gone now. While screwing around I was able to rename the new 10.4 update zip to the same name as the last 9.2 name and it popped up the update triangle in the corner and did the steps. It actually reinstalled JB. Have done a wipe since.
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
When I type su at the adb command prompt nothing happens. I just gives me the same $.
[Asus  Eee Pad Transformer Prime] thenrz:
So you aren't getting a permission denied error? If you navigate to /system/usr/ do you have a we-need-root folder? Use the command 'ls -l /system/usr' (both lowercase Ls) Basically, I am trying to find your su-backup (if you have one) I was able to re-obtain root using this idea.
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
No I don't. I have a su-backup in /system/ and a su in /system/xbin/.
[Asus  Eee Pad Transformer Prime] thenrz:
Try this:

In adb shell
$ cd system
$ ./su-backup; su

Hope you see your root prompt!
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
BOOM! There's my root prompt. Now what?
[Asus  Eee Pad Transformer Prime] thenrz:
run this first so we can see what's up... it's really configuration dependent from here.

# ls -l /system/bin
# ls -l /system/xbin
# ls -l /system/app/Superuser.apk

(Those are all lowercase Ls up there)

Post this! I will stick around and help you get that lovely superuser popup :)

I assume since you are getting su access that busybox is ok, but I want to be sure.

From here, it's easy :)
[Asus  Eee Pad Transformer Prime] nandolv:
Thanks a lot!! this saved my root!!!

One note, a had a dynamic link in my /data/local folder named tmp and couldn't do the 4,5 and 6 points. I renamed it to tmp.old and a could continue.

;)
[Asus  Eee Pad Transformer Prime] thenrz:
Superuser.apk will be in /system/app/Superuser.apk

Make sure that is there and with what permissions, and also go ahead and download the files in the op.

Not many steps to get you back, either.

Interesting... What rooting method did you use?
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
I do not have a Superuser.apk in /system/app/ and the permissions for that folder are r/o.

edit:

1|shell@android:/system # ls -l /system/app/Superuser.apk

ls -l /system/app/Superuser.apk

/system/app/Superuser.apk: No such file or directory

1|shell@android:/system #
[Asus  Eee Pad Transformer Prime] thenrz:
Ok, here's what you need to do.

adb push C:\(file location)\busybox /data/local/tmp
adb push C:\(file location)\Superuser.apk /data/local/tmp
adb shell
$ cd system
$ ./su-backup; su
# mount -o remount,rw /system
# dd if=/data/local/tmp/busybox of=/system/xbin/busybox
# dd if=/data/local/tmp/Superuser.apk of=/system/app/Superuser.apk
# chmod 755 /system/xbin/busybox
# chmod 644 /system/app/Superuser.apk
# chmod 6755 /system/xbin/su
# busybox cp /system/xbin/su /system/bin/su *(for good measure...)
# ln -s /system/xbin/su /system/bin/su *(ok if this fails out, may already exist)
# mount -o remount,ro /system
# exit
$ exit
adb reboot

Once you reboot, check with root checker basic or something. if you have any root apps installed already, odds are you will be greeted with a superuser prompt once you get past the lock screen.
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
No. :( Didn't work. It seems there is a problem with busybox. Let me give it one more shot. This looks promising though. Superuser.apk is in /system/app/ and su is in /system/bin/.
[Asus  Eee Pad Transformer Prime] thenrz:
You can try putting busybox in /system/bin .

So add this with the other dds

# dd if=/data/local/tmp/busybox of=/system/bin/busybox

# ln -s /system/bin/busybox /system/xbin/busybox

Are you able to just type su in the shell and have a root prompt?
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
Still not working. su Permission denied.

edit: OK I'm gettting # through adb shell!
[Asus  Eee Pad Transformer Prime] thenrz:
at a root prompt - type:

# /system/bin/su -v

curious as to your su binary version

adb push C:\(downloaded file)\su /data/local/tmp/
adb shell
$ su
# mount -o remount,rw /system
# rm /system/bin/su
# rm /system/xbin/su
# dd if=/data/local/tmp/su of=/system/bin/su
# chmod 6755 /system/bin/su
# chown 0.0 /system/bin/su
# mount -o remount,ro /system
# exit
$ exit
adb reboot
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
Going ahead with OP using su from OP... SUCCESS!!!!! :) :fireworks: :highfives: !!!!!

I can't thank you enough!! My sweet sweet root is back!!!! :) Oh how I missed her!!
[Asus  Eee Pad Transformer Prime] thenrz:
Right on!!! Glad you are fixed up :) The su version screwed me op once, and my late night brain took a second to connect those dots.

Enjoy!

Make sure to install supersu. It will tidy up the entire situation for you (newest su versions, everything in the perfect place to help with future OTAs etc)

P.S. It makes me nervous every time putting 'rm' and 'su' in the same line in a shell... so that's why it was my last bit of advice hahaha
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
Do you have a donate button? I want to buy you a beer.... or 12
[Asus  Eee Pad Transformer Prime] thenrz:
<---- Right there. Took a google search haha :)

To update the thread:

I have updated the OP to reflect this new 'root restore' method for our primes. If there's a lot of people in this boat, I can put a batch script together for some automated love...
[Asus  Eee Pad Transformer Prime] Scumbag Inc.:
Donated! Get drunk on me.

Thanks again.
[Asus  Eee Pad Transformer Prime] tsmt971@yahoo:
That is exactly right. I did regain Su then install the Supersu for the safety in the future.
[Asus  Eee Pad Transformer Prime] thenrz:
I have not had any issues with root since installing supersu. I noticed the su -v command shows a supersu branded version, which kinda makes me feel safe knowing the binaries are being completely handled by a program and not dumb fingers a la me lol.
[Asus  Eee Pad Transformer Prime] piokon:
Can you also update the OP with information on what to do to avoid being in the situation one has partial root? As in, what is the proper procedure of updating from ICS to JB so that one retains full root? Even just linking to the thread/post that covers it somewhere else would be very helpful :)
[Asus  Eee Pad Transformer Prime] ssoldz:
I'd love an automated script. I don't know enough to fix things if I do it by hand and mess up.
[Asus  Eee Pad Transformer Prime] thenrz:
Realistically, it is just a matter of installing SuperSU. I haven't seen anyone with that installed have any issue with retaining root. I will update the OP with this info!

I should have it done by Friday or so... got pretty busy today. Would you be interested in testing it?
[Asus  Eee Pad Transformer Prime] tony_man:
worked for me..

many thanks :)
[Asus  Eee Pad Transformer Prime] ssoldz:
I'd be glad to test it.
[Asus  Eee Pad Transformer Prime] piokon:
As I noted here, Superuser may be ok, too, but it still needs confirmation. Also, Voodoo Rootkeeper backups should be refreshed. But this is simply collating a small number of stories, it would be nice if more people confirmed those setups work.
[Asus  Eee Pad Transformer Prime] thenrz:
Superuser itself is just fine. SuperSU's OTA protection is better if you buy the pro version. I have heard Voodoo has made the same updates to ensure better OTA protection, but I am going on what I have seen and know works... I re-made a Voodoo su backup before the JB update (as I always do) temp unrooted, and still was unable to restore root automatically.
[Asus  Eee Pad Transformer Prime] schlesh436:
I cant regain root because it no longer is recognized by my pc. I have tried to everything and there is no way
[Asus  Eee Pad Transformer Prime] thenrz:
Have you tried a different PC? You can also boot live linux, install the sdk, and adb from there.
[Asus  Eee Pad Transformer Prime] irishtexmex:
Any update on that automated script?
[Asus  Eee Pad Transformer Prime] scooter1979:
I was rooted using ViperMod. I took the JB OTA, thinking rootkeeper would work. Wound up with the partial root issue (some apps worked, i.e. Anti, Network Spoofer, Root Explorer, but root checker and the Linux Installer for Backtrack gave no root errors), so I tried the method in the OP.

I got through step 3. Step 4 gave me a permission denied error, so I used Root Explorer to turn on all permissions for /data/local/tmp. At that point, adb push claimed to have worked through step 6, but I noticed my Prime had frozen. Before I went any further, I decided to hard reboot (hold down power button), to be sure everything was running proper before I started in with shell commands.

Upon reboot, it now sticks at the initial splash screen. I can vol-down & get to the bootloader there, giving me the 4 standard options. Recovery gives me the dead-looking Andy with exclamation mark (I assume because I don't have a backup image, which yes, I know, was stupid not to have. Hindsight.). The OS option says it's starting from a cold boot, but freezes there and does nothing else. I can access fastboot, and at least the reboot command seems to work, but I haven't tried anything else, as I'm not familiar with fastboot, and have no idea where to go from there. I'm hoping against hope I don't have to use the wipe action, as I have a lot of time and data invested in the thing.

I'm also able to vol-up and have APX recognized on my Win7 machine, but I admittedly have no idea what to do with that.

If anyone could help me here, especially if it would include NOT wiping my Prime, I would be forever grateful. Thank you in advance for any advice.
[Asus  Eee Pad Transformer Prime] thenrz:
I cant figure out the scripting to su through su backup to do anything interesting but id...

I do have two batch scripts that will give me the info i need to give you steps back to root (if possible). Will post later in morning.
[Asus  Eee Pad Transformer Prime] mfratto:
anyone figured out the root cause yet

this happened to me too, but some apps still get root (ConnectBOT, TiBu) and others don't like busybox and, oddly, SuperUser (I can't update the SU binary automatically).

Anyone figured out a root cause.
[Asus  Eee Pad Transformer Prime] Felisek:
I had a working root after JB update, but I lost it after factory reset. I still have /system/bin/su, /system/app/Superuser.apk and /system/xbin/busybox with correct permissions. I don't have a copy or link of busybox in /system/bin, though.

If I try to run su from a terminal directly on the Prime, it says "Permission denied". However, I can run su through adb and have # prompt. The version reported by su is 3.0.3.2.

Before I proceed with OP's method I have a few quesions:

1. I'm a bit worried about versions of files you have provided. They have all different sizes and dates than files on my Prime:

su my: = 22364, 2012/09/28, yours = 380532, 29/02/2008

busybox: my = 2005736, 2012/03/06, yours = 1085140, 9/08/2012

Superuser.apk: my = 843503, 6/03/2012, yours = 1468798, 29/02/2008

Where did you get these files from? Are they appropriated for my system? In particular, your su seems to be 4 years old, unless date was changed on purpose. On the other hand, your su, when executed with -v options reports version 3.1.1.

2. Just of curiosity, why do you use

dd if=/data/local/tmp/Superuser.apk of=/system/app/Superuser.apk

instead of simply

cp /data/local/tmp/Superuser.apk /system/app/Superuser.apk

and similarly:

busybox rm /system/bin/su
busybox cp /data/local/tmp/su /system/bin

instead of

cp /data/local/tmp/su /system/bin

I only guess that the last command is necessary because I'm running the su shell that needs replacing, is it correct?
[Asus  Eee Pad Transformer Prime] Felisek:
Oh well, wasn't patient enough to wait for an answer and simply copied the OPs su into my /system/bin using busybox. I already had Superuser and busybox, so this was the only thing I did. I have my root back!

I noticed that a normal 'cp' does not preserve permissions, and I couldn't change permissions of the copy. It kept saying "bad mode". Weird behaviour... Busybox kept permissions.

I made a copy of my new su into a different directory under /system. This way I should be able to recover it after each update/factory reset.
[Asus  Eee Pad Transformer Prime] BongoBong:
hmmmmmm very interesting. I had the exact same problem with the constant reboots and had to wipe. Thought I was SOL for my root for awhile.

Don't understand most of this process, but guess its a good time to learn!
[Asus  Eee Pad Transformer Prime] scooter1979:
Is there no one here who has any suggestions for me? I'm desperate here, folks. I really don't want to lose the data and pictures I have on the thing by doing a wipe. I've already posted my situation in the Prime Q&A thread, with no replies. I'm begging the community here for help. Please, y'all, any help would be more than appreciated.
[Asus  Eee Pad Transformer Prime] Bender303:
I installed SuperSU before the jb update and still got partial root in some apps (i could not su in terminal but tb and others kept root).

Then i noticed i could no longer turn on bluetooth :-\ i tried the regain root as the OP and i got full root back.

After securing the su binary i did a factory reset hoping bluetooth would start working but no dice :'( still rooted but same problem..

Anyone else got this after the upgrade and/or got a solution?

Sent from my Transformer Prime TF201
[Asus  Eee Pad Transformer Prime] lukcinek:
Before this solution I have working su command in adb. After I dont have root and su command in adb doesnt work :( I have every file in good directories but it esnt work :(

Wysyłane z mojego Transformer Prime TF201 za pomocą Tapatalk 2

---------- Post added at 05:33 PM ---------- Previous post was at 04:46 PM ----------

Pls help me. Before it was partial root. Adblock work for me. Su command in adb works. I do everything like instruction from first page said. I have su-backup from ota rootkeeper on my sdcard. Su in /system/bin busybox in /system/bin and /xbin and two peruser.apk in /system/app. Pls sameone help me

Wysyłane z mojego Transformer Prime TF201 za pomocą Tapatalk 2
[Asus  Eee Pad Transformer Prime] copc:
Thanks to the OP, this thread should be a sticky...

I had upgraded from ICS rooted to JB when it was fisrt released, JB was then running rooted and I was all happy. My TFP has been running great, but after reading all those posts about a fresh wipe and how fast it was I decided to give it a shot. Mind you it was running fine before the wipe, I just wanted to see if there was any difference. So I backed up everything on titanium and such, Wiped it, and ran the OTA voodoo rootkeeper and I lost root? I was pissed at my self and I need root to use my TFP at work with our ISA proxy.

So I read this post and gave it a shot, 20min later I was again rooted on a freshly wiped JB. Man I am even ahppoer with JB, I thought it was quick before, now it flys!!!

Thanks again OP and a mod should really sticky this, Hint Hint...
[Asus  Eee Pad Transformer Prime] socngill:
Hi all.

Been reading through the thread and been unable to get root. I think the reason is because, although I had root and an unlocked bootloader on ICS I couldn't get the OTA update to JB. I had to do it manually. When I did I did a full wipe and install. Although I did run Rootkeeper before wiping on installing the JB Stock Rom and loading the RootKeeper app it gave no options to update. I stupidly (with hindsight) thought it would perform the back up in the cloud, clearly it must have done it locally, on my Prime, which I then wiped. Doh!

So, I 've accepted I won't get root on my JB install.

However, the reason I want to root is to install a custom ROM. So, my question is can I do a full wipe and install the ICS Stock ROM, root that and then simply install a JB Custom ROM. Or will this not work??

Many thanks in advance.
[Asus  Eee Pad Transformer Prime] nitram_tpr:
I'd like to thank everybody on this thread :)

When I initially upgraded my rooted (but stock) Prime to JB I lost Root, the guide on page 1 got root back.

I have now upgraded to the new JB released this week, I lost root again, and regained it, again using the guide on page 1.

The initial JB upgrade was easier as I just followed the guide changing s for S and C for c where required. I had the # after typing su in an adb shell.

This recent upgrade (update) was a little more long winded, I did not have the # prompt. I did however have a su-backup in the /system/usr/we-need-root/ folder. I got the # prompt and re-rooted.

Thanks guys :)
[Asus  Eee Pad Transformer Prime] Moothead2:
How do you know if you have partial root? Rootkeeper has everything ticked by Adaway kept quitting because it couldn't get SU permission and a Root checker from the market says I don't have root. I take it this method should work for me then?

Thanks.
[Asus  Eee Pad Transformer Prime] leipy:
are you on unlocked bootloader? then you could use urkel's_fresh_start_1.0 choose the fresh root you will loose nothing but gain root. it worked for me. i am on stock jb unlocked bootloader and rooted again in 10 min. and did not loose anythink. only had to install busybox again
[Asus  Eee Pad Transformer Prime] cjm2576:
Thankyouthankyouthankyouthankyouthankyou!!! I did a data wipe on my Prime today, I have a Voodoo root backup but my root was still borked. Your guide worked perfectly!
[Asus  Eee Pad Transformer Prime] brainimpact:
damn looks like I'll be unlocking bootloader just hope i'm not one of the unlucky people who cant get asus tool to work
[Asus  Eee Pad Transformer Prime] ReasonablyRooted:
I have busybox, I have su (3.0.3.2), I have a we-need-root voodoo backup, I DO NOT have Superuser.apk in /system/app. I can't push anything (always permission denied). I had partial root on 10.4.2.17 (even though I didn't know it was partial). Any way to get that .apk in there so I can get my root back?

I was ready to try unlocking also, but I can't access the second accept button (the page is cut off and doesn't scroll). I can't go any further with it.

I've been reading for two days, and I think I might be stuck waiting for JB root/unlock unless someone out there has something for me to try.
[Asus  Eee Pad Transformer Prime] Maverick07r6:
--After 3 hours of studying your guide on here, and with a bit of ingenuity (never used commands before) I FINALLY got my Atrix HD on 4.1.1 re-rooted with a voodoo su-backup in storage. Thank you SO MUCH!!! :laugh::laugh::laugh:
[Asus  Eee Pad Transformer Prime] The_Stranger:
I am also trying to get my root beck, but also unable to. I have the superuser app installed (can't delete it anyway from my prime) and I do have a we-need-root folder.

I tried following the posts from page six, since I can't get root prompt from adb shell.

But when I reboot the prime, it still says all apps denied root access...

The su in the we-need-root folder has the permissions from the post above me.
[Asus  Eee Pad Transformer Prime] oddysey:
after upgrade ota we can root again right ?
[Asus  Eee Pad Transformer Prime] Zaiden:
Omg...please help!

I have done every step with no errors. However, after rebooting and running Root Checker it states I am improperly rooted. I go to Voodoo and everything is checked except for "Root permission granted". It shows that my device is rooted though. I run SuperUser and it can't update the binary. I can go into ADB and it shows "#", meaning I have root. Where do I go from here????
[Asus  Eee Pad Transformer Prime] F308:
Is this problem resolved ?

My answer is late but I joined XDA recently.

I have some hints but want to know it they are needed.

BTW:

To see # prompt DOESN'T mean you have root.

NOT to see # may mean you still have root. (I do however I dont see # running su).

More explanations on request.
[Asus  Eee Pad Transformer Prime] abczhou:
I have the same problem as yours, did you find solution ?