File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ cd "$(dirname "$0")"
44source ./constants.sh
55
66waitUntilBootCompleted () {
7- while [ $( getprop sys.boot_completed) -ne 1 ] || [ " $( getprop init.svc.bootanim | tr ' [:upper:]' ' [:lower:]' ) " != " stopped" ]; do
7+ resetprop -w sys.boot_completed 0 && return
8+ while [ $( getprop sys.boot_completed) -eq 0 ]; do
89 sleep 10
910 done
1011}
Original file line number Diff line number Diff line change 22cd " $( dirname " $0 " ) "
33source ./constants.sh
44
5- (
6- while [ $( getprop sys.boot_completed) -ne 1 ] || [ " $( getprop init.svc.bootanim | tr ' [:upper:]' ' [:lower:]' ) " != " stopped" ]; do
7- sleep 1
5+ waitUntilBootCompleted () {
6+ resetprop -w sys.boot_completed 0 && return
7+ while [ $( getprop sys.boot_completed) -eq 0 ]; do
8+ sleep 10
89 done
10+ }
11+
12+ (
13+ waitUntilBootCompleted
914 sleep 10
1015 pm uninstall -k " $VIPERFXPACKAGE "
1116) &
You can’t perform that action at this time.
0 commit comments