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:
Robin Lee
2016-05-17 14:29:57 +01:00
parent 3bbf833ff4
commit 08b036aebd

View File

@@ -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();