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

Commit 2ffe5e11 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Add enforcement of BLUETOOTH permission to PanService.isTetheringOn()

Bug: 146045934
Test: Manual
Change-Id: Idb72957ab8b7a649b3472099bd8bfdd0f2b948a0
parent befdf404
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -370,6 +370,7 @@ public class PanService extends ProfileService {

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