OSDN Git Service

Don't use SMS database until after the phone is unlocked
authorAjay Panicker <apanicke@google.com>
Thu, 21 Jul 2016 17:39:14 +0000 (10:39 -0700)
committerAjay Panicker <apanicke@google.com>
Wed, 31 Aug 2016 01:33:52 +0000 (01:33 +0000)
commit89de413eba69b0c5e128a82e0ad179cec9152578
treec38dbe47959ea74177361e1ebfd350a43f07230b
parent168c7e0f2eafaa45ba723c68dc1d8bf7706cb408
Don't use SMS database until after the phone is unlocked

When the device is encrypted and a passcode is set,
the SMS database isn't available and the MAP service
crashes when trying to access it. The service will now
respond with OBEX_SERVICE_UNAVAILABLE until the phone
is unlocked. At this point, the SMS database will
notify the content observer that all the messages are
available, and send corresponding events.

Bug: 29990836
Change-Id: I53f12d0e114212d94f16b56df7c7dbe73f6254df
(cherry picked from commit db8d8ae565b3db6a5e3187170dcb7b281a79f9da)
Merged-In: I53f12d0e114212d94f16b56df7c7dbe73f6254df
src/com/android/bluetooth/map/BluetoothMapContentObserver.java
src/com/android/bluetooth/map/BluetoothMapObexServer.java