1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:39:25 +08:00

Fix: Restart ATX and UiAutomator at an incorrect situation

This commit is contained in:
Zuosizhu
2023-02-24 21:01:00 +08:00
parent 747a333564
commit 9f0ee98000
4 changed files with 15 additions and 9 deletions

View File

@@ -12,8 +12,6 @@ class GGU2(Base):
self.factor = 200
self.config = config
self.device = device
logger.info('Reset UiAutomator')
u2.connect(self.config.Emulator_Serial).reset_uiautomator()
self.d = u2.connect(self.config.Emulator_Serial)
self.gg_package_name = deep_get(self.config.data, keys='GameManager.GGHandler.GGPackageName')
self.d.wait_timeout = 10.0