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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user