mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-01-24 00:41:10 +01:00
Load sepolicy of magisk modules
This commit is contained in:
parent
153c0bf4de
commit
b24f52521e
14
.github/workflows/magisk.yml
vendored
14
.github/workflows/magisk.yml
vendored
@ -169,6 +169,14 @@ jobs:
|
|||||||
sudo chown root:root system/sbin
|
sudo chown root:root system/sbin
|
||||||
sudo chmod 0700 system/sbin
|
sudo chmod 0700 system/sbin
|
||||||
sudo cp magisk/* system/sbin/
|
sudo cp magisk/* system/sbin/
|
||||||
|
sudo tee -a system/sbin/loadpolicy.sh <<EOF
|
||||||
|
#!/system/bin/sh
|
||||||
|
for module in $(ls /data/adb/modules); do
|
||||||
|
if ! [ -f "/data/adb/modules/$module/disable" ] && [ -f "/data/adb/modules/$module/sepolicy.rule" ]; then
|
||||||
|
/sbin/magiskpolicy --live --apply "/data/adb/modules/$module/sepolicy.rule"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
EOF
|
||||||
sudo find system/sbin -type f -exec chmod 0755 {} \;
|
sudo find system/sbin -type f -exec chmod 0755 {} \;
|
||||||
sudo find system/sbin -type f -exec chown root:root {} \;
|
sudo find system/sbin -type f -exec chown root:root {} \;
|
||||||
sudo find system/sbin -type f -exec chcon --reference system/product {} \;
|
sudo find system/sbin -type f -exec chcon --reference system/product {} \;
|
||||||
@ -196,10 +204,16 @@ jobs:
|
|||||||
mkdir /dev/wsa-magisk/.magisk/mirror 700
|
mkdir /dev/wsa-magisk/.magisk/mirror 700
|
||||||
mkdir /dev/wsa-magisk/.magisk/block 700
|
mkdir /dev/wsa-magisk/.magisk/block 700
|
||||||
rm /dev/.magisk_unblock
|
rm /dev/.magisk_unblock
|
||||||
|
start IhhslLhHYfse
|
||||||
start FAhW7H9G5sf
|
start FAhW7H9G5sf
|
||||||
wait /dev/.magisk_unblock 40
|
wait /dev/.magisk_unblock 40
|
||||||
rm /dev/.magisk_unblock
|
rm /dev/.magisk_unblock
|
||||||
|
|
||||||
|
service IhhslLhHYfse /system/bin/sh /sbin/loadpolicy.sh
|
||||||
|
user root
|
||||||
|
seclabel u:r:magisk:s0
|
||||||
|
oneshot
|
||||||
|
|
||||||
service FAhW7H9G5sf /dev/wsa-magisk/magisk --post-fs-data
|
service FAhW7H9G5sf /dev/wsa-magisk/magisk --post-fs-data
|
||||||
user root
|
user root
|
||||||
seclabel u:r:magisk:s0
|
seclabel u:r:magisk:s0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user