Commit graph android_packages_modules_Co.../staticlibs/netd/binder/android
Message SHA1
Deprecate mdns_aidl_interface
Mark @Deprecated in mdns_aidl_interface functions in the latest unstable
version.

Bug: 298594687
Test: m mdns_aidl_interface-update-api
Change-Id: I5a5799de7b58e334bddec81bfada7f976038f457

Ken Chen   commited 2023-12-13 10:09:32 +08:00
fe523c2a8b
Add @deprecated annotation and bump netd_aidl_interface
1. Annotate binder interfaces which return
   binder::Status::EX_UNSUPPORTED_OPERATION.
2. Freeze netd_aidl_interface to v14.

Test: m
Change-Id: Ibdc083ce7ac4a8e3dcd1e7cf1dc310210ca76f38

Ken Chen   commited 2023-11-13 12:18:53 +08:00
91dc3a102d
Adds setNetworkAllowlist and freeze AIDL to v13
Add this interface so that CS can tell netd the network is allowed for
the given UID ranges.

Freeze AIDL to v13.

Test: netd_integration_test
Change-Id: I00c45a663dc917fc0ba4da5a99828edad1562d8c

Ken Chen   commited 2022-12-23 09:47:29 +00:00
da7a00d147
Add XFRM_MIGRATE support and freeze INetd v12.
This commit updates netd_aidl_interface to support
migrating IPsec tunnel mode SA to different source
and destination addresses.

server/aidl_api/netd_aidl_interface/12/ are generated
by "m netd_aidl_interface-freeze-api"

Bug: 169170985
Test: atest netd_integration_test (new tests)
Change-Id: I89b54272c1528f12e6351819e0efe666af7a2946

Yan Yan   commited 2022-12-20 01:10:00 +00:00
111118096a
Add a physical local native network type.
There are no local networks yet, but they will come in
followup patches.

Test: netd_integration_test
Bug: 64955351
Change-Id: Ic82cf2390f52024e44e03b264b55c9843b932b71

Chalard Jean   commited 2022-12-14 19:33:09 +09:00
8a00b8cf7c
Add an int constant for CLAT_MARK and freeze INetd v10.
Test: m
Bug: 235778483
Change-Id: I45a0bd6be39022a913bc6cff8216df0b6559cd4b

Lorenzo Colitti   commited 2022-06-15 23:42:29 +09:00
747ba67de6
Freeze netd_aidl_interface V9
Deprecate APIs which were moved the implementation to mainline module.
- clatdStart (since T)
- clatdStop (since T)
- tetherOffloadRuleAdd (since S)
- tetherOffloadRuleRemove (since S)
- tetherOffloadGetStats (since S)
- tetherOffloadSetInterfaceQuota (since S)
- tetherOffloadGetAndClearStats (since S)

Bug: 212345928
Test: cd system/netd; atest
Change-Id: I7916512c7174a7b50833036bc89df37a266ca67e

Hungming Chen   commited 2022-04-28 15:03:18 +08:00
ed1292644e
Add MDNS aidl
- Add MDNS aidl that NsdService can communicate with mdns service
  via binder call instead of using ndc.
- Add mdns_aidl_interface to separate the mdns aidl from
  netd_aidl_interface.

Bug: 209894875
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I7bcbd6146269bdd9ac973d651a676bd9d126ae2d

paulhu   commited 2022-04-03 16:04:05 +00:00
483b356965
Add excludeLocalRoutes in NativeNetworkConfig
Add a extra field in NativeNetworkConfig to allow CS to notify
netd to exclude the local traffic from the VPN network. Also
freeze netd_aidl_interface as v8 and update the corresponding
configuration.

diff -U10 -ru -N common/netd/aidl_api/netd_aidl_interface/7/android/net/NativeNetworkConfig.aidl common/netd/aidl_api/netd_aidl_interface/8/android/net/NativeNetworkConfig.aidl

--- common/netd/aidl_api/netd_aidl_interface/7/android/net/NativeNetworkConfig.aidl	2021-10-29 14:52:13.069757396 +0800
+++ common/netd/aidl_api/netd_aidl_interface/8/android/net/NativeNetworkConfig.aidl	2022-01-11 21:35:55.088966333 +0800
@@ -33,11 +33,12 @@

 package android.net;
 /* @hide */
 @JavaDerive(equals=true, toString=true) @JavaOnlyImmutable
 parcelable NativeNetworkConfig {
   int netId;
   android.net.NativeNetworkType networkType = android.net.NativeNetworkType.PHYSICAL;
   int permission;
   boolean secure;
   android.net.NativeVpnType vpnType = android.net.NativeVpnType.PLATFORM;
+  boolean excludeLocalRoutes = false;
 }
diff -U10 -ru -N common/netd/aidl_api/netd_aidl_interface/7/.hash common/netd/aidl_api/netd_aidl_interface/8/.hash
--- common/netd/aidl_api/netd_aidl_interface/7/.hash	2021-10-29 14:52:13.069757396 +0800
+++ common/netd/aidl_api/netd_aidl_interface/8/.hash	2022-01-11 21:35:55.084966375 +0800
@@ -1 +1 @@
-850353de5d19a0dd718f8fd20791f0532e6a34c7
+e8cf8586fc5da9063818d8775e9a21c4b0addb5b

Bug: 184750836
Test: atest FrameworksNetTests
Change-Id: Icadca719aaba678b06f617c581e3c80a22248f26

Chiachang Wang   commited 2022-01-12 02:56:46 +00:00
3faa0a0911
Move netd AIDL to frameworks/lib/net
Clean move system/netd/server/aidl_api/ and
system/netd/server/binder/

$ diff -qr frameworks/libs/net/common/binder/netd/aidl_api/ system/netd/server/aidl_api/
$ diff -qr frameworks/libs/net/common/binder/netd/src/ system/netd/server/binder/
Only in system/netd/server/binder/: com

Bug: 201488997
Test: atest netd_integration_test
      atest netd_unit_test
Ignore-AOSP-First: the netd change(same topic) would not automerger from
aosp.
No-Typo-Check: this is a simple code move with no other changes.
BYPASS_INCLUSIVE_LANGUAGE_REASON=this is a simple code move with no other
changes and these files are frozen anyway

Change-Id: Id5bb63794aff4025355c587b372c3ff5b1054da6
Merged-In: Id5bb63794aff4025355c587b372c3ff5b1054da6

markchien   commited 2021-10-07 14:43:03 +08:00
38c3248623