mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-12 04:23:35 +08:00
Fix: Skip adb connect on android serial
This commit is contained in:
@@ -474,7 +474,11 @@ class Connection(ConnectionAttr):
|
|||||||
bool: If success
|
bool: If success
|
||||||
"""
|
"""
|
||||||
# Skip for emulator-5554
|
# Skip for emulator-5554
|
||||||
if 'emulator' in serial:
|
if 'emulator-' in serial:
|
||||||
|
logger.info(f'"{serial}" is a `emulator-*` serial, skip adb connect')
|
||||||
|
return True
|
||||||
|
if re.match(r'^[a-zA-Z0-9]+$', serial):
|
||||||
|
logger.info(f'"{serial}" seems to be a Android serial, skip adb connect')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Disconnect offline device before connecting
|
# Disconnect offline device before connecting
|
||||||
|
|||||||
Reference in New Issue
Block a user