1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-19 04:09:29 +08:00

Fix: Alas crashes if uiautomator service down. And restart the game in GamePageUnknownError

This commit is contained in:
Zuosizhu
2023-01-26 16:54:36 +08:00
parent 128fba3851
commit d5aa2d5ed4
2 changed files with 13 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ class GGXpath(Base):
def __init__(self, config, device):
self.config = config
self.device = device
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