Commit Graph

19 Commits

Author SHA1 Message Date
Kangping Dong
4d05de1b3d [Thread] move ot-daemon into com.android.tethering am: ad6f2cf6f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24573847

Change-Id: Ia007a69b89bac07d973d5d5cbd8eda0a73351d52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 02:46:03 +00:00
Kangping Dong
ad6f2cf6f9 [Thread] move ot-daemon into com.android.tethering
Test: build
Bug: 296211911
(cherry picked from https://android-review.googlesource.com/q/commit:72deb0fe8a23cbbfe52a89924aa335bfad762762)

Change-Id: I52320be04ceb9855a37db59b7ef961d2c8555357
2023-08-28 14:35:08 +00:00
Jooyung Han
de60dd2ae5 Merge changes from topic "threadnetwork-apex" into main
* changes:
  Move threadnetwork HAL to VAPEX
  Mark threadnetwork HAL as updatable-via-apex
  Add apexkey "com.android.hardware"
2023-08-25 07:17:09 +00:00
Kangping Dong
a59b235aea [Thread] add "owner: google" for Thread HAL
This is for bypassing frozen HAL check on release branches.
Background:
We need to write code in the tethering module that depends on the
HAL interface and that code will be auto-merged to udc-mainline-prod
branch.

Merged-In is added to stop this CL from auto-merged to the main branch

Test: build
Bug: 296211911
Merged-In: I7e4bf260c03dd0500725fec068747e3b3d05820c
Change-Id: Id81adc9ff55649bf6d06cb2519d3e5805da15e5e
2023-08-25 05:20:14 +00:00
Zhanglong Xia
bed5323f89 change the Thread Network HAL api from 'reset' to 'hardwareReset'
This CL changes the API from 'reset' to 'hardwareReset' to make the
the definition of the API clearer. This CL also optimizes the Thread
Network HAL default implementation.

Bug: 289867661
Test: Run Thread stack on cuttlefish.
(cherry picked from https://android-review.googlesource.com/q/commit:a6165dcccf0096f8363b4b64b0f5332267eea330)
Merged-In: Id742453d9d7a0d369ac8f16905efdacfcfba1dbc
Change-Id: Id742453d9d7a0d369ac8f16905efdacfcfba1dbc
2023-08-25 05:18:54 +00:00
Zhanglong Xia
3bbcbcdc8a fix the Thread Network fuzz testing error
The current fuzz testing comunicates with the Thread radio chip
simulation program `ot-rcp`. The 'ot-rcp' is not installed by all
devices, which causes the fuzz testing program is unable to find
the program '/vendor/bin/ot-rcp'.

This commit enables the HAL to talk to the '/dev/null' to avoid
'/vendor/bin/ot-rcp' not being found.

Bug: 289627270
Test: Run the fuzz test on cuttlefish
(cherry picked from https://android-review.googlesource.com/q/commit:7f7e8647fa94b9d126cb88f366740f2b50b1f864)
Merged-In: If410d7d75abe05c7c2d2c82fa0450e925b9a48bb
Change-Id: If410d7d75abe05c7c2d2c82fa0450e925b9a48bb
2023-08-25 05:16:46 +00:00
Zhanglong Xia
83c4ef44e5 add Spinel SPI interface support
This commit enables the Thread Network HAL to support the Spinel
SPI interface.

Bug: 277286756
Test: Build and run otbr-agent on the emulator.
(cherry picked from https://android-review.googlesource.com/q/commit:7ae6d6f4ffe49c358978b9ea9c670ee2aefe4a27)
Merged-In: I6726eead5686f0afb33e5e2035ebc9021eca5afa
Change-Id: I6726eead5686f0afb33e5e2035ebc9021eca5afa
2023-08-25 05:16:23 +00:00
Zhanglong Xia
aa36cb13b9 add fuzz test and fix the Thread network HAL compile errors
Bug: 288825495
Test: Build and run fuzz test in cuttlefish
(cherry picked from https://android-review.googlesource.com/q/commit:5c027015c3437ecf54e9a8dc4eb8a7b4b3ec542b)
Merged-In: If14bd95657d6a71737a348ccbc6d1b05bbcc1f4c
Change-Id: If14bd95657d6a71737a348ccbc6d1b05bbcc1f4c
2023-08-25 05:15:54 +00:00
Zhanglong Xia
9fec41344b Add Thread network HAL
Bug: b/203492431
Test: Build and run the VTS test and run otbr-agent on Android emulator.
(cherry picked from https://android-review.googlesource.com/q/commit:24e527475f91bf52fe75e1342635ac08446c106c)
Merged-In: If58b5a8c75e40376ae6c6e93554afe750496308b
Change-Id: If58b5a8c75e40376ae6c6e93554afe750496308b
2023-08-25 05:14:47 +00:00
Jooyung Han
f8bd1f0b00 Move threadnetwork HAL to VAPEX
com.android.hardware.threadnetwork is a new VAPEX containing
threadnetwork HAL. It also includes ot-rcp.

Bug: 296966113
Test: vts-tf > run vts -m VtsHalTheadNetworkTargetTest
Change-Id: Id2028d755f9b0dcc06ccd817bddf3195efb5595b
2023-08-24 17:40:46 +09:00
Zhanglong Xia
3297a174d6 remove manually freeing the variable mDeathRecipient
The variable `mDeathRecipient` will automatically free the allocated
memory when it is destructed. This CL deletes the code for manually
releasing the variable `mDeathRecipient` to avoid the same variable
being freed twice.

Bug: 296617022
Test: Run fuzzer test.
Change-Id: I733f7f8d26e48a9434d41c5098f39ad91208abeb
2023-08-24 15:38:05 +08:00
Zhanglong Xia
2f5e431e3f Merge "fix the Thread Network fuzz testing error" into main 2023-07-11 08:10:50 +00:00
Zhanglong Xia
a6165dcccf change the Thread Network HAL api from 'reset' to 'hardwareReset'
This CL changes the API from 'reset' to 'hardwareReset' to make the
the definition of the API clearer. This CL also optimizes the Thread
Network HAL default implementation.

Bug: 289867661
Test: Run Thread stack on cuttlefish.
Change-Id: Id742453d9d7a0d369ac8f16905efdacfcfba1dbc
2023-07-07 11:22:57 +08:00
Zhanglong Xia
7f7e8647fa fix the Thread Network fuzz testing error
The current fuzz testing comunicates with the Thread radio chip
simulation program `ot-rcp`. The 'ot-rcp' is not installed by all
devices, which causes the fuzz testing program is unable to find
the program '/vendor/bin/ot-rcp'.

This commit enables the HAL to talk to the '/dev/null' to avoid
'/vendor/bin/ot-rcp' not being found.

Bug: 289627270
Test: Run the fuzz test on cuttlefish
Change-Id: If410d7d75abe05c7c2d2c82fa0450e925b9a48bb
2023-07-06 13:45:23 +08:00
Zhanglong Xia
7ae6d6f4ff add Spinel SPI interface support
This commit enables the Thread Network HAL to support the Spinel
SPI interface.

Bug: 277286756
Test: Build and run otbr-agent on the emulator.
Change-Id: I6726eead5686f0afb33e5e2035ebc9021eca5afa
2023-07-03 11:59:17 +08:00
Zhanglong Xia
5c027015c3 add fuzz test and fix the Thread network HAL compile errors
Bug: 288825495
Test: Build and run fuzz test in cuttlefish

Change-Id: If14bd95657d6a71737a348ccbc6d1b05bbcc1f4c
2023-06-26 17:55:39 +08:00
Zhanglong Xia
24e527475f Add Thread network HAL
Bug: b/203492431
Test: Build and run the VTS test and run otbr-agent on Android emulator.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b82b0478059dd6203f43d5917558e34fd4ed44d5)
Merged-In: If58b5a8c75e40376ae6c6e93554afe750496308b
Change-Id: If58b5a8c75e40376ae6c6e93554afe750496308b
2023-06-14 22:24:24 +08:00
Kangping Dong
c756ab2e12 add OWNERS file for the threadnetwork HAL project
Test: N/A
Bug: 262471085
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:90bf9095167d0478c0ae4371ac82daf22a4efc73)
Merged-In: I024e7d5c1fe3adf7ae03f77d1580bd1f19f750c1
Change-Id: I024e7d5c1fe3adf7ae03f77d1580bd1f19f750c1
2023-05-26 16:17:38 +00:00
Kangping Dong
90bf909516 add OWNERS file for the threadnetwork HAL project
Test: N/A
Bug: 262471085
Change-Id: I024e7d5c1fe3adf7ae03f77d1580bd1f19f750c1
2022-12-14 14:42:14 +08:00