commit | 2c8aeb6ae8a10bc6603b0ca8e3b0039049139b2d | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Thu Apr 07 23:24:37 2022 +0000 |
committer | Songchun Fan <schfan@google.com> | Tue Apr 12 23:16:27 2022 +0000 |
tree | 43af6ec41f057ebc6299e1bdff6fa8aae09bbaf7 | |
parent | 7605f736e4e1ab57f69e94a7f6807465fc59a3d5 [diff] |
[pm] delete unfinished sessions when installer is uninstalled A malicious app can create many new sessions without any permission. Prior to this CL, those sessions might remain for days even after the app has been uninstalled. This change makes PackageInstallerService promptly abandon unfinished sessions as soon as the installer package is uninstalled. BUG: 219030339 Test: atest android.content.pm.cts.InstallSessionCleanupTest Change-Id: I72c4a29e031cb47c16c9a0fbafdf68b75c4d6a55