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

Commit 2b95f31c 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: 80f10db9 am: 01ed210c

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

Change-Id: I80497f8c5393c2d6aaedda6bfbaeb8a07c5db592
parents dac0bc08 01ed210c
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;
    }