- Oct 25, 2023
-
-
Maciej Żenczykowski authored
-
- Oct 24, 2023
-
-
Maciej Żenczykowski authored
Stripping comments since those are not interesting for the purposes of what these things actually do. Doing R+ since tethering apex only supports R+ now. Generated via: (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android11-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk30-11-R.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android12-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk31-12-S.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android13-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk33-13-T.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android14-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk34-14-U.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/main:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk34-14-U-QPR2.rc Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Idd8032ce66ef07a1d9e42343e75b26d764e6d8c1
-
Kangping Dong authored
-
Kangping Dong authored
This commit declares the initial "thread_enabled" feature flag and use this to flag all existing and future Thread system APIs with @FlaggedApi Bug: 301473012 Test: build Change-Id: I43f64ce38f7fd0806733b21c4f393e4563e6a467
-
Maciej Żenczykowski authored
Generated via: cat ../../../system/bpf/bpfloader/bpfloader.rc > netbpfload/netbpfload.rc (plus changing Android.bp to use it) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I4bcdd57b0b5abcc296a4c56273d6aac632560345
-
Mark Chien authored
* changes: SyncSM05.1: add testMultiDepthTransition SyncSM05: add SyncStateMachineTest
-
Junyu Lai authored
-
Jean Chalard authored
-
Hansen Kurli authored
-
- Oct 23, 2023
-
-
Maciej Żenczykowski authored
-
Jordan Silva authored
-
Jordan Silva authored
Revert submission 2745215-npmsbpf DroidMonitor: Potential culprit for Bug 307256512 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Reason for revert: 307256512 Reverted changes: /q/submissionid:2745215-npmsbpf Change-Id: I27119a7484453d1369bbdf71ad2479edec7d664f
-
Junyu Lai authored
A helper class to *read* java BpfMaps. This is designed to provide direct bpf access in the caller process through ConnectivityManager APIs. The change also removes any statical link to net-utils-device-common-struct from service-connectivity. This is because net-utils-device-common-struct is already included in framework-connectivity. Including it again in service-connectivity would create a r8 build fail by circular dependency. Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.net.module.util.StructTest Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest Bug: 297836825 Change-Id: I7a6d2eb816d0dc7343167bddd672806b199f44fe
-
Hansen Kurli authored
* changes: Add tests for always on lockdown VPN on system user. Remove MockVpn.setAlwaysOnPackage() non-lockdown. Mock onUserAdded() and onUserRemoved() Refactor helper method to return integer ranges. Add tests for onUserAdded and onUserRemoved
-
Junyu Lai authored
-
Hansen Kurli authored
Call setRequireVpnForUids() directly to mock an always on Vpn being enabled instead of calling the real Vpn method. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I63d6547104cc6ee984413d4cf6027ceecd301ecc
-
Hansen Kurli authored
Add test coverage for Vpn.setAlwaysOnPackage() where the caller is system user to ensure uid = 0 is not restricted. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: Id9f81fdf0147597f64f8440b971930b3bd7b55e5
-
Chalard Jean authored
Test: manual Change-Id: Ife55ed9dc152cd2c21e56b84201b9c34dbb04d46
-
Hansen Kurli authored
Remove calls to MockVpn.setAlwaysOnPackage() where lockdown is false as this does not cause any changes to occur. Also verify setRequireVpnForUids() is not called for this case in VpnTest. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I3428e8b31b02975975be9e943e1f88cf0e80c5ee
-
Mark authored
Test: atest TetheringTests Change-Id: I427360f6a106b001123442ccd4802290d4f13369
-
Mark authored
A initial test for SyncStateMachine, will add more tests in the following changes. Test: atest SyncStateMachineTest Change-Id: Ie6dbbe22bfef40b1675d50243d14d0a235df1e3a
-
Hansen Kurli authored
Replace calls to onUserAdded() and onUserRemoved() to their equivalent setUids() or setRequireVpnForUids() calls. Note coverage for the calls to Vpn were added in VpnTest. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: Ifa895f71f78bd3376216fd2759c7a5a33cd3aff1
-
Hansen Kurli authored
Calls to setRequireVpnForUids() for Vpn lockdown actually uses a List instead of a Set of integer ranges. Add intRangesExcludingUids() to return the needed List of integer ranges and replace relevant usages of UidRange.toIntRanges() with it. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I61cd4751ce2faeb129daa5ad5da7181e3c1df73c
-
Junyu Lai authored
This is useful to ensure cgroup bpf program is attached, which would lead to hard-debugging uid stats missing problem. Test: atest ConnectivityServiceIntegrationTest#testBpfProgramAttachStatus Bug: 292156770 Change-Id: I16370497484aff29ed41cbb0d160e530731e1a4e
-
- Oct 22, 2023
-
-
Sudheer Shanka authored
-
- Oct 21, 2023
-
-
Jean Chalard authored
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I447880763bbc506f08b578f862f09be91ab3d14d
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
-
Ken Chen authored
UidOwnerMatchType Java definition moved from BpfNetMaps.java to BpfNetMapsConstants.java in change I6d7ea044e43180. Bug: 297836825 Test: presubmit Change-Id: I4fc28406750cac9143ea47e9304b455ab616d462
-
Maciej Żenczykowski authored
This mostly reverts commit 1d2c93d5. Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I0d7fdaeae508c0250114f7af8700d0fc40b0f27a
-
- Oct 20, 2023
-
-
Maciej Żenczykowski authored
change of design: we'll call netbpfload before bpfloader Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I2d7a04a1bf1aa1d163f2b3936e2cde61308c4aa4
-
Jean Chalard authored
-
Junyu Lai authored
-
Xiao Ma authored
-
- Oct 19, 2023
-
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Sudheer Shanka authored
Bug: 305826147 Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4c137f7fa7827a9794165b86a5cc7ade85f017bf) Merged-In: I1840e091ebbc9812da56a3522e009ba67a18c476 Change-Id: I1840e091ebbc9812da56a3522e009ba67a18c476
-
Junyu Lai authored
Currently, data saver switch is controlled in NPMS, which calls into NetworkManagementService and netd when switching status. In netd, BandwidthController manipulates the bw_data_saver chain to control the overall behavior. However, this code are all platform implementation, which are not updatable. In order to migrate data saver switch from iptables to bpf, this API is needed for Connectivity to change the implementation to directly write bpf in later patches. Test: atest CtsHostsideNetworkTests:com.android.cts.net.HostsideRestrictBackgroundNetworkTests Test: atest FrameworksServicesTests:NetworkManagementServiceTest Bug: 297836825 Change-Id: I71fa41ca739fef8e191fba91b02758ad5f732d5c
-