public static String makeLdLibraryPath ( ) { sSoSourcesLock . readLock ( ) . lock ( ) ; try { assertInitialized ( ) ; Log . d ( TAG , "makeLdLibraryPath" ) ; ArrayList < String > pathElements = new ArrayList <> ( ) ; SoSource [ ] soSources = sSoSources ; for ( int i = 0 ; i < soSources . length ; ++ i ) { soSources [ i ] . addToLdLibraryPath ( pathElements ) ; } String joinedPaths = TextUtils . join ( ":" , pathElements ) ; Log . d ( TAG , "makeLdLibraryPath final path: " + joinedPaths ) ; return joinedPaths ; } finally { sSoSourcesLock . readLock ( ) . unlock ( ) ; } }
Retrieve an LD_LIBRARY_PATH value suitable for using the native linker to resolve our shared libraries .