shell@android:/system # ls -l /system/Supruser.apk
ls -l /system/Supruser.apk
/system/Supruser.apk: No such file or directory
1|shell@android:/system # ls -l /system/superuser.apk
ls -l /system/superuser.apk
/system/superuser.apk: No such file or directory
1|shell@android:/system #
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.
I do not have a Superuser.apk in /system/app/ and the permissions for that folder are r/o.
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
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/.
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
at a root prompt - type:
# /system/bin/su -v
curious as to your su binary version
Do you have a donate button? I want to buy you a beer.... or 12
<---- 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...
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
That is exactly right. I did regain Su then install the Supersu for the safety in the future.
Sent from my HTC Desire HD using xda premium
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
I'd love an automated script. I don't know enough to fix things if I do it by hand and mess up.
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
...
Required su-backup permissions for manual root restore
$ ls -l /system/usr/we-need-root/su-backup
-rwsr-sr-x root ...
Wait, let me get this straight. You're saying right now there's no way for many of us to get a root access to our devices if the abovementioned method is not working, right?