android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Rohr 47641d75d9 Move ipconfig file inside apex data directory
In order to support rollbacks, the ethernet ipconfig file needs to be
written to the data apex's data directory. We still need to support
reading from the legacy location to be backwards compatible.

If the apex file path already exists, then read the IP configuration
from there directly, otherwise, check if the legacy file path exists,
if yes, read the legacy IP configuration and copy it to the new apex
file path.

Support for default IpConfiguration is also being removed in this CL.
The default IpConfiguration (configuration entry for interface "0")
was a way to transition from supporting a single interface to
supporting multiple interfaces and was introduced in P. Every device
that has used such a configuration and has connected to an ethernet
network since upgrading to P+ has already removed the "0" config and
has assigned it to the first interface (probably "eth0"). There has
never been an API to set this, but if someone wanted to install a
default IpConfiguration, they could just configure "eth0" instead.

Bug: 224919694
Test: atest EthernetConfigStoreTest --iterations
Test: manually test
      - adb push <fake ipconfig.txt> /data/misc/ethernet/
      - adb reboot
      - read the IP config from legacy path and the same config
        file is created in the apex file path
      - adb reboot
      - read the IP config from the apex file path directly
Change-Id: Ifb82a5d7fa13d17ea8fd3a42a19cd020cb95e26a
2022-05-20 09:20:54 +09:00
..
connectivity Block incoming packets in VPN Lockdown mode. 2022-05-16 10:40:59 +00:00
ethernet Move ipconfig file inside apex data directory 2022-05-20 09:20:54 +09:00
net Limit data usage request per uid 2022-05-12 08:53:21 +08:00
BpfNetMapsTest.java Merge "Remove ConnectivityManager swapActiveStatsMap API" 2022-03-08 06:31:23 +00:00
ConnectivityServiceTest.java Allow ethernet on automotive to set allowed UIDs 2022-05-17 15:32:13 -07:00
IpSecServiceParameterizedTest.java Add makeDependencies method in IpSecService related tests 2021-12-10 12:11:20 +00:00
IpSecServiceRefcountedResourceTest.java Change to use Dependencies in IpSecService Tests 2021-11-27 00:27:33 +08:00
IpSecServiceTest.java Add makeDependencies method in IpSecService related tests 2021-12-10 12:11:20 +00:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
NetworkManagementServiceTest.java Split updateMeteredNetwork{Allow, Deny}List into add and remove 2022-03-09 11:17:27 +08:00
NsdServiceTest.java Use MDns aidl on NsdService 2022-04-04 15:18:27 +00:00