1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

AndroidTarget: Fix additional paramter to adb_root

Remove the target `adb_name` from the call as this method is an instance
method.
This commit is contained in:
Marc Bonnici 2019-09-16 14:08:28 +01:00 committed by setrofim
parent 4fe0b2cb64
commit 9e6cfde832

View File

@ -1534,7 +1534,7 @@ class AndroidTarget(Target):
raise TargetStableError('Cannot enable adb root without adb connection')
if enable and self.connected_as_root and not force:
return
self.conn.adb_root(self.adb_name, enable=enable)
self.conn.adb_root(enable=enable)
def is_screen_on(self):
output = self.execute('dumpsys power')