summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2024-02-23 18:38:03 -0800
committer Suprabh Shukla <suprabh@google.com> 2024-02-26 19:45:42 -0800
commitcafca44d84955504857e337fced3bef2912802bd (patch)
treeb3e880b5e7414e96b66a5e7aa435b5b926556475 /libs/androidfw/ZipFileRO.cpp
parent2ce9e8b0482aa55031f5eef98fa3fbae67f8e188 (diff)
Remove UidStateCallbackInfo when uid is gone
A bug was introduced by recent changes to filter out redundant process state changes. NPMS was caching UidStateCallbackInfo objects per uid and not clearing it or resetting the procStateSeq when the uid went away. This resulted in state-changes not being processed after app restarts. For example, if an app exited from TOP, it would lose network access due to some rules, but the last UidStateCallbackInfo would stay at TOP. If the same app restarted, the change would be filtered out as uninteresting even though the network rules require an update. Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest Bug: 326370901 Bug: 326675380 Change-Id: I016435abcfd5300f33374e5d5c144b25f81728b4
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions