• 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
19PRODUCT_PUBLIC_SEPOLICY_DIRS += packages/services/Car/car_product/sepolicy/public
20PRODUCT_PRIVATE_SEPOLICY_DIRS += packages/services/Car/car_product/sepolicy/private
21
22PRODUCT_PACKAGES += \
23    Bluetooth \
24    CarActivityResolver \
25    CarDeveloperOptions \
26    CarSettingsIntelligence \
27    OneTimeInitializer \
28    CarProvision \
29    StatementService \
30    SystemUpdater
31
32
33PRODUCT_PACKAGES += \
34    clatd \
35    pppd \
36    screenrecord
37
38# This is for testing
39ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
40PRODUCT_PACKAGES += \
41    DefaultStorageMonitoringCompanionApp \
42    EmbeddedKitchenSinkApp \
43    GarageModeTestApp \
44    ExperimentalCarService \
45    BugReportApp \
46    NetworkPreferenceApp \
47    SampleCustomInputService \
48
49# SEPolicy for test apps / services
50BOARD_SEPOLICY_DIRS += packages/services/Car/car_product/sepolicy/test
51endif
52
53# ClusterOsDouble is the testing app to test Cluster2 framework and it can handle Cluster VHAL
54# and do some Cluster OS role.
55ifeq ($(ENABLE_CLUSTER_OS_DOUBLE), true)
56PRODUCT_PACKAGES += ClusterHomeSample ClusterOsDouble
57else
58# DirectRenderingCluster is the sample app for the old Cluster framework.
59PRODUCT_PACKAGES += DirectRenderingCluster
60endif  # ENABLE_CLUSTER_OS_DOUBLE
61
62PRODUCT_COPY_FILES += \
63    frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf
64
65PRODUCT_PROPERTY_OVERRIDES += \
66    persist.bluetooth.enablenewavrcp=false \
67    ro.carrier=unknown
68
69PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
70    config.disable_systemtextclassifier=true
71
72###
73### Suggested values for multi-user properties - can be overridden
74###
75
76# Enable headless system user mode
77PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
78    ro.fw.mu.headless_system_user?=true
79
80# Enable user pre-creation
81PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
82    android.car.number_pre_created_users?=1 \
83    android.car.number_pre_created_guests?=1
84
85### end of multi-user properties ###
86
87# Overlay for Google network and fused location providers
88$(call inherit-product, device/sample/products/location_overlay.mk)
89$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
90$(call inherit-product, packages/services/Car/car_product/build/car_base.mk)
91
92# Overrides
93PRODUCT_BRAND := generic
94PRODUCT_DEVICE := generic
95PRODUCT_NAME := generic_car_no_telephony
96
97PRODUCT_IS_AUTOMOTIVE := true
98
99PRODUCT_PROPERTY_OVERRIDES := \
100    ro.config.ringtone=Girtab.ogg \
101    ro.config.notification_sound=Tethys.ogg \
102    ro.config.alarm_alert=Oxygen.ogg \
103    $(PRODUCT_PROPERTY_OVERRIDES) \
104
105PRODUCT_PROPERTY_OVERRIDES += \
106    keyguard.no_require_sim=true
107
108# Automotive specific packages
109PRODUCT_PACKAGES += \
110    CarFrameworkPackageStubs \
111    CarService \
112    CarShell \
113    CarDialerApp \
114    CarRadioApp \
115    OverviewApp \
116    CarLauncher \
117    CarSystemUI \
118    LocalMediaPlayer \
119    CarMediaApp \
120    CarMessengerApp \
121    CarHTMLViewer \
122    CarHvacApp \
123    CarMapsPlaceholder \
124    CarLatinIME \
125    CarSettings \
126    CarUsbHandler \
127    android.car \
128    car-frameworks-service \
129    com.android.car.procfsinspector \
130    libcar-framework-service-jni \
131
132# RROs
133PRODUCT_PACKAGES += \
134    CarPermissionControllerRRO \
135
136# System Server components
137# Order is important: if X depends on Y, then Y should precede X on the list.
138PRODUCT_SYSTEM_SERVER_JARS += car-frameworks-service
139# TODO: make the order optimal by appending 'car-frameworks-service' at the end
140# after its dependency 'services'. Currently the order is violated because this
141# makefile is included before AOSP makefile.
142PRODUCT_BROKEN_SUBOPTIMAL_ORDER_OF_SYSTEM_SERVER_JARS := true
143
144# Boot animation
145PRODUCT_COPY_FILES += \
146    packages/services/Car/car_product/bootanimations/bootanimation-832.zip:system/media/bootanimation.zip
147
148PRODUCT_LOCALES := \
149    en_US \
150    af_ZA \
151    am_ET \
152    ar_EG ar_XB \
153    as_IN \
154    az_AZ \
155    be_BY \
156    bg_BG \
157    bn_BD \
158    bs_BA \
159    ca_ES \
160    cs_CZ \
161    da_DK \
162    de_DE \
163    el_GR \
164    en_AU en_CA en_GB en_IN en_XA \
165    es_ES es_US \
166    et_EE \
167    eu_ES \
168    fa_IR \
169    fi_FI \
170    fil_PH \
171    fr_CA fr_FR \
172    gl_ES \
173    gu_IN \
174    hi_IN \
175    hr_HR \
176    hu_HU \
177    hy_AM \
178    id_ID \
179    is_IS \
180    it_IT \
181    iw_IL \
182    ja_JP \
183    ka_GE \
184    kk_KZ \
185    km_KH km_MH \
186    kn_IN \
187    ko_KR \
188    ky_KG \
189    lo_LA \
190    lv_LV \
191    lt_LT \
192    mk_MK \
193    ml_IN \
194    mn_MN \
195    mr_IN \
196    ms_MY \
197    my_MM \
198    ne_NP \
199    nl_NL \
200    no_NO \
201    or_IN \
202    pa_IN \
203    pl_PL \
204    pt_BR pt_PT \
205    ro_RO \
206    ru_RU \
207    si_LK \
208    sk_SK \
209    sl_SI \
210    sq_AL \
211    sr_RS \
212    sv_SE \
213    sw_TZ \
214    ta_IN \
215    te_IN \
216    th_TH \
217    tr_TR \
218    uk_UA \
219    ur_PK \
220    uz_UZ \
221    vi_VN \
222    zh_CN zh_HK zh_TW \
223    zu_ZA
224
225PRODUCT_BOOT_JARS += \
226    android.car
227
228PRODUCT_HIDDENAPI_STUBS := \
229    android.car-stubs-dex
230
231PRODUCT_HIDDENAPI_STUBS_SYSTEM := \
232    android.car-system-stubs-dex
233
234PRODUCT_HIDDENAPI_STUBS_TEST := \
235    android.car-test-stubs-dex
236
237# Disable Prime Shader Cache in SurfaceFlinger to make it available faster
238PRODUCT_PROPERTY_OVERRIDES += \
239    service.sf.prime_shader_cache=0
240