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

Commit 5bf0a0d4 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Don't print passkey to logcat on non-debug builds

Bug: 183961896
Test: compilation
Change-Id: I56d3a640ff36cbfe4ce6c1b97a2d217836ace10e
parent 4fd87dfd
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;
@@ -459,7 +460,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) {