cm: Import init.superuser.rc into init.local.rc
With change I73bbf37e547323846cd863b3dcea5c890f9ee969, we need to move all the contents of the su service into the main init.cm.rc file. Change-Id: Id7cf00738dcb81935b27e5de33d1f7dd2b2fcdb3
This commit is contained in:
parent
5da6b60229
commit
70e53042eb
@ -1,6 +1,4 @@
|
|||||||
# CyanogenMod Extras
|
# CyanogenMod Extras
|
||||||
import /init.superuser.rc
|
|
||||||
|
|
||||||
on init
|
on init
|
||||||
export ANDROID_CACHE /cache
|
export ANDROID_CACHE /cache
|
||||||
export TERMINFO /system/etc/terminfo
|
export TERMINFO /system/etc/terminfo
|
||||||
@ -211,3 +209,19 @@ on property:sys.io.scheduler=bfq
|
|||||||
write /sys/block/sde/queue/iosched/slice_idle 0
|
write /sys/block/sde/queue/iosched/slice_idle 0
|
||||||
write /sys/block/dm-0/queue/iosched/slice_idle 0
|
write /sys/block/dm-0/queue/iosched/slice_idle 0
|
||||||
|
|
||||||
|
# su daemon
|
||||||
|
service su_daemon /system/xbin/su --daemon
|
||||||
|
disabled
|
||||||
|
seclabel u:r:sudaemon:s0
|
||||||
|
|
||||||
|
on property:persist.sys.root_access=0
|
||||||
|
stop su_daemon
|
||||||
|
|
||||||
|
on property:persist.sys.root_access=1
|
||||||
|
start su_daemon
|
||||||
|
|
||||||
|
on property:persist.sys.root_access=2
|
||||||
|
start su_daemon
|
||||||
|
|
||||||
|
on property:persist.sys.root_access=3
|
||||||
|
start su_daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user