• 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/sargo_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 sargo_car. So undo it here.
27PRODUCT_ENFORCE_RRO_TARGETS :=
28
29# Enable mainline checking
30# TODO(b/138706293): Enable mainline checking later
31# PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
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# Additional selinux policy
50BOARD_SEPOLICY_DIRS += device/google_car/common/sepolicy
51
52PRODUCT_PACKAGES += \
53            android.hardware.automotive.audiocontrol@1.0-service
54
55# Car init.rc
56PRODUCT_COPY_FILES += \
57            packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \
58            packages/services/Car/car_product/init/init.car.rc:root/init.car.rc
59
60# Override heap growth limit due to high display density on device
61PRODUCT_PROPERTY_OVERRIDES += \
62            dalvik.vm.heapgrowthlimit=256m
63
64PRODUCT_PACKAGE_OVERLAYS += device/google_car/sargo_car/overlay
65
66# Pre-create users
67PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
68    android.car.number_pre_created_users=1 \
69    android.car.number_pre_created_guests=1 \
70    android.car.user_hal_enabled=true
71
72# Enable landscape
73PRODUCT_COPY_FILES += \
74            frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
75
76# Vendor Interface Manifest
77PRODUCT_COPY_FILES += \
78            frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
79
80TARGET_USES_CAR_FUTURE_FEATURES := true
81
82PRODUCT_COPY_FILES += \
83        frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
84        frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \
85        frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
86        frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
87        frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
88        frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
89        frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
90        frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
91        frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
92        frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
93        frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
94        frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
95        frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
96        frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
97        frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
98
99# broadcast radio feature
100 PRODUCT_COPY_FILES += \
101        frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
102
103# EVS v1.1
104PRODUCT_PACKAGES += android.automotive.evs.manager@1.1 \
105                    android.hardware.automotive.evs@1.1-sample \
106                    evs_app
107PRODUCT_PRODUCT_PROPERTIES += persist.automotive.evs.mode=0
108
109# Automotive display service
110PRODUCT_PACKAGES += android.frameworks.automotive.display@1.0-service
111
112#
113# All components inherited here go to vendor image
114#
115# TODO(b/136525499): move *_vendor.mk into the vendor makefile later
116$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
117$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
118
119$(call inherit-product, device/google_car/sargo_car/device-sargo-car.mk)
120$(call inherit-product-if-exists, vendor/google_devices/bonito/proprietary/device-vendor.mk)
121
122
123PRODUCT_COPY_FILES += $(LOCAL_PATH)/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
124
125# STOPSHIP deal with Qualcomm stuff later
126# PRODUCT_RESTRICT_VENDOR_FILES := all
127
128# TODO: line below was set on aosp_sargo.mk, but it's not included on other _car
129# projects
130# PRODUCT_PACKAGES += com.android.vndk.current.on_vendor
131
132PRODUCT_MANUFACTURER := Google
133PRODUCT_BRAND := Android
134PRODUCT_NAME := aosp_sargo_car
135PRODUCT_DEVICE := sargo
136PRODUCT_MODEL := AOSP on sargo
137