diff options
| author | Jackal Guo <jackalguo@google.com> | 2021-12-09 13:04:24 +0800 |
|---|---|---|
| committer | Jackal Guo <jackalguo@google.com> | 2021-12-14 15:12:25 +0800 |
| commit | e39801390563f3f6a67e06d1338d3f099a93f564 (patch) | |
| tree | f5245749dd32ac3089cc5d674cecaa46f1b9f9c7 /core/java/android/util/SparseArrayMap.java | |
| parent | 97ada9bc8407b7fd5f8b6f7b80640e301575be70 (diff) | |
Mitigate the races during installation.
During the installation of update, the application would be killed
twice. The first one is done by PackageFreezer. It kills and freezes
the application while starting installing. The second one happens
just after the package is unfrozen. Since the application won't be
able to be started when it's frozen. The second kill is a little
overkill to me. It's possible that someone starts the application
before the second kill comes. Skip the second kill to mitigate the
possible race.
Bug: 165012101
Test: atest PackageManagerTest
Change-Id: I5085547ba3f20c370474228deb13bbc24064ae21
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions
