AI 144303: am: CL 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.
Original author: phillipd
Merged from: //branches/cupcake/...
Automated import of CL 144303
2 files changed