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

Commit 9ea316bb authored by Bhakthavatsala Raghavendra's avatar Bhakthavatsala Raghavendra Committed by Automerger Merge Worker
Browse files

Merge "Donot check bond state for BREDR security LEVEL2" into main am: f9834b95 am: 66a51115

parents 398e1725 66a51115
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
                }
            }