From a1bc3c94be5391fc95ecd2342d79afcc605d43fc Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Fri, 12 Jul 2024 02:06:17 +0800 Subject: [PATCH] Fix: [ALAS] is_mumu_over_version_356 is True on mumu mac (cherry picked from commit 834ef85cdb1272b04ba952d4d637d084407fa92a) --- module/device/connection.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module/device/connection.py b/module/device/connection.py index 19509a1b8..fdc03a994 100644 --- a/module/device/connection.py +++ b/module/device/connection.py @@ -312,8 +312,16 @@ class Connection(ConnectionAttr): Returns: bool: If MuMu12 version >= 3.5.6, which has nemud.app_keep_alive and always be a vertical device + MuMu PRO on mac has the same feature """ - return self.nemud_app_keep_alive != '' + if self.nemud_app_keep_alive != '': + return True + if IS_MACINTOSH: + res = self.adb_getprop('nemud.player_engine') + logger.attr('nemud.player_engine', res) + if 'MACPRO' in res: + return True + return False @cached_property def _nc_server_host_port(self):