blob: 9b7c05ae238f6682e5048589a75004a87ea88c4c [file] [log] [blame]
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -07001#
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
Greg Hartmanc5b78752018-06-21 21:42:08 -070017################################################
18# Begin GCE specific configurations
19
Greg Hartman3b6d8822018-07-30 17:04:30 -070020DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest.xml
Alistair Strachanf43c7412019-04-03 23:11:44 -070021DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/auto/manifest.xml
Greg Hartman3b6d8822018-07-30 17:04:30 -070022
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070023$(call inherit-product, device/google/cuttlefish/shared/device.mk)
Greg Hartmanc5b78752018-06-21 21:42:08 -070024
25################################################
26# Begin general Android Auto Embedded configurations
27
28PRODUCT_COPY_FILES += \
29 packages/services/Car/car_product/init/init.bootstat.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.bootstat.rc \
30 packages/services/Car/car_product/init/init.car.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.car.rc
31
32# Auto core hardware permissions
33PRODUCT_COPY_FILES += \
34 frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
35 frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \
36
37# Enable landscape
38PRODUCT_COPY_FILES += \
39 frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
40
Yuncheol Heo1b866332019-11-13 14:07:19 -080041# Used to embed a map in an activity view
42PRODUCT_COPY_FILES += \
43 frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:system/etc/permissions/android.software.activities_on_secondary_displays.xml
44
Greg Hartmanc5b78752018-06-21 21:42:08 -070045# Location permissions
46PRODUCT_COPY_FILES += \
47 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
48
Chao Yan62523e02018-07-25 14:55:35 -070049# Broadcast Radio permissions
50PRODUCT_COPY_FILES += \
51 frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
52
Greg Hartmanc5b78752018-06-21 21:42:08 -070053PRODUCT_PROPERTY_OVERRIDES += \
Cody Schuffelend6d72eb2018-06-27 18:20:47 -070054 keyguard.no_require_sim=true \
Cody Schuffelend6d72eb2018-06-27 18:20:47 -070055 ro.cdma.home.operator.alpha=Android \
56 ro.cdma.home.operator.numeric=302780 \
Alistair Strachan62047d82019-03-27 19:23:40 -070057 vendor.rild.libpath=libcuttlefish-ril.so \
Cody Schuffelend6d72eb2018-06-27 18:20:47 -070058
Greg Hartmanc5b78752018-06-21 21:42:08 -070059# vehicle HAL
Enrico Granatab060bd52020-01-30 13:34:14 -080060ifeq ($(LOCAL_VHAL_PRODUCT_PACKAGE),)
61 LOCAL_VHAL_PRODUCT_PACKAGE := android.hardware.automotive.vehicle@2.0-service
62endif
63PRODUCT_PACKAGES += $(LOCAL_VHAL_PRODUCT_PACKAGE)
Greg Hartmanc5b78752018-06-21 21:42:08 -070064
Chao Yan38398872018-08-14 19:00:19 -070065# Broadcast Radio
66PRODUCT_PACKAGES += android.hardware.broadcastradio@2.0-service
67
Greg Hartmanc5b78752018-06-21 21:42:08 -070068# DRM HAL
Robert Shih63e5a1b2019-11-25 22:25:41 -080069PRODUCT_PACKAGES += android.hardware.drm@1.3-service.clearkey
Greg Hartmanc5b78752018-06-21 21:42:08 -070070
Tomasz Wasilczyk0a5d7de2019-08-14 14:28:38 -070071# CAN bus HAL
72PRODUCT_PACKAGES += android.hardware.automotive.can@1.0-service
73PRODUCT_PACKAGES_DEBUG += canhalctrl \
74 canhaldump \
75 canhalsend
76
Greg Hartmanc5b78752018-06-21 21:42:08 -070077# DRM Properities
78PRODUCT_PROPERTY_OVERRIDES += \
79 drm.service.enabled=true
80
Greg Hartmanc5b78752018-06-21 21:42:08 -070081BOARD_IS_AUTOMOTIVE := true
82
83$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
84$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
85$(call inherit-product, packages/services/Car/car_product/build/car.mk)
Greg Hartman2c5eee72018-06-25 13:31:15 -070086
87# Placed here due to b/110784510
88PRODUCT_BRAND := generic
davidln9da11962019-03-05 13:54:17 -080089
90PRODUCT_ENFORCE_RRO_TARGETS := framework-res
Alistair Delva7bff9102019-07-22 14:02:05 -070091
Ying Zheng77e8d6f2019-08-13 15:09:40 -070092TARGET_NO_TELEPHONY := true