diff --git a/libsync/Android.bp b/libsync/Android.bp index 1cd52304a..ce9e84abe 100644 --- a/libsync/Android.bp +++ b/libsync/Android.bp @@ -22,13 +22,15 @@ cc_defaults { cc_library_shared { name: "libsync", - vendor_available: true, - vndk: { - enabled: true, - }, defaults: ["libsync_defaults"], } +llndk_library { + name: "libsync", + symbol_file: "libsync.map.txt", + export_include_dirs: ["include"], +} + // libsync_recovery is only intended for the recovery binary. // Future versions of the kernel WILL require an updated libsync, and will break // anything statically linked against the current libsync. diff --git a/libsync/libsync.map.txt b/libsync/libsync.map.txt index f9057bd7f..53bb07a70 100644 --- a/libsync/libsync.map.txt +++ b/libsync/libsync.map.txt @@ -19,14 +19,10 @@ LIBSYNC { sync_merge; # introduced=26 sync_file_info; # introduced=26 sync_file_info_free; # introduced=26 + sync_wait; # vndk + sync_fence_info; # vndk + sync_pt_info; # vndk + sync_fence_info_free; # vndk local: *; }; - -LIBSYNC_PLATFORM { - global: - sync_wait; - sync_fence_info; - sync_pt_info; - sync_fence_info_free; -} LIBSYNC_PLATFORM;