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

Commit 788208c1 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Disallow BLE enable in airplane mode"

parents 15c83448 1143b5db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1067,7 +1067,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
    public boolean enableBle(AttributionSource attributionSource, IBinder token)
            throws RemoteException {
        final String packageName = attributionSource.getPackageName();
        if (!checkBluetoothPermissions(attributionSource, "enableBle", false)) {
        if (!checkBluetoothPermissions(attributionSource, "enableBle", false)
                || isAirplaneModeOn()) {
            if (DBG) {
                Slog.d(TAG, "enableBle(): bluetooth disallowed");
            }