public static synchronized void ensure() {
    if (!sInitialized) {
      // On Android 4.1.2 the loading of the native-imagetranscoder native library can fail because
      // of the dependency with fb_jpegturbo. In this case we have to explicitely load that
      // library
      if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN) {
        try {
          NativeLoader.loadLibrary("fb_jpegturbo", SKIP_MERGED_JNI_ONLOAD);
        } catch (UnsatisfiedLinkError error) {
          // Head in the sand
        }
      }
      NativeLoader.loadLibrary("native-imagetranscoder");
      sInitialized = true;
    }
  }
Single place responsible for ensuring that native-imagetranscoder.so is loaded
native-imagetranscoder/src/main/java/com/facebook/imagepipeline/nativecode/NativeJpegTranscoderSoLoader.java