1// Copyright (C) 2024 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "hardware_interfaces_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["hardware_interfaces_license"], 22} 23 24cc_binary { 25 name: "android.hardware.radio-service.minradio-example", 26 defaults: ["android.hardware.radio-minradio@defaults"], 27 vintf_fragment_modules: ["android.hardware.radio-service.minradio-example.vintf"], 28 installable: false, 29 apex_available: ["com.android.hardware.radio.minradio.virtual"], 30 shared_libs: [ 31 "android.hardware.radio-library.minradio", 32 ], 33 static_libs: [ 34 "libnetdevice", 35 ], 36 srcs: [ 37 "impl/RadioConfig.cpp", 38 "impl/RadioData.cpp", 39 "impl/RadioModem.cpp", 40 "impl/RadioNetwork.cpp", 41 "impl/RadioSim.cpp", 42 "service.cpp", 43 ], 44} 45 46vintf_fragment { 47 name: "android.hardware.radio-service.minradio-example.vintf", 48 src: "minradio-example.xml", 49 vendor: true, 50} 51 52apex { 53 name: "com.android.hardware.radio.minradio.virtual", 54 manifest: "apex_manifest.json", 55 file_contexts: "file_contexts", 56 key: "com.android.hardware.key", 57 certificate: ":com.android.hardware.certificate", 58 updatable: false, 59 soc_specific: true, 60 61 binaries: [ 62 "android.hardware.radio-service.minradio-example", 63 ], 64 prebuilts: [ 65 "android.hardware.telephony.data.prebuilt.xml", 66 67 // TODO(b/369726708): adding to init_rc field of cc_binary doesn't work in apex yet 68 "minradio-example.rc", 69 ], 70 overrides: ["rild"], 71} 72 73prebuilt_etc { 74 name: "minradio-example.rc", 75 src: "minradio-example.rc", 76 installable: false, 77} 78