am 4492bcd8: Merge change 25938 into eclair

Merge commit '4492bcd8b0437b1200e93c001ca75d9fa8c4ad30' into eclair-plus-aosp

* commit '4492bcd8b0437b1200e93c001ca75d9fa8c4ad30':
  Don't require WAKE_LOCK permission to enable wifi
This commit is contained in:
Robert Greenwalt
2009-09-20 07:54:33 -07:00
committed by Android Git Automerger

View File

@@ -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());