Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- @echo off
- devpath="/plugins/$1"
- /files/adb "wait-for-device"
- /files/adb shell "cd /data/local && mkdir tmp"
- /files/adb shell "cd /data/local/tmp/ && rm *"
- /files/adb shell mv /data/local/tmp /data/local/tmp.bak
- /files/adb shell ln -s /data /data/local/tmp
- /files/adb reboot
- /files/adb "wait-for-device"
- /files/adb shell rm /data/local.prop > nul
- /files/adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
- /files/adb reboot
- /files/adb "wait-for-device"
- /files/adb $devpath/busybox /data/local/tmp/busybox
- /files/adb shell "chmod 755 /data/local/tmp/busybox"
- /files/adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
- /files/adb $devpath/makespace /data/local/tmp/.
- /files/adb shell "chmod 777 /data/local/tmp/makespace"
- /files/adb shell "./data/local/tmp/makespace"
- /files/adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
- /files/adb shell "chown root.shell /system/xbin/busybox"
- /files/adb shell "chmod 04755 /system/xbin/busybox"
- /files/adb shell "/system/xbin/busybox --install -s /system/xbin"
- /files/adb shell "rm -r /data/local/tmp/busybox"
- /files/adb $devpath/su /system/bin/su
- /files/adb shell "chown root.shell /system/bin/su"
- /files/adb shell "chmod 06755 /system/bin/su"
- /files/adb shell "rm /system/xbin/su"
- /files/adb shell "ln -s /system/bin/su /system/xbin/su"
- /files/adb $devpath/Superuser.apk /system/app/Superuser.apk
- /files/adb shell rm /data/local.prop
- /files/adb shell rm /data/local/tmp
- /files/adb shell mv /data/local/tmp.bak /data/local/tmp
- /files/adb reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement