OSDN Git Service

Bump GATT cache file version marker
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 13 Dec 2017 18:02:32 +0000 (10:02 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 13 Dec 2017 21:53:25 +0000 (21:53 +0000)
commit93d7ffd15cb5d25e964f64862030020bc6bb7895
tree8c07c1854fac4115ecc5b4362163ed825e7dac30
parent9d4686bd2ff8e8010d37ea0825a28aa181e8a565
Bump GATT cache file version marker

In commit 819e2ecb84, the type used for UUID in the GATT cache was changed
from tBT_UUID to bluetooth:Uuid. This changed the binary representation of
this field. 18 bytes were used previously, now only 16 bytes are used.
This change made GATT cache file format incompatible between Android
versions, and requires an increment of cache file format version.

Fixes: 70297056
Test: added GattCacheTest
Change-Id: I4bceada300dbe3aab10d14df2aa853e4573c536e
bta/Android.bp
bta/gatt/bta_gattc_cache.cc
bta/test/gatt_cache_file_test.cc [new file with mode: 0644]