Fix: Unable to install minitouch in MuMu X (#2134)

This commit is contained in:
SarContDeli 2023-01-17 22:37:56 +08:00 committed by GitHub
parent ba1996702c
commit 73b5154505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class AdbManager(DeployConfig):
for device in adbutils.adb.iter_device():
initer = init.Initer(device, loglevel=logging.DEBUG)
# 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']:
initer.abi = initer.abis[0]
initer.set_atx_agent_addr('127.0.0.1:7912')
for _ in range(2):

View File

@ -570,6 +570,9 @@ class Connection(ConnectionAttr):
"""
logger.info('Install uiautomator2')
init = u2.init.Initer(self.adb, loglevel=logging.DEBUG)
# MuMu X has no ro.product.cpu.abi, pick abi from ro.product.cpu.abilist
if init.abi not in ['x86_64', 'x86', 'arm64-v8a', 'armeabi-v7a', 'armeabi']:
init.abi = init.abis[0]
init.set_atx_agent_addr('127.0.0.1:7912')
try:
init.install()