• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2022 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# If downstream target does not want telephony, do not include this file
18
19ifneq ($(TARGET_NO_TELEPHONY), true)
20
21$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
22
23PRODUCT_VENDOR_PROPERTIES += \
24    keyguard.no_require_sim=true \
25    ro.cdma.home.operator.alpha=Android \
26    ro.cdma.home.operator.numeric=302780 \
27    ro.com.android.dataroaming=true \
28    ro.telephony.default_network=9 \
29
30ifeq ($(LOCAL_PREFER_VENDOR_APEX),true)
31PRODUCT_PACKAGES += com.google.cf.rild
32else
33# If downstream target provides its own RILD, set TARGET_USES_CF_RILD := false
34# If the target prefers vendor APEX, this feature is not supported
35TARGET_USES_CF_RILD ?= true
36ifeq ($(TARGET_USES_CF_RILD),true)
37PRODUCT_PACKAGES += \
38    libcuttlefish-ril-2 \
39    libcuttlefish-rild
40endif
41PRODUCT_COPY_FILES += \
42    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
43    frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
44    frameworks/native/data/etc/android.hardware.telephony.satellite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.satellite.xml
45endif # if not LOCAL_PREFER_VENDOR_APEX
46
47endif # if not TARGET_NO_TELEPHONY
48