summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorlucaslin <lucaslin@google.com>2022-03-22 18:15:09 +0800
committerlucaslin <lucaslin@google.com>2022-03-22 18:15:09 +0800
commit69e1aa9117adeaf07e3c1d5612e466b4a6ae7ff5 (patch)
treefa075a85f4bcb58265fe268b81664f297982dc0c /tests/common/java/android/net/NetworkCapabilitiesTest.java
parentf7c071b1c4172e66e396972cdab26b0cc744b620 (diff)
Add @RequiresPermission for setUnderlyingNetworks
setUnderlyingNetworks() is mainly for the NetworkAgents who hold the NETWORK_FACTORY to set its underlying networks. And the underlying networks are only visible and useful for the caller of getNetworkCapabilities() or the receiver of onCapabilitiesChanged() who hold one of NETWORK_FACTORY, NETWORK_SETTINGS and MAINLINE_NETWORK_STACK permissions. Otherwise, the underlying networks field will be cleard before sending. Bug: 205738644 Test: atest CtsNetTestCases:ConnectivityManagerTest atest CtsHostsideNetworkTests:HostsideVpnTests atest FrameworksNetTests Change-Id: Ife7630d9676a31ee5ab977cb1b87aec3b6fd7080
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions