MCPcopy Create free account
hub / github.com/facebook/SoLoader / addBackupSoSource

Method addBackupSoSource

java/com/facebook/soloader/SoLoader.java:512–523  ·  view source on GitHub ↗

Add the SoSources for recovering the dso if the file is corrupted or missed

(
      Context context, ArrayList<SoSource> soSources, boolean implicitDependencies)

Source from the content-addressed store, hash-verified

510
511 /** Add the SoSources for recovering the dso if the file is corrupted or missed */
512 @SuppressLint("CatchGeneralException")
513 private static void addBackupSoSource(
514 Context context, ArrayList<SoSource> soSources, boolean implicitDependencies)
515 throws IOException {
516 if ((sFlags & SOLOADER_DISABLE_BACKUP_SOSOURCE) != 0) {
517 return;
518 }
519
520 BackupSoSource backupSoSource =
521 new BackupSoSource(context, SO_STORE_NAME_MAIN, !implicitDependencies);
522 soSources.add(0, backupSoSource);
523 }
524
525 /**
526 * Add SoSource objects for each of the system library directories.

Callers 1

initSoSourcesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected