File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1616
1717package com .android .server ;
1818
19+ import android .app .ActivityManager ;
1920import android .app .AlarmManager ;
2021import android .app .Notification ;
2122import android .app .NotificationManager ;
5556import android .os .RemoteException ;
5657import android .os .ServiceManager ;
5758import android .os .SystemProperties ;
59+ import android .os .UserHandle ;
5860import android .os .WorkSource ;
5961import android .provider .Settings ;
6062import android .text .TextUtils ;
@@ -834,7 +836,11 @@ public WifiInfo getConnectionInfo() {
834836 */
835837 public List <ScanResult > getScanResults () {
836838 enforceAccessPermission ();
837- return mWifiStateMachine .syncGetScanResultsList ();
839+ if (UserHandle .getCallingUserId () != ActivityManager .getCurrentUser ()) {
840+ return new ArrayList <ScanResult >();
841+ } else {
842+ return mWifiStateMachine .syncGetScanResultsList ();
843+ }
838844 }
839845
840846 /**
You can’t perform that action at this time.
0 commit comments