Advertisement
cnxsoft

Rockchip Root Script for Linux

Sep 27th, 2013
1,434
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    echo "*---* VonDroid.com RK device Root Tool based on work by sunnydavid *---*"
  2.    echo "--- Plug in your device, make sure debugging is enabled in Developer Options"
  3.    echo "--- This script will now copy files over to your RK device"
  4.    
  5.    adb shell mv /data/local/tmp /data/local/tmp.bak
  6.    adb shell ln -s /data /data/local/tmp
  7.    adb reboot
  8.    
  9.    echo "--- Reboot 1/3 - Press Space Bar once the device has rebooted"
  10.    read -p "or CTRL-C to exit"
  11.    
  12.    adb shell rm /data/local.prop > nul
  13.    adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
  14.    adb reboot
  15.    
  16.    echo "--- Reboot 2/3 - Press Space Bar once the device has rebooted"
  17.    read -p "or CTRL-C to exit"
  18.    
  19.    adb shell id
  20.    
  21.    echo "--- If the ID shows as 0(root) then continue, otherwise CTRL+C to cancel and start over"
  22.    read -p "CTRL-C to exit"
  23.    
  24.    adb remount
  25.    adb push su /system/bin/su
  26.    adb shell chown root.shell /system/bin/su
  27.    adb shell chmod 6755 /system/bin/su
  28.    adb push busybox /system/bin/busybox
  29.    adb shell chown root.shell /system/bin/busybox
  30.    adb shell chmod 0755 /system/bin/busybox
  31.    
  32.    echo "--- Installing SuperSU"
  33.    
  34.    adb push SuperSU.apk /system/app/SuperSU.apk
  35.    adb shell chown root.root /system/app/SuperSU.apk
  36.    adb shell chmod 0644 /system/app/SuperSU.apk
  37.    adb push RootExplorer.apk /system/app/RootExplorer.apk
  38.    adb shell chown root.root /system/app/RootExplorer.apk
  39.    adb shell chmod 0644 /system/app/RootExplorer.apk
  40.    
  41.    echo "Completing Root ..."
  42.    
  43.    adb shell rm /data/local.prop
  44.    adb shell rm /data/local/tmp
  45.    adb shell mv /data/local/tmp.bak /data/local/tmp
  46.    adb reboot
  47.    
  48.    echo "--- Reboot 3/3 - Your RK device should now be rooted!"
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement