diff options
author | Junyu Lai <junyulai@google.com> | 2023-04-24 17:15:22 +0800 |
---|---|---|
committer | Junyu Lai <junyulai@google.com> | 2023-05-02 11:03:48 +0000 |
commit | fbe95d914c707c34d2c9d150a467d51c73414fcd (patch) | |
tree | a79d3eba2b7d8b4318a3fbc94a0f40d3fcfdcb4d /common/native | |
parent | ab67657739808dfddba62ae126ac47d060e1253a (diff) | |
download | net-fbe95d914c707c34d2c9d150a467d51c73414fcd.tar.gz |
Allow BpfMap to be accessed from NetworkStack
When loading BpfMap class, JNI part is needed for native
methods. Allow the static lib can be compiled with NetworkStack
JNI library.
Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest
Bug: 276230058
Change-Id: I72ebe801dacd02de6711558d2058c1b756cf3080
Diffstat (limited to 'common/native')
-rw-r--r-- | common/native/bpfmapjni/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/native/bpfmapjni/Android.bp b/common/native/bpfmapjni/Android.bp index 8babcce3..43d61fc7 100644 --- a/common/native/bpfmapjni/Android.bp +++ b/common/native/bpfmapjni/Android.bp @@ -46,6 +46,7 @@ cc_library_static { ], visibility: [ "//packages/modules/Connectivity:__subpackages__", + "//packages/modules/NetworkStack:__subpackages__", // TODO: remove after NetworkStatsService moves to the module. "//frameworks/base/packages/ConnectivityT/service", ], |