From 344b46a5b331c3d11edf026ebed4d52dcd43c45a Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Mon, 16 Nov 2020 10:49:24 +0900 Subject: [PATCH] Remove provide libs from file Remove provide libs of system image from file, and generate it at build time instead Bug: 172889962 Test: Build cuttlefish and confirmed list is generated in /system/etc/linker.config.pb Change-Id: I365252dcb2e8735fd8f6345c9ec2c985b0489d64 --- rootdir/Android.bp | 1 + rootdir/etc/linker.config.json | 43 ---------------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) diff --git a/rootdir/Android.bp b/rootdir/Android.bp index a21f68661..d63868aa4 100644 --- a/rootdir/Android.bp +++ b/rootdir/Android.bp @@ -29,4 +29,5 @@ prebuilt_etc { linker_config { name: "system_linker_config", src: "etc/linker.config.json", + installable: false, } diff --git a/rootdir/etc/linker.config.json b/rootdir/etc/linker.config.json index d66ab73a4..2faf60898 100644 --- a/rootdir/etc/linker.config.json +++ b/rootdir/etc/linker.config.json @@ -1,47 +1,4 @@ { - // These are list of libraries which has stub interface and installed - // in system image so other partition and APEX modules can link to it. - // TODO(b/147210213) : Generate this list on build and read from the file - "provideLibs": [ - // LLNDK libraries - "libEGL.so", - "libGLESv1_CM.so", - "libGLESv2.so", - "libGLESv3.so", - "libRS.so", - "libandroid_net.so", - "libbinder_ndk.so", - "libc.so", - "libcgrouprc.so", - "libclang_rt.asan-arm-android.so", - "libclang_rt.asan-i686-android.so", - "libclang_rt.asan-x86_64-android.so", - "libdl.so", - "libft2.so", - "liblog.so", - "libm.so", - "libmediandk.so", - "libnativewindow.so", - "libsync.so", - "libvndksupport.so", - "libvulkan.so", - // NDK libraries - "libaaudio.so", - "libandroid.so", - // adb - "libadbd_auth.so", - "libadbd_fs.so", - // bionic - "libdl_android.so", - // statsd - "libincident.so", - // media - "libmediametrics.so", - // nn - "libneuralnetworks_packageinfo.so", - // SELinux - "libselinux.so" - ], "requireLibs": [ // Keep in sync with the "platform" namespace in art/build/apex/ld.config.txt. "libdexfile_external.so",