commit | 836bd6b5ae94afb34adf0b08fa6cb0ddbe62153a | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Thu Jan 27 05:31:39 2022 +0100 |
committer | Patrick Rohr <prohr@google.com> | Thu Jan 27 05:31:39 2022 +0100 |
tree | 70ae6d460622fd79000dfdb7ed5b6077152155cd | |
parent | fe116d030890a89c04c5191b38ca259373994887 [diff] |
Fix add missing loadLibrary to TcUtils This has been working so far because BpfMap loads the .so for the Tethering APK (as they both are part of the same library). Test: device boots Change-Id: I21feecd1b6121e24bb8e98255940aae661ff6270
diff --git a/staticlibs/device/com/android/net/module/util/TcUtils.java b/staticlibs/device/com/android/net/module/util/TcUtils.java index 5b78bc1..cf01490 100644 --- a/staticlibs/device/com/android/net/module/util/TcUtils.java +++ b/staticlibs/device/com/android/net/module/util/TcUtils.java
@@ -22,6 +22,10 @@ * Contains mostly tc-related functionality. */ public class TcUtils { + static { + System.loadLibrary(JniUtil.getJniLibraryName(TcUtils.class.getPackage())); + } + /** * Checks if the network interface uses an ethernet L2 header. *