commit | a5cbda3ca8e52194bc3f094a9a6f3d047291def0 | [log] [tgz] |
---|---|---|
author | markchien <markchien@google.com> | Tue Nov 09 16:59:50 2021 +0800 |
committer | markchien <markchien@google.com> | Thu Nov 11 18:33:19 2021 +0800 |
tree | 46c763fc7a1f33a479c5458eca577bcb0e6cc644 | |
parent | a14fb38df4d1dd02ebc3e8ab08fe2bc8ac951965 [diff] |
Use JniUtil.getJniLibraryName to find library name Bug: 205088391 Test: atest TetheringTests atest CtsTetheringTest atest TetheringPrivilegedTests Change-Id: Ie865f6ef828a7a706ed76cafadc0403511a28cff
diff --git a/staticlibs/device/com/android/net/module/util/BpfMap.java b/staticlibs/device/com/android/net/module/util/BpfMap.java index aa74152..5f05c7c 100644 --- a/staticlibs/device/com/android/net/module/util/BpfMap.java +++ b/staticlibs/device/com/android/net/module/util/BpfMap.java
@@ -42,7 +42,7 @@ */ public class BpfMap<K extends Struct, V extends Struct> implements AutoCloseable { static { - System.loadLibrary("tetherutilsjni"); + System.loadLibrary(JniUtil.getJniLibraryName(BpfMap.class.getPackage())); } // Following definitions from kernel include/uapi/linux/bpf.h