blob: 7c65d0ed50fdf557703e5482967e99fb65866788 [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
Matt Mowerfb1c4ff2014-04-16 13:43:36 -050013# Some apps like to run stuff from this script as well, that will
Ethan Yonker0385f512014-02-06 14:33:02 -060014# 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