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

Commit 447b0d24 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

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

Change-Id: Ica94564a7e0a99e22a908a6b8a47c350f7638578
parents d600b93d fe439644
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,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;
@@ -460,7 +461,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) {