Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f93a469c authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Add BLUETOOTH_PRIVILEGED permission to SystemApi

BluetoothHidDevice#setConnectionPolicy

Bug: 148597061
Test: Manual
Change-Id: I03875cb71483d3d6e18795324a7fbea6681fb9b0
parent 0b242c8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1424,7 +1424,7 @@ package android.bluetooth {
  }
  public final class BluetoothHidDevice implements android.bluetooth.BluetoothProfile {
    method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int);
    method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int);
  }
  public final class BluetoothHidHost implements android.bluetooth.BluetoothProfile {
+1 −1
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ public final class BluetoothHidDevice implements BluetoothProfile {
     * @hide
     */
    @SystemApi
    @RequiresPermission(Manifest.permission.BLUETOOTH_ADMIN)
    @RequiresPermission(Manifest.permission.BLUETOOTH_PRIVILEGED)
    public boolean setConnectionPolicy(@NonNull BluetoothDevice device,
            @ConnectionPolicy int connectionPolicy) {
        log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")");