1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-18 16:29:29 +08:00

Merge branch 'LmeSzinc:master' into master

This commit is contained in:
梦念逍遥
2023-01-18 19:36:34 +08:00
committed by GitHub
29 changed files with 625 additions and 50 deletions

View File

@@ -95,11 +95,8 @@ class AScreenCap(Connection):
filepath = os.path.join(self.config.ASCREENCAP_FILEPATH_LOCAL, ver, arc, 'ascreencap')
if not os.path.exists(filepath):
logger.critical('No suitable version of aScreenCap lib available for this device')
if self.is_mumu_family:
logger.critical('If you are using MuMu X, please set screenshot method to scrcpy')
else:
logger.critical('Please use ADB or uiautomator2 for screenshots instead')
raise RequestHumanTakeover
logger.critical('Please use ADB or uiautomator2 for screenshots instead')
raise RequestHumanTakeover
logger.info(f'pushing {filepath}')
self.adb_push(filepath, self.config.ASCREENCAP_FILEPATH_REMOTE)