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

Commit 6f6f0c0a authored by Treehugger Robot's avatar Treehugger Robot Committed by Jack He
Browse files

HFP: Fix typo in various permission check messages

Bug: 72830122
Test: make, no functional change
Change-Id: Ie10d7f40fa6dccafc70313328e26291863c5fd64
parent 6bbd419d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -668,7 +668,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean disconnect(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            Log.i(TAG, "disconnect: device=" + device);
            HeadsetStateMachine stateMachine = mStateMachines.get(device);
@@ -946,7 +946,7 @@ public class HeadsetService extends ProfileService {
     * @return the active device or null if no device is active
     */
    public BluetoothDevice getActiveDevice() {
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH_PERM permission");
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
        synchronized (mStateMachines) {
            return mActiveDevice;
        }
@@ -1049,7 +1049,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean startScoUsingVirtualVoiceCall(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            final HeadsetStateMachine stateMachine = mStateMachines.get(device);
            if (stateMachine == null) {
@@ -1063,7 +1063,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean stopScoUsingVirtualVoiceCall(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            final HeadsetStateMachine stateMachine = mStateMachines.get(device);
            if (stateMachine == null) {