mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 10:35:26 +00:00
3315228a90
1. Add new trigger "load_magisk_props_action" in init.magisk.rc 2. Patch init*.rc with new trigger 3. Update resetprop to handle prop value with spaces 4. Handle the case when modules contains file/folder names with spaces
47 lines
920 B
Plaintext
47 lines
920 B
Plaintext
# Triggers
|
|
|
|
on post-fs
|
|
start magisk_pfs
|
|
wait /dev/.magisk.unblock 20
|
|
rm /dev/.magisk.unblock
|
|
|
|
on post-fs-data
|
|
start magisk_pfsd
|
|
wait /dev/.magisk.unblock 60
|
|
rm /dev/.magisk.unblock
|
|
|
|
on load_magisk_props_action
|
|
start magisk_props
|
|
wait /dev/.magisk.unblock 5
|
|
rm /dev/.magisk.unblock
|
|
|
|
on property:magisk.restart_pfsd=1
|
|
trigger post-fs-data
|
|
|
|
# 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
|
|
|
|
# Load module props
|
|
service magisk_props /sbin/magic_mask.sh load_magisk_props
|
|
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
|