Merge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev
This commit is contained in:
commit
d7208c5c4a
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue