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
@@ -131,6 +131,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { | ||
131 | 131 | // "Clear All Notifications" button |
132 | 132 | |
133 | 133 | Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); |
134 | + deleteIntent.setPackage("com.android.bluetooth"); | |
134 | 135 | deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); |
135 | 136 | deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT, |
136 | 137 | BluetoothDevice.CONNECTION_ACCESS_NO); |