android_packages_modules_Co.../thread
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kangping Dong fad62be2d2 [Thread] allow disabling SRP server wait for border routing
It's default enabled that it waits for border routing establishment
before starting the SRP server. But there are also use cases where
the user may want to know what are the devices in the Thread network
before actually reach to the devices, or it doesn't depend on border
routing to reach to a Thread device.

Given that, this commit adds the support of starting SRP server
without waiting for border routing by adding a new
Runtime Resource Overlay configuration parameter:
config_thread_srp_server_wait_for_border_routing_enabled

Test: it's difficult to assert on the SRP server starts up timing. But manually verified that the SRP server starts without waiting for the routing manager when the RRO config is flipped:

```
01-09 20:18:35.835  7555  7555 I ot-daemon: [I] RoutingManager: RsSender: Sent RS 1/3
01-09 20:18:35.835  7555  7555 I ot-daemon: [I] RoutingManager: Received RS from fe80:0:0:0:98af:44ff:fe2e:fa80 on infra netif 17
01-09 20:18:35.835  7555  7555 I ot-daemon: [I] RoutingManager: Will evaluate routing policy in 00:00.150 (150 msec)
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetDataPublshr: DNS/SRP service - State: Adding -> Added
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] SrpServer-----: Start listening on port 53536
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetworkData---: Sent ServerData
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetworkData---: Received ServerData
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetworkData---: Allocated Service ID = 1
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetworkData---: Sent ServerData ack
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] Notifier------: StateChanged (0x00000200) [NetData]
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] Mle-----------: Send Data Response (ff02:0:0:0:0:0:0:1)
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] BbrLeader-----: PBBR state: Unchanged
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] BbrLeader-----: Rloc16:0x8800, seqno:69, delay:5, timeout:3600
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] RoutingManager: Will evaluate routing policy in 00:03.558 (3558 msec)
01-09 20:18:35.926  7555  7555 I ot-daemon: [I] NetDataPublshr: DNS/SRP service (state:Added) in netdata - total:1, preferred:0, desired:2
```

Bug: 378587036
Change-Id: Ib768014f3c44dca89390cec823a1c2acac38ab0d
2025-01-09 04:23:17 -08:00
..
apex thread: rename init.34rc to ot-daemon.34rc for clarity 2024-08-30 18:43:42 +00:00
demoapp [Thread] Fix the overlap of top app bar and the system's status bar in demo app 2024-10-28 05:58:11 +00:00
docs Fix typo in RCP documentation 2024-09-19 02:38:36 +00:00
framework Merge "remove useless variable" into main 2024-11-12 10:28:52 +00:00
scripts [Thread] enhance make-pretty.sh 2024-08-12 06:21:58 +00:00
service [Thread] allow disabling SRP server wait for border routing 2025-01-09 04:23:17 -08:00
tests [Thread] allow disabling SRP server wait for border routing 2025-01-09 04:23:17 -08:00
OWNERS [Thread] move Thread into com.android.tethering 2023-08-23 14:28:50 +08:00
README.md [docs] initial Thread Border Router vendor guide 2024-08-20 19:23:35 +08:00
TEST_MAPPING Add test for TREL service not unpublish when feature disabled 2024-11-21 10:22:32 +08:00

Thread

Bring the Thread networking protocol to Android.

Try Thread with Cuttlefish

# Get the code and go to the Android source code root directory

source build/envsetup.sh
lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
m

launch_cvd

Open https://localhost:8443/ in your web browser, you can find the Thread demoapp (with the Thread logo) in the cuttlefish instance. Open it and have fun with Thread!

More docs