Junyu Lai
e51bae6bdc
Fix system caller cannot query stats for other uids
...
Follow-up from aosp/3249945. If the system caller queries stats
for other UIDs, the caller would get UNSUPPORTED.
This follows the official documentation, where the API would
not return stats for all other UIDs.
However, partners or other legacy callers might already depend
on this undocumented behavior. Changing this behavior might
damage existing apps.
Thus, this change reverts the behavior change introduced at
aosp/3249945 and allows a system caller to query stats for
other UIDs.
Test: atest ConnectivityCoverageTests:android.net.connectivity.android.net.TrafficStatsTest
Bug: 372851500
Change-Id: Ia7ea051f7b0b6349ffcb890c300362bbfbdee3dc
2024-10-30 23:02:55 +08:00
..
ipmemorystore
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09:00
netstats
Don't clobber existing history entries.
2022-05-24 11:37:42 +08:00
nsd
[mdns] add hidden API for public key
2024-04-24 07:02:42 +00:00
util
add TRANSPORT_SATELLITE to NetworkCapabilities
2024-02-07 16:07:39 +00:00
ConnectivityManagerTest.java
Only send callbacks when overridden
2024-06-26 12:39:47 +09:00
EthernetNetworkUpdateRequestTest.java
Add test for nullable IpConfiguration
2022-03-16 20:29:10 +01:00
IpMemoryStoreTest.java
Add unit test to verify retrieving and storing the network events.
2024-09-03 15:56:59 +00:00
IpSecAlgorithmTest.java
ipsec - use ro.vendor.api_level instead of ro.product.first_api_level
2022-11-09 00:47:13 +00:00
IpSecConfigTest.java
Add some non-connectivity-module-test back to ConnectivityCoverageTests
2022-05-27 07:16:46 +00:00
IpSecManagerTest.java
Add some non-connectivity-module-test back to ConnectivityCoverageTests
2022-05-27 07:16:46 +00:00
IpSecTransformTest.java
Expose APIs to migrate IpSecTransform
2023-01-10 19:09:05 +00:00
KeepalivePacketDataUtilTest.java
Remove toString test.
2023-06-01 21:34:50 +00:00
MacAddressTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09:00
MulticastRoutingConfigTest.kt
Add equals, hashCode to MulticastRoutingConfig
2023-11-10 13:06:22 +08:00
NetworkCallbackFlagsTest.kt
Only send callbacks when overridden
2024-06-26 12:39:47 +09:00
NetworkIdentitySetTest.kt
Fix NullPointerException happens in dumpCheckin
2022-04-19 17:49:30 +08:00
NetworkIdentityTest.kt
Revert consider TEMPORARILY_NOT_METERED as unmetered in data usage
2022-12-02 16:04:55 +08:00
NetworkStackBpfNetMapsTest.kt
Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX
2024-04-23 15:04:28 +09:00
NetworkStatsAccessTest.java
Check MAINLINE_NETWORK_STACK as well to make GTS can access proper stats
2023-04-11 14:56:15 +08:00
NetworkStatsCollectionTest.java
[AF02.1] Support read by FastDataInput in the NetworkStatsRecorder
2023-12-21 15:14:59 +08:00
NetworkStatsHistoryTest.java
Disable flaky NetworkStatsHistoryTest#testFuzzing in presubmit
2023-10-16 17:21:06 +08:00
NetworkStatsRecorderTest.java
[AF08] Fill useFastDataInput metrics
2023-12-26 03:38:48 +00:00
NetworkStatsTest.java
Address review followup comments for NetworkStats
2023-09-04 18:01:14 +08:00
NetworkTemplateTest.kt
Add some tests back which were removed for fixing kotlin nullable errors
2023-08-24 11:25:21 +09:00
NetworkUtilsTest.java
NetworkUtilsTest.testSetSockOptBytes
2024-01-29 13:30:53 +08:00
QosSocketFilterTest.java
Support QosCallback with UDP socket. UnitTest
2022-05-05 08:45:00 +00:00
QosSocketInfoTest.java
Support QosCallback with UDP socket. UnitTest
2022-05-05 08:45:00 +00:00
TelephonyNetworkSpecifierTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09:00
TrafficStatsTest.kt
Fix system caller cannot query stats for other uids
2024-10-30 23:02:55 +08:00