Created
April 14, 2013 09:02
Revisions
-
Zepheus created this gist
Apr 14, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ #!/bin/bash echo '# Linux mod for RK3188 rooting script - Zepheus #' echo 'Rooting device...' adb shell mv /data/local/tmp /data/local/tmp.bak adb shell ln -s /data /data/local/tmp adb reboot read -p "--- Reboot 1/3 - Press Space Bar once the device has rebooted" adb shell rm /data/local.prop > nul adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop" adb reboot read -p "--- Reboot 2/3 - Press Space Bar once the device has rebooted" adb shell id read -p "--- If the ID shows as 0/root then continue, otherwise CTRL+C to cancel and start over" adb remount echo "Installing su binary and busybox" adb push su /system/bin/su adb shell chown root.shell /system/bin/su adb shell chmod 6755 /system/bin/su adb push busybox /system/bin/busybox adb shell chown root.shell /system/bin/busybox adb shell chmod 0755 /system/bin/busybox echo "--- Installing SuperSU" adb push SuperSU.apk /system/app/ adb shell chown root.root /system/app/SuperSU.apk adb shell chmod 0644 /system/app/SuperSU.apk echo "Completing Root" adb shell rm /data/local.prop adb shell rm /data/local/tmp adb shell mv /data/local/tmp.bak /data/local/tmp adb reboot echo "Device should now be rooted"