Commit graph

114,372 commits

Message SHA1
Generalize ip address handling in tether4Value bpf structures
Updated Tether4Value.java to utilize
java.net.InetAddress for relevant IP address fields.
These fields are correspondingly annotated with
Type.IpAddress for BPF map interactions.

Bug: 392509494
Test: atest TetheringTests
Flag: EXEMPT refactor
Change-Id: I6b5b1e176a47b55ad7482be15e4e2d8ee95ab1d1

Sarup Dalwani   authored and   Maciej Żenczykowski   commited 2025-09-04 00:52:31 -07:00
cdd31d8bf3
Merge "Revert "Fix flake in ConnectivityDiagnosticsManager"" into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-09-03 03:42:30 -07:00
01a9a57f0b
Revert "Fix flake in ConnectivityDiagnosticsManager"
This reverts commit 3a6edd4e01.

Reason for revert: b/436710938,test gets nc before network is validated especially if the “mobile data always on” is disabled 

Change-Id: Ie58d2a7eb707fd0baf5217004d01d3e56fad5449

Motomu Utsumi   authored and   Android (Google) Code Review   commited 2025-09-03 01:04:16 -07:00
f41a551ecd
Merge "Generate java code for VCN metrics" into main
Hnin Naing   authored and   Android (Google) Code Review   commited 2025-09-02 13:37:01 -07:00
e7e1a7a4d5
Generate java code for VCN metrics
Add genrule for VCN metrics atoms and add wrapper utility class for logging using the generated java code, which currently has func for logging safe mode and VCN network validation states.

Bug: 288600040
Flag: EXEMPT METRICS
Test: atest CtsVcnTestCases, FrameworksVcnTests
Change-Id: Ia0f42c3435752399eb3ed480bfe62ffac31ccc1e

Hnin Naing   commited 2025-09-02 19:31:50 +00:00
340990fd30
Merge "Prevent duplicate downloads in DownloadHelper" into main
Sandro Montanari   authored and   Android (Google) Code Review   commited 2025-09-01 01:41:00 -07:00
34465d06c8
Merge "BpfCoordinator: include PMTU in IPv6 BPF forwarding rule dumps." into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-31 23:19:16 -07:00
3159186ec8
Merge "tcpAccECN: Fix counter order in tcp option" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-31 02:41:09 -07:00
7cac52b55b
Merge "tcpAccECN: Fix to increment ceb counter" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-31 02:40:26 -07:00
87fb1bd838
Refactor Tether4Key to use Inet4Address
Change the type of src4 and dst4 from byte[] to Inet4Address in the
Tether4Key class. This simplifies the code by removing the need for
conversions between byte arrays and Inet4Address objects.

Bug: 392509494
Test: atest TetheringTests
Flag: EXEMPT refactor
Change-Id: I3072a8520c93042a25d1f60aa41bdfa5485062f6

Sarup Dalwani   commited 2025-08-29 19:30:29 +00:00
f7adba65b3
Merge changes from topic "routecontrollerchangeforislocal" into main
* changes:
  Migrate NetdUtils from networkAddRoute to networkAddRouteParcel.
  Passing isLocalRoute to netd add,remove and update route.

Sarup Dalwani   authored and   Android (Google) Code Review   commited 2025-08-29 08:01:18 -07:00
bc8c8c040e
Prevent duplicate downloads in DownloadHelper
This change modifies `DownloadHelper` to check if a URL is already
scheduled for download (in pending, running, or paused status) before
enqueuing a new request. If a download for the same URL is found, the
existing download ID is returned, avoiding redundant requests to the
`DownloadManager`.

Bug: 437217681
Test: atest NetworkSecurityUnitTests
Flag: EXEMPT BUGFIX
Change-Id: I64dd5473b4fdb23241f5e2503c65cb64db56617c

Sandro Montanari   commited 2025-08-29 01:02:47 -07:00
b7c4c84a37
tcpAccECN: Fix counter order in tcp option
Counter order in AccECN options is the following

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Kind = 174   |  Length = 11  |          EE1B field           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EE1B (cont'd) |           ECEB field                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                  EE0B field                   |             Order 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Test: TH
Bug: 440448408
Flag: EXEMPT tcpAccECN program is not attached
Change-Id: I7d76d40f7499e44c89c8241919a0d3c416b0ce00

Motomu Utsumi   commited 2025-08-29 16:27:29 +09:00
2977062223
Merge "Rename getAllInterfaceOffloadServiceInfos to notifyOffloadStart" into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-08-28 21:22:59 -07:00
94c93cbbe4
BpfCoordinator: include PMTU in IPv6 BPF forwarding rule dumps.
Bug: 432676104
Test: TreeHugger
Flag: EXEMPT DEBUG
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I29886b97e402483d0edf9ccd0a38f4555f83b736

Maciej Żenczykowski   commited 2025-08-28 18:16:39 -07:00
feb1e82ebe
Migrate NetdUtils from networkAddRoute to networkAddRouteParcel.
This will allow us to deprecate networkAddRoute.

Bug:412629841
Test: atest TetheringTests
Flag: EXEMPT Using device config kill-switch
Change-Id: I20e988f760b8ad22b51effdc1f0e204763c6e240

Sarup Dalwani   commited 2025-08-28 15:28:48 +00:00
98e5827ccc
Passing isLocalRoute to netd add,remove and update route.
ConnectivityService would be centralized location for deciding local
network so for this effort passing isLocalRoute parameter to
routecontroller in netd for route addition, removal and modification.

Bug: 394308861
Test: Manually tested.
Test: atest ConnectivityCoverageTests
Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivityservice.CSLocalRouteTest
Test: atest netd_integration_test
Flag: EXEMPT Using device config kill-switch
Change-Id: I9f11882665375bba10fa369c2e25f374b5e63661

Sarup Dalwani   commited 2025-08-28 14:59:26 +00:00
169a584691
Merge "Provide offload service information update from DiscoveryManager" into main
Paul Hu   authored and   Android (Google) Code Review   commited 2025-08-28 07:37:56 -07:00
9111ff26d4
Merge "Tethering: Enable TETHERING_AND_P2P_GO_LOCAL_AGENT for 25Q4+" into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-08-28 07:25:48 -07:00
3f16f0df11
tcpAccECN: Fix to increment ceb counter
Before this CL, if the ip_ecn is 0b11, program returns without updating
byte_count->ceb

Test: TH
Bug: 440448408
Flag: EXEMPT tcpAccECN program is not used
Change-Id: I37aeddcb6807c43787b4f3ca0db26f47ffe190df

Motomu Utsumi   commited 2025-08-28 17:49:54 +09:00
de403d30e4
bpf/progs/tcpAccECN.c: use static const for another local constant
Likely not needed for kernel verifier happiness,
since even 1 'static' constant prevents .rodata from being
entirely empty/automatic and thus BTF-less.

Trivial follow up to go/ag/35341088

Bug: 441356399
Bug: 441436401
Test: TreeHugger
Flag: EXEMPT mainline/bug fix
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I396d1a4f2d47225707348f7c7dc3548cbba125a0

Maciej Żenczykowski   commited 2025-08-27 23:01:24 -07:00
4203f5008e
Tethering: Enable TETHERING_AND_P2P_GO_LOCAL_AGENT for 25Q4+
This change enables the TETHERING_AND_P2P_GO_LOCAL_AGENT feature
on devices running Android 25Q4 or newer, in addition to being
controlled by the existing feature flag.

A new SdkUtil.isAtLeast25Q4() method is introduced to check for
the specific SDK version.

Flag: com.android.tethering.mainline.beta.tethering_and_p2p_go_local_agent
Test: atest ConnectivityCoverageTests --update-device \
      --test-filter '.*Tethering.*'
Test: TH
Bug: 420590461
Fix: 428098654
Fix: 420592689
Change-Id: I7ef79a201116de84f2c4973c4c360fd3d1ef0c4c

Junyu Lai   commited 2025-08-28 11:56:55 +08:00
bf75afdcd1
Merge "jni tests: set min_sdk_version=33" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-27 15:01:01 -07:00
4a4c1c4485
bpf/progs/tcpAccECN.c: use static const for local constants
loading BTF fails on 5.10 for tcpAccECN due to https://lore.kernel.org/bpf/20210119153519.3901963-1-yhs@fb.com

We're hitting the same problem on 5.10:
  ...
  NetBpfLoad: [381] DATASEC .rodata size=40 vlen=0 vlen == 0
  ...
  NetBpfLoad: libbpf: Error loading .BTF into kernel: -22. BTF is optional, ignoring.
  NetBpfLoad: libbpf: map 'sk_storage': failed to create: Invalid argument(-22)
  NetBpfLoad: libbpf: failed to load object '/apex/com.android.tethering/etc/bpf/mainline/netd.o'
  NetBpfLoad: Failed to load object: /apex/com.android.tethering/etc/bpf/mainline/netd.o, libbpf: 1
  NetBpfLoad: === CRITICAL FAILURE LOADING BPF PROGRAMS ===

so BTF fails, but SK_STORAGE *requires* BTF.

This is a kernel BTF verified failure fixed in later kernels.

step 1. Adjust the bpf helper definitions to more closely match kernel uabi in include/uapi/linux/bpf.h:
 * long bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *bpf_sock, int argval)
 * long bpf_reserve_hdr_opt(struct bpf_sock_ops *skops, u32 len, u64 flags)
 * long bpf_store_hdr_opt(struct bpf_sock_ops *skops, const void *from, u32 len, u64 flags)

(some for consistency, but what matters is the 'const' addition)

Dump current .rodata via:
  adb pull /apex/com.android.tethering/etc/bpf/mainline/netd.o && llvm-objdump -s -j .rodata netd.o
  m netd.o && llvm-objdump -s -j .rodata /android/out/soong/.intermediates/packages/modules/Connectivity/bpf/progs/netd.o/android_common/obj/unstripped/packages/modules/Connectivity/bpf/progs/netd.o

.../netd.o:  file format elf64-bpf
Contents of section .rodata:
 0000 ae0b0000 00000000 00000000 00000000  ................
 0010 00000000 00000000 01000000 00000000  ................
 0020 01000000 00000000                    ........

which lines up with:

  #define CUSTOM_TCP_OPTION_KIND 174  // 0xAE
  #define CUSTOM_TCP_OPTION_SIZE 11   // 0x0B
  #define TCPHDR_SYN 0x02

            struct {
                __u8 kind;
                __u8 length;
                __u8 data[CUSTOM_TCP_OPTION_SIZE - 2];
            } __attribute__((packed)) tcp_option = {
                .kind = CUSTOM_TCP_OPTION_KIND,    // 0xAE
                .length = CUSTOM_TCP_OPTION_SIZE,  // 0x0B
                .data = {0},                       // 9 bytes
            };                                     // 5 byte alignment pad

and

  typedef struct{
    uint64_t ceb;
    uint64_t e0b;
    uint64_t e1b;
  } EcnByteCounters;
  STRUCT_SIZE(EcnByteCounters, 8 * 3);  <-- 24 bytes

  {
                        EcnByteCounters new_cnt = {
                            .ceb = 0,
                            .e0b = 1,
                            .e1b = 1,
                        };
                        bpf_l4s_accecn_byte_map_update_elem(&flow_key, &new_cnt, 0);
  }

Which matches the final 24 bytes.

So we convert those to 'static const' which hopefully will get them debug info.
(following the comment in the last line of the above linked patch)

Bug: 441356399
Bug: 441436401
Test: TreeHugger
Flag: EXEMPT mainline/bug fix
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I7d871c54ecccf2abc7834fde3c63c073cad29004

Maciej Żenczykowski   commited 2025-08-27 14:35:43 -07:00
157e8cd78b
Merge "tcpAccECN: increase min required kernel to 6.1" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-27 13:06:37 -07:00
76939cb1d0
tcpAccECN: increase min required kernel to 6.1
Appear to be failing on pixel 7 U (which is 5.10)

Flag: EXEMPT mainline
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I12d70659a994fd2a9f57597fd4aaa1aea6bbe1c7

Maciej Żenczykowski   commited 2025-08-27 13:06:28 -07:00
74d3460f5d
Merge "netjniutils: delete support for android R" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-27 13:05:29 -07:00
8aa8a4f1d1
Merge "Mock QuiConnectionCloser in ConnectivityServiceTest" into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-08-27 10:05:46 -07:00
0705d728b0
Merge "Revert "Add alint hook to Connectivity repo"" into main
Doğancan Emek   authored and   Android (Google) Code Review   commited 2025-08-27 05:22:35 -07:00
410585e22e
Merge "Ensure flag restoration logic is always executed in SetFeatureFlagsRule." into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-08-27 05:08:59 -07:00
8edee1e3e6
Merge "bpf_existence_test: remove support for Android R" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-27 04:22:27 -07:00
717a18c65c
Revert "Add alint hook to Connectivity repo"
This reverts commit 9fecf5dee1.

Reason for revert: <Removing alint hook from individual repos as we get ready to roll it out with a global flag>

Bug: 441250579
Change-Id: I12c4c31caa9e8881f4703a1022b607c6744a0c36

Doğancan Emek   authored and   Android (Google) Code Review   commited 2025-08-27 03:31:04 -07:00
4c46b200b7
Mock QuiConnectionCloser in ConnectivityServiceTest
ConnectivityServiceTest can not start QuicConnectionCloser and was
getting the following error.
The interaction between ConnectivityService and QuicConnectionCloser is
already covered by CSDestroySocketTest.
```
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: [SkDestroyListener] ERROR Failed to create rtnetlink socket: socket failed: EACCES (Permission denied)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: android.system.ErrnoException: socket failed: EACCES (Permission denied)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at libcore.io.Linux.socket(Native Method)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at libcore.io.ForwardingOs.socket(ForwardingOs.java:821)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:402)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at libcore.io.ForwardingOs.socket(ForwardingOs.java:821)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.system.Os.socket(Os.java:834)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.net.connectivity.com.android.net.module.util.ip.NetlinkMonitor.createFd(NetlinkMonitor.java:127)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.net.connectivity.com.android.net.module.util.FdEventsReader.createAndRegisterFd(FdEventsReader.java:217)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.net.connectivity.com.android.net.module.util.FdEventsReader.start(FdEventsReader.java:111)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.net.connectivity.com.android.server.connectivity.QuicConnectionCloser$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.os.Handler.handleCallback(Handler.java:959)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.os.Handler.dispatchMessage(Handler.java:100)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.os.Looper.loopOnce(Looper.java:232)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.os.Looper.loop(Looper.java:317)
08-26 18:53:53.469 6243 11101 E QuicConnectionCloser: at android.os.HandlerThread.run(HandlerThread.java:85)
```

Bug: 311792075
Test: atest ConnectivityServiceTest
Flag: EXEMPT test only change
Change-Id: I8ae1033b2ea655ebc26300aac19ec4d8cbdc047d

Motomu Utsumi   commited 2025-08-27 01:17:10 -07:00
a74f8c7782
Ensure flag restoration logic is always executed in SetFeatureFlagsRule.
`base.evaluate()` can be interrupted by other rules in the chain, such
as DevSdkIgnoreRule, if an assumption fails. This prevents
SetFeatureFlagsRule from executing its flag value restoration logic,
leading to an inconsistent state. This change ensures the restoration
logic runs regardless of exceptions.

Flag: EXEMPT mainline
Bug: 440618747
Test: TH
Change-Id: Iba4483b45f11aeed8ae565f8080b2bebd299046c

Xiao Ma   commited 2025-08-27 16:55:12 +09:00
bda151cd67
Merge "Skip testCallbacks when unrestricted interfaces are present" into main
Patrick Rohr   authored and   Android (Google) Code Review   commited 2025-08-26 20:42:47 -07:00
41a8778165
Rename getAllInterfaceOffloadServiceInfos to notifyOffloadStart
This renaming is to align the DiscoveryManager design and reflect
its real usage.

Bug: 410734687
Test: atest ConnectivityCoverageTests NsdManagerTest
Flag: EXEMPT rename method only
Change-Id: I0d198aa0752ef51353e4164b612b6ff268ace16a

Paul Hu   commited 2025-08-27 02:26:14 +00:00
20556631d8
Provide offload service information update from DiscoveryManager
With this change, the OffloadEngine can receive updates when
offload service information changes from DiscoveryManager. This
allows the OffloadEngine to maintain offload services and to
adjust its behavior accordingly.

Bug: 410734687
Test: atest ConnectivityCoverageTests
Flag: com.android.tethering.mainline.beta.nsd_selective_mdns_response_offload
Change-Id: I6c6ba4e76b4a2a94cbfef37bec9d6f87357bec5f

Paul Hu   commited 2025-08-27 02:13:32 +00:00
f1ae69a950
Merge "Set min_sdk_version for FrameworksNetTests." into main
Treehugger Robot   authored and   Android (Google) Code Review   commited 2025-08-26 16:34:00 -07:00
06fd2ba600
Skip testCallbacks when unrestricted interfaces are present
The old assumption check ran the test on devices with unrestricted
interfaces which were configured in the overlay. Apparently, this is
a common configuration on automotive devices.

There are likely other tests that are broken which need to be moved to
the new assumption check.

Test: TH
Flag: EXEMPT mainline
Change-Id: I504534920ea2c083a05bf217bec17a084a829184

Patrick Rohr   commited 2025-08-26 15:37:47 -07:00
2a8b4670a3
Merge "Set min_sdk_version for FrameworksNetSmokeTests." into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-26 14:57:00 -07:00
03f8b6449b
Merge "bpf: build tcpAccECN into netd.o" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-26 13:00:18 -07:00
b21ed8fb38
Set min_sdk_version for FrameworksNetTests.
This change specifies that FrameworksNetTests requires a minimum SDK version of 31.

Test: TreeHugger
Flag: EXEMPT mainline
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ib47c879bc9c15196a7b0dbf5380d73eb94027356

Maciej Żenczykowski   commited 2025-08-26 12:26:45 -07:00
0078ef9d14
Set min_sdk_version for FrameworksNetSmokeTests.
This change sets the minimum SDK version for the FrameworksNetSmokeTests to 31.

Test: TreeHugger
Flag: EXEMPT mainline
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ib49bca2cf8e04593f2ab5758e7aaf709058029b2

Maciej Żenczykowski   commited 2025-08-26 12:25:02 -07:00
96edc9907c
Merge "netbpfload.35rc: grant capability SYSLOG if available" into main
Maciej Żenczykowski   authored and   Android (Google) Code Review   commited 2025-08-26 11:32:13 -07:00
439770c5e2
bpf: build tcpAccECN into netd.o
Note that currently bpfloader is *still* always <25Q4 (and thus <26Q2).

With this change:
  $ adb shell find /sys/fs/bpf/ | egrep -i tcp
is empty.

With the 26Q2 changed to 25Q3 it is not:
  $ adbz shell find /sys/fs/bpf/ | egrep -i tcp
  /sys/fs/bpf/netd_shared/prog_tcpAccECN_schedcls_egress_accecn_rawip
  /sys/fs/bpf/netd_shared/prog_tcpAccECN_schedcls_ingress_accecn_rawip
  /sys/fs/bpf/netd_shared/prog_tcpAccECN_schedcls_egress_accecn_eth
  /sys/fs/bpf/netd_shared/prog_tcpAccECN_schedcls_ingress_accecn_eth
  /sys/fs/bpf/netd_shared/prog_tcpAccECN_sockops_accecn_option
  /sys/fs/bpf/netd_shared/map_tcpAccECN_l4s_accecn_mss_map
  /sys/fs/bpf/netd_shared/map_tcpAccECN_l4s_accecn_byte_map
  /sys/fs/bpf/netd_shared/map_tcpAccECN_l4s_accecn_ce_map

Test: TreeHugger
Flag: EXEMPT mainline / noop
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1c95a51e0774a2840fc906a2128ed5d71097dab6

Maciej Żenczykowski   commited 2025-08-26 09:59:20 -07:00
23057f4db5
bpf_existence_test: remove support for Android R
As of M-2025-11 mainline is only being pushed to S+

Test: TreeHugger
Flag: EXEMPT test only
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Id0cf9d2cce27fb90ce076fcdd0f6ee0a95ea9741

Maciej Żenczykowski   commited 2025-08-26 09:56:45 -07:00
1780108641
netjniutils: delete support for android R
Mainline M-2025-11 drops support for android R,
thus making the new minimum Android 12 / S (api 31)

Once we get this to pass tests, we can merge it,
then we need to bump min sdk to 31, then we can
probably get rid of the dlsym stuff and just link it directly.

Test: TreeHugger
Flag: EXEMPT mainline
Signed-off-by: Maciej Żenczykowski <maze@google.com
Change-Id: I9d68ea9f4aa180b3ec24d252bcd49593e19cf475

Maciej Żenczykowski   commited 2025-08-26 09:56:44 -07:00
94d800d96f
Don't set setPollOnOpen in SatelliteCoarseUsageMetricsCollector.
This is not safe to do in system server because it affects all
system server callers of NetworkStatsManager, including ones
that frequently call into NetworkStatsService, such as
NetworkPolicyManagerService.

Also, setPollOnOpen is unnecessary because data usage is only collected when processing the `onLost` callback, which is triggered after ConnectivityService forces a poll.

Fix: 427909947
Flag: EXEMPT BUGFIX
Test: covered by existing tests
Change-Id: I2fb25f4529d46dfc14b00b0aa69c5145317ca9dd

Lorenzo Colitti   commited 2025-08-26 03:05:26 -07:00
9a0b0d4156
Merge "Add metrics for BPF shim initialization error" into main
Jimi Chen   authored and   Android (Google) Code Review   commited 2025-08-25 23:54:35 -07:00
6b09ae0ace
tcpAccECN: Add to the dependency of the tethering apex
This CL also sorts bpf targets in Android.bp

Test: m
Bug: 440448408
Flag: EXEMPT tcpAccECN is not used
Change-Id: I4a662870333f3da02d4d6cfcb3fca8c0af452d34

Motomu Utsumi   commited 2025-08-26 10:21:53 +09:00
95ab63a373