mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #92 from ionela-voinescu/force_adb_root
android: add support for forced adb root
This commit is contained in:
commit
05215e7e1b
@ -1043,9 +1043,9 @@ class AndroidTarget(Target):
|
||||
def adb_reboot_bootloader(self, timeout=30):
|
||||
adb_command(self.adb_name, 'reboot-bootloader', timeout)
|
||||
|
||||
def adb_root(self, enable=True):
|
||||
def adb_root(self, enable=True, force=False):
|
||||
if enable:
|
||||
if self._connected_as_root:
|
||||
if self._connected_as_root and not force:
|
||||
return
|
||||
adb_command(self.adb_name, 'root', timeout=30)
|
||||
self._connected_as_root = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user