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>
Tue, 26 Jul 2016 19:47:02 +0000 (12:47 -0700)
commitdb8d8ae565b3db6a5e3187170dcb7b281a79f9da
treea312ff2a0176c651f4dc2a07c7a3741524bbd2d9
parent74dcd4eb708e4572b8bfdd701aa2bbe2b4b9f52f
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
src/com/android/bluetooth/map/BluetoothMapContentObserver.java
src/com/android/bluetooth/map/BluetoothMapObexServer.java