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+. |
Ethan Yonker | 0385f51 | 2014-02-06 14:33:02 -0600 | [diff] [blame] | 8 | # Nothing will happen on 4.2.x or older, unless SELinux+Enforcing. |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 9 | # If you want to force loading the daemon, use "--daemon" instead |
| 10 | |
| 11 | /system/xbin/daemonsu --auto-daemon & |
| 12 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 13 | # Some apps like to run stuff from this script as well, that will |
Ethan Yonker | 0385f51 | 2014-02-06 14:33:02 -0600 | [diff] [blame] | 14 | # obviously break root - in your code, just search this file |
| 15 | # for "install-recovery-2.sh", and if present, write there instead. |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 16 | |
| 17 | /system/etc/install-recovery-2.sh |