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

Commit 6afe3721 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Automerger Merge Worker
Browse files

Merge "Disallow BLE enable in airplane mode" am: 788208c1 am: 45e6f35f am: 64ae5b73

parents 0a15b6bc 64ae5b73
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1078,7 +1078,8 @@ public 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) {
                Log.d(TAG, "enableBle(): bluetooth disallowed");
            }