commit | f5ec538f27eb47e545ef06c376078d8ee3f35a72 | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Tue Jan 03 11:37:38 2017 -0800 |
committer | Marie Janssen <jamuraa@google.com> | Wed Jan 04 11:06:27 2017 -0800 |
tree | a0d28956af9952c711622e05223db3bb836e816a | |
parent | c7c899bbe25bdac33dbe42aaefc37d39f28cf714 [diff] |
Bluetooth: don't output dumpsys info twice Dumpsys info was printed in the "Application Services" section as well as the bluetooth_manager section. Add an argument to print so it prints from here, and doesn't in the other section. Test: run a bugreport, check in "APP SERVICES" section Bug: 29356402 Change-Id: I8adedaeac54c9a538c581459654dbdf96361e046
diff --git a/services/core/java/com/android/server/BluetoothManagerService.java b/services/core/java/com/android/server/BluetoothManagerService.java index adc59de..4f43eac 100644 --- a/services/core/java/com/android/server/BluetoothManagerService.java +++ b/services/core/java/com/android/server/BluetoothManagerService.java
@@ -2029,6 +2029,11 @@ } writer.flush(); + if (args.length == 0) { + // Add arg to produce output + args = new String[1]; + args[0] = "--print"; + } } if (mBluetoothBinder == null) {