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