Check the existence of IpSecTransformState API with try catch
IpSecTransformState is a new API that exposed from a mainline module. Ideally before SDK finalization, platform should check the API flag com.android.net.flags.ipsec_transform_state before calling the API. However the flag is defined in mainline module is not accessible from the platform. Thus previously a placeholder flag was used. This patch removes the usage of the placeholder flag. Instead the code will check the availability of the API with a try catch block Bug: 328844044 Test: atest FrameworksVcnTests && atest CtsVcnTestCases Flag: NONE mainline API flag not accessible; using try catch block to gate the behavior Change-Id: Ibbcb14817a6d714cdc99cf0894f1fc935a602a2c
Showing
- services/core/java/com/android/server/vcn/VcnContext.java 11 additions, 3 deletionsservices/core/java/com/android/server/vcn/VcnContext.java
- tests/vcn/java/com/android/server/vcn/routeselection/NetworkEvaluationTestBase.java 0 additions, 1 deletion.../server/vcn/routeselection/NetworkEvaluationTestBase.java
Loading
Please register or sign in to comment