OSDN Git Service

DO NOT MERGE Separate SDP procedure from bonding state (1/2)
authorUgo Yu <ugoyu@google.com>
Tue, 16 Oct 2018 06:53:35 +0000 (14:53 +0800)
committerUgo Yu <ugoyu@google.com>
Wed, 30 Jan 2019 02:51:03 +0000 (02:51 +0000)
commitdc14eb8ba01ee20dc44bcba7b3c0a17550e756fa
tree4cb86196f5bf5c3db2d5311030bae6b48c150bee
parentf4aa4700287798485eed1f356a32422d87f3569e
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.cc