OSDN Git Service

DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously...
authorTyler Freeman <fuego@google.com>
Fri, 28 Jul 2017 01:21:18 +0000 (18:21 -0700)
committerTyler Freeman <fuego@google.com>
Mon, 31 Jul 2017 21:16:15 +0000 (21:16 +0000)
commitfead72d1241d17908034828cc1035fc02eeb80d5
tree9855cb1bc2097c7b309e7c23033873755c61fe31
parent33f4a8065e07cac265ebe532d0eeaecaac0eff26
DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (3/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

(cherry picked from commit 7dc0525365025e17e289869288b1b7d5146306cc)
Merged-In: I7b1c526ee227897c003ac921078f317f96b92604

Change-Id: I9810484a136c69d487a4b415c9265913db6c5cce
btif/src/btif_core.c
btif/src/btif_storage.c