diff options
author | Rahul Sabnis <rahulsabnis@google.com> | 2022-03-08 23:32:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-08 23:32:21 +0000 |
commit | e75cf65ba97a1e247b3ed3a636ac2ee1eaf93223 (patch) | |
tree | 36795421ad971e9b253747d0e7e1016d695810ad /framework/java/android/bluetooth/BluetoothHeadset.java | |
parent | ab46d5fcae86606634766904d719401a7b54278f (diff) | |
parent | b5ae5d307b878c33625b7751a33607f9b7d6a6ff (diff) |
Merge "[API Review] add new permissions to sco and inband ringing"
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHeadset.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothHeadset.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHeadset.java b/framework/java/android/bluetooth/BluetoothHeadset.java index 9532c1d3c0..9df07724cc 100644 --- a/framework/java/android/bluetooth/BluetoothHeadset.java +++ b/framework/java/android/bluetooth/BluetoothHeadset.java @@ -1236,6 +1236,7 @@ public final class BluetoothHeadset implements BluetoothProfile { @RequiresPermission(allOf = { android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.MODIFY_PHONE_STATE, + android.Manifest.permission.BLUETOOTH_PRIVILEGED, }) public boolean startScoUsingVirtualVoiceCall() { if (DBG) log("startScoUsingVirtualVoiceCall()"); @@ -1274,6 +1275,7 @@ public final class BluetoothHeadset implements BluetoothProfile { @RequiresPermission(allOf = { android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.MODIFY_PHONE_STATE, + android.Manifest.permission.BLUETOOTH_PRIVILEGED, }) public boolean stopScoUsingVirtualVoiceCall() { if (DBG) log("stopScoUsingVirtualVoiceCall()"); |