private static void addDirectApkSoSource()

in java/com/facebook/soloader/SoLoader.java [344:364]


  private static void addDirectApkSoSource(Context context, ArrayList<SoSource> soSources) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
        && context.getApplicationInfo().splitSourceDirs != null) {
      if (Log.isLoggable(TAG, Log.DEBUG)) {
        Log.d(TAG, "adding directApk sources from split apks");
      }
      for (String splitApkDir : context.getApplicationInfo().splitSourceDirs) {
        DirectApkSoSource splitApkSource = new DirectApkSoSource(new File(splitApkDir));
        if (Log.isLoggable(TAG, Log.DEBUG)) {
          Log.d(TAG, "adding directApk source: " + splitApkSource.toString());
        }
        soSources.add(0, splitApkSource);
      }
    }

    DirectApkSoSource directApkSoSource = new DirectApkSoSource(context);
    if (Log.isLoggable(TAG, Log.DEBUG)) {
      Log.d(TAG, "adding directApk source: " + directApkSoSource.toString());
    }
    soSources.add(0, directApkSoSource);
  }