blob: f62cf0b96a259453481a06de6c92a813ffc250cb [file] [log] [blame]
Dees_Troya7939bb2013-08-29 20:21:12 +00001#!/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 Yonker0385f512014-02-06 14:33:02 -06008# Nothing will happen on 4.2.x or older, unless SELinux+Enforcing.
Dees_Troya7939bb2013-08-29 20:21:12 +00009# If you want to force loading the daemon, use "--daemon" instead
10
11/system/xbin/daemonsu --auto-daemon &
12
Ethan Yonker0385f512014-02-06 14:33:02 -060013# Some apps like to run stuff from this script as well, that will
14# obviously break root - in your code, just search this file
15# for "install-recovery-2.sh", and if present, write there instead.
Dees_Troya7939bb2013-08-29 20:21:12 +000016
17/system/etc/install-recovery-2.sh