Process Bypass
Process bypass is a powerful capability that allows you to programmatically update the list of processes that can be excluded from the VPN tunnel. This feature enables certain applications to send their traffic outside the encrypted connection. It's particularly useful when you need to dynamically manage VPN exceptions based on specific application requirements or user scenarios.
Updating Process Bypass
This configuration typically includes these main components:
The
AppPolicyis configured with thePOLICY_EXCEPT_LISTpolicy type.The
appListcontains the package names of the apps to be excluded:"com.example.app1"and"com.google.android.youtube".The
AppPolicyobject is passed to thewithPolicy()method of theSessionConfig.Builderwhen starting the VPN session.
UnifiedSdk sdk = UnifiedSdk.getInstance();
AppPolicy appPolicy = AppPolicy.newBuilder()
.policy(AppPolicy.POLICY_EXCEPT_LIST)
.appList(Arrays.asList("com.example.app1", "com.google.android.youtube"))
.build();
sdk.getVpn().start(new SessionConfig.Builder()
// ...
.withPolicy(appPolicy)
// ...
);Last updated
Was this helpful?