Magisk/scripts/init.magisk.rc

42 lines
808 B
Plaintext
Raw Normal View History

2016-09-14 10:31:13 +08:00
# Triggers
on post-fs
2017-07-25 03:10:22 +08:00
start logd
start magisk_daemon
wait /dev/.magisk.unblock 5
rm /dev/.magisk.unblock
start magisk_pfs
wait /dev/.magisk.unblock 10
2016-09-14 10:31:13 +08:00
on post-fs-data
2017-02-05 00:37:30 +08:00
load_persist_props
rm /dev/.magisk.unblock
2016-09-14 10:31:13 +08:00
start magisk_pfsd
wait /dev/.magisk.unblock 10
2016-09-14 10:31:13 +08:00
# Services
# Self recoverable service
service magisk_daemon /sbin/magisk --daemon
user root
seclabel u:r:su:s0
2016-09-14 10:31:13 +08:00
# launch post-fs script
service magisk_pfs /sbin/magisk --post-fs
2016-09-14 10:31:13 +08:00
user root
2016-10-03 04:34:50 +08:00
seclabel u:r:su:s0
2016-09-14 10:31:13 +08:00
oneshot
# launch post-fs-data script
service magisk_pfsd /sbin/magisk --post-fs-data
2016-09-14 10:31:13 +08:00
user root
2016-10-03 04:34:50 +08:00
seclabel u:r:su:s0
2016-09-14 10:31:13 +08:00
oneshot
# launch late_start script
service magisk_service /sbin/magisk --service
2016-09-14 10:31:13 +08:00
class late_start
user root
2016-10-03 04:34:50 +08:00
seclabel u:r:su:s0
2016-09-14 10:31:13 +08:00
oneshot