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

Commit 38b4a926 authored by Dan Willemsen's avatar Dan Willemsen Committed by Steven Moreland
Browse files

Add LLNDK liblog stub library for the VNDK

This replaces the liblog_vndk_headers with a true stub library that
exports the vndk headers, and exports the vndk-specific set of symbols.

Test: generated NDK stub maps are the same before/after
Test: aosp_arm; m -j
Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j (with other changes)
Change-Id: I9037241963b3872a3bc7cf7ab36a70dd4ddcf9bc
(cherry picked from commit 28dab34c)
parent 9cadfde2
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -107,14 +107,16 @@ ndk_headers {
    license: "NOTICE",
}

cc_library_headers {
    name: "liblog_vndk_headers",
    export_include_dirs: ["include_vndk"],
}

ndk_library {
    name: "liblog.ndk",
    symbol_file: "liblog.map.txt",
    first_version: "9",
    unversioned_until: "current",
}

llndk_library {
    name: "liblog.llndk",
    symbol_file: "liblog.map.txt",
    unversioned: true,
    export_include_dirs: ["include_vndk"],
}
+23 −0
Original line number Diff line number Diff line
LIBLOG {
  global:
    android_name_to_log_id; # vndk
    android_log_id_to_name; # vndk
    __android_log_assert;
    __android_log_buf_print; # vndk
    __android_log_buf_write; # vndk
    __android_log_print;
    __android_log_vprint;
    __android_log_write;
@@ -8,8 +12,27 @@ LIBLOG {
    *;
};

LIBLOG_L {
  global:
    android_logger_clear; # vndk
    android_logger_get_id; # vndk
    android_logger_get_log_readable_size; # vndk
    android_logger_get_log_version; # vndk
    android_logger_get_log_size; # vndk
    android_logger_list_alloc; # vndk
    android_logger_list_alloc_time; # vndk
    android_logger_list_free; # vndk
    android_logger_list_open; # vndk
    android_logger_list_read; # vndk
    android_logger_open; # vndk
    android_logger_set_log_size; # vndk
};

LIBLOG_M {
  global:
    android_logger_get_prune_list; # vndk
    android_logger_set_prune_list; # vndk
    android_logger_get_statistics; # vndk
    __android_log_is_loggable;
};