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 "liblogger", 20 "liblog_rust", 21 "libbinder_rs", 22 "libbinder_tokio_rs", 23 "libtokio", 24 "libnix", 25 "libanyhow", 26 ], 27 proc_macros: [ 28 "libasync_trait", 29 ], 30 srcs: [ 31 "src/service.rs", 32 ], 33} 34 35prebuilt_etc { 36 name: "uwb-service.rc", 37 src: "uwb-service.rc", 38 vendor: true, 39 installable: false, 40} 41 42prebuilt_etc { 43 name: "uwb-service.xml", 44 src: "uwb-service.xml", 45 sub_dir: "vintf", 46 vendor: true, 47 installable: false, 48} 49 50apex { 51 name: "com.android.hardware.uwb", 52 manifest: "manifest.json", 53 file_contexts: "file_contexts", 54 key: "com.android.hardware.key", 55 certificate: ":com.android.hardware.certificate", 56 updatable: false, 57 vendor: true, 58 59 binaries: [ 60 "android.hardware.uwb-service", 61 ], 62 prebuilts: [ 63 "uwb-service.rc", // init_rc 64 "uwb-service.xml", // vintf_fragments 65 ], 66} 67