OSDN Git Service

BT connection notification in not updated in status bar for second user
authorZhihai Xu <zhihaixu@google.com>
Wed, 17 Oct 2012 17:01:03 +0000 (10:01 -0700)
committerZhihai Xu <zhihaixu@google.com>
Wed, 17 Oct 2012 18:07:21 +0000 (11:07 -0700)
commitbd704c741b8c523ad747214f6f0520ac3e2caf8f
tree507ddd4e55bf1f46c341310897f8f153f009ef20
parenta595fcc57e7f0be9cf57913cd665dc99e4001b16
BT connection notification in not updated in status bar for second user
It is due to the system UI is always running as the first user. It can't receive
broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED
from bluetooth service when We switch to second user. Also the system UI also
is running as uid 10055, which will also call function isEnabled, getState,
getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service.
I allow these functions to be called by all the users.
I forget remove check for getBondState in my first patch set

bug 7333382

Change-Id: I57f39a722e78d6d2453ebfecaab043637fef4d9c
src/com/android/bluetooth/btservice/AdapterProperties.java
src/com/android/bluetooth/btservice/AdapterService.java
src/com/android/bluetooth/btservice/BondStateMachine.java