Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2014 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 | |
John Stultz | 01b21fc | 2020-02-06 23:14:28 +0000 | [diff] [blame] | 17 | # Enable updating of APEXes |
| 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 19 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 20 | # Device overlay |
| 21 | DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay |
| 22 | |
| 23 | # Build and run only ART |
| 24 | PRODUCT_RUNTIMES := runtime_libart_default |
| 25 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 26 | PRODUCT_SHIPPING_API_LEVEL := 29 |
| 27 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 28 | |
John Stultz | f8cd394 | 2020-10-06 05:03:30 +0000 | [diff] [blame] | 29 | # Enable Scoped Storage related |
| 30 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 31 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 32 | # vndk |
| 33 | PRODUCT_PACKAGES := vndk-sp |
| 34 | |
| 35 | # HACK: Avoid usb crash |
| 36 | PRODUCT_PRODUCT_PROPERTIES := \ |
| 37 | persist.adb.nonblocking_ffs=0 \ |
| 38 | ro.adb.nonblocking_ffs=0 |
| 39 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 40 | # Display |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 41 | PRODUCT_PACKAGES += \ |
| 42 | android.hardware.drm@1.0-impl \ |
| 43 | android.hardware.drm@1.0-service \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 44 | libGLES_mesa |
| 45 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 46 | PRODUCT_PROPERTY_OVERRIDES += \ |
John Stultz | f1cee11 | 2020-09-18 20:54:06 +0000 | [diff] [blame] | 47 | ro.hardware.gralloc=minigbm_msm \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 48 | ro.hardware.hwcomposer=drm \ |
| 49 | debug.sf.no_hw_vsync=1 \ |
Amit Pundir | 289cca3 | 2020-09-13 21:53:52 +0530 | [diff] [blame] | 50 | ro.sf.lcd_density=400 \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 51 | ro.opengles.version=196609 |
| 52 | |
John Stultz | f1cee11 | 2020-09-18 20:54:06 +0000 | [diff] [blame] | 53 | # |
| 54 | # Hardware Composer HAL |
| 55 | # |
| 56 | PRODUCT_PACKAGES += \ |
| 57 | hwcomposer.drm \ |
| 58 | android.hardware.graphics.composer@2.3-impl \ |
| 59 | android.hardware.graphics.composer@2.3-service |
| 60 | |
| 61 | # |
| 62 | # Gralloc HAL |
| 63 | # |
| 64 | PRODUCT_PACKAGES += \ |
| 65 | gralloc.minigbm_msm \ |
| 66 | android.hardware.graphics.allocator@4.0-service.minigbm_msm \ |
| 67 | android.hardware.graphics.mapper@4.0-impl.minigbm_msm |
| 68 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 69 | # Use Launcher3QuickStep |
| 70 | PRODUCT_PACKAGES += Launcher3QuickStep |
| 71 | |
| 72 | # Enable WiFi |
| 73 | PRODUCT_PACKAGES += \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 74 | hostapd \ |
| 75 | libwpa_client \ |
| 76 | wpa_supplicant \ |
| 77 | wpa_supplicant.conf \ |
Elliott Hughes | e3fd3df | 2020-11-06 14:25:45 -0800 | [diff] [blame] | 78 | wificond |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 79 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 80 | PRODUCT_PROPERTY_OVERRIDES += \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 81 | wifi.interface=wlan0 \ |
| 82 | wifi.supplicant_scan_interval=15 |
| 83 | |
| 84 | PRODUCT_COPY_FILES += \ |
| 85 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 86 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 87 | $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
| 88 | $(LOCAL_PATH)/etc/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 89 | |
| 90 | # Enable BT |
| 91 | PRODUCT_PACKAGES += \ |
Amit Pundir | 1addda6 | 2020-02-02 13:07:33 +0530 | [diff] [blame] | 92 | android.hardware.bluetooth@1.1-service.btlinux |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 93 | |
| 94 | PRODUCT_COPY_FILES += \ |
| 95 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 96 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| 97 | |
| 98 | # Audio |
| 99 | PRODUCT_PACKAGES += \ |
John Stultz | 796f4c3 | 2021-07-01 22:06:21 +0000 | [diff] [blame] | 100 | android.hardware.audio.service \ |
| 101 | android.hardware.audio@7.0-impl \ |
| 102 | android.hardware.audio.effect@7.0-impl \ |
| 103 | android.hardware.soundtrigger@2.2-impl \ |
Amit Pundir | a34e35c | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 104 | android.hardware.bluetooth.audio@2.0-impl |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 105 | |
| 106 | # Build default bluetooth a2dp and usb audio HALs |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | audio.a2dp.default \ |
Amit Pundir | a34e35c | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 109 | audio.bluetooth.default \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 110 | audio.usb.default \ |
| 111 | audio.r_submix.default |
| 112 | |
| 113 | # Build tinyalsa cli tools for debugging |
| 114 | PRODUCT_PACKAGES += \ |
| 115 | tinyplay \ |
| 116 | tinycap \ |
| 117 | tinymix \ |
| 118 | tinypcminfo |
| 119 | |
| 120 | # audio policy configuration |
| 121 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 122 | PRODUCT_COPY_FILES += \ |
Amit Pundir | fec74f6 | 2020-09-28 12:43:59 +0530 | [diff] [blame] | 123 | $(LOCAL_PATH)/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 124 | $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 125 | $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 126 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 127 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
Amit Pundir | 648e1d0 | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 128 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 129 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 130 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 131 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 132 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 133 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml |
| 134 | |
| 135 | # Copy media codecs config file |
| 136 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 137 | $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
Amit Pundir | 648e1d0 | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 138 | frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 139 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 140 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 141 | |
Amit Pundir | 95938b9 | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 142 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 544eb59 | 2021-01-15 02:21:28 +0530 | [diff] [blame] | 143 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
Amit Pundir | 95938b9 | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 144 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy |
| 145 | |
John Stultz | 2ad7722 | 2020-09-23 02:09:15 +0000 | [diff] [blame] | 146 | # Copy hardware config file(s) |
| 147 | PRODUCT_COPY_FILES += \ |
| 148 | device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml |
| 149 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 150 | # Memtrack |
| 151 | PRODUCT_PACKAGES += \ |
| 152 | memtrack.default \ |
| 153 | android.hardware.memtrack@1.0-service \ |
| 154 | android.hardware.memtrack@1.0-impl |
| 155 | |
| 156 | # Keymaster |
| 157 | PRODUCT_PACKAGES += \ |
| 158 | android.hardware.keymaster@3.0-impl \ |
| 159 | android.hardware.keymaster@3.0-service |
| 160 | |
Amit Pundir | 0e96595 | 2019-08-01 19:27:43 +0530 | [diff] [blame] | 161 | # Gatekeeper |
| 162 | PRODUCT_PACKAGES += \ |
| 163 | android.hardware.gatekeeper@1.0-service.software |
| 164 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 165 | # Health |
| 166 | PRODUCT_PACKAGES += \ |
Amit Pundir | db705ad | 2021-03-10 17:53:38 +0530 | [diff] [blame] | 167 | android.hardware.health@2.1-impl-cuttlefish \ |
| 168 | android.hardware.health@2.1-service |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 169 | |
| 170 | # mkbootimg host tool to build boot.img separately |
| 171 | PRODUCT_HOST_PACKAGES := \ |
| 172 | mkbootimg |
| 173 | |
Amit Pundir | 4c517ea | 2021-05-23 02:24:19 +0530 | [diff] [blame] | 174 | # Lights |
| 175 | PRODUCT_PACKAGES += \ |
| 176 | android.hardware.light@2.0-impl \ |
| 177 | android.hardware.light@2.0-service |
| 178 | |
Caleb Connolly | c445fab | 2021-08-11 14:42:57 +0100 | [diff] [blame] | 179 | # Haptics |
| 180 | PRODUCT_PACKAGES += \ |
| 181 | android.hardware.vibrator@1.1-service.sdm845 |
| 182 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 183 | # Copy standard platform config files |
| 184 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 185 | $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 186 | frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \ |
| 187 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
| 188 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
| 189 | frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \ |
| 190 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
Amit Pundir | 060c8d3 | 2020-04-10 22:47:13 +0530 | [diff] [blame] | 191 | frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 192 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 193 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 194 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |
| 195 | |
| 196 | # Copy firmware files |
| 197 | $(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk) |
Dan Willemsen | 0e076d3 | 2020-01-27 18:59:03 -0800 | [diff] [blame] | 198 | |
| 199 | PRODUCT_SOONG_NAMESPACES += external/mesa3d |