Add car common product config

Accumulate common car configuration files
into one location. All car products will base
their configurations on these files.

bug: 27486470
Change-Id: Id0daabc83e0805b50de6d1a48dbcf1396bf2e4b0
diff --git a/car_product/build/car.mk b/car_product/build/car.mk
new file mode 100644
index 0000000..3a7cfb1
--- /dev/null
+++ b/car_product/build/car.mk
@@ -0,0 +1,104 @@
+#
+# Copyright (C) 2016 The Android Open-Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Common make file for all car builds
+
+PRODUCT_PACKAGES += \
+    Bluetooth \
+    BluetoothMidiService \
+    bt-map-service \
+    OneTimeInitializer \
+    Provision \
+    SystemUI \
+    SystemUpdater
+
+PRODUCT_PACKAGES += \
+    clatd \
+    clatd.conf \
+    pppd \
+    screenrecord
+
+# This is for testing
+PRODUCT_PACKAGES +=
+    EmbeddedKitchenSinkApp
+
+PRODUCT_COPY_FILES := \
+    frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf \
+    packages/services/Car/car_product/preloaded-classes-car:system/etc/preloaded-classes \
+
+PRODUCT_PROPERTY_OVERRIDES += \
+    ro.carrier=unknown
+
+# Overlay for Google network and fused location providers
+$(call inherit-product, device/sample/products/location_overlay.mk)
+$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
+$(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk)
+$(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk)
+$(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk)
+$(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk)
+$(call inherit-product-if-exists, external/noto-fonts/fonts.mk)
+$(call inherit-product-if-exists, external/naver-fonts/fonts.mk)
+$(call inherit-product-if-exists, external/roboto-fonts/fonts.mk)
+$(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk)
+$(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
+$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
+$(call inherit-product, packages/services/Car/car_product/build/car_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic
+PRODUCT_DEVICE := generic
+PRODUCT_NAME := generic_car_no_telephony
+
+PRODUCT_PROPERTY_OVERRIDES := \
+    ro.config.ringtone=Girtab.ogg \
+    ro.config.notification_sound=Tethys.ogg \
+    ro.config.alarm_alert=Oxygen.ogg \
+    $(PRODUCT_PROPERTY_OVERRIDES) \
+
+# SetupWizard requires internet access before continuing
+# (hot sim or wifi not blocked by captive portal)
+PRODUCT_PROPERTY_OVERRIDES += \
+    ro.setupwizard.require_network=any
+
+
+PRODUCT_PROPERTY_OVERRIDES += \
+    keyguard.no_require_sim=true
+
+# Automotive specific packages
+PRODUCT_PACKAGES += \
+    vehicle_network_service \
+    CarService \
+    CarUiProvider \
+    android.car \
+    libvehiclenetwork-native \
+    vns_policy.xml
+
+# Boot animation
+PRODUCT_COPY_FILES += \
+    packages/services/Car/car_product/bootanimations/square_280/bootanimation.zip:system/media/bootanimation.zip
+
+PRODUCT_PROPERTY_OVERRIDES += \
+    fmas.spkr_6ch=35,20,110 \
+    fmas.spkr_2ch=35,25 \
+    fmas.spkr_angles=10 \
+    fmas.spkr_sgain=0 \
+    media.aac_51_output_enabled=true
+
+PRODUCT_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
+
+PRODUCT_BOOT_JARS += \
+    android.car
+