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

Commit da0f273b authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Automerger Merge Worker
Browse files

Don't print passkey to logcat on non-debug builds am: fe439644 am: 447b0d24

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/14064366

Change-Id: I2cf4073eaf2da396c9e8aef03587af6bde8a856d
parents f474ae1c 447b0d24
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothProtoEnums;
import android.bluetooth.OobData;
import android.content.Intent;
import android.os.Build;
import android.os.Message;
import android.os.UserHandle;
import android.util.Log;
@@ -462,7 +463,7 @@ final class BondStateMachine extends StateMachine {
            mRemoteDevices.addDeviceProperties(address);
        }
        infoLog("sspRequestCallback: " + address + " name: " + name + " cod: " + cod
                + " pairingVariant " + pairingVariant + " passkey: " + passkey);
                + " pairingVariant " + pairingVariant + " passkey: " + (Build.IS_DEBUGGABLE ? passkey : "******"));
        int variant;
        boolean displayPasskey = false;
        switch (pairingVariant) {