From b61819e2a5ee3eb74b95d59d4cd05dc3c43605ac Mon Sep 17 00:00:00 2001 From: Dongwon Kang Date: Wed, 9 Jan 2019 16:01:01 -0800 Subject: [PATCH] Add 'stubs' to libandroid In order to exclude libandroid.so + its dependent libraries from the apex. Test: build and check if libandroid.so is excluded in the media apex Bug: 112766913 Change-Id: I5f1c5692a5395cf673d7868e0a429767d639720f --- native/android/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/android/Android.bp b/native/android/Android.bp index c26d980aa2fc3..40290aba015d5 100644 --- a/native/android/Android.bp +++ b/native/android/Android.bp @@ -78,6 +78,10 @@ cc_library_shared { include_dirs: ["bionic/libc/dns/include"], version_script: "libandroid.map.txt", + stubs: { + symbol_file: "libandroid.map.txt", + versions: ["29"], + }, } // Network library.