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

Commit 66a51115 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

parents e9af549d f9834b95
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
                }
            }