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
Loading
Please register or sign in to comment