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

Commit e304a38f authored by William Escande's avatar William Escande
Browse files

CallAudioState: Remove sensitive info from log.

Bluetooth has made a lot change to stop printing the address in the
logcat and instead it is printing an obfuscated version of the address
thanks to the toString method.

Bug: 328846856
Fix: 328846856
Test: atest TelecomUnitTests
Flag: Exempt log change
Change-Id: Iccdc3e1bc2ca4dc3858dfeee48c3cb55299fee7a
parent 0a872fc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -159,7 +159,7 @@ public final class CallAudioState implements Parcelable {
    @Override
    @Override
    public String toString() {
    public String toString() {
        String bluetoothDeviceList = supportedBluetoothDevices.stream()
        String bluetoothDeviceList = supportedBluetoothDevices.stream()
                .map(BluetoothDevice::getAddress).collect(Collectors.joining(", "));
                .map(BluetoothDevice::toString).collect(Collectors.joining(", "));


        return String.format(Locale.US,
        return String.format(Locale.US,
                "[AudioState isMuted: %b, route: %s, supportedRouteMask: %s, " +
                "[AudioState isMuted: %b, route: %s, supportedRouteMask: %s, " +