Revert "Fix: vendor public libraries are accessible via System.loadLibrary"
This reverts commit cfe38cdb. The CL 8f712189dfc02285573337e2b4ab17678011db14 in libcore project avoids the need for adding the new paths in LoadedApk. With the CL, a classloader does not give up even when loader.findLibrary() has failed due to some paths are not added to it. Instead, the classloader converts the given libname into a filename (e.g. foo -> libfoo.so) then calls dlopen() with the filename. The classloader reports failure only when the dlopen() call has failed. Therefore, manually adding these paths to the classloader is no longer needed and thus removed. Bug: 109720125 Test: System.loadLibrary("adsprpc") is successful in Pixel (because libadsprpc.so is in Pixel's vendor public lib list) Test: atest cts/tests/tests/jni Merged-In: I1970eba7e732728699042a36b89571915ec81451 (cherry picked from commit 37131e1e) Change-Id: I1970eba7e732728699042a36b89571915ec81451
Loading
Please register or sign in to comment