Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b078d6ef authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22803 into eclair

* changes:
  Add uuids to adb shell dumpsys bluetooth
parents d41c5776 1eada0d3
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -1083,10 +1083,21 @@ public class BluetoothService extends IBluetooth.Stub {

        pw.println("\n--Known devices--");
        for (String address : mDeviceProperties.keySet()) {
            int bondState = mBondState.getBondState(address);
            pw.printf("%s %10s (%d) %s\n", address,
                       toBondStateString(mBondState.getBondState(address)),
                       toBondStateString(bondState),
                       mBondState.getAttempt(address),
                       getRemoteName(address));
            if (bondState == BluetoothDevice.BOND_BONDED) {
                String[] uuids = getRemoteUuids(address);
                if (uuids == null) {
                    pw.printf("\tuuids = null\n");
                } else {
                    for (String uuid : uuids) {
                        pw.printf("\t" + uuid);
                    }
                }
            }
        }

        String value = getProperty("Devices");