Files
hardware_interfaces/uwb/aidl/default/Android.bp
Henri Chataing 8db43045c0 uwb: Refactor default AIDL HAL implementation
Refactor the implementation in order to:
  - simplify the code and make it less error prone
    by keeping the serial open at all times
  - address issues about futures being awoken too often
    taking CPU time

Bug: 345676140
Test: m android.hardware.uwb-service
Test: atest CtsUwbTestCases
Test: AVD boot test
Change-Id: Ibe4f00dab87ffac42f627def5ca84c0be5147820
2024-09-13 21:41:15 +00:00

67 lines
1.5 KiB
Plaintext

package {
default_team: "trendy_team_fwk_uwb",
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
rust_binary {
name: "android.hardware.uwb-service",
crate_name: "uwb_default_hal",
relative_install_path: "hw",
vendor: true,
prefer_rlib: true,
rustlibs: [
"android.hardware.uwb-V1-rust",
"liblogger",
"liblog_rust",
"libbinder_rs",
"libbinder_tokio_rs",
"libtokio",
"libnix",
"libanyhow",
],
proc_macros: [
"libasync_trait",
],
srcs: [
"src/service.rs",
],
}
prebuilt_etc {
name: "uwb-service.rc",
src: "uwb-service.rc",
vendor: true,
installable: false,
}
prebuilt_etc {
name: "uwb-service.xml",
src: "uwb-service.xml",
sub_dir: "vintf",
vendor: true,
installable: false,
}
apex {
name: "com.android.hardware.uwb",
manifest: "manifest.json",
file_contexts: "file_contexts",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
updatable: false,
vendor: true,
binaries: [
"android.hardware.uwb-service",
],
prebuilts: [
"uwb-service.rc", // init_rc
"uwb-service.xml", // vintf_fragments
],
}