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

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

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

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

Change-Id: Iaf661a18fea6e73fe49169fa748101a0bf63be16
parents 1deb14b0 b9d4e1eb
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;
    }