• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

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

packages/apps/Settings


コミットメタ情報

リビジョン1951d27669b1e8eab96f4082cb00cb1d030602ec (tree)
日時2020-11-19 19:20:24
作者Chris Manton <cmanton@goog...>
コミッターJakub Pawlowski

ログメッセージ

Add bluetooth package to permission request intent

Limit the component that may resolve this intent to the
bluetooth package.

Bug: 158219161
Test: Security Fix
Tag: #security
Change-Id: If732f940a7aa256f5975349118e8eb6cf5584676

変更サマリ

差分

--- a/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java
+++ b/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java
@@ -131,6 +131,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
131131 // "Clear All Notifications" button
132132
133133 Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
134+ deleteIntent.setPackage("com.android.bluetooth");
134135 deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
135136 deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
136137 BluetoothDevice.CONNECTION_ACCESS_NO);