• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 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# Common make file for all car builds
18
19BOARD_PLAT_PUBLIC_SEPOLICY_DIR += packages/services/Car/car_product/sepolicy/public
20BOARD_PLAT_PRIVATE_SEPOLICY_DIR += packages/services/Car/car_product/sepolicy/private
21
22PRODUCT_PACKAGES += \
23    Bluetooth \
24    CarDeveloperOptions \
25    OneTimeInitializer \
26    Provision \
27    SystemUpdater
28
29PRODUCT_PACKAGES += \
30    clatd \
31    clatd.conf \
32    pppd \
33    screenrecord
34
35# This is for testing
36ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
37PRODUCT_PACKAGES += \
38    DefaultStorageMonitoringCompanionApp \
39    EmbeddedKitchenSinkApp \
40    VmsPublisherClientSample \
41    VmsSubscriberClientSample \
42    DirectRenderingCluster \
43    GarageModeTestApp \
44
45# SEPolicy for test apps / services
46BOARD_SEPOLICY_DIRS += packages/services/Car/car_product/sepolicy/test
47endif
48
49PRODUCT_COPY_FILES += \
50    frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf
51
52PRODUCT_PROPERTY_OVERRIDES += \
53    persist.bluetooth.enablenewavrcp=false \
54    ro.carrier=unknown
55
56# Enable headless user 0
57PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
58    ro.fw.mu.headless_system_user=true \
59
60# Overlay for Google network and fused location providers
61$(call inherit-product, device/sample/products/location_overlay.mk)
62$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
63$(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk)
64$(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk)
65$(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk)
66$(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk)
67$(call inherit-product-if-exists, external/noto-fonts/fonts.mk)
68$(call inherit-product-if-exists, external/roboto-fonts/fonts.mk)
69$(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk)
70$(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
71$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
72$(call inherit-product, packages/services/Car/car_product/build/car_base.mk)
73
74# Overrides
75PRODUCT_BRAND := generic
76PRODUCT_DEVICE := generic
77PRODUCT_NAME := generic_car_no_telephony
78
79PRODUCT_PROPERTY_OVERRIDES := \
80    ro.config.ringtone=Girtab.ogg \
81    ro.config.notification_sound=Tethys.ogg \
82    ro.config.alarm_alert=Oxygen.ogg \
83    $(PRODUCT_PROPERTY_OVERRIDES) \
84
85PRODUCT_PROPERTY_OVERRIDES += \
86    keyguard.no_require_sim=true
87
88# Automotive specific packages
89PRODUCT_PACKAGES += \
90    CarFrameworkPackageStubs \
91    CarService \
92    CarDialerApp \
93    CarRadioApp \
94    OverviewApp \
95    CarLauncher \
96    CarSystemUI \
97    LocalMediaPlayer \
98    CarMediaApp \
99    CarMessengerApp \
100    CarHvacApp \
101    CarMapsPlaceholder \
102    CarLatinIME \
103    CarSettings \
104    CarUsbHandler \
105    android.car \
106    car-frameworks-service \
107    com.android.car.procfsinspector \
108    libcar-framework-service-jni \
109
110# System Server components
111PRODUCT_SYSTEM_SERVER_JARS += car-frameworks-service
112
113# Boot animation
114PRODUCT_COPY_FILES += \
115    packages/services/Car/car_product/bootanimations/bootanimation-832.zip:system/media/bootanimation.zip
116
117PRODUCT_COPY_FILES += \
118    packages/services/Car/car_product/init/init.car.rc:system/etc/init/init.car.rc
119
120PRODUCT_LOCALES := en_US af_ZA am_ET ar_EG bg_BG bn_BD ca_ES cs_CZ da_DK de_DE el_GR en_AU en_GB en_IN es_ES es_US et_EE eu_ES fa_IR fi_FI fr_CA fr_FR gl_ES hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_IT iw_IL ja_JP ka_GE km_KH ko_KR ky_KG lo_LA lt_LT lv_LV km_MH kn_IN mn_MN ml_IN mk_MK mr_IN ms_MY my_MM ne_NP nb_NO nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA vi_VN zh_CN zh_HK zh_TW zu_ZA en_XA ar_XB
121
122# should add to BOOT_JARS only once
123ifeq (,$(INCLUDED_ANDROID_CAR_TO_PRODUCT_BOOT_JARS))
124PRODUCT_BOOT_JARS += \
125    android.car
126
127PRODUCT_HIDDENAPI_STUBS := \
128    android.car-stubs
129
130PRODUCT_HIDDENAPI_STUBS_SYSTEM := \
131    android.car-system-stubs
132
133PRODUCT_HIDDENAPI_STUBS_TEST := \
134    android.car-test-stubs
135
136INCLUDED_ANDROID_CAR_TO_PRODUCT_BOOT_JARS := yes
137endif
138