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

Commit 6e3b8143 authored by jiabin's avatar jiabin
Browse files

Do not log sensitive information in AudioService.

Sensitive information, such as IP and MAC address, should not be logged.
In AudioService, only log the last 3 octets of BT device address.

Test: make, connect BT device and log
Bug: 162299985
Change-Id: I99db812efc327e6f3ebe791274998291a140a5b6
parent db22e129
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.
     *