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:
@@ -295,7 +295,11 @@ public class WifiService extends IWifiManager.Stub {
|
|||||||
if (mWifiHandler == null) return false;
|
if (mWifiHandler == null) return false;
|
||||||
|
|
||||||
synchronized (mWifiHandler) {
|
synchronized (mWifiHandler) {
|
||||||
|
// caller may not have WAKE_LOCK permission - it's not required here
|
||||||
|
long ident = Binder.clearCallingIdentity();
|
||||||
sWakeLock.acquire();
|
sWakeLock.acquire();
|
||||||
|
Binder.restoreCallingIdentity(ident);
|
||||||
|
|
||||||
mLastEnableUid = Binder.getCallingUid();
|
mLastEnableUid = Binder.getCallingUid();
|
||||||
// set a flag if the user is enabling Wifi while in airplane mode
|
// set a flag if the user is enabling Wifi while in airplane mode
|
||||||
mAirplaneModeOverwridden = (enable && isAirplaneModeOn() && isAirplaneToggleable());
|
mAirplaneModeOverwridden = (enable && isAirplaneModeOn() && isAirplaneToggleable());
|
||||||
|
|||||||
Reference in New Issue
Block a user