• 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
21DEVICE_FRAMEWORK_MANIFEST_FILE += device/google_car/common/manifest.xml
22
23# generic_system.mk sets 'PRODUCT_ENFORCE_RRO_TARGETS := *'
24# but this breaks phone_car. So undo it here.
25PRODUCT_ENFORCE_RRO_TARGETS :=
26
27# Enable mainline checking
28PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS :=
29
30# All components inherited here go to system image
31#
32$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
33$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
34
35#
36# All components inherited here go to system_ext image
37#
38$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
39$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
40
41#
42# All components inherited here go to product image
43#
44$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
45
46# Auto modules
47PRODUCT_PACKAGES += \
48            android.hardware.broadcastradio@2.0-service \
49            android.hardware.automotive.vehicle@2.0-service
50
51# Additional selinux policy
52BOARD_SEPOLICY_DIRS += device/google_car/common/sepolicy
53
54# Car init.rc
55PRODUCT_COPY_FILES += \
56            packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \
57            packages/services/Car/car_product/init/init.car.rc:root/init.car.rc
58
59# Override heap growth limit due to high display density on device
60PRODUCT_PROPERTY_OVERRIDES += \
61            dalvik.vm.heapgrowthlimit=256m
62
63PRODUCT_PACKAGE_OVERLAYS += device/google_car/common/overlay
64
65# Enable landscape
66PRODUCT_COPY_FILES += \
67            frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml
68
69
70TARGET_USES_CAR_FUTURE_FEATURES := true
71
72PRODUCT_COPY_FILES += \
73        frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \
74        frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \
75        frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
76        frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
77        frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
78        frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
79        frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
80        frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
81        frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
82        frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
83        frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
84        frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
85        frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
86        frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
87        frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
88
89# broadcast radio feature
90 PRODUCT_COPY_FILES += \
91        frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml
92
93# Include EVS reference implementations
94ENABLE_EVS_SAMPLE := true
95
96#
97# All components inherited here go to vendor image
98#
99# TODO(b/136525499): move *_vendor.mk into the vendor makefile later
100$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
101$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
102