Merge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev

This commit is contained in:
Hung-ying Tyan
2015-07-31 02:51:32 +00:00
committed by Android (Google) Code Review

View File

@@ -3048,7 +3048,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
@Override
public LegacyVpnInfo getLegacyVpnInfo(int userId) {
enforceCrossUserPermission(userId);
throwIfLockdownEnabled();
if (mLockdownEnabled) {
return null;
}
synchronized(mVpns) {
return mVpns.get(userId).getLegacyVpnInfo();
}