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

add: wait for cloud phone adb

This commit is contained in:
0O0o0oOoO00
2025-05-18 21:25:52 +08:00
parent d06150f507
commit 3fbc52eaea

View File

@@ -71,6 +71,9 @@ class CloudPhoneRestart(ModuleBase):
return True
return False
def wait_for_adb(self):
logger.info("Wait for adb of cloud phone")
time.sleep(15)
def wait_for_ready(self):
wait_timer = Timer(60)
@@ -88,6 +91,7 @@ class CloudPhoneRestart(ModuleBase):
self.load_chinac_api()
self.phone_restart()
self.wait_for_ready()
self.wait_for_adb()
self.config.task_delay(server_update=True)
except Exception as e:
logger.exception(e)