private static void addApplicationSoSource()

in java/com/facebook/soloader/SoLoader.java [367:384]


  private static void addApplicationSoSource(
      Context context, ArrayList<SoSource> soSources, int flags) {

    // On old versions of Android, Bionic doesn't add our library directory to its
    // internal search path, and the system doesn't resolve dependencies between
    // modules we ship. On these systems, we resolve dependencies ourselves. On other
    // systems, Bionic's built-in resolver suffices.

    if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1) {
      flags |= DirectorySoSource.RESOLVE_DEPENDENCIES;
    }

    sApplicationSoSource = new ApplicationSoSource(context, flags);
    if (Log.isLoggable(TAG, Log.DEBUG)) {
      Log.d(TAG, "adding application source: " + sApplicationSoSource.toString());
    }
    soSources.add(0, sApplicationSoSource);
  }