Skip to content

Commit

Permalink
Reorder recovery strategies
Browse files Browse the repository at this point in the history
Reviewed By: michalgr

Differential Revision: D50323350

fbshipit-source-id: 56a6767ff6d7cc29dff29d4de6f1d0d13a92025d
  • Loading branch information
adicatana authored and facebook-github-bot committed Jan 4, 2024
1 parent 054abf6 commit 54c4462
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ public DefaultRecoveryStrategyFactory(Context context) {
@Override
public RecoveryStrategy get() {
return new CompositeRecoveryStrategy(
// The very first recovery strategy should be to just retry. It is possible that one of the
// SoSources was recovered in a recursive call to load library dependencies and as a result
// no recovery steps will succeed now, but another attempt to load the current library would
// succeed. WaitForAsyncInit is a strategy that always succeeds, so we don't need an
// explicit SimpleRetry.
new WaitForAsyncInit(),
new DetectDataAppMove(mContext, mBaseApkPathHistory),
new CheckBaseApkExists(mContext, mBaseApkPathHistory),
new WaitForAsyncInit(),
new ReunpackBackupSoSources(),
new ReunpackNonBackupSoSources(),
new WaitForAsyncInit(),
new CheckBaseApkExists(mContext, mBaseApkPathHistory));
new WaitForAsyncInit());
}
}

0 comments on commit 54c4462

Please sign in to comment.