OSDN Git Service

ContextMap: Remove connection references when an app is removed
authorKyle Horimoto <khorimoto@google.com>
Wed, 31 Aug 2016 00:54:16 +0000 (17:54 -0700)
committerAjay Panicker <apanicke@google.com>
Wed, 31 Aug 2016 17:58:57 +0000 (17:58 +0000)
commit9d2ae23701114aedad1c8ea9ef17f93cc07adfd0
tree7a2faa0249dab16d5b7f3234c57d576e6af2fc78
parent620bbffd49f5497dba3e975c4baa44653e88235d
ContextMap: Remove connection references when an app is removed

This fixes an issue which could cause a stale Bluetooth address to be
used. The issue would manifest itself when an app is added with a
connection ID, then the app is removed and app is re-added, causing
the original connection ID (which could be stale) to be used.

Bug: 30765855
Change-Id: Idacbbfb07d895bf9276fdd986100e832a54d81b0
(cherry picked from commit 660208ad2ee2ea394adab0d1c1cea9b068bb70c6)
src/com/android/bluetooth/gatt/ContextMap.java