- Feb 09, 2022
-
-
Aaron Huang authored
-
Ken Chen authored
-
Jean Chalard authored
-
Michael Groover authored
-
Ken Chen authored
Change gid BPF programs from AID_ROOT to AID_SYSTEM because system_server needs to access them. Bug: 202086915 Test: test in Ib0e935ee2b714ac61daceba6d13fa7a20f97f68f Change-Id: I8c0019f141414994aad2986cc5dfdb7dd027a36a
-
- Feb 08, 2022
-
-
Lorenzo Colitti authored
-
Lorenzo Colitti authored
This reverts commit 13b96bc6. Reason for revert: - The reverted CL fixes a bootloop on Fi devices and must be submitted again for droidfood stability purposes. - It's not clear whether the revert actually fixes the test that prompted it. Change-Id: I68200501d1c587d1c6b3ad81053175c74961a440
-
Aaron Huang authored
(cherry picked from commit 7174ac3d) Bug: 204153604 Ignore-AOSP-First: part of large topic that only builds internally Test: build, FrameworksVcnTests, FrameworksIkeTests Change-Id: I40740200fe4a7476a21bb5330429a11c97e38fb8 Merged-In: I40740200fe4a7476a21bb5330429a11c97e38fb8
-
Chiachang Wang authored
This adds a new API that lets VPN apps using VpnManager request that the platform run its basic validation check on the resulting network. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I00092eee857d3e33529b19461cfd5dd060a0fe20
-
Jordan Demeulenaere authored
-
Jordan Demeulenaere authored
This reverts commit a7d4766d. Reason for revert: DroidMonitor: Potential culprit for Bug 218308105 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: Ia9953d023c1eb84846834f92d4f38a72fa14bd30
-
Mingguang Xu authored
-
Mingguang Xu authored
Add a link to javadoc for the allowed types and use the lint annotation to suppress compilation errors instead of modifying the baseline file. Bug: 213240318 Test: atest FrameworksNetTests Test: atest NetworkStackTests Signed-off-by:
Mingguang Xu <mingguangxu@google.com> Change-Id: I2a83cc19baa25068326517b30a9afdea19536af9
-
- Feb 07, 2022
-
-
Jacob Hobbie authored
In order to follow the new dynamic receiver paradigm introduced in T, receivers will have to be specifically marked as exported or not exported when registering dynamically. Since this is in a test only, and the test says that it needs the broadcast to be in a different process, mark as exported. Bug: 161145287 Change-Id: I112d56962e3a6c3043240f8dfab058dc5a728ba9 Test: atest HostsideRestrictBackgroundNetworkTests#testAppIdle_toast
-
Etan Cohen authored
Create public API for IP and static IP configuration. Bug: 209840828 Test: atest android.net.cts.IpConfigurationTest Test: atest android.net.cts.StaticIpConfigurationTest Test: atest android.net.dhcp.DhcpResultsParcelableUtilTest Change-Id: I720f168d1023806970919ca5dd44239a276826b6
-
Rambo Wang authored
-
Lorenzo Colitti authored
If libraries are moved from the platform to a module, the test will fail with: CANNOT LINK EXECUTABLE "/data/local/tmp/libnetworkstats_test/arm64/libnetworkstats_test": library "libnetworkstats.so" not found: needed by main executable This may be because it can't find libnetworkstats.so because that is in platform. In any case, since this is the test for libnetworkstats, dynamically linking libnetworkstats is incorrect, because it means if the same CL modifies both libnetworkstats and its test, that CL will run the modified test against the unmodified libnetworkstats.so on the device, when running updating tests without reflashing the device. Also remove libutils because it does not seem to be needed. Test: atest libnetworkstats_test passes with libraries moved Change-Id: Id49641c0a919129e2c54531c3995ec7421161002
-
- Feb 06, 2022
-
-
Chalard Jean authored
UIDs can't be sent to netd until the native network is created. Also, it's possible that the interface disappears at any moment, so in that case catch the ServiceSpecificException. Test: FrameworksNetTests Bug: 218100554 Change-Id: I79285166acf5d89aa34107e00dfff963ccc22d52
-
- Feb 04, 2022
-
-
Jean Chalard authored
-
Rambo Wang authored
Monitoring carrier config change broadcast and then checking carrier privileges status is racy. The component that updates CP status (e.g. CarrierPrivilegeTracker) may monitor the same broadcast and the status check result will be determined by the fact who received it firstly. This CL moves the CP check after the current sleep to reduce the flakiness to unblock the CP migration. The follow CL (aosp/1971439) will throughly resolve the flakiness by the the help of CarrierPrivilegesListener. Bug: 217557996 Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest Change-Id: Ib1ab554732b6bb25426a07a42043801a2d05c546
-
Treehugger Robot authored
-
Patrick Rohr authored
* changes: Extract TestBpfMap from BpfCoordinatorTest. Add jarjar rule for com.android.testutils.TestBpfMap
-
Remi NGUYEN VAN authored
-
Remi NGUYEN VAN authored
-
Patrick Rohr authored
libservice-connectivity already links against libbase dynamically. Test: m Change-Id: I66da65d6f618799ded21a3f6cdc71f444acd72fd
-
Lorenzo Colitti authored
Passing one of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED is required for all code targeting T or above. The correct value here is RECEIVER_NOT_EXPORTED because the receiver is being registered in the system server and the broadcast comes from the system server itself (same UID). This does not need to be guarded by OS version because CarrierPrivilegeAuthenticator is only used on T+. Test: m Fix: 217642082 Change-Id: I09840b17bd54352896607737b56c6a692ffbd2c2
-
Treehugger Robot authored
-
- Feb 03, 2022
-
-
Lorenzo Colitti authored
The class is being moved to a common test utils location in another CL in this topic. Test: atest BpfCoordinatorTest Change-Id: Ibf8dae3e05aacaea4f7c3fe8229d87e1ad6a68d5
-
Patrick Rohr authored
TestBpfMap needs to be jarjar'ed to work with ConnectivityCoverageTests which combines both framework tests and tethering tests (and their respective jarjar rules). Test: atest ConnectivityCoverageTests:BpfCoordinatorTest Change-Id: Ie3e7f0be9aeb848978f0df97be48100c808086bc
-
Patrick Rohr authored
* changes: jni - dynamically link C++ - saves 43 kB libservice-connectivity - dynamically link c++ - saves 600 kB link libbase & libnetdutils dynamically - save ~17.5 kiB remove spurious headers libclat only depends on libbase_headers not libbase itself
-
Robert Horvath authored
* changes: Add Low Power Standby support to TrafficController Handle Low Power Standby chain in ConnectivityService Implement Low Power Standby packet filtering in BPF program
-
Remi NGUYEN VAN authored
Verify that services will be found / lost when underlying networks change. Bug: 190249673 Test: atest NsdManagerTest Change-Id: If62b18a729c6d7b8e2c8701eda6f860ecea4cbaf
-
Remi NGUYEN VAN authored
Test that NsdManager specifies the correct network when a service is discovered, and that services can be resolved on a specified network. Also test that service discovery can be started on a specific network. Bug: 190249673 Test: atest NsdManagerTest Change-Id: Ie8b551ce9e33e3adf35f75508f91bbd0df71f837
-
Maciej Żenczykowski authored
Since we already ship libc++ in the apex anyway... Before in /apex/com.android.tethering/lib: -rw-r--r-- 1 system system 64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so After: -rw-r--r-- 1 system system 21460 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I50417e69a9a0b03d24212aa3f875bf241e0b0527
-
Maciej Żenczykowski authored
Before in /apex/com.android.tethering/lib: -rw-r--r-- 1 system system 749980 1969-12-31 16:00 libservice-connectivity.so After: -rw-r--r-- 1 system system 150748 1969-12-31 16:00 libservice-connectivity.so Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I6892d81ca597d27cc1a85180f7ffa39f2b3de1be
-
Maciej Żenczykowski authored
Before: $ adbz root && adbz wait-for-device && adbz shell ls -l /apex/com.android.tethering/{bin/for-system,lib,liv64} /apex/com.android.tethering/bin/for-system: = -rwsr-sr-x 1 clat clat 18412 1969-12-31 16:00 clatd /apex/com.android.tethering/lib: = -rw-r--r-- 1 system system 64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so = -rw-r--r-- 1 system system 713636 1969-12-31 16:00 libc++.so = -rw-r--r-- 1 system system 13596 1969-12-31 16:00 libframework-connectivity-jni.so d -rw-r--r-- 1 system system 212624 1969-12-31 16:00 libnetd_updatable.so d -rw-r--r-- 1 system system 948044 1969-12-31 16:00 libservice-connectivity.so After: $ adbz root && adbz wait-for-device && adbz shell ls -l /apex/com.android. /apex/com.android.tethering/bin/for-system: = -rwsr-sr-x 1 clat clat 18412 1969-12-31 16:00 clatd /apex/com.android.tethering/lib: = -rw-r--r-- 1 system system 64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so + -rw-r--r-- 1 system system 251404 1969-12-31 16:00 libbase.so = -rw-r--r-- 1 system system 713636 1969-12-31 16:00 libc++.so = -rw-r--r-- 1 system system 13596 1969-12-31 16:00 libframework-connectivity-jni.so d -rw-r--r-- 1 system system 45584 1969-12-31 16:00 libnetd_updatable.so + -rw-r--r-- 1 system system 95872 1969-12-31 16:00 libnetdutils.so d -rw-r--r-- 1 system system 749980 1969-12-31 16:00 libservice-connectivity.so Delta: -212624-948044+251404+45584+95872+749980 == -17828 Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Id88468442c4f3f24d5bca96b75effb69f20038bf
-
Maciej Żenczykowski authored
bpf_connectivity_headers already pulls in bpf_headers, which already pulls in bpf_syscall_wrappers. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ib22da8d433bd3187349f06f41ec064360c38982f
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Iad66f0d4bed4100261e8aa7d135e62336cdd1ae8
-
- Feb 02, 2022
-
-
Treehugger Robot authored
-
Robert Horvath authored
Bug: 190822356 Test: atest TrafficControllerTest Change-Id: I84a95081ab6e6a86543fe2cddf0efdab16c90d72
-