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)
committerJP Sugarbroad <jpsugar@google.com>
Tue, 12 Feb 2019 21:10:31 +0000 (13:10 -0800)
commit5cd6a9f1a8d4b6e8fca2b69dbdaaa8faed27c072
treee2f8c9812e0c7be25208e4279d9003514a758fc9
parent2736fbc8fcf61e3301f31fec6411f112a7db4720
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)
(cherry picked from commit edd7e731edad067fe08b0623be6b2745bf81a445)
btif/src/btif_dm.c