summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2022-04-09 00:30:04 +0000
committer Songchun Fan <schfan@google.com> 2022-04-12 00:18:35 +0000
commitdd2636a4f82ee743f887ae47f072ed2a890f486b (patch)
tree08e82888ffbeaa2cd9bb0ae4ee929e0ffe173449 /libs/androidfw/StringPool.cpp
parent7605f736e4e1ab57f69e94a7f6807465fc59a3d5 (diff)
Fix NPE in AppsFilter
Previously we used pmInternal to get shared user packages from package setting. This has two issues: 1) pmInternal is null in the snapshotted version of AppsFilter which leads to NPE and system crashes. 2) The pmInternal method uses the snapshotted computer which means we are mixing live data (from mStateProvider) and snapshot data. This CL fixes it by including all the share user packages info in the StateProvider and force using live data for getting the shared user packages. BUG: 226668722 Test: atest AppsFilterImplTest Change-Id: I5580e24382e4a1b9d3e41821def714af0899b822
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions