From 472c900f6b1e20a5b15f722c1394d0467817b087 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 19 Dec 2018 16:52:06 +0900 Subject: [PATCH] Allow dlopen()ing libraries from the netd APEX. This is a workaround to allow us to use libnetd_resolv.so from the resolver APEX before b/120661824 is fixed. We cannot put the APEX into the search path due to b/120661824, but we can put it into the permitted path, Test: builds, boots Test: system/netd/tests/runtests.sh Test: atest FrameworksNetTests android.net.cts.ConnectivityManagerTest Change-Id: Ia68df860b7edc92180284f62736146e6029d7655 --- rootdir/etc/ld.config.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index d3e80c992..e510c3c43 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -73,6 +73,7 @@ namespace.default.permitted.paths += /%PRODUCT_SERVICES%/app namespace.default.permitted.paths += /%PRODUCT_SERVICES%/priv-app namespace.default.permitted.paths += /data namespace.default.permitted.paths += /mnt/expand +namespace.default.permitted.paths += /apex/com.android.resolv/${LIB} namespace.default.asan.search.paths = /data/asan/system/${LIB} namespace.default.asan.search.paths += /system/${LIB}