commit | 25728b15e487b01963f11d425d38d2e2f8e63b06 | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Mon Apr 05 19:59:28 2021 +0000 |
committer | Songchun Fan <schfan@google.com> | Fri Apr 09 13:21:32 2021 -0700 |
tree | 1cd85c5be3c527e75e3626955c84eebab2979281 | |
parent | f7923a9cc21746895ac459241e724b0da0339380 [diff] |
[SettingsProvider] remove in-lock calls to PackageManager.getPackageUid() Cache a list of package names of system packages, so we don't have to check with package manager everytime if a package is system package or not. This removes the deadlock between SettingsProvider and PackageManagerService caused by getPackageUid(). BUG: 183007597 Test: run "atest NeneTest" and see there is no deadlock caused by SettingsProvider Change-Id: Ia98d47f12d218a7b98ef9003b786ba60e9212e20