Copy magisk utils to /data/adb/magisk

This commit is contained in:
LoveSy 2022-04-12 17:46:42 +08:00 committed by GitHub
parent 039cf748e5
commit 74e041bc0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,6 +292,9 @@ jobs:
sudo cp magisk.zip system/sbin/magisk.apk
sudo tee -a system/sbin/loadpolicy.sh <<EOF
#!/system/bin/sh
mkdir -p /data/adb/magisk
cp /sbin/* /data/adb/magisk/
chmod -R 755 /data/adb/magisk
restorecon -R /data/adb/magisk
for module in \$(ls /data/adb/modules); do
if ! [ -f "/data/adb/modules/\$module/disable" ] && [ -f "/data/adb/modules/\$module/sepolicy.rule" ]; then