Tell me more ×  I want to create a script where I start an
emulator and after the system is fully booted, I want to install
an .apk.  How can I know when the emulator is fully booted so I
can run the install command? Here it is said that adb wait-for-
device install <app>.apk is not correct.  So how can I achieve
this? Is it possible? Is my only option to sleep for a few
minutes until I can be sure that the emulator is started?
share|improve this question Try the solution mentioned here:… – 
Ankit Jain Sep 3 '10 at 8:38 add comment  4 Answers  up vote 5
down vote accepted  adb shell getprop init.svc.bootanim  This
will tell you whether or not the boot animation is running. It's
what we use on our headless build server to check if the
emulator is up. The sys.boot_completed from dac2009 is what lead
me to find that flag. We use init.svc.bootanim instead because
boot_completed has a tendency of triggering too early.
share|improve this answer add comment  Im not sure if this works
on all devices, but it works on