fix: allow Hermit on VMOS only

This commit is contained in:
2026-07-06 22:40:36 +08:00
parent 67bd1d9a1c
commit c9edcd0a40
2 changed files with 13 additions and 1 deletions
+4
View File
@@ -137,6 +137,10 @@ class Device(Screenshot, Control, AppControl):
# if self.config.Emulator_ScreenshotMethod != 'nemu_ipc' and self.config.Emulator_ControlMethod == 'nemu_ipc':
# logger.warning('When not using nemu_ipc, both screenshot and control should not use nemu_ipc')
# self.config.Emulator_ControlMethod = 'minitouch'
# Allow Hermit on VMOS only
if self.config.Emulator_ControlMethod == 'Hermit' and not self.is_vmos:
logger.warning('ControlMethod is allowed on VMOS only')
self.config.Emulator_ControlMethod = 'minitouch'
pass
def screenshot(self):