Commit Graph

16 Commits

Author SHA1 Message Date
Ken Chen
53eeb697c7 Delete netd_aidl_interface-lateststable-cpp
The netd_aidl_interface-lateststable-cpp has been replaced by
netd_aidl_interface_lateststable_cpp_static. The dependencies in
tm-mainline-prod were removed in ag/18922953.

Change-Id: I7eae884f4040f00ac6870dfa338a820cd7217ed0
Test: TH
Bug: N/A
2022-06-22 04:18:21 +00:00
Lorenzo Colitti
788015bfe4 Revert "Delete netd_aidl_interface-lateststable-cpp."
This reverts commit c6f9d5dc8f4b486c30e178a55ebf98c415bd3562.

Reason for revert: broke build in tm-mainline-prod

Bug: 236205815
Change-Id: I4dd1660c58e0acba0d6a036d590355bcbcd85f0f
2022-06-16 07:03:04 +00:00
Lorenzo Colitti
25efa313df Delete netd_aidl_interface-lateststable-cpp.
This is now unused.

Test: m
Change-Id: I30130526f2ef25c7ede64417fec03422d04319a7
2022-06-15 23:42:49 +09:00
Lorenzo Colitti
747ba67de6 Add an int constant for CLAT_MARK and freeze INetd v10.
Test: m
Bug: 235778483
Change-Id: I45a0bd6be39022a913bc6cff8216df0b6559cd4b
2022-06-15 23:42:29 +09:00
Simon Bowden
96f0254477 Revert "Delete netd_aidl_interface-lateststable-cpp"
This reverts commit 41fb07fc2f87db0f1f2bf6198a3b4d9f660768f6.

Reason for revert: b/231290697 broken mainline test build

Change-Id: I8051e634b06c645739779078c0ff6445db9304d0
2022-05-03 11:53:44 +00:00
Ken Chen
3707615abc Delete netd_aidl_interface-lateststable-cpp
The netd_aidl_interface-lateststable-cpp has been replaced by
netd_aidl_interface_lateststable_cpp_static.

Test: TH
Bug: N/A
Change-Id: I6ea1317bac81b602e6b398681cc453a25bf8c399
2022-04-28 07:27:27 +00:00
Hungming Chen
ed1292644e 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
2022-04-28 15:03:18 +08:00
Ken Chen
ae296b2178 Add wrappers for the latest stable version of netd_aidl_interface-V*-cpp
Currently, we need to update linked AILD interface in several places
when we freeze a new interface version. Otherwise, it will have multiple
versions of an AIDL lib and waste space/memory (b/220392885).

To avoid manually update all AILD interface users every time, adds
wrappers for the latest version of netd_aidl_interface-V*-cpp.

The reason to use cc_default as a wrapper instead of cc_library is that
it doesn't create an extra .so.

Bug: 220392885
Test: TH
Change-Id: I281b2e5f7d04fadfae0ede4db7565e9f222dbe95
2022-04-21 08:19:15 +08:00
paulhu
973f6f8d59 Freeze Mdns AIDL interface to V1
- Also add mdns_aidl_interface-lateststable-java lib for
  Connectivity module usage.

Bug: 209894875
Test: m mdns_aidl_interface-freeze-api
Change-Id: I58364dcf6d0377fbac7533eb95d2aacddd120092
2022-04-04 14:15:27 +00:00
paulhu
483b356965 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
2022-04-03 16:04:05 +00:00
Wayne Ma
321a9f0719 Merge "[NETD-TC#12] Fix dependency on libtraffic_controller" 2022-01-14 10:44:52 +00:00
Wayne Ma
67a69e7396 [NETD-TC#12] Fix dependency on libtraffic_controller
1. Add visibility for libtraffic_control
2. Add com.android.tethering into apex_available statement

Bug: 202086915
Test: m; flash; boot
Change-Id: I817e22c24dd205f09ef62a2a7ff85b2a970f6d3a
2022-01-14 12:24:13 +08:00
Chiachang Wang
3faa0a0911 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
2022-01-12 02:56:46 +00:00
Remi NGUYEN VAN
5b33e07357 Remove apex_available for bluetooth.updatable
The build will pass without it, showing that it's not exercised today,
and the bluetooth apex is being renamed anyway.

Bug: 206614050
Test: m
Change-Id: I71dac10159b799b9f23550d27424f19d077164cc
2021-12-15 09:48:20 +09:00
Bob Badour
957b694ed6 [LSC] Add LOCAL_LICENSE_KINDS to frameworks/libs/net
Added SPDX-license-identifier-Apache-2.0 to:
  common/netd/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ic163988eea096e967a8d04624772b2eff350026d
2021-10-07 11:58:21 -07:00
markchien
38c3248623 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
2021-10-07 14:43:03 +08:00