diff options
Diffstat (limited to 'prebuilt/install-recovery.sh')
-rw-r--r-- | prebuilt/install-recovery.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/prebuilt/install-recovery.sh b/prebuilt/install-recovery.sh new file mode 100644 index 000000000..f62cf0b96 --- /dev/null +++ b/prebuilt/install-recovery.sh @@ -0,0 +1,17 @@ +#!/system/bin/sh + +# If you're implementing this in a custom kernel/firmware, +# I suggest you use a different script name, and add a service +# to launch it from init.rc + +# Launches SuperSU in daemon mode only on Android 4.3+. +# Nothing will happen on 4.2.x or older, unless SELinux+Enforcing. +# If you want to force loading the daemon, use "--daemon" instead + +/system/xbin/daemonsu --auto-daemon & + +# Some apps like to run stuff from this script as well, that will +# obviously break root - in your code, just search this file +# for "install-recovery-2.sh", and if present, write there instead. + +/system/etc/install-recovery-2.sh |