Return legacy VPN info regardless of lockdown mode
This stops Settings from telling the user detailed information, and doesn't really protect anything secret -- privileged apps can already tell that there's an active VPN by looking at network info. Change-Id: I9c2a3cab6dff1b62e94a9e0735dccde226fd26a3 Fix: 28624328
This commit is contained in:
@@ -3229,9 +3229,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
@Override
|
||||
public LegacyVpnInfo getLegacyVpnInfo(int userId) {
|
||||
enforceCrossUserPermission(userId);
|
||||
if (mLockdownEnabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
synchronized(mVpns) {
|
||||
return mVpns.get(userId).getLegacyVpnInfo();
|
||||
|
||||
Reference in New Issue
Block a user