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

Commit 64ae5b73 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

parents 59d9caae 45e6f35f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1063,7 +1063,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");
            }