diff options
| author | 2023-06-21 13:06:50 +0900 | |
|---|---|---|
| committer | 2023-07-17 09:08:19 -0700 | |
| commit | db3374bef79a2fbe3fa462cb28883c7f7619c924 (patch) | |
| tree | 69108de518f68fc2d63d950e5a54f576652ff65e /libs/androidfw/StringPool.cpp | |
| parent | 78de523ef205bfd9a1ba2e51e447934dd96a8913 (diff) | |
Improve performance of AppsFilter#removePackage()
Basically, it updates all visibilities for packages sharing the same
uid on removePackage(). However, the calculated visibility for the uid
is always the same and it could take a lot of time if there are many
packages for the uid.
This CL calculates and updates visibility once only for a package among
them in case of sharedUserId.
Bug: 288223730
Test: atest PackageManagerServiceServerTests:AppsFilterImplTest
Change-Id: I2650e4aa50993ce814d4e90da7a3f16982e2e32c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions