Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Unified Diff: adb/contrib/high.py

Issue 2177573003: Add option to send reboot command and not wait for device. (Closed) Base URL: https://github.com/luci/python-adb.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« adb/contrib/adb_commands_safe.py ('K') | « adb/contrib/adb_commands_safe.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adb/contrib/high.py
diff --git a/adb/contrib/high.py b/adb/contrib/high.py
index 341281f5c558cb55b40d8dcad1561f773a2d69b8..3f25b653dc152707374b7e4a25be782ccf56a7f3 100644
--- a/adb/contrib/high.py
+++ b/adb/contrib/high.py
@@ -432,15 +432,18 @@ class HighDevice(object):
def PushContent(self, *args, **kwargs):
return self._device.PushContent(*args, **kwargs)
- def Reboot(self):
+ def Reboot(self, wait=True):
"""Reboots the phone then Waits for the device to come back.
adbd running on the phone will likely not be in Root(), so the caller should
call Root() right afterward if desired.
"""
- if not self._device.Reboot():
+ if not self._device.Reboot(wait=wait):
return False
- return self.WaitUntilFullyBooted()
+ return self.WaitUntilFullyBooted() if wait else True
+
+ def Reset(self, new_endpoint=None):
+ self._device.ResetHandle(new_endpoint=new_endpoint)
def Remount(self):
return self._device.Remount()
« adb/contrib/adb_commands_safe.py ('K') | « adb/contrib/adb_commands_safe.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698