Skip to content

Commit

Permalink
utilize resetprop wait mode in service script
Browse files Browse the repository at this point in the history
  • Loading branch information
programminghoch10 committed Feb 26, 2024
1 parent c594d0c commit ca37750
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magiskmodule/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ cd "$(dirname "$0")"
source ./constants.sh

waitUntilBootCompleted() {
while [ $(getprop sys.boot_completed) -ne 1 ] || [ "$(getprop init.svc.bootanim | tr '[:upper:]' '[:lower:]')" != "stopped" ]; do
resetprop -w sys.boot_completed 0 && return
while [ $(getprop sys.boot_completed) -eq 0 ]; do
sleep 10
done
}
Expand Down

0 comments on commit ca37750

Please sign in to comment.