mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 10:35:26 +00:00
45 lines
918 B
Plaintext
45 lines
918 B
Plaintext
# Triggers
|
|
|
|
on post-fs
|
|
# Paths
|
|
export PATH /magisk/.core/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/magisk/.core/busybox:/system/xbin
|
|
|
|
start magisk_pfs
|
|
wait /dev/.magisk.unblock 20
|
|
rm /dev/.magisk.unblock
|
|
|
|
on post-fs-data
|
|
start magisk_pfsd
|
|
wait /dev/.magisk.unblock 40
|
|
rm /dev/.magisk.unblock
|
|
|
|
on property:magisk.hide=1
|
|
restart magisk_hide
|
|
|
|
# Services
|
|
|
|
# launch post-fs script
|
|
service magisk_pfs /sbin/magic_mask.sh post-fs
|
|
user root
|
|
seclabel u:r:su:s0
|
|
oneshot
|
|
|
|
# launch post-fs-data script
|
|
service magisk_pfsd /sbin/magic_mask.sh post-fs-data
|
|
user root
|
|
seclabel u:r:su:s0
|
|
oneshot
|
|
|
|
# launch late_start script
|
|
service magisk_service /sbin/magic_mask.sh service
|
|
class late_start
|
|
user root
|
|
seclabel u:r:su:s0
|
|
oneshot
|
|
|
|
# launch magisk hide script
|
|
service magisk_hide /sbin/magic_mask.sh hide
|
|
user root
|
|
seclabel u:r:su:s0
|
|
oneshot
|