OSDN Git Service

DO NOT MERGE Separate SDP procedure from bonding state (1/2)
authorUgo Yu <ugoyu@google.com>
Thu, 23 May 2019 11:06:56 +0000 (19:06 +0800)
committerNikoli Cartagena <dargeren@google.com>
Tue, 11 Jun 2019 00:09:45 +0000 (17:09 -0700)
commit12df1a2282e6d591bd0e1db75f0c38067a31ef40
tree4941f9e93d66b00f23262778cef224f94f986972
parent23c8efe27265e9e34a634ae1ef5d1036eb5e937d
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 for a classic
  Bluetooth device is completed.
- Send BONDING event to Java when static identity address is
  first obtained during crosskey pairing
- Send BONDING event to Java for the initial random address
  before send BONDED event
- Do not send bond event for static identity address when SDP is done.
- Make sure pairing control block always get cleaned up when both SDP
  and pairing are done
- Send empty UUIDs to Java layer to unblock bonding intent broadcast
  when SDP fails

Bug: 79703832
Test: runtest bluetooth, regression test
Change-Id: Ic33ca045b996c02a7c98e458f791a1747a8ea6d5
(cherry picked from commit 6628beb969f3f8e58972d2c2eb8b4bc053a11109)
btif/src/btif_dm.cc