Commit graph android_packages_modules_Co.../thread/service
Message SHA1
update ThreadNetworkControllerService to support border routing
This CL lets ThreadNetworkControllerService calls the LocalNetworkConfig
API to set up border routing between Thread and infrastructure network.

Bug: 299552948
Bug: 305861411
Test: Verified on Cuttlefish that forwarding is set up.

Change-Id: I8b2f015d9d6248bfb1cd9ac806dc8664970a26d2

Handa Wang   commited 2023-11-17 14:25:28 +08:00
496f770dd8
Merge "Send localNetworkConfig when multicast routing config changes" into main
Yang Sun   authored and   Gerrit Code Review   commited 2023-11-17 05:50:11 +00:00
b923ad4f5d
Send localNetworkConfig when multicast routing config changes
Bug: 306111568

Test: manual test with cuttlefish. Result: https://paste.googleplex.com/4794566388482048

Change-Id: I7990388a14edea2253ece68b2dca2628732f4878

Yang Sun   commited 2023-11-15 08:50:10 +08:00
f5904689c3
Merge "[Thread] add @RequiresPermissions for unregisterXxxCallback APIs" into main
Kangping Dong   authored and   Gerrit Code Review   commited 2023-11-14 06:29:41 +00:00
5532b8884c
Merge "[Thread] resolve open comments for aosp/2737373" into main
Kangping Dong   authored and   Gerrit Code Review   commited 2023-11-14 06:28:59 +00:00
b46d21a898
[Thread] add @RequiresPermissions for unregisterXxxCallback APIs
Per API council review suggestions in b/309952666, add the same
permission requirements for the unregister APIs.

Bug: 309952666
Test: atest CtsThreadNetworkTestCases
Change-Id: Idc481c7676ddc5d748fe7803f74dd63981186c09

Kangping Dong   commited 2023-11-13 17:29:07 +08:00
8e44412f7c
implement InfraInterfaceController
InfraInterfaceController is used for creating an socket for
sending/receiving ICMPv6 ND messages on the infrastructure network
interface.

Bug: 299552948
Test: verified on a Cuttlefish

Change-Id: I02eafadafbf7a04e12fe74954b4812462c532e45

Handa Wang   authored and   Chalard Jean   commited 2023-11-10 21:11:01 +09:00
d295f8f146
[Thread] resolve open comments for aosp/2737373
Change-Id: Id2c58d8bf72139f10036b5488a12f45dd0c7c2db

Kangping Dong   commited 2023-11-09 17:48:34 +08:00
c959d665ab
[Thread] move createRandomDataset to ThreadNetworkController
This commit renames `createRandomDataset` to `createRandomizedDataset`
and moves this method to ThreadNetworkController class.

The reason for moving this method is that we rely on the service side to
know which channels are currently supported by this device and there is
no safe way for ActiveOperationalDataset to created a randomized full
dataset by its own. Moving this method to ThreadNetworkController also
allows us to support future platform-dependend configurations.

Bug: 308117328
Bug: 307939803
Change-Id: I0b0b7b727c3b326ab59bb1299ace15df1ff1ad5e

Kangping Dong   commited 2023-11-08 22:39:33 +08:00
af4f1f576c
[Thread] add ThreadNetworkController APIs
The ThreadNetworkController class provides APIs for managing the Thread
network, for example, attach to a specific network, form a network with
given dataset or update/migrate an existing network.

Bug: 262683651
Test: atest CtsThreadNetworkTestCases
Change-Id: Ib3c267d2c81a8c3c7772ed3c9cd2092487cc941a

Kangping Dong   commited 2023-11-08 17:56:16 +08:00
b1c75dbe8c
[Thread] add ServiceManagerWrapper
Add a JNI wrapper of the NDK version of the ServiceManager which allows
us to retrieve the ot-daemon lazy service.

Bug: 262683651
Test: atest CtsThreadNetworkTestCases
Change-Id: I1d331d1ba06c2b88f156622d4ae864dae7b15dc3

Kangping Dong   commited 2023-11-08 17:46:18 +08:00
192e4b0289
[Thread] initial Thread network service
This commit sets up the initial Thread network service for the
Android Thread feature which allows an Android device to create
a Thread network and being a Border Router.

See https://www.threadgroup.org/What-is-Thread for background of
Thread.

See b/235016403 for the Android Thread feature request.

Test: lunch aosp_cf_x86_64_tv-userdebug
      m && launch_cvd
      atest CtsThreadNetworkTestCases
Bug: 262683651
Change-Id: Ie1bb23084531f67165ec068ea3ca39592dbc01d1

Kangping Dong   commited 2023-09-12 21:48:57 +08:00
1cec48f3c0
[Thread] move Thread into com.android.tethering
Bug: 296211911
Change-Id: Ifd4f7cd06f1aeaba739d27d2328e89031ca73235

Kangping Dong   commited 2023-08-23 14:28:50 +08:00
e7fef8938a