Add lockdownEnabled parameter to always-on VPN API
Allows callers to opt-out of blockading network traffic during boot and on VPN app failure. Bug: 26694104 Change-Id: Ic2c25b79d8a17917025eb37be7de929fe156e2a3
This commit is contained in:
@@ -138,7 +138,7 @@ public class AppDialogFragment extends DialogFragment implements AppDialog.Liste
|
||||
final int userId = UserHandle.getUserId(mPackageInfo.applicationInfo.uid);
|
||||
try {
|
||||
if (mPackageInfo.packageName.equals(getConnectedPackage(mService, userId))) {
|
||||
mService.setAlwaysOnVpnPackage(userId, null);
|
||||
mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false);
|
||||
mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
|
Reference in New Issue
Block a user