Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec10adbb authored by David Duarte's avatar David Duarte
Browse files

libbluetooth_jni: Add a version_script to hide symbols

Hidding symbols let the linker discard more unused code.

This reduces the libbluetooth_jni.so size by 3.9M.

Bug: 265285999
Test: m libbluetooth_jni
Change-Id: I4dd9b681fe58335d79da39e55c7c18b7abf3a486
parent 8902da22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ cc_library_shared {
    name: "libbluetooth_jni",
    defaults: ["fluoride_basic_defaults"],
    srcs: ["jni/**/*.cpp"],
    version_script: "libbluetooth_jni.map",
    header_libs: [
        "jni_headers",
        "libbluetooth_headers",
+4 −0
Original line number Diff line number Diff line
{
  global: JNI_OnLoad;
  local: *;
};