android_packages_modules_Co.../framework/api
Repository files (latest commit first)
Filename Latest commit message Latest commit date
lucaslin 69e1aa9117 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
2022-03-22 18:15:09 +08:00
..
current.txt Expose public APIs for IP & static IP configuration 2022-02-07 19:57:07 +00:00
lint-baseline.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
module-lib-current.txt Rename setAccessUids to setAllowedUids 2022-03-16 17:58:20 +00:00
module-lib-removed.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
removed.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
system-current.txt Add @RequiresPermission for setUnderlyingNetworks 2022-03-22 18:15:09 +08:00
system-lint-baseline.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
system-removed.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00