- Feb 08, 2022
-
-
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
-
- 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
-
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
-
Robert Horvath authored
Bug: 190822356 Test: atest NetworkManagementServiceTest Change-Id: If5a07d0ea958d832b00797a9d9a4d5ad4f129b89
-
Robert Horvath authored
Bug: 190822356 Test: atest NetworkManagementServiceTest Change-Id: I664414fbb744a118d4d0fea4ed91680bb38efe07
-
Maciej Żenczykowski authored
This is basically a no-op since the apex/fs is r/o anyway, but it appears like it might help the emulator build... Test: N/A Bug: 217565060 Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I5e9c9fb41687aa5a4b15ff2bf21eafecada726a8
-
Patrick Rohr authored
Test: builds && boots Change-Id: Iacaed446655a606399188b8e5e4a5e98fefee121
-
Maciej Żenczykowski authored
-
Robert Horvath authored
* changes: Define BLOCKED_REASON_LOW_POWER_STANDBY Define FIREWALL_CHAIN_LOW_POWER_STANDBY
-
Jean Chalard authored
* changes: Use packBitList to prevent long-related mistakes Introduce ensureListenableCapabilities Accept accessUids from telephony when it's the carrier config app
-
Chalard Jean authored
In the following expression 1L << CONSTANT it is easy to forget the L, especially where it has not been necessary historically. This has happened in capabilities where they exceeded 30, see aosp/1928394. Use the new packBitList to avoid repeats of the same mistake. Test: FrameworksNetTests Change-Id: Ic6a1aa9254bf9ad222c3e2fe4f52bb89a1f9c4e5
-
Chalard Jean authored
Renamed from ensureValid, this is an easier to understand name. It is also a lot clearer when requestable capabilities also have to be listenable. Also move the 2 functions together. Test: FrameworksNetTests Change-Id: I685f924a3720846d740837a4a0fee3d88a26725a
-
Chalard Jean authored
Test: FrameworksNetTests, new test in this patch Change-Id: I50fab91e107c51d33a5e529c73b83db198a88d2c
-
- Feb 01, 2022
-
-
Patrick Rohr authored
netlink_listener_test tests the socket destroy listener, so it makes sense to just merge it into the TrafficControllerTest. Test: atest traffic_controller_unit_test Change-Id: Ibc0b483203150aa2d7898a761fa4715dce6f4218
-
Patrick Rohr authored
Log result code in native_init and fix spelling in log messages. Test: m Change-Id: I39b429ba05c6d5ccf50d28b0592fa5241972aa1b
-
Patrick Rohr authored
Test: atest FrameworksNetTests FrameworksNetIntegrationTests CtsNetTestCases:android.net.TrafficStatsTest NetworkUsageStatsTest CtsHostsideNetworkTests Change-Id: I03f70e3258bf121cbac69a3bb302871ac680c6fb
-
Patrick Rohr authored
We are ready to remove traffic controller from netd, so TrafficController::start() should be called from the system server. This reverts commit c2984fdc. Test: atest FrameworksNetTests FrameworksNetIntegrationTests CtsNetTestCases:android.net.TrafficStatsTest NetworkUsageStatsTest CtsHostsideNetworkTests Change-Id: Ic324ad0c064271977ab35d7f55badee00098e196
-
Robert Horvath authored
Bug: 190822356 Test: atest NetworkPolicyManagerServiceTest Change-Id: I72c81ba1c3791e40a2d311cc3a06bf3b5d3727d1
-
Robert Horvath authored
Bug: 190822356 Test: atest NetworkManagementServiceTest Change-Id: I970eea0e1952f8074cc5c998bbd2ee1ff5a3dc92
-
Patrick Rohr authored
Test: atest FrameworksNetIntegrationTests Change-Id: I1548793872bef2f8247558d7d4222cd8162c1601
-