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

Commit a05c1410 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Change permission enforcement for BluetoothPan#isTetheringOn to require...

Merge "Change permission enforcement for BluetoothPan#isTetheringOn to require BLUETOOTH permission." am: 4e018974

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1353702

Change-Id: I618a7d0b1a9099c0bf54a599f64abc09108ddfa6
parents 0b914f78 4e018974
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -387,8 +387,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;
    }