• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2020 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_FRAMEWORK_MANIFEST_FILE += device/google_car/flame_car/manifest.xml
18
19#
20# All components inherited here go to system image
21#
22$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
23$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
24
25# mainline_system.mk sets 'PRODUCT_ENFORCE_RRO_TARGETS := *'
26# but this breaks flame_car. So undo it here.
27PRODUCT_ENFORCE_RRO_TARGETS :=
28
29# Enable mainline checking
30PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS :=
31
32
33#
34# All components inherited here go to system_ext image
35#
36$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
37$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
38
39#
40# All components inherited here go to product image
41#
42$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
43
44# Auto modules
45PRODUCT_PACKAGES += \
46            android.hardware.broadcastradio@2.0-service \
47            android.hardware.automotive.vehicle@2.0-service
48
49
50# Additional selinux policy
51BOARD_SEPOLICY_DIRS += device/google_car/common/sepolicy
52
53# Car init.rc
54PRODUCT_COPY_FILES += \
55            packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \
56            packages/services/Car/car_product/init/init.car.rc:root/init.car.rc
57
58# Override heap growth limit due to high display density on device
59PRODUCT_PROPERTY_OVERRIDES += \
60            dalvik.vm.heapgrowthlimit=256m
61
62PRODUCT_PACKAGE_OVERLAYS += device/google_car/flame_car/overlay
63
64# Pre-create users
65PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
66    android.car.number_pre_created_users=1 \
67    android.car.number_pre_created_guests=1 \
68    android.car.user_hal_enabled=true
69
70# Enable landscape
71PRODUCT_COPY_FILES += \
72            frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
73
74
75TARGET_USES_CAR_FUTURE_FEATURES := true
76
77PRODUCT_COPY_FILES += \
78        frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
79        frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \
80        frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
81        frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
82        frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
83        frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
84        frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
85        frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
86        frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
87        frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
88        frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
89        frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
90        frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
91        frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
92        frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
93
94# broadcast radio feature
95 PRODUCT_COPY_FILES += \
96        frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
97
98# EVS v1.1
99PRODUCT_PACKAGES += android.automotive.evs.manager@1.1 \
100                    android.hardware.automotive.evs@1.1-sample \
101                    evs_app
102PRODUCT_PRODUCT_PROPERTIES += persist.automotive.evs.mode=0
103
104# Automotive display service
105PRODUCT_PACKAGES += android.frameworks.automotive.display@1.0-service
106
107#
108# All components inherited here go to vendor image
109#
110# TODO(b/136525499): move *_vendor.mk into the vendor makefile later
111$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
112$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
113
114$(call inherit-product, device/google_car/flame_car/device-flame-car.mk)
115$(call inherit-product-if-exists, vendor/google_devices/coral/proprietary/device-vendor.mk)
116$(call inherit-product-if-exists, vendor/google_devices/coral/prebuilts/device-vendor-flame.mk)
117
118PRODUCT_COPY_FILES += \
119    $(LOCAL_PATH)/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
120
121# Don't build super.img.
122PRODUCT_BUILD_SUPER_PARTITION := false
123
124# b/113232673 STOPSHIP deal with Qualcomm stuff later
125# PRODUCT_RESTRICT_VENDOR_FILES := all
126
127PRODUCT_MANUFACTURER := Google
128PRODUCT_BRAND := Android
129PRODUCT_NAME := aosp_flame_car
130PRODUCT_DEVICE := flame
131PRODUCT_MODEL := AOSP on flame
132