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 03d5f2a275a86f2519f5161694453ca8131ac45c..11f6277453ba67dbf0dec15517f09c6a2721169b 100644 |
--- a/build/android/gyp/util/build_device.py |
+++ b/build/android/gyp/util/build_device.py |
@@ -11,13 +11,15 @@ import os |
import re |
import sys |
-import build_utils # pylint: disable=F0401 |
+import build_utils |
BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..', '..') |
sys.path.append(BUILD_ANDROID_DIR) |
from pylib import android_commands |
+from pylib.android_commands import GetAttachedDevices |
+ |
class BuildDevice(object): |
def __init__(self, configuration): |
@@ -50,8 +52,8 @@ class BuildDevice(object): |
return matches[0] if matches else None |
-def GetConfigurationForDevice(device_id): |
- adb = android_commands.AndroidCommands(device_id) |
+def GetConfigurationForDevice(id): |
+ adb = android_commands.AndroidCommands(id) |
configuration = None |
has_root = False |
is_online = adb.IsOnline() |
@@ -67,7 +69,7 @@ def GetConfigurationForDevice(device_id): |
cmd_output = adb.RunShellCommand(cmd) |
configuration = { |
- 'id': device_id, |
+ 'id': id, |
'description': cmd_output[-1], |
'install_metadata': cmd_output[:-1], |
} |