| 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 fccdd619d02322e10763424405f78aa477e82c6a..39dc48c1409f5134118495813b00bb363e1ebc32 100644
|
| --- a/build/android/pylib/device/device_utils.py
|
| +++ b/build/android/pylib/device/device_utils.py
|
| @@ -734,6 +734,22 @@ class DeviceUtils(object):
|
| self.old_interface.system_properties[property_name] = value
|
|
|
| @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.
|
|
|
| @@ -869,4 +885,3 @@ class DeviceUtils(object):
|
| return parallelizer_type([
|
| d if isinstance(d, DeviceUtils) else DeviceUtils(d)
|
| for d in devices])
|
| -
|
|
|