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 AppPolicy is configured with the POLICY_EXCEPT_LIST policy type.

  • The appList contains the package names of the apps to be excluded: "com.example.app1" and "com.google.android.youtube".

  • The AppPolicy object is passed to the withPolicy() method of the SessionConfig.Builder when 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?