DO NOT MERGE Separate SDP procedure from bonding state (2/2)
- Do not stay in bonding state if the device is paried but still
discovering service.
- Report BOND_BONDED to Java after authentication is completed.
- Change bond state to bond none if a classic Bluetooth device
SDP failed while pairing.
- Hold BOND_BONDED intent util SDP is findished.
- Only accept profile connection for the device is at bonded
state. Any attempt to connect while bonding would potentially
lead to an unauthorized connection.
Bug: 79703832
Test: runtest bluetooth
Change-Id: I141f7daf84e74f9d4e472206b7fe94319f544227
(cherry picked from commit c9c30ef6f8b4f54f66fbfa2c1c0a9826f89b05e2)
(cherry picked from commit a29d558076e5247954217f092494a23e91da5cbc)
13 files changed