Fix: App control via ADB for all (#18)

This commit is contained in:
LmeSzinc 2023-06-19 03:26:59 +08:00
parent 16d5e447df
commit 639d16e8a1

View File

@ -9,7 +9,9 @@ from module.logger import logger
class AppControl(Adb, WSA, Uiautomator2): class AppControl(Adb, WSA, Uiautomator2):
hierarchy: etree._Element hierarchy: etree._Element
_app_u2_family = ['uiautomator2', 'minitouch', 'scrcpy', 'MaaTouch'] # Use ADB for all
# See https://github.com/openatx/uiautomator2/issues/565
_app_u2_family = []
def app_is_running(self) -> bool: def app_is_running(self) -> bool:
method = self.config.Emulator_ControlMethod method = self.config.Emulator_ControlMethod