diff options
| author | 2022-01-10 23:58:09 +0800 | |
|---|---|---|
| committer | 2022-01-13 15:55:03 +0800 | |
| commit | 819ab25c2fd689a74506415274fdb36bbe89dcbe (patch) | |
| tree | fc1a41af3fecbd33dcd5869ed66f9f17d82ffee9 /libs/androidfw/StringPool.cpp | |
| parent | cd88027c3eb12baaefbee93b95f088d2611e18e4 (diff) | |
Fix NPE on calling Resources.getConfiguration()
Root cause: To update the code paths without triggering onChanged().
Explanation:
1. The mInstallArgs.mInstallFlags contains
PackageManager.DONT_KILL_APP.
2. The existing package settings is not null.
a.k.a. ps1.getOldCodePaths() != null
3. The call flow doesn't trigger ps1.setOldCodePaths(...)
4. The settings memory has been updated. However, snapshot doesn't
update to the clients of PackageManagerServices.
Reference: b/210884444#comment12
Reference: b/209805326#comment10
Test: presubmit
Bug: 210884444
Bug: 209805326
Change-Id: I8a52a65bdfaed0ab385ee21b0512efae54f92c30
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions