Merge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f049071da4
@@ -3048,7 +3048,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
@Override
|
@Override
|
||||||
public LegacyVpnInfo getLegacyVpnInfo(int userId) {
|
public LegacyVpnInfo getLegacyVpnInfo(int userId) {
|
||||||
enforceCrossUserPermission(userId);
|
enforceCrossUserPermission(userId);
|
||||||
throwIfLockdownEnabled();
|
if (mLockdownEnabled) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
synchronized(mVpns) {
|
synchronized(mVpns) {
|
||||||
return mVpns.get(userId).getLegacyVpnInfo();
|
return mVpns.get(userId).getLegacyVpnInfo();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user