From 5f89eb6276b7fa1e954d7da79265243837b985dd Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:00:23 +0800 Subject: [PATCH] Fix: [ALAS] Add IGNORE_SERIAL list --- deploy/adb.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/adb.py b/deploy/adb.py index d4feb1235..90b4e8210 100644 --- a/deploy/adb.py +++ b/deploy/adb.py @@ -5,6 +5,14 @@ from deploy.emulator import EmulatorConnect from deploy.logger import logger from deploy.utils import * +IGNORE_SERIAL = [ + # Water-cooling display + # https://github.com/LmeSzinc/AzurLaneAutoScript/issues/3412 + 'HRBDFUN', + # USB network card + '1234567890ABCDEF', +] + def show_fix_tip(module): logger.info(f""" @@ -59,6 +67,8 @@ class AdbManager(DeployConfig): del os.environ[k] for device in adbutils.adb.iter_device(): + if device.serial in IGNORE_SERIAL: + continue logger.info(f'Init device {device}') initer = init.Initer(device, loglevel=logging.DEBUG) # MuMu X has no ro.product.cpu.abi, pick abi from ro.product.cpu.abilist