Aaron Huang
8ac1143594
Remove requireNonNull check from matchesWifiNetworkKey
...
matchesWifiNetworkKey expects a non-null value of the
wifiNetworkKey, however, it might be null in practice
and the null wifiNetworkKey will be stored into disk.
And then when the matchesWifiNetworkKey is called, the
requireNonNull will crash the system. Thus, remove the
requireNonNull from matchesWifiNetworkKey to avoid
system crash and handle if the wifiNetworkKey is null
then it should not match a template with non-empty
mMatchWifiNetworkKeys.
Check if WifiInfo contains a null network key then skip it
to prevent adding the identity to the network identity set.
Also, add a Log.wtf when setWifiNetworkKey(info.getNetworkKey()),
this might be useful to catch why the wifiNetworkKey is
null.
Bug: 267815242
Bug: 266598304
Test: FrmeworksNetTests
Change-Id: I9c21f7e3dca9482133c7e331741cf808105414e9
2023-03-07 18:16: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
Moves all compatibility flags to ConnectivityCompatChanges.java
2023-02-09 19:51:37 +09:00
util
add TRANSPORT_THREAD to NetworkCapabilities
2023-01-16 10:51:56 +08:00
ConnectivityManagerTest.java
Increased the timeout from 5 to 30 seconds
2022-12-06 06:51:03 +00:00
EthernetNetworkUpdateRequestTest.java
Add test for nullable IpConfiguration
2022-03-16 20:29:10 +01:00
Ikev2VpnProfileTest.java
Add unit tests for new VpnProfile fields
2023-02-15 15:01:28 +00:00
IpMemoryStoreTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09: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
Move fromStableParcelable to KeepaliveController
2021-11-01 13:23:27 +09:00
MacAddressTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +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
NetworkStatsAccessTest.java
Add some non-connectivity-module-test back to ConnectivityCoverageTests
2022-05-27 07:16:46 +00:00
NetworkStatsCollectionTest.java
Cleanup constructor of NetworkStats#Entry
2022-08-02 22:49:16 +08:00
NetworkStatsHistoryTest.java
Cleanup constructor of NetworkStats#Entry
2022-08-02 22:49:16 +08:00
NetworkStatsRecorderTest.java
Add wipeOnError flag to NetworkStatsRecorder
2022-06-22 17:37:51 +08:00
NetworkStatsTest.java
Add test for NetworkStats.clearInterfaces
2022-10-12 18:57:43 +00:00
NetworkTemplateTest.kt
Remove requireNonNull check from matchesWifiNetworkKey
2023-03-07 18:16:55 +08:00
NetworkUtilsTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09: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
VpnManagerTest.java
Re-skip connectivity unit tests before S
2021-06-30 12:00:28 +09:00