Chromium Code Reviews| Index: build/android/enable_asserts.py |
| diff --git a/build/android/enable_asserts.py b/build/android/enable_asserts.py |
| index 1823899aea99d5a07e7c4ddb676872617f5f07c6..2830035550f501c488460d30a4ab98cbf75b318d 100755 |
| --- a/build/android/enable_asserts.py |
| +++ b/build/android/enable_asserts.py |
| @@ -6,6 +6,7 @@ |
| """Enables dalvik vm asserts in the android device.""" |
| +from pylib import android_commands |
| from pylib.device import device_utils |
| import optparse |
| import sys |
| @@ -21,10 +22,11 @@ def main(argv): |
| help='Removes the dalvik.vm.enableassertions property') |
| options, _ = option_parser.parse_args(argv) |
| - device = device_utils.DeviceUtils() |
| - if options.set_asserts != None: |
| - if device.old_interface.SetJavaAssertsEnabled(options.set_asserts): |
| - device.old_interface.Reboot(full_reboot=False) |
| + devices = android_commands.GetAttachedDevices() |
| + for device in [device_utils.DeviceUtils(serial) for serial in devices]: |
|
jbudorick
2014/04/23 15:29:58
I think it'd be good to have this optionally accep
|
| + if options.set_asserts != None: |
| + if device.old_interface.SetJavaAssertsEnabled(options.set_asserts): |
| + device.old_interface.Reboot(full_reboot=False) |
| if __name__ == '__main__': |