Skip to content

Commit

Permalink
Run loadpolicy.sh synchronously (LSPosed#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored Oct 28, 2022
1 parent 0bb1cfe commit 0646b8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ if [ "$ROOT_SOL" = 'magisk' ] || [ "$ROOT_SOL" = '' ]; then
#!/system/bin/sh
mkdir -p /data/adb/magisk
cp /sbin/* /data/adb/magisk/
sync
chmod -R 755 /data/adb/magisk
restorecon -R /data/adb/magisk
for module in \$(ls /data/adb/modules); do
Expand Down Expand Up @@ -558,7 +559,7 @@ on post-fs-data
copy /sbin/magisk.apk /dev/$TMP_PATH/stub.apk
chmod 0644 /dev/$TMP_PATH/stub.apk
rm /dev/.magisk_unblock
start $SERVER_NAME1
exec_start $SERVER_NAME1
start $SERVER_NAME2
wait /dev/.magisk_unblock 40
rm /dev/.magisk_unblock
Expand Down

0 comments on commit 0646b8e

Please sign in to comment.