1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 14:27:00 +08:00

Fix: Handle AdbError(rest) after granted root access

This commit is contained in:
LmeSzinc
2025-03-27 02:41:27 +08:00
parent 3133eaa2f7
commit e917cbd47f

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)