* commit 'dc7add287de5ef1e7c96596924bf73ee2d1c0f5d': Revise lockdown check in getLegacyVpnInfo()
This commit is contained in:
@@ -3109,7 +3109,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