• 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
17####
18#### This file should be included at the top of the aosp_PHONE_car.mk file
19####
20
21# CarServiceHelperService accesses the hidden api in the system server.
22SYSTEM_OPTIMIZE_JAVA := false
23
24DEVICE_FRAMEWORK_MANIFEST_FILE += device/google_car/common/manifest.xml
25
26# generic_system.mk sets 'PRODUCT_ENFORCE_RRO_TARGETS := *'
27# but this breaks phone_car. So undo it here.
28PRODUCT_ENFORCE_RRO_TARGETS :=
29
30# Enable mainline checking
31PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := false
32
33# Set Car Service RRO
34PRODUCT_PACKAGES += CarServiceOverlayPhoneCar \
35GOOGLE_CAR_SERVICE_OVERLAY += CarServiceOverlayPhoneCarGoogle
36
37# All components inherited here go to system image
38# Skip this for 64 bit only devices
39ifneq ($(DEVICE_IS_64BIT_ONLY),true)
40    $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
41endif
42$(call inherit-product, packages/services/Car/car_product/build/car_generic_system.mk)
43
44#
45# All components inherited here go to system_ext image
46#
47$(call inherit-product, packages/services/Car/car_product/build/car_system_ext.mk)
48
49#
50# All components inherited here go to product image
51#
52$(call inherit-product, packages/services/Car/car_product/build/car_product.mk)
53
54ifneq ($(PIXEL_2023_GEN),true)
55    PRODUCT_PACKAGES += \
56        android.hardware.broadcastradio@2.0-service \
57        android.hardware.automotive.vehicle@2.0-default-service
58else
59    PRODUCT_PACKAGES += \
60        android.hardware.broadcastradio-service.default \
61        android.hardware.automotive.vehicle@V4-default-service
62endif
63
64# Additional selinux policy
65BOARD_SEPOLICY_DIRS += device/google_car/common/sepolicy
66
67# Car init.rc
68PRODUCT_COPY_FILES += \
69            packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \
70            packages/services/Car/car_product/init/init.car.rc:root/init.car.rc
71
72# Override heap growth limit due to high display density on device
73PRODUCT_PROPERTY_OVERRIDES += \
74            dalvik.vm.heapgrowthlimit=256m
75
76PRODUCT_PACKAGE_OVERLAYS += device/google_car/common/overlay
77
78ifneq ($(PORTRAIT_UI), true)
79        # Enable landscape
80        PRODUCT_COPY_FILES += \
81            frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
82endif
83
84
85TARGET_USES_CAR_FUTURE_FEATURES := true
86
87PRODUCT_COPY_FILES += \
88        frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
89        frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \
90        frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
91        frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
92        frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
93        frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
94        frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
95        frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
96        frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
97        frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
98        frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
99        frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
100        frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
101        frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
102
103PRODUCT_COPY_FILES += \
104        device/google_car/common/unavailable_features.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/unavailable_features.xml
105
106ifneq ($(PORTRAIT_UI), true)
107PRODUCT_COPY_FILES += \
108        device/google_car/common/unavailable_features_landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/unavailable_features_landscape.xml
109endif
110
111# broadcast radio feature
112PRODUCT_COPY_FILES += \
113        frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
114
115# Include EVS reference implementations
116ENABLE_EVS_SAMPLE ?= true
117
118#
119# All components inherited here go to vendor image
120#
121# TODO(b/136525499): move *_vendor.mk into the vendor makefile later
122$(call inherit-product, packages/services/Car/car_product/build/car_vendor.mk)
123ifneq ($(TARGET_NO_TELEPHONY), true)
124    $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
125endif
126