summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author lucaslin <lucaslin@google.com> 2021-06-16 17:45:32 +0800
committer lucaslin <lucaslin@google.com> 2021-06-16 17:45:32 +0800
commit010a8e066726b52197fad503f86891da3f827f6b (patch)
treefbedef002c1c1a33c29a9390cf781c1493f35fd9 /libs/androidfw/AttributeResolution.cpp
parente6510baf3bd6b948dff25aae1c997670a68ae392 (diff)
Add OBSERVE_NETWORK_POLICY for shell to test CTS
Both of NetworkPolicyManager#isUidNetworkingBlocked() and NetworkPolicyManager#isUidRestrictedOnMeteredNetworks() are required OBSERVE_NETWORK_POLICY but OBSERVE_NETWORK_POLICY is a signature permission that CTS cannot acquire. So add this permission for shell and call these 2 APIs with shell identity to fix the problem. Bug: 176289731 Test: atest CtsHostsideNetworkTests:HostsideNetworkPolicyManagerTests Change-Id: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions