mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 06:25:25 +08:00
Fix: Handle AdbError: unknown host service
This commit is contained in:
@@ -115,8 +115,13 @@ def handle_adb_error(e):
|
|||||||
# the device is still available, but it needs to be disconnected and re-connected.
|
# the device is still available, but it needs to be disconnected and re-connected.
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
return True
|
return True
|
||||||
|
elif 'unknown host service' in text:
|
||||||
|
# AdbError(unknown host service)
|
||||||
|
# Another version of ADB service started, current ADB service has been killed.
|
||||||
|
# Usually because user opened a Chinese emulator, which uses ADB from the Stone Age.
|
||||||
|
logger.error(e)
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
# AdbError(device offline)
|
|
||||||
# AdbError()
|
# AdbError()
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
possible_reasons(
|
possible_reasons(
|
||||||
|
|||||||
Reference in New Issue
Block a user