Index: build/android/gyp/util/build_device.py |
diff --git a/build/android/gyp/util/build_device.py b/build/android/gyp/util/build_device.py |
index 11f6277453ba67dbf0dec15517f09c6a2721169b..ad850748bf534e0d0865fc03e1f669e21555f988 100644 |
--- a/build/android/gyp/util/build_device.py |
+++ b/build/android/gyp/util/build_device.py |
@@ -18,8 +18,6 @@ sys.path.append(BUILD_ANDROID_DIR) |
from pylib import android_commands |
-from pylib.android_commands import GetAttachedDevices |
- |
class BuildDevice(object): |
def __init__(self, configuration): |
@@ -52,8 +50,8 @@ class BuildDevice(object): |
return matches[0] if matches else None |
-def GetConfigurationForDevice(id): |
- adb = android_commands.AndroidCommands(id) |
+def GetConfigurationForDevice(device_id): |
+ adb = android_commands.AndroidCommands(device_id) |
configuration = None |
has_root = False |
is_online = adb.IsOnline() |
@@ -69,7 +67,7 @@ def GetConfigurationForDevice(id): |
cmd_output = adb.RunShellCommand(cmd) |
configuration = { |
- 'id': id, |
+ 'id': device_id, |
'description': cmd_output[-1], |
'install_metadata': cmd_output[:-1], |
} |