diff options
author | Amit Kumar Prasad <quic_amitpras@quicinc.com> | 2023-08-18 11:34:30 +0530 |
---|---|---|
committer | Amit Prasad <quic_amitpras@quicinc.com> | 2023-09-21 05:39:53 +0000 |
commit | 21c953d547d3c9332f781a291b388031dde0dae5 (patch) | |
tree | 8006a5d14c788b4f9ddbc215120b30bd14aa5ca8 | |
parent | 8c46ff1f8910106d0f2dd2c4e637a1979a7db97b (diff) |
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
-rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 2 | ||||
-rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 2 |
2 files changed, 4 insertions, 0 deletions
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"; |