Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +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 | |
| 17 | # copied from crosshatch |
| 18 | # setup dalvik vm configs |
| 19 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| 20 | |
| 21 | # Enable updating of APEXes |
| 22 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 23 | |
| 24 | # Device overlay |
| 25 | DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay |
| 26 | |
| 27 | # Build and run only ART |
| 28 | PRODUCT_RUNTIMES := runtime_libart_default |
| 29 | |
| 30 | PRODUCT_SHIPPING_API_LEVEL := 29 |
| 31 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
| 32 | |
| 33 | # Enable Scoped Storage related |
| 34 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 35 | |
| 36 | # vndk |
| 37 | PRODUCT_PACKAGES := vndk-sp |
| 38 | |
| 39 | # HACK: Avoid usb crash |
| 40 | PRODUCT_PRODUCT_PROPERTIES := \ |
| 41 | persist.adb.nonblocking_ffs=0 \ |
| 42 | ro.adb.nonblocking_ffs=0 |
| 43 | |
| 44 | # Display |
| 45 | PRODUCT_PACKAGES += \ |
| 46 | android.hardware.drm@1.0-impl \ |
| 47 | android.hardware.drm@1.0-service \ |
| 48 | libGLES_mesa |
| 49 | |
| 50 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 51 | ro.hardware.gralloc=minigbm_msm \ |
| 52 | ro.hardware.hwcomposer=drm \ |
| 53 | debug.sf.no_hw_vsync=1 \ |
Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 54 | ro.opengles.version=196609 |
| 55 | |
| 56 | # |
| 57 | # Hardware Composer HAL |
| 58 | # |
| 59 | PRODUCT_PACKAGES += \ |
| 60 | hwcomposer.drm \ |
| 61 | android.hardware.graphics.composer@2.3-impl \ |
| 62 | android.hardware.graphics.composer@2.3-service |
| 63 | |
| 64 | # |
| 65 | # Gralloc HAL |
| 66 | # |
| 67 | PRODUCT_PACKAGES += \ |
| 68 | gralloc.minigbm_msm \ |
| 69 | android.hardware.graphics.allocator@4.0-service.minigbm_msm \ |
| 70 | android.hardware.graphics.mapper@4.0-impl.minigbm_msm |
| 71 | |
| 72 | # Use Launcher3QuickStep |
| 73 | PRODUCT_PACKAGES += Launcher3QuickStep |
| 74 | |
| 75 | # Enable WiFi |
| 76 | PRODUCT_PACKAGES += \ |
| 77 | hostapd \ |
| 78 | libwpa_client \ |
| 79 | wpa_supplicant \ |
| 80 | wpa_supplicant.conf \ |
| 81 | wificond |
| 82 | |
| 83 | PRODUCT_PACKAGES += \ |
| 84 | pd-mapper \ |
| 85 | qrtr-ns \ |
| 86 | qrtr-cfg \ |
| 87 | qrtr-lookup \ |
| 88 | rmtfs \ |
| 89 | tqftpserv |
| 90 | |
| 91 | PRODUCT_COPY_FILES += \ |
| 92 | $(LOCAL_PATH)/vendor/init.vendor.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vendor.rc |
| 93 | |
| 94 | # Install scripts to set consistent Wifi MAC address |
| 95 | PRODUCT_COPY_FILES += \ |
Caleb Connolly | bb8df28 | 2022-04-07 03:02:42 +0100 | [diff] [blame] | 96 | $(LOCAL_PATH)/etc/set_wlan_mac.rc:/system/etc/init/set_wlan_mac.rc \ |
Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 97 | $(LOCAL_PATH)/bin/set_wlan_mac.sh:/system/bin/set_wlan_mac.sh |
| 98 | |
| 99 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 100 | wifi.interface=wlan0 \ |
| 101 | wifi.supplicant_scan_interval=15 |
| 102 | |
| 103 | PRODUCT_COPY_FILES += \ |
| 104 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 105 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 106 | $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
| 107 | $(LOCAL_PATH)/etc/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf |
| 108 | |
| 109 | # Enable BT |
| 110 | PRODUCT_PACKAGES += \ |
| 111 | android.hardware.bluetooth@1.1-service.btlinux |
| 112 | |
| 113 | PRODUCT_COPY_FILES += \ |
| 114 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 115 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| 116 | |
| 117 | # Audio |
| 118 | PRODUCT_PACKAGES += \ |
| 119 | android.hardware.audio.service \ |
| 120 | android.hardware.audio@7.0-impl \ |
| 121 | android.hardware.audio.effect@7.0-impl \ |
| 122 | android.hardware.soundtrigger@2.2-impl \ |
| 123 | android.hardware.bluetooth.audio@2.0-impl |
| 124 | |
Alexander Martinz | ddddd0c | 2022-08-17 09:29:21 +0200 | [diff] [blame] | 125 | # Build default audio HALs for bluetooth, remote submix and usb |
Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 126 | PRODUCT_PACKAGES += \ |
Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 127 | audio.bluetooth.default \ |
| 128 | audio.usb.default \ |
| 129 | audio.r_submix.default |
| 130 | |
| 131 | # Build tinyalsa cli tools for debugging |
| 132 | PRODUCT_PACKAGES += \ |
| 133 | tinyplay2 \ |
| 134 | tinycap2 \ |
| 135 | tinymix2 \ |
| 136 | tinypcminfo2 |
| 137 | |
| 138 | # audio policy configuration |
| 139 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 140 | PRODUCT_COPY_FILES += \ |
| 141 | $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 142 | $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ |
| 143 | $(LOCAL_PATH)/etc/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \ |
| 144 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 145 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
| 146 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
| 147 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 148 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 149 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 150 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 151 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml |
| 152 | |
| 153 | # Copy media codecs config file |
| 154 | PRODUCT_COPY_FILES += \ |
| 155 | $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
| 156 | frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 157 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 158 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml |
| 159 | |
| 160 | PRODUCT_COPY_FILES += \ |
| 161 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
| 162 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy \ |
| 163 | $(LOCAL_PATH)/seccomp_policy/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \ |
| 164 | |
| 165 | # Copy hardware config file(s) |
Caleb Connolly | c01a0da | 2022-04-28 18:28:46 +0100 | [diff] [blame] | 166 | PRODUCT_COPY_FILES += \ |
| 167 | $(LOCAL_PATH)/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml |
Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 168 | |
| 169 | # Memtrack |
| 170 | # PRODUCT_PACKAGES += \ |
| 171 | # memtrack.default \ |
| 172 | # android.hardware.memtrack@1.0-service \ |
| 173 | # android.hardware.memtrack@1.0-impl |
| 174 | |
| 175 | # Keymaster |
| 176 | PRODUCT_PACKAGES += \ |
| 177 | android.hardware.keymaster@3.0-impl \ |
| 178 | android.hardware.keymaster@3.0-service |
| 179 | |
| 180 | # Gatekeeper |
| 181 | PRODUCT_PACKAGES += \ |
| 182 | android.hardware.gatekeeper@1.0-service.software |
| 183 | |
| 184 | # Health |
| 185 | PRODUCT_PACKAGES += \ |
| 186 | android.hardware.health@2.1-service \ |
| 187 | android.hardware.health@2.1-impl-sdm845 |
| 188 | |
| 189 | |
| 190 | # mkbootimg host tool to build boot.img separately |
| 191 | PRODUCT_HOST_PACKAGES := \ |
| 192 | mkbootimg |
| 193 | |
| 194 | # Lights |
| 195 | PRODUCT_PACKAGES += \ |
| 196 | android.hardware.light@2.0-impl \ |
| 197 | android.hardware.light@2.0-service |
| 198 | |
| 199 | # Haptics |
| 200 | PRODUCT_PACKAGES += \ |
| 201 | android.hardware.vibrator@1.1-service.ff |
| 202 | |
| 203 | # Copy standard platform config files |
| 204 | PRODUCT_COPY_FILES += \ |
| 205 | $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
| 206 | frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \ |
| 207 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
| 208 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
| 209 | frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \ |
| 210 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
| 211 | frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \ |
| 212 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 213 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 214 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |
| 215 | |
| 216 | # Copy firmware files |
| 217 | $(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk) |
| 218 | |
| 219 | PRODUCT_SOONG_NAMESPACES += \ |
| 220 | device/generic/sdm845 \ |
| 221 | external/mesa3d |