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

Commit f5975c7e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

Merge "Change permission enforcement for BluetoothPan#isTetheringOn to require BLUETOOTH permission."
parents 18e48a9c 4515380b
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;
    }