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

Commit f9834b95 authored by Bhakthavatsala Raghavendra's avatar Bhakthavatsala Raghavendra Committed by Gerrit Code Review
Browse files

Merge "Donot check bond state for BREDR security LEVEL2" into main

parents 915ce5e8 053e1314
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
                }
            }