- Nov 18, 2021
-
-
Treehugger Robot authored
-
- Nov 17, 2021
-
-
Maciej Żenczykowski authored
Note: due to the release version of the Connectivity/Tethering mainline module being built from sc-mainline-prod, this won't actually take effect until system/bpf bpfloader at version 0.6+ is merged in to that tree. This doesn't really matter, since currently things default to v0.0+. But there is no mainline module updatable pre-v0.2 supported OS anyway. BpfLoader v0.2 is what shipped in Android S Beta 4 through Android S Final. Before S there simply was no bpfloader support for mainline updatable ebpf code, while S Beta 3 and earlier shipped v0.0 which is badly incompatible with even the current version of the mainline module. Additionally v0.0 doesn't even parse this field, while v0.1 which does was very short lived [~3 days] and can thus be utterly ignored. As such this change is effectively a no-op, and even post merge of bpfloader v0.6+ into sc-mainline-prod will still be effectively a no-op. So why do it? I want to explicitly document that these programs are S+, so that I can change the default in the future to be T+. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I7e5d0124700c7045abe16b1f3b504c9e88054ff2
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
Since you cannot include yourself we need an extra level of indirection, to make sure that OWNERS remains current even in historical branches. Also vastly increase the number of OWNERS Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I19723fd9fbcee8fe3d8c9386ec5290d2764f2104
-
- Nov 15, 2021
-
-
Taras Antoshchuk authored
Apply NetworkStackNextEnableDefaults to CtsNetTestCases to disable it in branches where NetworkStackNext and related targets should not be built. Test: presubmit Change-Id: I850b4294aa4c3c01f8871760185ca7fedc0f8584
-
Chalard Jean authored
When NetworkInfo(null) or setDetailedState(null, any, any) are called, S used to not crash but plant a null bomb for later which may explode in some calls (notably, parceling) : see the bug referenced below for details. To help catching these errors earlier a patch was made to crash as soon as one of these methods is called with a null argument, but this will also crash incorrect use on existing code that may never actually step on the mine, crashing code that used not to crash. For safety, implement the new behavior only on T. Bug: 145972387 Test: NetworkInfoTest Change-Id: Ib710497d83b2d26439c2bd4d2f572310db97d6fd
-
- Nov 11, 2021
-
-
Maciej Żenczykowski authored
* changes: Rename libbpfmapjni and include bpf common util library Rename tethering jni and get the jni by its package name
-
Treehugger Robot authored
-
markchien authored
1. libbpfmapjni.so is rename to libnet_utils_device_common_bpf.so 2. net-utils-device-common-bpf.jar is separated from net-utils-device-common-netlink.jar Bug: 205088391 Test: atest TetheringTests atest CtsTetheringTest atest TetheringPrivilegedTests Change-Id: If59b35b3429ebd597c18678499ff458183f89026
-
Remi NGUYEN VAN authored
-
Remi NGUYEN VAN authored
Mark NetworkCapabilitiesTest as ConnectivityModuleTest so that it is only run in MTS with the Connectivity module installed, and fix parceling tests to use the right number of fields in that case. NetworkCapabilitiesTest is only useful to test the Connectivity module, and not other modules like NetworkStack, as it is a unit test of a class in the Connectivity module. Bug: 205901761 Test: atest NetworkCapabilitiesTest Change-Id: I10ba0f866bc7a39b2c90bdde12a79feefea2d5ee
-
Maciej Żenczykowski authored
Test: TreeHugger Bug: 170424293 Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I43f53268b6c1605d928ce3431cc95b8a66b6c052
-
- Nov 10, 2021
-
-
Mark Chien authored
-
markchien authored
tetherutiljni is renamed to com_android_networkstack_tethering_jni_util Bug: 205088391 Test: atest TetheringTests atest CtsTetheringTest atest TetheringPrivilegedTests Change-Id: Ifd1f4473625e33d3ebe190c9f8a2b5d54aa1ff49
-
- Nov 09, 2021
-
-
markchien authored
Move tethering util files from android.net.util into com.android.networkstack.tethering.util. The goal is move all of tethering internal files into its own namespace com.android.networkstack.tethering.util. Bug: 205088391 Test: atest TetheringTests atest CtsTetheringTest atest TetheringPrivilegedTests Change-Id: I6559fb4f873b3cad5b210b10e49df1b6c6914a70
-
- Nov 08, 2021
-
-
Remi NGUYEN VAN authored
With the network selection rewrite in S, rematching a single request can now easily be done; this can be used as an optimization in handleRegisterNetworkRequests to avoid rematching all requests when registering a new one. This can be disabled by a flag that is unset by default, REMATCH_ALL_REQUESTS_ON_REGISTER. Test: atest ConnectivityServiceTest Change-Id: If76f79b41ac88863974f7025624667134bea2570
-
Treehugger Robot authored
-
markchien authored
Define interfaces that match the signature of the existing EthernetManager.TetheredInterfaceRequest and TetheredInterfaceCallback classes and make EthernetManager.TetheredInterfaceRequest and TetheredInterfaceCallback implement/subinterface these interfaces. The new bluetooth API could also implement these interfaces to make API surface consistent. Test: TH would test the existing tests that use the subclass. Bug: 190438212 Change-Id: I093972c111cb1d921076782492716d5a046be8fc
-
Mark Chien authored
-
Treehugger Robot authored
-
Lorenzo Colitti authored
Currently debugging IpSecManagerTest counter test failures is difficult because the assertion message does not say how many bytes/packets were expected. Add this information to the assertion message. Bug: 204860049 Test: test-only change Change-Id: I4e12be9a58a688fcee3362dceb31d9f21e981d6c
-
- Nov 06, 2021
-
-
Les Lee authored
-
- Nov 05, 2021
-
-
Treehugger Robot authored
-
Les Lee authored
Bug: 194939211 Test: atest -c NetworkTemplateTest Change-Id: I2f5790b9217357ddcf3f466cec1b2b1afbb47210
-
Remi NGUYEN VAN authored
This allows using test interfaces for multicast scenarios, such as testing mDNS behavior. Test: atest CtsNetTestCases Change-Id: Ib5d8a997176f910d499021fdcd12c361aff1233d
-
Remi NGUYEN VAN authored
-
- Nov 04, 2021
-
-
Maciej Żenczykowski authored
-
markchien authored
To avoid much code diverge between aosp and its downstream, we need to separate the build target which build with latest stable sdk in release branch and build with unfreeze sdk in dev branch. So we could use new API with APIshim in dev branch without impacting release branch. BYPASS_INCLUSIVE_LANGUAGE_REASON=the wording is the file name of existing file. Bug: 204265450 Test: m Change-Id: I949fd83b1eed7461e0b381193b190cf15080bc1b
-
markchien authored
After separat BpfMap to a library, its package name is jarjar to com.android.network.stack.util*. Also jarjar BpfMap of TetheringPrivilegedTests to fix crash in jni registered. Bug: 179733303 Test: atest TetheringPrivilegedTests Change-Id: Ia9bc819a44fe26bf2ff7a46351ea60f2eeb02933
-
Remi NGUYEN VAN authored
-
Maciej Żenczykowski authored
-
- Nov 02, 2021
-
-
Treehugger Robot authored
-
- Nov 01, 2021
-
-
Kimberly Kreider authored
-
Treehugger Robot authored
-
Chalard Jean authored
-
Chalard Jean authored
This timeout is not very useful but will be incurred every time Test: ConnectivityServiceTest Change-Id: Ia7c76c7c7a148f14844d098be267e16c215776f5
-
paulhu authored
Save permission update result when package added / package removed / setting changed. Log: Permission Monitor: Interface filtering rules: Update log: 2021-10-27T11:04:23.472 - Package remove: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=UNINSTALLED 2021-10-27T11:03:38.307 - Setting change: update={}, remove={10001=1} 2021-10-27T11:02:22.589 - Setting change: update={10001=2}, remove={} 2021-10-27T11:01:08.615 - Package add: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=NONE Bug: 204260474 Test: build / flash / adb shell dumpsys connectivity Change-Id: I889a8f2c82751f227655b39a4281a6f044508a86
-
Lucas Lin authored
-
Mark Chien authored
-
Chalard Jean authored
Mockito's mocks are not thread-safe. The dependencies object is used both on the test thread (to set it up) and in the CS handler thread. This can't work with a mock. Bug: 195626111 Test: ConnectivityServiceTest Change-Id: Ia989dd71c3133513a90bc1d1957419fb1b74c300
-