• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018 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
17DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest.xml
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
20$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
21
22# use include below so PRODUCT_SHIPPING_API_LEVEL can be overriden
23include device/google/cuttlefish/shared/device.mk
24PRODUCT_SHIPPING_API_LEVEL := 28
25
26TARGET_BUILD_SYSTEM_ROOT_IMAGE ?= true
27
28PRODUCT_CHARACTERISTICS := nosdcard
29
30PRODUCT_PROPERTY_OVERRIDES += \
31    keyguard.no_require_sim=true \
32    ro.cdma.home.operator.alpha=Android \
33    ro.cdma.home.operator.numeric=302780 \
34    vendor.rild.libpath=libcuttlefish-ril.so \
35
36PRODUCT_PACKAGES += \
37    MmsService \
38    Phone \
39    PhoneService \
40    Telecom \
41    TeleService \
42    libcuttlefish-ril \
43    rild \
44
45PRODUCT_COPY_FILES += \
46    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml
47
48# libGLES_android, SdkSetup, and vintf are in current AOSP GSI
49# SdkSetup may need to be removed when it's moved to emulator vendor.
50PRODUCT_PACKAGES += \
51    libGLES_android \
52    SdkSetup \
53    vintf
54
55# Needed for /system/priv-app/SdkSetup/SdkSetup.apk to pass CTS android.permission2.cts.PrivappPermissionsTest.
56PRODUCT_COPY_FILES += \
57    device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml
58
59# NFC:
60#   Provide default libnfc-nci.conf file for devices that does not have one in
61#   vendor/etc because aosp system image (of aosp_$arch products) is going to
62#   be used as GSI.
63#   May need to remove the following for newly launched devices in P since this
64#   NFC configuration file should be in vendor/etc, instead of system/etc
65PRODUCT_COPY_FILES += \
66    device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
67
68# These flags are important for the GSI, but break auto
69PRODUCT_ENFORCE_RRO_TARGETS := framework-res
70PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS := device/google/cuttlefish/shared/overlay
71