Issue metadata
Sign in to add a comment
|
Extract resources in the background when possible |
||||||||||||||||||||||
Issue descriptionThere are several cases where we could pre-emptively extract pak files to improve start up time, including: * After clearing package data * After updates/installs * After language changes * After boot There are broadcast receivers for all of these, but only ACTION_MY_PACKAGE_REPLACED is available for O+, so we'll need to use another approach. One approach is to use Background Task Scheduler to periodically check if we need to extract pak files and kick off extraction when necessary. It isn't perfect; we aren't actually listening for the events so we might end up missing opportunities to pre-extract these files but it's still more performant than the current setup.
,
Sep 19 2017
If a user clears app data, I don't think we should be re-extracting until it's necessary. I think updates are really the only event in this list that happens with any sort of regularity (I'd guess it's the cause of needing to extract 99% of the time), so I think just relying on ACTION_MY_PACKAGE_REPLACED is sufficient.
,
Sep 19 2017
,
Sep 19 2017
#2 sgtm
,
Sep 20 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by yfried...@chromium.org
, Sep 19 2017