OSDN Git Service

DO NOT MERGE Separate SDP procedure from bonding state (1/2)
authorUgo Yu <ugoyu@google.com>
Fri, 2 Nov 2018 12:32:14 +0000 (20:32 +0800)
committerUgo Yu <ugoyu@google.com>
Tue, 20 Nov 2018 09:12:17 +0000 (17:12 +0800)
commitf3681c8616af4d052c410ba3e88747541a974bf5
tree0cdcce8c592afc490b3c8520aa51e2d0106d6c14
parent40cbdde492d59e51f36c6b76ca7fcc1acceac2e8
DO NOT MERGE Separate SDP procedure from bonding state (1/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.
- Report empty UUID to Java 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: I023713e07308bfc0e5bb8d67f386bcc50f6a0f85
(cherry picked from commit 122e115b87fe98ca5e5e65b9765c146f9e52b65e)
btif/src/btif_dm.cc