Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index de211d8112b7a7afdfe4853fddee0ac06feef3d6..da87f39f4dae86130a6507681404fa322fc808f0 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -84,6 +84,13 @@ def GetEmulators(): |
return devices |
+def GetAVDs(): |
+ """Returns a list of AVDs.""" |
+ re_avd = re.compile('^[ ]+Name: ([a-zA-Z0-9_:.-]+)', re.MULTILINE) |
+ avds = re_avd.findall(cmd_helper.GetCmdOutput(['android', 'list', 'avd'])) |
+ return avds |
+ |
+ |
def GetAttachedDevices(): |
"""Returns a list of attached, online android devices. |