Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2017 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 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 17 | ################################################ |
| 18 | # Begin GCE specific configurations |
| 19 | |
Greg Hartman | 3b6d882 | 2018-07-30 17:04:30 -0700 | [diff] [blame] | 20 | DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest.xml |
Alistair Strachan | f43c741 | 2019-04-03 23:11:44 -0700 | [diff] [blame] | 21 | DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/auto/manifest.xml |
Greg Hartman | 3b6d882 | 2018-07-30 17:04:30 -0700 | [diff] [blame] | 22 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 23 | $(call inherit-product, device/google/cuttlefish/shared/device.mk) |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 24 | |
| 25 | ################################################ |
| 26 | # Begin general Android Auto Embedded configurations |
| 27 | |
| 28 | PRODUCT_COPY_FILES += \ |
| 29 | packages/services/Car/car_product/init/init.bootstat.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.bootstat.rc \ |
| 30 | packages/services/Car/car_product/init/init.car.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw//init.car.rc |
| 31 | |
| 32 | # Auto core hardware permissions |
| 33 | PRODUCT_COPY_FILES += \ |
| 34 | frameworks/native/data/etc/car_core_hardware.xml:system/etc/permissions/car_core_hardware.xml \ |
| 35 | frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml \ |
| 36 | |
| 37 | # Enable landscape |
| 38 | PRODUCT_COPY_FILES += \ |
| 39 | frameworks/native/data/etc/android.hardware.screen.landscape.xml:system/etc/permissions/android.hardware.screen.landscape.xml |
| 40 | |
Yuncheol Heo | 1b86633 | 2019-11-13 14:07:19 -0800 | [diff] [blame] | 41 | # Used to embed a map in an activity view |
| 42 | PRODUCT_COPY_FILES += \ |
| 43 | frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:system/etc/permissions/android.software.activities_on_secondary_displays.xml |
| 44 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 45 | # Location permissions |
| 46 | PRODUCT_COPY_FILES += \ |
| 47 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml |
| 48 | |
Chao Yan | 62523e0 | 2018-07-25 14:55:35 -0700 | [diff] [blame] | 49 | # Broadcast Radio permissions |
| 50 | PRODUCT_COPY_FILES += \ |
| 51 | frameworks/native/data/etc/android.hardware.broadcastradio.xml:system/etc/permissions/android.hardware.broadcastradio.xml |
| 52 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 53 | PRODUCT_PROPERTY_OVERRIDES += \ |
Cody Schuffelen | d6d72eb | 2018-06-27 18:20:47 -0700 | [diff] [blame] | 54 | keyguard.no_require_sim=true \ |
Cody Schuffelen | d6d72eb | 2018-06-27 18:20:47 -0700 | [diff] [blame] | 55 | ro.cdma.home.operator.alpha=Android \ |
| 56 | ro.cdma.home.operator.numeric=302780 \ |
Alistair Strachan | 62047d8 | 2019-03-27 19:23:40 -0700 | [diff] [blame] | 57 | vendor.rild.libpath=libcuttlefish-ril.so \ |
Cody Schuffelen | d6d72eb | 2018-06-27 18:20:47 -0700 | [diff] [blame] | 58 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 59 | # vehicle HAL |
Enrico Granata | b060bd5 | 2020-01-30 13:34:14 -0800 | [diff] [blame] | 60 | ifeq ($(LOCAL_VHAL_PRODUCT_PACKAGE),) |
| 61 | LOCAL_VHAL_PRODUCT_PACKAGE := android.hardware.automotive.vehicle@2.0-service |
| 62 | endif |
| 63 | PRODUCT_PACKAGES += $(LOCAL_VHAL_PRODUCT_PACKAGE) |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 64 | |
Chao Yan | 3839887 | 2018-08-14 19:00:19 -0700 | [diff] [blame] | 65 | # Broadcast Radio |
| 66 | PRODUCT_PACKAGES += android.hardware.broadcastradio@2.0-service |
| 67 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 68 | # DRM HAL |
Robert Shih | 63e5a1b | 2019-11-25 22:25:41 -0800 | [diff] [blame] | 69 | PRODUCT_PACKAGES += android.hardware.drm@1.3-service.clearkey |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 70 | |
Tomasz Wasilczyk | 0a5d7de | 2019-08-14 14:28:38 -0700 | [diff] [blame] | 71 | # CAN bus HAL |
| 72 | PRODUCT_PACKAGES += android.hardware.automotive.can@1.0-service |
| 73 | PRODUCT_PACKAGES_DEBUG += canhalctrl \ |
| 74 | canhaldump \ |
| 75 | canhalsend |
| 76 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 77 | # DRM Properities |
| 78 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 79 | drm.service.enabled=true |
| 80 | |
Greg Hartman | c5b7875 | 2018-06-21 21:42:08 -0700 | [diff] [blame] | 81 | BOARD_IS_AUTOMOTIVE := true |
| 82 | |
| 83 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk) |
| 84 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| 85 | $(call inherit-product, packages/services/Car/car_product/build/car.mk) |
Greg Hartman | 2c5eee7 | 2018-06-25 13:31:15 -0700 | [diff] [blame] | 86 | |
| 87 | # Placed here due to b/110784510 |
| 88 | PRODUCT_BRAND := generic |
davidln | 9da1196 | 2019-03-05 13:54:17 -0800 | [diff] [blame] | 89 | |
| 90 | PRODUCT_ENFORCE_RRO_TARGETS := framework-res |
Alistair Delva | 7bff910 | 2019-07-22 14:02:05 -0700 | [diff] [blame] | 91 | |
Ying Zheng | 77e8d6f | 2019-08-13 15:09:40 -0700 | [diff] [blame] | 92 | TARGET_NO_TELEPHONY := true |