android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Roshan Pius d499517306 NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Change-Id: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
Merged-In: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
2020-02-12 04:42:58 +00:00
..
connectivity Add separate user consent for Platform VPNs 2020-02-04 21:05:36 +00:00
net [SP04] add unit test for NetworkStatsProvider 2020-01-13 14:43:06 +08:00
ConnectivityServiceTest.java NetworkRequest: Embed requestor uid & packageName 2020-02-12 04:42:58 +00:00
IpSecServiceParameterizedTest.java Add IPsec checks for IPSEC_TUNNEL feature 2019-05-08 00:11:28 +00:00
IpSecServiceRefcountedResourceTest.java Fix remove-before-add for IpSecService RefcountedResource 2019-04-09 21:37:26 +00:00
IpSecServiceTest.java Revert "Add NATT keepalive resources and methods into IpSecService" 2019-05-10 00:58:18 +08:00
LegacyTypeTrackerTest.kt Add tests for the legacy broadcast 2019-11-19 21:08:44 +09:00
NetIdManagerTest.kt Add NetIdManagerTest 2019-09-04 15:57:58 +09:00
NetworkManagementServiceTest.java Cleanup NetworkManagementService for Netd commnads binder migrartion 2019-03-20 20:02:24 +08:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00