AI 145727: CTS: Fixes and improvements for device reboots
Recently, we see a new behavior where the device indicates that the boot
is complete, but then the adb connection drops shortly after, while the
CTS is trying to install a package. This means the CTS never sees a result
for the package installation and keeps waiting forever. As a workaround,
add a delay after the device indicates that the boot is complete, so that
the connection is fully restored by the time the CTS resumes. Create a bugreport on the device if the connection drops during the time we wait after reboot.
Also fix a problem in the disconnect notification.
Automated import of CL 145727
5 files changed