PBAP: Disable SIM card contact supported
* In BluetoothPbapObexServer.java's onGet() method, the logic says that
we do not currently support syncing contacts from SIM card, but yet
our PBAP SDP record indicates such support.
* When car kits receive such SDP record, they will try getting SIM card
contacts from us, and we will reply with OBEX_HTTP_NOT_ACCEPTABLE
* This cause certain car kit to disconnect PBAP from us, resulting in
unfinished phonebook sync
Bug: 67084846
Test: Test connect PBAP to car kit
Change-Id: I0f892714e5f7669224bd696ddc93f7cda2d95e4f
diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapService.java b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
index 89bb91f..966dd89 100644
--- a/src/com/android/bluetooth/pbap/BluetoothPbapService.java
+++ b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
@@ -196,7 +196,7 @@
private static final int SDP_PBAP_SERVER_VERSION = 0x0102;
- private static final int SDP_PBAP_SUPPORTED_REPOSITORIES = 0x0003;
+ private static final int SDP_PBAP_SUPPORTED_REPOSITORIES = 0x0001;
private static final int SDP_PBAP_SUPPORTED_FEATURES = 0x021F;