mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Handle AdbError: unknown host service
This commit is contained in:
parent
aa969ca090
commit
49a2ec6519
@ -115,8 +115,13 @@ def handle_adb_error(e):
|
||||
# the device is still available, but it needs to be disconnected and re-connected.
|
||||
logger.error(e)
|
||||
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:
|
||||
# AdbError(device offline)
|
||||
# AdbError()
|
||||
logger.exception(e)
|
||||
possible_reasons(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user