summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorJackal Guo <jackalguo@google.com>2022-01-21 15:51:00 +0800
committerJackal Guo <jackalguo@google.com>2022-02-21 09:20:06 +0000
commit65067cb36da639e5a0cbd14bb14b9586dc721b63 (patch)
tree007aa02a88c820fdafc269f2a362a9bfdd9ad977 /core/java/android/util/SparseSetArray.java
parent038fd80ce8b34d30bbd4ae8084f085b38ab34ca0 (diff)
Mitigate the races during installation
When handling post-install during the installation process, some tasks are posted to PackageHandler and be executed after notifying the install observer (install initiator). The task includes force- stopping the package. If the install observer starts the app right after being notified, the ongoing force-stop will kill the process. The race happens. To mitigate the potential race, We should defer the notification until these tasks are done. Bug: 165012101 Test: atest -p services/core/java/com/android/server/pm Change-Id: Ia6b32f72f3d75b8a40c42e11d21f21c459db5299 Merged-In: Ia6b32f72f3d75b8a40c42e11d21f21c459db5299 (cherry picked from commit bad03aa3c9d2d1a5a875222936ccb9215d7ee137)
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions