From 483cd2e2fe99a70a33679f1cce1fca3cb8399c49 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 19 Dec 2017 11:38:45 +0900 Subject: [PATCH] /vendor/lib/hw is removed from search paths for vendor default ns Shared libraries in the directory should be dlopened with full file paths. That was a workaround for some legacy prebuilt binaries and they are all now fixed. Thus removing. Bug: 70551668 Test: walleye, aosp_walleye, taimen, aosp_taimen boot to the UI Change-Id: Ifb123b09c13f873cbefa7784e76dfe5f35575a8d --- rootdir/etc/ld.config.txt | 13 +------------ rootdir/etc/ld.config.txt.in | 7 ------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index 60afdd7a2..4cde56f2d 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -258,12 +258,7 @@ namespace.default.search.paths += /system/${LIB}/vndk${VNDK_VER} namespace.default.search.paths += /system/${LIB}/vndk-sp${VNDK_VER} namespace.default.search.paths += /system/${LIB} -# TODO(b/70551668) Remove /vendor/${LIB}/hw from search paths. -# Shared libraries in the directory should be dlopened with full file paths. -# This is a workaround for some legacy prebuilt binaries. -namespace.default.search.paths += /vendor/${LIB}/hw - -namespace.default.asan.search.paths += /data/asan/odm/${LIB} +namespace.default.asan.search.paths = /data/asan/odm/${LIB} namespace.default.asan.search.paths += /odm/${LIB} namespace.default.asan.search.paths += /data/asan/odm/${LIB}/vndk${VNDK_VER} namespace.default.asan.search.paths += /odm/${LIB}/vndk${VNDK_VER} @@ -281,9 +276,3 @@ namespace.default.asan.search.paths += /data/asan/system/${LIB}/vndk-sp${VNDK_VE namespace.default.asan.search.paths += /system/${LIB}/vndk-sp${VNDK_VER} namespace.default.asan.search.paths += /data/asan/system/${LIB} namespace.default.asan.search.paths += /system/${LIB} - -# TODO(b/70551668) Remove /vendor/${LIB}/hw from search paths. -# Shared libraries in the directory should be dlopened with full file paths. -# This is a workaround for some legacy prebuilt binaries. -namespace.default.asan.search.paths += /data/asan/vendor/${LIB}/hw -namespace.default.asan.search.paths += /vendor/${LIB}/hw diff --git a/rootdir/etc/ld.config.txt.in b/rootdir/etc/ld.config.txt.in index 0e43de7de..6fc088d7d 100644 --- a/rootdir/etc/ld.config.txt.in +++ b/rootdir/etc/ld.config.txt.in @@ -240,9 +240,6 @@ namespace.default.search.paths += /vendor/${LIB} namespace.default.search.paths += /vendor/${LIB}/vndk${VNDK_VER} namespace.default.search.paths += /vendor/${LIB}/vndk-sp${VNDK_VER} -# TODO(b/70551668) remove this -namespace.default.search.paths += /vendor/${LIB}/hw - namespace.default.permitted.paths = /odm namespace.default.permitted.paths += /vendor @@ -259,10 +256,6 @@ namespace.default.asan.search.paths += /vendor/${LIB}/vndk${VNDK_VER} namespace.default.asan.search.paths += /data/asan/vendor/${LIB}/vndk-sp${VNDK_VER} namespace.default.asan.search.paths += /vendor/${LIB}/vndk-sp${VNDK_VER} -# TODO(b/70551668) remove this -namespace.default.asan.search.paths += /data/asan/vendor/${LIB}/hw -namespace.default.asan.search.paths += /vendor/${LIB}/hw - namespace.default.asan.permitted.paths = /data/asan/odm namespace.default.asan.permitted.paths += /odm namespace.default.asan.permitted.paths += /data/asan/vendor