Magisk/zip_static/common/init.magisk.rc

40 lines
794 B
Plaintext
Raw Normal View History

2016-09-14 10:31:13 +08:00
# Triggers
on post-fs
# Paths
2016-10-03 04:34:50 +08:00
export PATH /magisk/.core/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/magisk/.core/busybox:/system/xbin
2016-09-14 10:31:13 +08:00
start magisk_pfs
2016-10-03 04:34:50 +08:00
wait /dev/.magisk.unblock 20
rm /dev/.magisk.unblock
2016-09-14 10:31:13 +08:00
on post-fs-data
start magisk_pfsd
2016-10-03 04:34:50 +08:00
wait /dev/.magisk.unblock 40
rm /dev/.magisk.unblock
2016-09-14 10:31:13 +08:00
on property:magisk.root=*
start magisk_root
# Services
# launch post-fs script
2016-10-03 04:34:50 +08:00
service magisk_pfs /sbin/magic_mask.sh 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
2016-10-03 04:34:50 +08:00
service magisk_pfsd /sbin/magic_mask.sh 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
2016-10-03 04:34:50 +08:00
service magisk_service /sbin/magic_mask.sh 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