1package { 2 default_team: "trendy_team_fwk_uwb", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "hardware_interfaces_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["hardware_interfaces_license"], 9} 10 11rust_binary { 12 name: "android.hardware.uwb-service", 13 crate_name: "uwb_default_hal", 14 relative_install_path: "hw", 15 vendor: true, 16 prefer_rlib: true, 17 rustlibs: [ 18 "android.hardware.uwb-V1-rust", 19 "liblibc", 20 "liblogger", 21 "liblog_rust", 22 "libbinder_rs", 23 "libbinder_tokio_rs", 24 "libtokio", 25 "libtokio_util", 26 "libnix", 27 "libanyhow", 28 "libpdl_runtime", 29 "libuwb_uci_packets", 30 ], 31 proc_macros: [ 32 "libasync_trait", 33 ], 34 srcs: [ 35 "src/service.rs", 36 ], 37} 38 39prebuilt_etc { 40 name: "uwb-service.rc", 41 src: "uwb-service.rc", 42 vendor: true, 43 installable: false, 44} 45 46prebuilt_etc { 47 name: "uwb-service.xml", 48 src: "uwb-service.xml", 49 sub_dir: "vintf", 50 vendor: true, 51 installable: false, 52} 53 54apex { 55 name: "com.android.hardware.uwb", 56 manifest: "manifest.json", 57 file_contexts: "file_contexts", 58 key: "com.android.hardware.key", 59 certificate: ":com.android.hardware.certificate", 60 updatable: false, 61 vendor: true, 62 63 binaries: [ 64 "android.hardware.uwb-service", 65 ], 66 prebuilts: [ 67 "uwb-service.rc", // init_rc 68 "uwb-service.xml", // vintf_fragments 69 ], 70} 71