2023-06-14 05:25:55 +00:00
|
|
|
//
|
|
|
|
|
// Copyright (c) 2022 Google LLC.
|
|
|
|
|
// All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
// This document is the property of Google LLC, Inc. It is
|
|
|
|
|
// considered proprietary and confidential information.
|
|
|
|
|
//
|
|
|
|
|
// This document may not be reproduced or transmitted in any form,
|
|
|
|
|
// in whole or in part, without the express written permission of
|
|
|
|
|
// Google LLC.
|
|
|
|
|
|
2023-08-24 16:50:34 +09:00
|
|
|
cc_binary {
|
|
|
|
|
name: "android.hardware.threadnetwork-service",
|
2023-06-14 05:25:55 +00:00
|
|
|
vendor: true,
|
|
|
|
|
relative_install_path: "hw",
|
|
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
|
"libbinder_ndk",
|
|
|
|
|
"liblog",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
static_libs: [
|
2023-08-24 16:50:34 +09:00
|
|
|
"android.hardware.threadnetwork-V1-ndk",
|
|
|
|
|
"libbase",
|
|
|
|
|
"libcutils",
|
|
|
|
|
"libutils",
|
2023-06-14 05:25:55 +00:00
|
|
|
"openthread-common",
|
|
|
|
|
"openthread-hdlc",
|
|
|
|
|
"openthread-platform",
|
|
|
|
|
"openthread-posix",
|
2023-07-03 10:52:45 +08:00
|
|
|
"openthread-spi",
|
2023-06-14 05:25:55 +00:00
|
|
|
"openthread-url",
|
|
|
|
|
],
|
|
|
|
|
|
2023-08-24 16:50:34 +09:00
|
|
|
stl: "c++_static",
|
|
|
|
|
|
2023-06-14 05:25:55 +00:00
|
|
|
srcs: [
|
|
|
|
|
"main.cpp",
|
|
|
|
|
"service.cpp",
|
2024-01-24 08:58:39 +00:00
|
|
|
"socket_interface.cpp",
|
2023-06-14 05:25:55 +00:00
|
|
|
"thread_chip.cpp",
|
|
|
|
|
"utils.cpp",
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-15 10:15:59 +08:00
|
|
|
cc_fuzz {
|
|
|
|
|
name: "android.hardware.threadnetwork-service.fuzzer",
|
|
|
|
|
|
2023-08-24 16:50:34 +09:00
|
|
|
defaults: ["service_fuzzer_defaults"],
|
2023-06-15 10:15:59 +08:00
|
|
|
shared_libs: [
|
|
|
|
|
"libbinder_ndk",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
|
"android.hardware.threadnetwork-V1-ndk",
|
|
|
|
|
"libbase",
|
|
|
|
|
"liblog",
|
|
|
|
|
"openthread-common",
|
|
|
|
|
"openthread-hdlc",
|
|
|
|
|
"openthread-platform",
|
|
|
|
|
"openthread-posix",
|
2023-07-03 10:52:45 +08:00
|
|
|
"openthread-spi",
|
2023-06-15 10:15:59 +08:00
|
|
|
"openthread-url",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
srcs: [
|
2024-01-24 08:58:39 +00:00
|
|
|
"socket_interface.cpp",
|
2023-06-15 10:15:59 +08:00
|
|
|
"thread_chip.cpp",
|
|
|
|
|
"utils.cpp",
|
|
|
|
|
"fuzzer.cpp",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
fuzz_config: {
|
|
|
|
|
cc: [
|
|
|
|
|
"zhanglongxia@google.com",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}
|
2023-08-24 16:50:34 +09:00
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
|
name: "threadnetwork-default.xml",
|
|
|
|
|
src: "threadnetwork-default.xml",
|
|
|
|
|
sub_dir: "vintf",
|
|
|
|
|
installable: false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prebuilt_etc {
|
2023-08-31 16:56:39 +08:00
|
|
|
name: "threadnetwork-service.rc",
|
|
|
|
|
src: "threadnetwork-service.rc",
|
2023-08-24 16:50:34 +09:00
|
|
|
installable: false,
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-29 22:56:07 +08:00
|
|
|
filegroup {
|
|
|
|
|
name: "com.android.hardware.threadnetwork_manifest",
|
|
|
|
|
srcs: ["manifest.json"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
|
name: "com.android.hardware.threadnetwork_file_contexts",
|
|
|
|
|
srcs: ["file_contexts"],
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-24 16:50:34 +09:00
|
|
|
apex {
|
|
|
|
|
name: "com.android.hardware.threadnetwork",
|
2024-07-29 22:56:07 +08:00
|
|
|
manifest: ":com.android.hardware.threadnetwork_manifest",
|
|
|
|
|
file_contexts: ":com.android.hardware.threadnetwork_file_contexts",
|
2023-08-24 16:50:34 +09:00
|
|
|
key: "com.android.hardware.key",
|
|
|
|
|
certificate: ":com.android.hardware.certificate",
|
|
|
|
|
updatable: false,
|
|
|
|
|
vendor: true,
|
|
|
|
|
|
|
|
|
|
binaries: [
|
|
|
|
|
"android.hardware.threadnetwork-service",
|
|
|
|
|
"ot-rcp",
|
|
|
|
|
],
|
2023-08-31 16:56:39 +08:00
|
|
|
|
2023-08-24 16:50:34 +09:00
|
|
|
prebuilts: [
|
|
|
|
|
"threadnetwork-default.xml", // vintf_fragment
|
2023-08-31 16:56:39 +08:00
|
|
|
"threadnetwork-service.rc", // init_rc
|
2023-08-24 16:50:34 +09:00
|
|
|
"android.hardware.thread_network.prebuilt.xml", // permission
|
|
|
|
|
],
|
|
|
|
|
}
|
2024-07-29 22:56:07 +08:00
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
|
name: "threadnetwork-service-simulation-rcp.rc",
|
|
|
|
|
src: "threadnetwork-service-simulation-rcp.rc",
|
|
|
|
|
installable: false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Thread HAL service which uses a simulation RCP (i.e. ot-rcp),
|
|
|
|
|
// typically used in emulator devices.
|
|
|
|
|
override_apex {
|
|
|
|
|
name: "com.android.hardware.threadnetwork-simulation-rcp",
|
|
|
|
|
base: "com.android.hardware.threadnetwork",
|
|
|
|
|
prebuilts: [
|
|
|
|
|
"threadnetwork-service-simulation-rcp.rc",
|
|
|
|
|
"threadnetwork-default.xml",
|
|
|
|
|
"android.hardware.thread_network.prebuilt.xml",
|
|
|
|
|
],
|
|
|
|
|
}
|