From a7939bbdc8960f95d51df4d9b7d8e52db2550afa Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 29 Aug 2013 20:21:12 +0000 Subject: Update SuperSU for 4.3 SELinux, 2.6.1.0 Change-Id: Ib7f882db8a8c61d1156c03468208205124132b6c --- prebuilt/install-recovery.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 prebuilt/install-recovery.sh (limited to 'prebuilt/install-recovery.sh') diff --git a/prebuilt/install-recovery.sh b/prebuilt/install-recovery.sh new file mode 100755 index 000000000..9b4374520 --- /dev/null +++ b/prebuilt/install-recovery.sh @@ -0,0 +1,19 @@ +#!/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. +# 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, but the +# installer will have done "chattr +i" on this file to prevent +# accidental modification and deletion. In your code, just search +# this file for "install-recovery-2.sh", and if present, write +# there instead. + +/system/etc/install-recovery-2.sh -- cgit v1.2.3