JniTest: Fix linker_namespace test for /vendor libraries
All libraries in /vendor are now non-executable for anything out side of
/vendor except for the same process HALs (e.g. egl libraries) that are
whitelisted in SEPolicy. This resulted in failure of linker_namespace
test failure due to denial to dlopen libraries in /vendor/lib[64].
Fix that by checking explicitly if the library being opened is in
/vendor and if the resulting dlerror is "not found".
Bug: 37216091
Test: /cts-tradefed run cts -m CtsJniTestCases --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a
Result: 64 Passed, 0 Failed
Change-Id: Idc6871e1760d4cdfdd70f0acd755467e5b837802
Signed-off-by: Sandeep Patil <sspatil@google.com>
1 file changed