Index: build/android/pylib/device/device_utils.py |
diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py |
index 8709d15962db1a5aa769f5a7cdc861081c0c3b2f..967809ff8e2860d5846f181b780e1ed7c341dc33 100644 |
--- a/build/android/pylib/device/device_utils.py |
+++ b/build/android/pylib/device/device_utils.py |
@@ -1382,6 +1382,22 @@ |
% (property_name, value), str(self)) |
@decorators.WithTimeoutAndRetriesFromInstance() |
+ def GetABI(self, timeout=None, retries=None): |
+ """Gets the device main ABI. |
+ |
+ Args: |
+ timeout: timeout in seconds |
+ retries: number of retries |
+ |
+ Returns: |
+ The device's main ABI name. |
+ |
+ Raises: |
+ CommandTimeoutError on timeout. |
+ """ |
+ return self.GetProp('ro.product.cpu.abi') |
+ |
+ @decorators.WithTimeoutAndRetriesFromInstance() |
def GetPids(self, process_name, timeout=None, retries=None): |
"""Returns the PIDs of processes with the given name. |