From 1cc09e749f196774a4e6fa4afedfd4eda623ee67 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 26 Sep 2017 01:38:22 +0900 Subject: [PATCH] Fix: make vndk namespace visible for 2016 Pixes The nativeloader tries to find the 'vndk' namespace when there is a vendor apk in the classloader paths. This can happen even for a downloaded app if the app is using a vendor apk via tag. In order to prevent the nativeloader from failing to find the vndk namespace, the namespace is marked as visible. Bug: 66482442 Test: download the app mentioned in the bug, it does not crash. Change-Id: I82e2394eb6eedcb8645e1a5b3735bbfe2735b312 --- 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 7f86a950b..01336ffde 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -98,6 +98,7 @@ namespace.rs.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:androi # This namespace is exclusively for vndk-sp libs. ############################################################################### namespace.vndk.isolated = true +namespace.vndk.visible = true namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl