From 5bc5f103104747f2687407b63cd338b04c110b2d Mon Sep 17 00:00:00 2001 From: Chienyuan Date: Mon, 16 May 2022 11:29:23 +0800 Subject: [PATCH] PBAP: Do not set phonebook access to ACCESS_REJECTED automatically The value is saved in SharedPreferences. However, it will return ACCESS_UNKNOWN in several cases. We shouldn't set it as rejected automatically. We should ask user when PBAP connect. Bug: 230712201 Test: manual Change-Id: Ia3f373b9799cf02c47dc782688430fb234491f61 --- .../com/android/settingslib/bluetooth/CachedBluetoothDevice.java | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index 2448de9834d11..7a8e5af4cee42 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -998,7 +998,6 @@ public class CachedBluetoothDevice implements Comparable == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET)) { EventLog.writeEvent(0x534e4554, "138529441", -1, ""); } - mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); } } }