Advertisement
superr

root

Jul 12th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. #!/bin/bash
  2. @echo off
  3.  
  4. devpath="/plugins/$1"
  5.  
  6. /files/adb "wait-for-device"
  7. /files/adb shell "cd /data/local && mkdir tmp"
  8. /files/adb shell "cd /data/local/tmp/ && rm *"
  9. /files/adb shell mv /data/local/tmp /data/local/tmp.bak
  10. /files/adb shell ln -s /data /data/local/tmp
  11. /files/adb reboot
  12. /files/adb "wait-for-device"
  13. /files/adb shell rm /data/local.prop > nul
  14. /files/adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
  15. /files/adb reboot
  16. /files/adb "wait-for-device"
  17. /files/adb $devpath/busybox /data/local/tmp/busybox
  18. /files/adb shell "chmod 755 /data/local/tmp/busybox"
  19. /files/adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
  20. /files/adb $devpath/makespace /data/local/tmp/.
  21. /files/adb shell "chmod 777 /data/local/tmp/makespace"
  22. /files/adb shell "./data/local/tmp/makespace"
  23. /files/adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
  24. /files/adb shell "chown root.shell /system/xbin/busybox"
  25. /files/adb shell "chmod 04755 /system/xbin/busybox"
  26. /files/adb shell "/system/xbin/busybox --install -s /system/xbin"
  27. /files/adb shell "rm -r /data/local/tmp/busybox"
  28. /files/adb $devpath/su /system/bin/su
  29. /files/adb shell "chown root.shell /system/bin/su"
  30. /files/adb shell "chmod 06755 /system/bin/su"
  31. /files/adb shell "rm /system/xbin/su"
  32. /files/adb shell "ln -s /system/bin/su /system/xbin/su"
  33. /files/adb $devpath/Superuser.apk /system/app/Superuser.apk
  34. /files/adb shell rm /data/local.prop
  35. /files/adb shell rm /data/local/tmp
  36. /files/adb shell mv /data/local/tmp.bak /data/local/tmp
  37. /files/adb reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement