OSDN Git Service

DO NOT MERGE Separate SDP procedure from bonding state (1/2)
authorUgo Yu <ugoyu@google.com>
Tue, 30 Oct 2018 07:10:35 +0000 (15:10 +0800)
committerUgo Yu <ugoyu@google.com>
Tue, 20 Nov 2018 09:11:02 +0000 (17:11 +0800)
commitedd7e731edad067fe08b0623be6b2745bf81a445
tree18a0d8eb3532b5863a789be20987e23519b69b59
parent730fcaa764b5060e570fd6cadfc7a9180cbca517
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, regression test.
Change-Id: I023713e07308bfc0e5bb8d67f386bcc50f6a0f85
(cherry picked from commit 122e115b87fe98ca5e5e65b9765c146f9e52b65e)
btif/src/btif_dm.c