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

Commit a1d9695c 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:...

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

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2046765



Change-Id: Ib86ceaf4a7092d2f49a6d430711722523334a26f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d2b9e006 0626dcf0
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");
            }