diff --git a/java/com/facebook/soloader/SoLoader.java b/java/com/facebook/soloader/SoLoader.java index 2286c18..b3b858c 100644 --- a/java/com/facebook/soloader/SoLoader.java +++ b/java/com/facebook/soloader/SoLoader.java @@ -513,7 +513,9 @@ private static int makePrepareFlags() { if ((sFlags & SOLOADER_DISABLE_FS_SYNC_JOB) != 0) { prepareFlags |= SoSource.PREPARE_FLAG_DISABLE_FS_SYNC_JOB; } - prepareFlags |= SoSource.PREPARE_FLAG_SKIP_BACKUP_SO_SOURCE; + if ((sFlags & SOLOADER_EXPLICITLY_ENABLE_BACKUP_SOSOURCE) == 0) { + prepareFlags |= SoSource.PREPARE_FLAG_SKIP_BACKUP_SO_SOURCE; + } return prepareFlags; } finally { sSoSourcesLock.writeLock().unlock();