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

Commit 053e1314 authored by Bhakthavatsala Raghavendra's avatar Bhakthavatsala Raghavendra
Browse files

Donot check bond state for BREDR security LEVEL2


Test: atest avatar
Flag: TEST ONLY
Bug: 363006381
Change-Id: I943a25416d36d28d118407a3d6ac23470c415c80
parent 7b87ed87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ class Security(private val context: Context) : SecurityImplBase(), Closeable {
                val isEncrypted = bluetoothDevice.isEncrypted()
                when (level) {
                    LEVEL1 -> !isEncrypted || bondState == BOND_BONDED
                    LEVEL2 -> isEncrypted && bondState == BOND_BONDED
                    LEVEL2 -> isEncrypted
                    else -> false
                }
            }