ROOT for R5A [really works]

smokey_joe

Senior Member
Jun 5, 2011
59
50
38
Aachen
I think this should really be linked here.
http://forum.xda-developers.com/showthread.php?t=2320283
Just done it, after loosing root while accidentally updating to r5a i can confirm i gained root again with that!
I guess thats kind of cool and should be implemented in the all in one rooting stuff and everything


Here you can find a little zipfile with all the needed Files and a README which describes How-To do it:
https://d1sturbed.org/android/root-r5a-v3.zip
there is also a v4, which contains a new binary and a new script...on Linux you now can just unzip the v4 and then execute doit.sh (perhaps someone can pass me a doit.bat or something, i guess it could run as a batch file for windows, but since i'm to sleepy and lazy to reboot into windows it's untestet. but you can try by removing the first line and rename to .bat)
https://d1sturbed.org/android/root-r5a-v4.zip
 
Last edited:

jumper62

Senior Member
Sep 1, 2012
1,179
218
0
Procedure


Expand where appropriate the android_run_root_shell-test.zip, to libdiagexploit of android_run_root_shell-test.zip within the deployment just the "Android.mk", "diag.c", "diag.h" of libdiagexploit-master.zip deployment.

Go to the folder where you extracted the android_run_root_shell-test.zip from the terminal,

> Ndk-build NDK_PROJECT_PATH =. APP_BUILD_SCRIPT =. / Android.mk

Type.

Run_root_shell is created in "android_run_root_shell-master/obj/local/armeabi" Then.

Expand to "android_run_root_shell-master/obj/local/armeabi" the su and Superuser.apk from UPDATE-SuperSU-v1.30.zip, busybox also be moved to the same folder.
From terminal

> Adb push run_root_shell / data / local / tmp
> Adb push su / data / local / tmp
> Adb push Superuser.apk / data / local / tmp
> Adb push busybox / data / local / tmp
> Adb shell
$ Cd / data / local / tmp
$ Chmod 777 run_root_shell
$ Chmod 755 busybox
$. / Run_root_shell
# / Data / local / tmp / busybox mount-o rw, remount / system
# / Data / local / tmp / busybox cp / data / local / tmp / su / system / xbin
# / Data / local / tmp / busybox cp / data / local / tmp / Superuser.apk / system / app
# Chown 0.0 / system / xbin / su
# Chmod 6755 / system / xbin / su
# / Data / local / tmp / busybox mount-o ro, remount / system
# Sync
# Exit


Is over. It would help to delete the ones that you push to / data / local / tmp afterward.

> Adb shell
$ Rm / data / local / tmp / run_root_shell
$ Rm / data / local / tmp / su
$ Rm / data / local / tmp / Superuser.apk
$ Rm / data / local / tmp / busybox

Sent from my Sony Tablet S using xda app-developers app

---------- Post added at 08:51 AM ---------- Previous post was at 08:44 AM ----------

Get files from here

fi01/android_root_shell at test https://github.com/fi01/android_run_root_shell/tree/test
hiikezeo/libdiagex ploit https://github.com/hiikezoe/libdiagexploit
Update-SuperSU-v1.3.zip http://forum.xda-developers.com/showthread.php?t=1538053
Busybox for android http://benno.id.au/blog/2007/11/14/android-busybox

Note: translation provided by google translate so there may be some mistakes

Sent from my Sony Tablet S using xda app-developers app
 
Last edited:
  • Like
Reactions: ssojyeti2

jumper62

Senior Member
Sep 1, 2012
1,179
218
0
i've made a small archive with a little README and a root.sh script, so you can just push everything from the archive to /data/local/tmp/ and execute root.sh

hope that's okay, if not tell me and i delete!
Its fine. Will give it a try soon

Edit 1: is this only for linux?

Sent from my GT-S5830 using xda app-developers app
 

smokey_joe

Senior Member
Jun 5, 2011
59
50
38
Aachen
Its fine. Will give it a try soon

Edit 1: is this only for linux?
no, it does not include adb or anything.
You need working adb for you OS and the zip file.
I just extracted the needed stuff from the linked projects (Superuser and busybox), added a little shell script that copies the apk and the binaries..
and while writing this post i've seen that i didn't install the busybox binary at all...so i fixed this with v2, added with this post... i also updated the README as i forgot to mention that run_root_shell and root.sh have to get executable bit
 

Attachments

plerzelwupp

Member
Oct 3, 2010
27
1
0
Mannheim
no, it does not include adb or anything.
You need working adb for you OS and the zip file.
I just extracted the needed stuff from the linked projects (Superuser and busybox), added a little shell script that copies the apk and the binaries..
and while writing this post i've seen that i didn't install the busybox binary at all...so i fixed this with v2, added with this post... i also updated the README as i forgot to mention that run_root_shell and root.sh have to get executable bit
Thanks a lot - I try that when I'm at home in the evening. Greetings from Mannheim to Aachen. ;)
 
  • Like
Reactions: kixaze71

smokey_joe

Senior Member
Jun 5, 2011
59
50
38
Aachen
tried to look at your screenshot i saw you tried to execute the shellscript on the windows system? you really should read the README...you have to push the files to the device, everything from the zip file...and after that get a shell via adb shell and then you can execute the run_root_shell and after that the root.sh skript to finally install superuser.apk / busybox and su commands
 

xenoisme

Member
Jan 28, 2010
20
0
0
tried to look at your screenshot i saw you tried to execute the shellscript on the windows system? you really should read the README...you have to push the files to the device, everything from the zip file...and after that get a shell via adb shell and then you can execute the run_root_shell and after that the root.sh skript to finally install superuser.apk / busybox and su commands
How can you push files into data/local/tmp without root?
 

xenoisme

Member
Jan 28, 2010
20
0
0
tried to look at your screenshot i saw you tried to execute the shellscript on the windows system? you really should read the README...you have to push the files to the device, everything from the zip file...and after that get a shell via adb shell and then you can execute the run_root_shell and after that the root.sh skript to finally install superuser.apk / busybox and su commands
20130612205857.jpg

is it okay?
 

xenoisme

Member
Jan 28, 2010
20
0
0
looks good, after that you could install Superuser.apk/su/busybox by yourself or use execute root.sh ./root.sh to do it automatically...you can verify that you are root by using the command "id" but the root.sh script checks if your user id is 0 (root)
it's okay now, thanks very much
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone