From 21c953d547d3c9332f781a291b388031dde0dae5 Mon Sep 17 00:00:00 2001 From: Amit Kumar Prasad Date: Fri, 18 Aug 2023 11:34:30 +0530 Subject: Frameworks: Add Bluetooth and connect permissions Add below permission to intent ACTION_REMOTE_ISSUE_OCCURRED RequiresBluetoothConnectPermission RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) CRs-Fixed: 3581934 Change-Id: I6331b99555240b7d86a316b4c26165ac61fdb34d --- core/java/android/bluetooth/BluetoothAdapter.java | 2 ++ core/java/android/bluetooth/BluetoothDevice.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 7e03c20eb9b3..368979035755 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -409,6 +409,8 @@ public final class BluetoothAdapter { * @hide **/ + @RequiresBluetoothConnectPermission + @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_REMOTE_ISSUE_OCCURRED = "org.codeaurora.intent.bluetooth.action.REMOTE_ISSUE_OCCURRED"; diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index e37d64d99886..1ba514a77f99 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -300,6 +300,8 @@ public final class BluetoothDevice implements Parcelable, Attributable { * @hide **/ + @RequiresBluetoothConnectPermission + @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_REMOTE_ISSUE_OCCURRED = "org.codeaurora.intent.bluetooth.action.REMOTE_ISSUE_OCCURRED"; -- cgit v1.2.3