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

Commit 4515380b authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Change permission enforcement for BluetoothPan#isTetheringOn to require

BLUETOOTH permission.

Bug: 159422420
Test: Manual
Change-Id: I3564b8e20510c409492eafa269d29a4dc25e27c2
parent 5823af2f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -385,8 +385,7 @@ public class PanService extends ProfileService {

    public boolean isTetheringOn() {
        // TODO(BT) have a variable marking the on/off state
        enforceCallingOrSelfPermission(
                BLUETOOTH_PRIVILEGED, "Need BLUETOOTH_PRIVILEGED permission");
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
        return mTetherOn;
    }