Invalidate the bonded status when the device is deleted
When a connected device is removed, the security record is removed from the persistent storage immediately but not entirely from the control blocks. If the devices attempt to repair, the remnants of the device record in the control blocks lead the stack to believe that the device is bonded. This triggers the bond loss handling which attempts to remove the security record before the repairing is continued. Thus an unnecessary BOND_NONE bond state change event is generated. Test: m com.android.btservices Bug: 295441750 Change-Id: Ic76924e3329ff660ef5e7a5614e3ab572fbce284
Loading
Please register or sign in to comment