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

Commit 5fa47e61 authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Automerger Merge Worker
Browse files

Change permission enforcement for BluetoothPan#isTetheringOn to require am:...

Change permission enforcement for BluetoothPan#isTetheringOn to require am: b9d4e1eb am: e33df387

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

Change-Id: I80497f8c5393c2d6aaedda6bfbaeb8a07c5db592
parents 45a3c68f e33df387
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;
    }