• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revision000e1d202ce57b6357b65c3d0a5b227f8dcc8d6e (tree)
Zeit2019-11-06 04:10:53
AutorZongheng Wang <wangzongheng@goog...>
CommiterVasyl Gello

Log Message

Set default phonebook access to ACCESS_REJECTED when user didn't choose one

When there's no users' choice to tell us whether to share their
phonebook information to the Bluetooth device, set the phonebook access
permission to ACCESS_REJECTED.

Bug: 138529441
Test: Manual test
Change-Id: Iefabeb731b941f09fe1272ac7b7cd2feba75c8df
Merged-In: Iefabeb731b941f09fe1272ac7b7cd2feba75c8df
(cherry picked from commit 9b3cb0f06b7c4907c293aa65e68c7ed6e4962d4b)

Ändern Zusammenfassung

Diff

--- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
+++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
@@ -25,6 +25,7 @@ import android.content.SharedPreferences;
2525 import android.os.ParcelUuid;
2626 import android.os.SystemClock;
2727 import android.text.TextUtils;
28+import android.util.EventLog;
2829 import android.util.Log;
2930 import android.bluetooth.BluetoothAdapter;
3031
@@ -838,10 +839,9 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
838839 == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE ||
839840 mDevice.getBluetoothClass().getDeviceClass()
840841 == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET) {
841- setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
842- } else {
843- setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED);
842+ EventLog.writeEvent(0x534e4554, "138529441", -1, "");
844843 }
844+ setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED);
845845 }
846846 }
847847 }