From aa2f53143ed3193468f061dcbdc4541913b91913 Mon Sep 17 00:00:00 2001 From: Yan Yan Date: Wed, 9 Jul 2025 01:19:40 +0000 Subject: [PATCH] Prepare to move VCN: Define utility lib for framework VCN This is a preparation CL before moving VCN code from frameworks/base to p/m/Connectivity/ This CL defines a utility lib so that the VCN framework code can use HexDump. With HexDump, VCN will define another lib for the IPsec module. Bug: 379938062 Flag: EXEMPT; pure refactoring Test: FrameworksIkeTests, CtsIkeTestCases Change-Id: I9bc8b37779315841c2a93328942d073b6bf40808 --- staticlibs/Android.bp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/staticlibs/Android.bp b/staticlibs/Android.bp index d8a2771980..25ce3013fa 100644 --- a/staticlibs/Android.bp +++ b/staticlibs/Android.bp @@ -778,3 +778,22 @@ java_library { "com.android.tethering", ], } + +java_library { + name: "net-utils-framework-vcn", + sdk_version: "module_current", + min_sdk_version: "30", + srcs: [ + "framework/com/android/net/module/util/HexDump.java", + ], + libs: [ + "androidx.annotation_annotation", + ], + visibility: [ + // TODO: b/374174952 Clean up the paths when the VCN + // code location is finalized + "//frameworks/base/packages/Vcn/framework-b", + "//packages/modules/Connectivity/Vcn/framework-b", + "//packages/modules/Connectivity/framework-b", + ], +}