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

Commit 4492bcd8 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 25938 into eclair

* changes:
  Don't require WAKE_LOCK permission to enable wifi
parents b4c0b3d8 a99f461b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -295,7 +295,11 @@ public class WifiService extends IWifiManager.Stub {
        if (mWifiHandler == null) return false;

        synchronized (mWifiHandler) {
            // caller may not have WAKE_LOCK permission - it's not required here
            long ident = Binder.clearCallingIdentity();
            sWakeLock.acquire();
            Binder.restoreCallingIdentity(ident);

            mLastEnableUid = Binder.getCallingUid();
            // set a flag if the user is enabling Wifi while in airplane mode
            mAirplaneModeOverwridden = (enable && isAirplaneModeOn() && isAirplaneToggleable());