summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2019-04-01 13:29:12 -0700
committerWinson <chiuwinson@google.com>2019-04-08 12:04:27 -0700
commit87380366ecf60f2cb2697cb26e07ccaf666b45e6 (patch)
tree6240fe2e9ac4b88ecd54f908c7379b67358b19c0 /docs/html/sdk/api_diff
parentc91b915bbbb5844961d5cca3819300ef90c6e731 (diff)
Defer post-install resource clean up for 5 seconds
There is an inherent problem with deleting files on disk while an app is running, since it might still try to access code/resources in the deleted files. We cannot instantaneously update all application threads to the new paths without blocking the world, so keep the old ones around for an arbitrary amount of time. As mentioned in the linked bug, if PackageManager boots with duplicated app directories, it will automatically clean itself up, so we are not concerned with the case where the deferred delete message doesn't get executed in the current device boot cycle. 5 seconds was chosen with no reasoning beyond it feels safe. Bug: 129291162 Test: manual reboot device with invalid dirs on disk Test: manual dynamic feature delivery app with --dont-kill split Change-Id: Id249a185a8556ebf133be3c36b1fec3f14b588ac
Diffstat (limited to 'docs/html/sdk/api_diff')
0 files changed, 0 insertions, 0 deletions