1 #!/system/bin/sh 2 3 registered="$1" 4 5 while [ "$registered" != "true" ] 6 do 7 sleep 0.1 8 registered="`getprop sys.listeners.registered`" 9 done 10