Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rather than taking geoip and geoip6 which are zipped into the APK and inflating them, then copying all 10MB of them each time
OrbotService
starts, we now only extract these files and write them to internal storage if they don't exist or the first time the user opens the app after an update. This way every single timeOrbotService
is subsequently created it doesn't need to do this disk IO.My concern was that blocking disk IO could somehow be deprioritized when Orbot starts in the background on device boot or power saving mode is turned onto the device. For users who start with always on VPN maybe this will make them enter the tor network faster.
This geoip business hooks into a lightweight preference based system into
OrbotApp
that could allow for future on "orbot was just updated to a new version" events.