summaryrefslogtreecommitdiffstats
path: root/prebuilt/install-recovery.sh
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-08-29 22:21:12 +0200
committerDees_Troy <dees_troy@teamw.in>2013-08-30 03:53:54 +0200
commita7939bbdc8960f95d51df4d9b7d8e52db2550afa (patch)
tree0c865d1c7748e5a6261fc7e6dd5497d526f78b5a /prebuilt/install-recovery.sh
parentChange to use HAVE_SELINUX build flag (diff)
downloadandroid_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar.gz
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar.bz2
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar.lz
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar.xz
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.tar.zst
android_bootable_recovery-a7939bbdc8960f95d51df4d9b7d8e52db2550afa.zip
Diffstat (limited to 'prebuilt/install-recovery.sh')
-rwxr-xr-xprebuilt/install-recovery.sh19
1 files changed, 19 insertions, 0 deletions
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