fix: handle adb service reset error and prompt client reconnection

This commit is contained in:
2026-07-06 22:40:49 +08:00
parent 266ceac297
commit f9ac1f79f5
+5
View File
@@ -238,6 +238,11 @@ def handle_adb_error(e):
# Raised by uiautomator2 when current adb service is killed by another version of adb service.
logger.error(e)
return True
elif text == 'rest':
# AdbError(rest)
# Response telling adbd service has reset, client should reconnect
logger.error(e)
return True
else:
# AdbError()
logger.exception(e)