-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run prepare() for BackupSoSource to cleanup previous state
Summary: Currently, the BackupSoSource does not clean after itself when a new version of the app is installed. That is because prepare() does not run unless there is a crash. This diff changes that by running prepare() with special flags whenever initialising SoLoader. With the new flag, we make sure that `deleteSoFiles` runs when necessary, e.g. when deps have changed. To differentiate between different states, we simply skip writing sos to disk and the deps state (which is empty). Reviewed By: danjin250 Differential Revision: D60186847 fbshipit-source-id: e029b9c31ac9a677cae5e9c9d80cf8aee79da35d
- Loading branch information
1 parent
fd35038
commit a5ebc83
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters