Loading services/java/com/android/server/WifiService.java +14 −8 Original line number Diff line number Diff line Loading @@ -640,8 +640,11 @@ public class WifiService extends IWifiManager.Stub { */ long ident = Binder.clearCallingIdentity(); try { handleWifiToggled(enable); } finally { Binder.restoreCallingIdentity(ident); } if (enable) { if (!mIsReceiverRegistered) { Loading Loading @@ -838,13 +841,16 @@ public class WifiService extends IWifiManager.Stub { enforceAccessPermission(); int userId = UserHandle.getCallingUserId(); long ident = Binder.clearCallingIdentity(); try { int currentUser = ActivityManager.getCurrentUser(); Binder.restoreCallingIdentity(ident); if (userId != currentUser) { return new ArrayList<ScanResult>(); } else { return mWifiStateMachine.syncGetScanResultsList(); } } finally { Binder.restoreCallingIdentity(ident); } } /** Loading Loading
services/java/com/android/server/WifiService.java +14 −8 Original line number Diff line number Diff line Loading @@ -640,8 +640,11 @@ public class WifiService extends IWifiManager.Stub { */ long ident = Binder.clearCallingIdentity(); try { handleWifiToggled(enable); } finally { Binder.restoreCallingIdentity(ident); } if (enable) { if (!mIsReceiverRegistered) { Loading Loading @@ -838,13 +841,16 @@ public class WifiService extends IWifiManager.Stub { enforceAccessPermission(); int userId = UserHandle.getCallingUserId(); long ident = Binder.clearCallingIdentity(); try { int currentUser = ActivityManager.getCurrentUser(); Binder.restoreCallingIdentity(ident); if (userId != currentUser) { return new ArrayList<ScanResult>(); } else { return mWifiStateMachine.syncGetScanResultsList(); } } finally { Binder.restoreCallingIdentity(ident); } } /** Loading