We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e8180 commit db831daCopy full SHA for db831da
services/java/com/android/server/WifiService.java
@@ -836,7 +836,11 @@ public WifiInfo getConnectionInfo() {
836
*/
837
public List<ScanResult> getScanResults() {
838
enforceAccessPermission();
839
- if (UserHandle.getCallingUserId() != ActivityManager.getCurrentUser()) {
+ int userId = UserHandle.getCallingUserId();
840
+ long ident = Binder.clearCallingIdentity();
841
+ int currentUser = ActivityManager.getCurrentUser();
842
+ Binder.restoreCallingIdentity(ident);
843
+ if (userId != currentUser) {
844
return new ArrayList<ScanResult>();
845
} else {
846
return mWifiStateMachine.syncGetScanResultsList();
0 commit comments