AI 144302: CTS: Improve device restart behaviour (ADB workaround)
  - Instead of polling the log and searching for a string that indicates that the boot is complete, query the dev.bootcomplete property.
  - Use the ddmlib to poll the device boot status instead of a system call to adb, because of a suspected race condition when using both simultaneously.
  - If the device fails to register after a restart, kill the adb server and the ddmlib adb connection again.
  - Minor cleanups in comments and method names.

Automated import of CL 144302
2 files changed
tree: bc2668d8d00451cd5620ef1652ae69124d326d51
  1. tests/
  2. tools/
  3. Android.mk