fix: enhance nemud_app_keep_alive check for Mac compatibility

This commit is contained in:
2026-07-06 22:40:35 +08:00
parent 99f86e359f
commit 4c0dd1b7d9
+9 -1
View File
@@ -310,8 +310,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):