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

Commit 62944f39 authored by Hui Peng's avatar Hui Peng
Browse files

Fix a security bypass issue in access_secure_service_from_temp_bond

Bug: 318374503
Test: m com.android.btservices | manual test against PoC | QA
Ignore-AOSP-First: security
Merged-In: I48df2c2d77810077e97d4131540277273d441998
Change-Id: I48df2c2d77810077e97d4131540277273d441998
parent 4ae5e736
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -222,7 +222,6 @@ static bool access_secure_service_from_temp_bond(const tBTM_SEC_DEV_REC* p_dev_r
                                                 bool locally_initiated,
                                                 uint16_t security_req) {
  return !locally_initiated && (security_req & BTM_SEC_IN_AUTHENTICATE) &&
    p_dev_rec->is_device_authenticated() &&
         p_dev_rec->is_bond_type_temporary();
}