| Index: common/battor/battor/battor_wrapper.py
|
| diff --git a/common/battor/battor/battor_wrapper.py b/common/battor/battor/battor_wrapper.py
|
| index d1aa1ed4d91f8df0e4cf3628695bc958942c1703..d946fafa0eaf1bcfe14e3badd77bd9a1c58fb18e 100644
|
| --- a/common/battor/battor/battor_wrapper.py
|
| +++ b/common/battor/battor/battor_wrapper.py
|
| @@ -27,6 +27,9 @@ def IsBattOrConnected(test_platform, android_device=None,
|
| 'determining support on android platform')
|
|
|
| if not android_device_map:
|
| + device_tree = find_usb_devices.GetBusNumberToDeviceTreeMap()
|
| + if len(battor_device_mapping.GetBattorList(device_tree)) == 1:
|
| + return True
|
| if android_device_file:
|
| android_device_map = battor_device_mapping.ReadSerialMapFile(
|
| android_device_file)
|
|
|