diff --git a/framework/api/module-lib-current.txt b/framework/api/module-lib-current.txt index a5afbd4c72..8da421dd6c 100644 --- a/framework/api/module-lib-current.txt +++ b/framework/api/module-lib-current.txt @@ -127,6 +127,7 @@ package android.net { public static final class NetworkAgentConfig.Builder { method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean); + method @NonNull public android.net.NetworkAgentConfig.Builder setExcludeLocalRoutesVpn(boolean); method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String); } diff --git a/framework/src/android/net/NetworkAgentConfig.java b/framework/src/android/net/NetworkAgentConfig.java index 93fc379924..040bf31178 100644 --- a/framework/src/android/net/NetworkAgentConfig.java +++ b/framework/src/android/net/NetworkAgentConfig.java @@ -425,8 +425,10 @@ public final class NetworkAgentConfig implements Parcelable { * Sets whether the local traffic is exempted from VPN. * * @return this builder, to facilitate chaining. - * @hide TODO(184750836): Unhide once the implementation is completed. + * @hide */ + @NonNull + @SystemApi(client = MODULE_LIBRARIES) public Builder setExcludeLocalRoutesVpn(boolean excludeLocalRoutes) { mConfig.excludeLocalRouteVpn = excludeLocalRoutes; return this;