feat: use nemu_ipc if avaliable

This commit is contained in:
2026-07-05 20:18:18 +08:00
parent a2bd36f570
commit d54ff72565
+6
View File
@@ -87,6 +87,12 @@ class Device(Screenshot, Control, AppControl):
if not self.config.is_template_config and self.config.Emulator_ScreenshotMethod == 'auto':
self.run_simple_screenshot_benchmark()
# AAS only, use nemu_ipc if available
available = self.nemu_ipc_available()
logger.attr('nemu_ipc_available', available)
if available:
self.config.override(Emulator_ScreenshotMethod='nemu_ipc')
def run_simple_screenshot_benchmark(self):
"""
Perform a screenshot method benchmark, test 3 times on each method.