Previously, I employed the following way:
adb -s emulator-5554 get-state
When the above command returns "device" string it means that the starting Android will finish loading in 20-30 seconds. Really, there is not any guarantees that Android will fit into this time.
In case, when more accurate estimation is required the method with reading "getprop sys.boot_completed" comes to hands. When Android GUI is about to appears on the screen the variable "sys.boot_completed" has been set to "1"
adb -s emulator-5554 get-state
When the above command returns "device" string it means that the starting Android will finish loading in 20-30 seconds. Really, there is not any guarantees that Android will fit into this time.
In case, when more accurate estimation is required the method with reading "getprop sys.boot_completed" comes to hands. When Android GUI is about to appears on the screen the variable "sys.boot_completed" has been set to "1"
No comments:
Post a Comment