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
commit d7208c5c4a

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