1#
2# Copyright (C) 2017 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################################################
18# Begin GCE specific configurations
19
20DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/auto/manifest.xml
21
22$(call inherit-product, device/google/cuttlefish/shared/device.mk)
23
24# Extend cuttlefish common sepolicy with auto-specific functionality
25BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/auto/sepolicy/vendor
26
27################################################
28# Begin general Android Auto Embedded configurations
29
30PRODUCT_COPY_FILES += \
31    packages/services/Car/car_product/init/init.bootstat.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.bootstat.rc \
32    packages/services/Car/car_product/init/init.car.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.car.rc
33
34PRODUCT_COPY_FILES += \
35    frameworks/native/data/etc/android.hardware.broadcastradio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.broadcastradio.xml \
36    frameworks/native/data/etc/android.hardware.faketouch.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.faketouch.xml \
37    frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \
38    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
39    frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
40    frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.activities_on_secondary_displays.xml \
41    frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
42
43PRODUCT_PROPERTY_OVERRIDES += \
44    keyguard.no_require_sim=true \
45    ro.cdma.home.operator.alpha=Android \
46    ro.cdma.home.operator.numeric=302780 \
47    ro.com.android.dataroaming=true \
48    vendor.rild.libpath=libcuttlefish-ril.so \
49
50# vehicle HAL
51ifeq ($(LOCAL_VHAL_PRODUCT_PACKAGE),)
52    LOCAL_VHAL_PRODUCT_PACKAGE := android.hardware.automotive.vehicle@2.0-service
53endif
54PRODUCT_PACKAGES += $(LOCAL_VHAL_PRODUCT_PACKAGE)
55
56# Broadcast Radio
57PRODUCT_PACKAGES += android.hardware.broadcastradio@2.0-service
58
59# system_other support
60PRODUCT_PACKAGES += \
61    cppreopts.sh \
62
63BOARD_IS_AUTOMOTIVE := true
64
65$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
66$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
67$(call inherit-product, packages/services/Car/car_product/build/car.mk)
68
69# Placed here due to b/110784510
70PRODUCT_BRAND := generic
71
72DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/auto/overlay
73
74PRODUCT_ENFORCE_RRO_TARGETS := framework-res
75
76TARGET_NO_TELEPHONY := true
77