Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 1 | #!/system/bin/sh |
| 2 | |
| 3 | # If you're implementing this in a custom kernel/firmware, |
| 4 | # I suggest you use a different script name, and add a service |
| 5 | # to launch it from init.rc |
| 6 | |
| 7 | # Launches SuperSU in daemon mode only on Android 4.3+. |
| 8 | # Nothing will happen on 4.2.x or older. |
| 9 | # If you want to force loading the daemon, use "--daemon" instead |
| 10 | |
| 11 | /system/xbin/daemonsu --auto-daemon & |
| 12 | |
| 13 | # Some apps like to run stuff from this script as well, but the |
| 14 | # installer will have done "chattr +i" on this file to prevent |
| 15 | # accidental modification and deletion. In your code, just search |
| 16 | # this file for "install-recovery-2.sh", and if present, write |
| 17 | # there instead. |
| 18 | |
| 19 | /system/etc/install-recovery-2.sh |