summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2023-04-23 03:39:21 +0000
committer Sudheer Shanka <sudheersai@google.com> 2023-04-23 09:11:07 +0000
commit575f04c6d21b1ea65684739e16d3474ce80a5446 (patch)
treec0a80f768071153ea56d0050f19126013b81f386 /libs/androidfw/FileStream.cpp
parent150c188a6973f5b7bec5be34b9e01dbf86a69a74 (diff)
Use pending uid state when calculating network blocked state.
Since uid state callbacks are handled asynchronously, it is possible that the network gets restricted before the uid state callback is handled. So, when checking if the uid is in the foreground, also consider any pending uid callback info. Fixes: 278453942 Fixes: 278661002 Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideConnOnActivityStartTest.java Test: atest services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java Change-Id: Id5b6bd025731dc57952fef5e311d6efef310ff94
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions