public static void init()

in java/com/facebook/soloader/SoLoader.java [239:257]


  public static void init(
      Context context, int flags, @Nullable SoFileLoader soFileLoader, String[] denyList)
      throws IOException {
    StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
    try {
      sAppType = getAppType(context, flags);
      if ((flags & SOLOADER_EXPLICITLY_ENABLE_BACKUP_SOSOURCE) == 0
          && SysUtil.isSupportedDirectLoad(context, sAppType)) {
        // SoLoader doesn't need backup soSource if it supports directly loading .so file from APK
        flags |= (SOLOADER_DISABLE_BACKUP_SOSOURCE | SOLOADER_ENABLE_DIRECT_SOSOURCE);
      }

      initSoLoader(soFileLoader);
      initSoSources(context, flags, denyList);
      NativeLoader.initIfUninitialized(new NativeLoaderToSoLoaderDelegate());
    } finally {
      StrictMode.setThreadPolicy(oldPolicy);
    }
  }