mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 10:37:36 +08:00
Fix: Ignore device that getprop is unavailable
This commit is contained in:
parent
33cefa9817
commit
ab27a00125
@ -59,10 +59,15 @@ class AdbManager(DeployConfig):
|
|||||||
del os.environ[k]
|
del os.environ[k]
|
||||||
|
|
||||||
for device in adbutils.adb.iter_device():
|
for device in adbutils.adb.iter_device():
|
||||||
|
logger.info(f'Init device {device}')
|
||||||
initer = init.Initer(device, loglevel=logging.DEBUG)
|
initer = init.Initer(device, loglevel=logging.DEBUG)
|
||||||
# MuMu X has no ro.product.cpu.abi, pick abi from ro.product.cpu.abilist
|
# MuMu X has no ro.product.cpu.abi, pick abi from ro.product.cpu.abilist
|
||||||
if initer.abi not in ['x86_64', 'x86', 'arm64-v8a', 'armeabi-v7a', 'armeabi']:
|
if initer.abi not in ['x86_64', 'x86', 'arm64-v8a', 'armeabi-v7a', 'armeabi']:
|
||||||
initer.abi = initer.abis[0]
|
initer.abi = initer.abis[0]
|
||||||
|
# /bin/sh: getprop: not found
|
||||||
|
if 'getprop' in initer.abi:
|
||||||
|
logger.warning(f'Cannot getprop from device {device}, result: {initer.abi}')
|
||||||
|
continue
|
||||||
initer.set_atx_agent_addr('127.0.0.1:7912')
|
initer.set_atx_agent_addr('127.0.0.1:7912')
|
||||||
|
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
|
Loading…
Reference in New Issue
Block a user