Add the SoSources for recovering the dso if the file is corrupted or missed
(
Context context, ArrayList<SoSource> soSources, boolean implicitDependencies)
| 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. |