| Index: build/android/provision_devices.py
|
| diff --git a/build/android/provision_devices.py b/build/android/provision_devices.py
|
| index 69e8168514c71940ffe5e7533188cf0050ed45f2..6b3ea1d55c60843eddcbfbe8b757234a6f840746 100755
|
| --- a/build/android/provision_devices.py
|
| +++ b/build/android/provision_devices.py
|
| @@ -207,7 +207,7 @@ def ProvisionDevice(device, options):
|
| device, device_settings.NETWORK_DISABLED_SETTINGS)
|
| if options.min_battery_level is not None:
|
| try:
|
| - device.SetUsbCharging(True)
|
| + device.SetCharging(True)
|
| ChargeDeviceToLevel(device, options.min_battery_level)
|
| except device_errors.CommandFailedError as e:
|
| logging.exception('Unable to charge device to specified level.')
|
|
|