* commit 'dc7add287de5ef1e7c96596924bf73ee2d1c0f5d': Revise lockdown check in getLegacyVpnInfo()
This commit is contained in:
@@ -3109,7 +3109,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user