OSDN Git Service

btif: Don't persist remote devices to the config
authorMarie Janssen <jamuraa@google.com>
Fri, 25 Mar 2016 20:37:13 +0000 (13:37 -0700)
committerMarie Janssen <jamuraa@google.com>
Mon, 4 Apr 2016 22:43:23 +0000 (15:43 -0700)
commitd9ebc239abf77a1133c3456db84444ccbc8d0fdd
tree8ba88ad34e488a71810f39b5c02fc47dd147256c
parent9a58e68a98fbe1680535a7e7641de91e89273ad8
btif: Don't persist remote devices to the config

We don't need to persist the unpaired devices to NVRAM
so skip saving them.

This fixes a regression in a previous patch where the most recent
instead of the least recent devices would be removed, making some
devices unpairable in extremely busy environments.

Bug: 26071376

Change-Id: If7ee9d960f70c836bf08b78da5f3fc852ba60a85
btif/include/btif_storage.h
btif/src/btif_config.c
osi/include/config.h
osi/src/config.c
osi/test/config_test.cpp