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

Commit 37484b91 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not log sensitive information in AudioService."

parents cbf59849 6e3b8143
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1032,6 +1032,18 @@ public final class BluetoothDevice implements Parcelable {
        return mAddress;
    }

    /**
     * Returns the anonymized hardware address of this BluetoothDevice. The first three octets
     * will be suppressed for anonymization.
     * <p> For example, "XX:XX:XX:AA:BB:CC".
     *
     * @return Anonymized bluetooth hardware address as string
     * @hide
     */
    public String getAnonymizedAddress() {
        return "XX:XX:XX" + getAddress().substring(8);
    }

    /**
     * Get the friendly Bluetooth name of the remote device.
     *