Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3161)

Unified Diff: build/android/enable_asserts.py

Issue 249533002: Fix build/android/enable_asserts.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698