// Copyright (C) 2024 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package { // 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"], } cc_binary { name: "android.hardware.radio-service.minradio-example", defaults: ["android.hardware.radio-minradio@defaults"], vintf_fragment_modules: ["android.hardware.radio-service.minradio-example.vintf"], installable: false, apex_available: ["com.android.hardware.radio.minradio.virtual"], shared_libs: [ "android.hardware.radio-library.minradio", ], static_libs: [ "libnetdevice", ], srcs: [ "impl/RadioConfig.cpp", "impl/RadioData.cpp", "impl/RadioModem.cpp", "impl/RadioNetwork.cpp", "impl/RadioSim.cpp", "service.cpp", ], } vintf_fragment { name: "android.hardware.radio-service.minradio-example.vintf", src: "minradio-example.xml", vendor: true, } apex { name: "com.android.hardware.radio.minradio.virtual", manifest: "apex_manifest.json", file_contexts: "file_contexts", key: "com.android.hardware.key", certificate: ":com.android.hardware.certificate", updatable: false, soc_specific: true, binaries: [ "android.hardware.radio-service.minradio-example", ], prebuilts: [ "android.hardware.telephony.data.prebuilt.xml", // TODO(b/369726708): adding to init_rc field of cc_binary doesn't work in apex yet "minradio-example.rc", ], overrides: ["rild"], } prebuilt_etc { name: "minradio-example.rc", src: "minradio-example.rc", installable: false, }