Add an ABI dump directory for libutils
The ABI dumps add visibility for API changes in a commonly used library.
Test: development/vndk/tools/header-checker/utils/create_reference_dumps.py \
-libs libutils -products aosp_arm64 \
-ref-dump-dir system/core/libutils/abi-dumps
Test: m libutils.vendor
Bug: 227282691
Change-Id: I498c62853562a8fc6702bdd622603b6f7d516274
diff --git a/libutils/Android.bp b/libutils/Android.bp
index 26e1597..b07058a 100644
--- a/libutils/Android.bp
+++ b/libutils/Android.bp
@@ -170,10 +170,6 @@
min_sdk_version: "apex_inherit",
afdo: true,
-
- header_abi_checker: {
- diff_flags: ["-allow-adding-removing-weak-symbols"],
- },
}
cc_library {
@@ -184,6 +180,12 @@
enabled: true,
support_system_process: true,
},
+
+ header_abi_checker: {
+ // AFDO affects weak symbols.
+ diff_flags: ["-allow-adding-removing-weak-symbols"],
+ ref_dump_dirs: ["abi-dumps"],
+ },
}
cc_library {