From 9e6cfde8321ece662292d6b79f6c218c36fae6c9 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 16 Sep 2019 14:08:28 +0100 Subject: [PATCH] AndroidTarget: Fix additional paramter to `adb_root` Remove the target `adb_name` from the call as this method is an instance method. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 2fba754..42fbafb 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -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')