Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 410abcdb authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android (Google) Code Review
Browse files

Merge "Revise lockdown check in getLegacyVpnInfo()" into mnc-dev

parents bbb47d88 44c8c5cc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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();
        }