Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 1 | # Copyright 2021-2022 Fairphone B.V. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | |
| 16 | FP_PATH := device/fairphone/FP3 |
| 17 | |
| 18 | # Call the vendor setup |
| 19 | $(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk) |
| 20 | |
| 21 | $(call inherit-product, build/make/target/product/product_launched_with_p.mk) |
| 22 | |
| 23 | $(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk) |
| 24 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 25 | # Inherit generic AOSP content for telephony based 64-bit devices |
| 26 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 27 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 28 | |
| 29 | PRODUCT_NAME := FP3 |
| 30 | PRODUCT_DEVICE := FP3 |
| 31 | PRODUCT_MODEL := FP3 |
| 32 | PRODUCT_MANUFACTURER := Fairphone |
| 33 | PRODUCT_BRAND := Fairphone |
| 34 | |
| 35 | |
| 36 | # Allow using custom and expressive names for our Android flavors while in fact |
| 37 | # targeting the same model with all of them. |
Bharath | 6a7439e | 2022-02-21 17:35:49 +0530 | [diff] [blame] | 38 | PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3 TARGET_PRODUCT=FP3 |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 39 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 40 | |
Bharath | dccdc59 | 2022-03-31 12:10:41 +0530 | [diff] [blame] | 41 | TARGET_SYSTEM_PROP := $(FP_PATH)/system.prop |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 42 | |
Borjan Tchakaloff | 17a5b5f | 2018-05-11 11:35:06 +0200 | [diff] [blame] | 43 | # Define the build number based on the product flavour and on the build manifest |
| 44 | # revision |
| 45 | ifneq (,$(strip $(PRODUCT_FLAVOR))) |
| 46 | _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD)) |
| 47 | BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV) |
| 48 | HAS_BUILD_NUMBER := true |
| 49 | else |
| 50 | $(error PRODUCT_FLAVOR must be defined) |
| 51 | endif |
| 52 | $(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER))) |
| 53 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 54 | |
| 55 | # We don't have the calibration data as this sort of |
| 56 | # data can only be generated at the factory so don't generate persist.img |
| 57 | FP3_SKIP_PERSIST_IMG := true |
| 58 | |
Bharath | 80ba187 | 2021-08-21 11:53:57 +0530 | [diff] [blame] | 59 | |
| 60 | # Operator specific overlays |
| 61 | DEVICE_PACKAGE_OVERLAYS += \ |
| 62 | $(LOCAL_PATH)/overlay-operators |
| 63 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 64 | # Overlays |
| 65 | DEVICE_PACKAGE_OVERLAYS += \ |
| 66 | $(LOCAL_PATH)/overlay |
| 67 | |
| 68 | |
| 69 | # A/B related defines |
| 70 | AB_OTA_UPDATER := true |
| 71 | AB_OTA_PARTITIONS += \ |
| 72 | boot \ |
| 73 | dtbo \ |
| 74 | system \ |
| 75 | vbmeta \ |
| 76 | vendor |
| 77 | |
| 78 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 79 | PRODUCT_PACKAGES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 80 | update_engine_sideload |
| 81 | |
| 82 | |
Bharath | 2307d3b | 2022-01-06 22:23:25 +0530 | [diff] [blame] | 83 | # APN |
| 84 | PRODUCT_COPY_FILES += \ |
| 85 | $(LOCAL_PATH)/apns-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml |
| 86 | |
| 87 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 88 | # AVB |
| 89 | BOARD_AVB_ENABLE := true |
| 90 | |
| 91 | |
| 92 | # Additional native libraries |
| 93 | PRODUCT_COPY_FILES += \ |
| 94 | $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt |
| 95 | |
| 96 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 97 | # OEM Unlock reporting |
| 98 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 99 | ro.oem_unlock_supported=1 |
| 100 | |
| 101 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 102 | # Atrace HAL |
| 103 | PRODUCT_PACKAGES += \ |
| 104 | android.hardware.atrace@1.0-service |
| 105 | |
| 106 | |
| 107 | # Audio |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 108 | PRODUCT_PACKAGES += \ |
| 109 | android.hardware.audio@6.0 \ |
| 110 | android.hardware.audio.common@6.0 \ |
| 111 | android.hardware.audio.common@6.0-util \ |
Bharath | 70cf2ae | 2022-02-14 12:13:50 +0530 | [diff] [blame] | 112 | android.hardware.audio@6.0-impl \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 113 | android.hardware.audio.effect@6.0 \ |
Bharath | 70cf2ae | 2022-02-14 12:13:50 +0530 | [diff] [blame] | 114 | android.hardware.audio.effect@6.0-impl \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 115 | android.hardware.audio.service \ |
| 116 | android.hardware.soundtrigger@2.1-impl \ |
| 117 | audio.a2dp.default \ |
| 118 | audio.primary.msm8953 \ |
| 119 | audio.r_submix.default \ |
| 120 | audio.usb.default \ |
| 121 | libaacwrapper \ |
| 122 | libaudio-resampler \ |
| 123 | libautohal \ |
| 124 | libqcompostprocbundle \ |
| 125 | libqcomvisualizer \ |
| 126 | libqcomvoiceprocessing \ |
| 127 | libvolumelistener \ |
| 128 | tinymix |
| 129 | |
| 130 | |
| 131 | AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal |
| 132 | |
| 133 | # Audio files |
| 134 | PRODUCT_COPY_FILES += \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 135 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ |
| 136 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 137 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ |
| 138 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \ |
| 139 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \ |
| 140 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \ |
| 141 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \ |
| 142 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \ |
| 143 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ |
| 144 | $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ |
| 145 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
| 146 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \ |
| 147 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \ |
| 148 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \ |
| 149 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \ |
| 150 | $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \ |
| 151 | $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ |
| 152 | $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \ |
| 153 | $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
| 154 | $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \ |
| 155 | $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml |
| 156 | |
| 157 | |
| 158 | # Audio config files |
| 159 | PRODUCT_COPY_FILES += \ |
| 160 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
| 161 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 162 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 163 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 164 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 165 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml |
| 166 | |
| 167 | # Custom config files |
| 168 | PRODUCT_COPY_FILES += \ |
| 169 | $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml |
| 170 | |
| 171 | |
| 172 | # Audio firmware files |
| 173 | PRODUCT_COPY_FILES += \ |
| 174 | $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \ |
| 175 | $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \ |
| 176 | $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg |
| 177 | |
| 178 | |
| 179 | # Audio Specific device overlays |
| 180 | DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay |
| 181 | |
| 182 | |
| 183 | # Audio Specific properties |
| 184 | # Properties |
| 185 | -include $(LOCAL_PATH)/audio_properties.mk |
| 186 | |
| 187 | |
| 188 | # Audio Kernel modules |
| 189 | AUDIO_DLKM := audio_apr.ko |
| 190 | AUDIO_DLKM += audio_q6_notifier.ko |
| 191 | AUDIO_DLKM += audio_adsp_loader.ko |
| 192 | AUDIO_DLKM += audio_q6.ko |
| 193 | AUDIO_DLKM += audio_usf.ko |
| 194 | AUDIO_DLKM += audio_pinctrl_wcd.ko |
| 195 | AUDIO_DLKM += audio_swr.ko |
| 196 | AUDIO_DLKM += audio_wcd_core.ko |
| 197 | AUDIO_DLKM += audio_swr_ctrl.ko |
| 198 | AUDIO_DLKM += audio_wsa881x.ko |
| 199 | AUDIO_DLKM += audio_wsa881x_analog.ko |
| 200 | AUDIO_DLKM += audio_platform.ko |
| 201 | AUDIO_DLKM += audio_cpe_lsm.ko |
| 202 | AUDIO_DLKM += audio_hdmi.ko |
| 203 | AUDIO_DLKM += audio_stub.ko |
| 204 | AUDIO_DLKM += audio_wcd9xxx.ko |
| 205 | AUDIO_DLKM += audio_mbhc.ko |
| 206 | AUDIO_DLKM += audio_wcd9335.ko |
| 207 | AUDIO_DLKM += audio_wcd_cpe.ko |
| 208 | AUDIO_DLKM += audio_digital_cdc.ko |
| 209 | AUDIO_DLKM += audio_analog_cdc.ko |
| 210 | AUDIO_DLKM += audio_native.ko |
| 211 | AUDIO_DLKM += audio_machine_sdm450.ko |
| 212 | AUDIO_DLKM += audio_machine_ext_sdm450.ko |
| 213 | PRODUCT_PACKAGES += $(AUDIO_DLKM) |
| 214 | |
| 215 | |
Bharath | 9cdcce2 | 2021-12-08 15:43:43 +0530 | [diff] [blame] | 216 | # Automation/ATS |
| 217 | PRODUCT_PACKAGES += \ |
| 218 | automation_setup \ |
| 219 | automation_adb_setup |
| 220 | |
| 221 | |
Bharath | fe661fb | 2021-08-16 18:56:32 +0530 | [diff] [blame] | 222 | # ANT |
| 223 | PRODUCT_PACKAGES += \ |
| 224 | AntHalService \ |
| 225 | antradio_app \ |
| 226 | com.dsi.ant@1.0 \ |
Bharath | 70cf2ae | 2022-02-14 12:13:50 +0530 | [diff] [blame] | 227 | com.dsi.ant@1.0.vendor \ |
Bharath | fe661fb | 2021-08-16 18:56:32 +0530 | [diff] [blame] | 228 | libantradio |
| 229 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 230 | # Bluetooth |
Bharath | fe661fb | 2021-08-16 18:56:32 +0530 | [diff] [blame] | 231 | PRODUCT_PACKAGES += \ |
Bharath | fe661fb | 2021-08-16 18:56:32 +0530 | [diff] [blame] | 232 | audio.bluetooth.default \ |
| 233 | android.hardware.bluetooth.audio@2.0-impl \ |
| 234 | android.hardware.bluetooth@1.0 \ |
| 235 | vendor.qti.hardware.bluetooth_audio@2.0 \ |
| 236 | vendor.qti.hardware.bluetooth_audio@2.1.vendor \ |
| 237 | vendor.qti.hardware.btconfigstore@1.0.vendor |
| 238 | |
| 239 | # Bluetooth Permissions |
| 240 | PRODUCT_COPY_FILES += \ |
| 241 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 242 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 243 | |
| 244 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 245 | # Board platforms lists to be used for |
| 246 | # TARGET_BOARD_PLATFORM specific featurization |
| 247 | QCOM_BOARD_PLATFORMS += msm8953 |
| 248 | |
| 249 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 250 | # Boot |
| 251 | PRODUCT_PACKAGES += \ |
| 252 | android.hardware.boot@1.0-impl \ |
| 253 | android.hardware.boot@1.0-impl.recovery \ |
| 254 | android.hardware.boot@1.0-service \ |
| 255 | bootctrl.msm8953 \ |
Bharath | e341d1d | 2022-04-06 09:49:27 +0530 | [diff] [blame] | 256 | bootctrl.msm8953.recovery \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 257 | update_engine \ |
| 258 | update_engine_client \ |
| 259 | update_engine_sideload \ |
| 260 | update_verifier |
| 261 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 262 | # MSM updater library |
| 263 | PRODUCT_PACKAGES += librecovery_updater_msm |
| 264 | |
| 265 | |
| 266 | # Skip boot jars check |
| 267 | SKIP_BOOT_JARS_CHECK := true |
| 268 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 269 | |
| 270 | # Boot animation |
| 271 | TARGET_SCREEN_HEIGHT := 2160 |
| 272 | TARGET_SCREEN_WIDTH := 1080 |
| 273 | |
| 274 | |
| 275 | PRODUCT_COPY_FILES += \ |
| 276 | vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip |
| 277 | |
| 278 | |
| 279 | # Camera |
Bharath | cbfb0a9 | 2021-08-19 21:13:50 +0530 | [diff] [blame] | 280 | PRODUCT_PACKAGES += \ |
| 281 | android.frameworks.displayservice@1.0.vendor \ |
| 282 | android.hidl.base@1.0.vendor \ |
| 283 | android.hardware.camera.device@3.5 \ |
| 284 | android.hardware.camera.provider@2.4 \ |
| 285 | android.hardware.camera.provider@2.4-external \ |
| 286 | android.hardware.camera.provider@2.4-impl \ |
| 287 | android.hardware.camera.provider@2.4-legacy \ |
| 288 | android.hardware.camera.provider@2.4-service \ |
| 289 | android.hardware.camera.provider@2.6 \ |
| 290 | camera.device@1.0-impl \ |
| 291 | camera.device@3.5-impl \ |
| 292 | camera.device@3.6-external-impl \ |
| 293 | camera.msm8953 \ |
| 294 | cameraconfig.txt \ |
| 295 | libcamera2ndk_vendor \ |
| 296 | libhal_dbg \ |
| 297 | libjni_burstpmk \ |
| 298 | libjni_imageutil \ |
| 299 | libjni_snapcammosaic \ |
| 300 | libjni_snapcamtinyplanet \ |
| 301 | libmm-qcamera \ |
| 302 | libmmcamera_interface \ |
| 303 | libmmjpeg_interface \ |
| 304 | libmmlib2d_interface \ |
| 305 | libqomx_core \ |
| 306 | libxml2 \ |
| 307 | mm-qcamera-app \ |
| 308 | vendor.qti.hardware.camera.device@1.0 \ |
| 309 | vendor.qti.hardware.camera.device@1.0.vendor |
| 310 | |
| 311 | # Fairphone Camera |
| 312 | PRODUCT_PACKAGES += \ |
| 313 | FairphoneCamera |
| 314 | |
| 315 | # Arcsoft camera libraries |
| 316 | PRODUCT_PACKAGES += \ |
| 317 | libarcimageprocess \ |
| 318 | libarcsoft_aiscenedetection \ |
| 319 | libarcsoft_hdr_detection \ |
| 320 | libarcsoft_high_dynamic_range \ |
| 321 | libarcsoft_low_light_hdr \ |
| 322 | libarcsoft_low_light_shot \ |
| 323 | libarcsoft_object_tracking \ |
| 324 | libarcsoft_panorama_burstcapture \ |
| 325 | libarcsoft_singlecam_bokeh \ |
| 326 | libarcsoft_videoautozoom \ |
| 327 | libarcsoft_videostabs \ |
| 328 | libmpbase \ |
| 329 | libmpbase.vendor |
| 330 | |
| 331 | # Feature flags for camera |
| 332 | PRODUCT_COPY_FILES += \ |
| 333 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 334 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| 335 | frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ |
| 336 | frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 337 | |
| 338 | |
| 339 | # Component overrides |
| 340 | # TODO: Check if this is required. |
| 341 | #PRODUCT_COPY_FILES += \ |
| 342 | $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml |
| 343 | |
| 344 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 345 | # Charger |
| 346 | PRODUCT_PACKAGES += \ |
| 347 | charger \ |
| 348 | charger_res_images |
| 349 | |
| 350 | |
| 351 | # Chromium |
| 352 | PRODUCT_PACKAGES += \ |
| 353 | libwebviewchromium_loader \ |
| 354 | libwebviewchromium_plat_support |
| 355 | |
| 356 | |
| 357 | # Curl |
| 358 | PRODUCT_PACKAGES += \ |
| 359 | curl \ |
| 360 | libcurl |
| 361 | |
| 362 | |
| 363 | # Data/rmnetctrl |
| 364 | PRODUCT_PACKAGES += \ |
| 365 | librmnetctl |
| 366 | |
| 367 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 368 | # Display |
| 369 | PRODUCT_PACKAGES += \ |
| 370 | android.hardware.graphics.allocator@2.0-impl \ |
| 371 | android.hardware.graphics.allocator@2.0-service \ |
| 372 | android.hardware.graphics.composer@2.1-service \ |
| 373 | android.hardware.graphics.mapper@2.0-impl-2.1 \ |
| 374 | android.hardware.memtrack@1.0-impl \ |
| 375 | android.hardware.memtrack@1.0-service \ |
| 376 | gralloc.default \ |
| 377 | gralloc.msm8953 \ |
| 378 | hwcomposer.msm8953 \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 379 | libcomposerextn.qti \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 380 | libdisplayconfig \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 381 | libdisplayconfig.qti \ |
| 382 | libdrm \ |
| 383 | libgralloc.qti \ |
| 384 | liblayerext.qti \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 385 | libqdMetaData \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 386 | libqdMetaData.system \ |
| 387 | libqdutils \ |
| 388 | libsmomo.qti \ |
| 389 | libsmomoconfig.qti \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 390 | libvulkan \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 391 | memtrack.msm8953 \ |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 392 | vendor.qti.hardware.display.composer@3.0 |
| 393 | |
| 394 | |
| 395 | # Vendor Display |
| 396 | # Disable skip validate |
| 397 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 398 | vendor.display.disable_skip_validate=1 |
| 399 | |
| 400 | |
| 401 | # Display Properties |
| 402 | PRODUCT_AAPT_CONFIG := normal |
| 403 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 404 | |
| 405 | |
| 406 | # DRM |
| 407 | PRODUCT_PACKAGES += \ |
| 408 | android.hardware.drm@1.3-service.clearkey |
| 409 | |
| 410 | |
Pradeep Chenthati | b4c3c10 | 2021-10-19 20:07:52 +0530 | [diff] [blame] | 411 | # Elabel |
| 412 | PRODUCT_PACKAGES += \ |
| 413 | eLabel.html.gz \ |
| 414 | eLabel1.png \ |
| 415 | eLabel2.png \ |
| 416 | FAIRPHONE.html.gz \ |
| 417 | FAIRPHONE.png |
| 418 | |
| 419 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 420 | # Enable vndk-sp Libraries |
| 421 | PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true |
| 422 | TARGET_USES_MKE2FS := true |
| 423 | |
| 424 | PRODUCT_PACKAGES += \ |
| 425 | vndk_package |
| 426 | |
| 427 | |
| 428 | # Encryption |
| 429 | PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true |
| 430 | PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts |
| 431 | |
| 432 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 433 | # E2fsck |
| 434 | PRODUCT_PACKAGES += \ |
| 435 | e2fsck |
| 436 | |
Bharath | 44ee36f | 2022-05-02 15:37:19 +0530 | [diff] [blame] | 437 | # ExFAT binaries |
| 438 | PRODUCT_COPY_FILES += \ |
| 439 | $(FP_PATH)/tuxera/exfatck:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatck \ |
| 440 | $(FP_PATH)/tuxera/exfatdebug:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatdebug \ |
| 441 | $(FP_PATH)/tuxera/exfatlabel:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatlabel \ |
| 442 | $(FP_PATH)/tuxera/exfatvsn:$(TARGET_COPY_OUT_SYSTEM)/bin/exfatvsn \ |
| 443 | $(FP_PATH)/tuxera/mkexfat:$(TARGET_COPY_OUT_SYSTEM)/bin/mkexfat |
| 444 | |
| 445 | |
Bharath | e341d1d | 2022-04-06 09:49:27 +0530 | [diff] [blame] | 446 | # Fastbootd |
| 447 | PRODUCT_PACKAGES += fastbootd |
| 448 | |
| 449 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 450 | # FBE support |
| 451 | PRODUCT_COPY_FILES += \ |
| 452 | $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh |
| 453 | |
| 454 | |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 455 | # Feature flags and permissions |
| 456 | PRODUCT_COPY_FILES += \ |
| 457 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ |
| 458 | frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \ |
| 459 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ |
| 460 | frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \ |
| 461 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 462 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 463 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 464 | frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \ |
| 465 | frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \ |
Bharath | 0c86f4b | 2022-02-14 16:38:53 +0530 | [diff] [blame] | 466 | frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \ |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 467 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 468 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 469 | frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \ |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 470 | frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \ |
| 471 | frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \ |
| 472 | frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \ |
| 473 | frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \ |
| 474 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml |
| 475 | |
Bharath | 1dcb651 | 2021-08-20 00:41:08 +0530 | [diff] [blame] | 476 | # Fingerprint |
| 477 | PRODUCT_PACKAGES += \ |
| 478 | android.hardware.biometrics.fingerprint@2.1 \ |
| 479 | android.hardware.biometrics.fingerprint@2.1-service \ |
| 480 | elan_device.rc \ |
| 481 | fingerprint.default |
| 482 | |
| 483 | # Fingerprint files |
| 484 | include $(FP_PATH)/elan_lib/fingerprint/elan_lib.mk |
| 485 | |
| 486 | # Fingerprint feature flag |
| 487 | PRODUCT_COPY_FILES += \ |
| 488 | frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml |
| 489 | |
| 490 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 491 | # Framework Detect |
| 492 | PRODUCT_PACKAGES += \ |
| 493 | libqti_vndfwk_detect \ |
| 494 | libqti_vndfwk_detect.vendor \ |
| 495 | libvndfwk_detect_jni.qti \ |
| 496 | libvndfwk_detect_jni.qti.vendor \ |
| 497 | vndservicemanager |
| 498 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 499 | # FRP |
| 500 | PRODUCT_PROPERTY_OVERRIDES += ro.frp.pst=/dev/block/bootdevice/by-name/config |
| 501 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 502 | |
| 503 | # HIDL |
| 504 | PRODUCT_PACKAGES += \ |
| 505 | android.hidl.base@1.0 \ |
| 506 | libhidltransport \ |
| 507 | libhidltransport.vendor \ |
| 508 | libhwbinder \ |
| 509 | libhwbinder.vendor |
| 510 | |
| 511 | |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 512 | # GPS |
| 513 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default |
Luca Weiss | a8a6026 | 2022-02-28 15:00:31 +0100 | [diff] [blame] | 514 | LOC_HIDL_VERSION := 4.0 |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 515 | |
| 516 | PRODUCT_PACKAGES += \ |
Bharath | 70cf2ae | 2022-02-14 12:13:50 +0530 | [diff] [blame] | 517 | android.hardware.gnss@2.1-impl-qti \ |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 518 | android.hardware.gnss@2.1-service-qti \ |
| 519 | libbatching \ |
| 520 | libgeofencing \ |
| 521 | libgnss \ |
| 522 | libjson \ |
| 523 | libwifi-hal-ctrl \ |
| 524 | libgps.utils |
| 525 | |
| 526 | PRODUCT_PACKAGES += \ |
| 527 | flp.conf \ |
| 528 | gps.conf |
| 529 | |
| 530 | # gps/location secuity configuration file |
| 531 | PRODUCT_COPY_FILES += \ |
| 532 | $(FP_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config |
| 533 | |
| 534 | # Permissions |
| 535 | PRODUCT_COPY_FILES += \ |
| 536 | frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml |
| 537 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 538 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 539 | persist.backup.ntpServer=0.pool.ntp.org |
| 540 | |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 541 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 542 | # Health |
| 543 | PRODUCT_PACKAGES += \ |
| 544 | android.hardware.health@2.1-impl \ |
| 545 | android.hardware.health@2.1-impl.recovery \ |
| 546 | android.hardware.health@2.1-service |
| 547 | |
| 548 | # IMS |
| 549 | PRODUCT_PACKAGES += \ |
| 550 | ims-ext-common \ |
| 551 | ims_ext_common.xml \ |
| 552 | ConfURIDialer |
| 553 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 554 | |
| 555 | # Init |
| 556 | PRODUCT_PACKAGES += \ |
| 557 | fstab.qcom \ |
| 558 | init.class_main.sh \ |
| 559 | init.crda.sh \ |
| 560 | init.mdm.sh \ |
| 561 | init.qcom.class_core.sh \ |
| 562 | init.qcom.coex.sh \ |
| 563 | init.qcom.early_boot.sh \ |
| 564 | init.qcom.efs.sync.sh \ |
| 565 | init.qcom.factory.rc \ |
| 566 | init.qcom.post_boot.sh \ |
| 567 | init.qcom.rc \ |
| 568 | init.qcom.sdio.sh \ |
| 569 | init.qcom.sensors.sh \ |
| 570 | init.qcom.sh \ |
| 571 | init.qcom.usb.rc \ |
| 572 | init.qcom.usb.sh \ |
| 573 | init.recovery.qcom.rc \ |
| 574 | init.target.rc \ |
| 575 | init.veth_ipa_config.sh \ |
| 576 | qca6234-service.sh \ |
| 577 | ueventd.qcom.rc \ |
| 578 | vold.fstab |
| 579 | |
| 580 | #intialise PRODUCT_PACKAGES_DEBUG list for debug modules |
| 581 | PRODUCT_PACKAGES_DEBUG := init.qcom.testscripts.sh |
| 582 | |
| 583 | #Add init.qcom.test.rc to PRODUCT_PACKAGES_DEBUG list |
| 584 | PRODUCT_PACKAGES_DEBUG += init.qcom.test.rc |
| 585 | PRODUCT_PACKAGES_DEBUG += init.qcom.debug.sh |
| 586 | |
| 587 | ifneq ($(strip $(TARGET_BUILD_VARIANT)),user) |
| 588 | PRODUCT_COPY_FILES += \ |
| 589 | device/qcom/common/rootdir/etc/init.qcom.testscripts.sh:$(TARGET_COPY_OUT_PRODUCT)/etc/init.qcom.testscripts.sh |
| 590 | endif |
| 591 | |
| 592 | PRODUCT_PACKAGES_DEBUG += \ |
| 593 | init.qcom.debug.sh \ |
| 594 | init.qcom.debug-sdm660.sh \ |
| 595 | init.qcom.debug-sdm710.sh \ |
| 596 | init.qti.debug-msmnile-apps.sh \ |
| 597 | init.qti.debug-msmnile-modem.sh \ |
| 598 | init.qti.debug-msmnile-slpi.sh \ |
| 599 | init.qti.debug-talos.sh \ |
| 600 | init.qti.debug-msmnile.sh \ |
| 601 | init.qti.debug-kona.sh \ |
| 602 | init.qti.debug-lito.sh \ |
| 603 | init.qti.debug-trinket.sh \ |
| 604 | init.qti.debug-atoll.sh \ |
| 605 | init.qti.debug-lagoon.sh \ |
| 606 | init.qti.debug-bengal.sh |
| 607 | |
| 608 | |
| 609 | # IP and iptables |
| 610 | PRODUCT_PACKAGES += \ |
| 611 | ip \ |
| 612 | libiprouteutil \ |
| 613 | iptables \ |
| 614 | ip-up-vpn \ |
| 615 | libext |
| 616 | |
| 617 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 618 | # IPACM |
| 619 | PRODUCT_PACKAGES += \ |
| 620 | ipacm \ |
| 621 | IPACM_cfg.xml \ |
| 622 | libipanat \ |
| 623 | liboffloadhal \ |
| 624 | libqsap_sdk |
| 625 | |
| 626 | # IRQ |
| 627 | PRODUCT_COPY_FILES += \ |
| 628 | $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \ |
| 629 | $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf |
| 630 | |
| 631 | |
| 632 | # Kernel modules |
| 633 | # Kernel modules install path |
| 634 | KERNEL_MODULES_INSTALL := dlkm |
| 635 | KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 636 | KERNEL_TO_BUILD_ROOT_OFFSET := ../../ |
| 637 | |
| 638 | |
| 639 | # Key layouts |
| 640 | PRODUCT_PACKAGES += \ |
| 641 | ft5x06_ts.kl \ |
| 642 | gpio-keys.kl \ |
| 643 | synaptics_dsx.kl \ |
| 644 | synaptics_dsxv26.kl \ |
| 645 | synaptics_rmi4_i2c.kl |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 646 | |
| 647 | |
| 648 | # LED packages |
| 649 | PRODUCT_PACKAGES += \ |
| 650 | android.hardware.light@2.0-impl \ |
| 651 | android.hardware.light@2.0-service \ |
| 652 | lights.msm8953 |
| 653 | |
| 654 | |
| 655 | # Media / StagefrightCodec 2.0 |
| 656 | PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 |
| 657 | |
Bharath | e3615be | 2021-08-18 22:25:42 +0530 | [diff] [blame] | 658 | # Enable features in video HAL that can compile only on this platform |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 659 | MSM_VIDC_TARGET_LIST := msm8953 |
Bharath | e3615be | 2021-08-18 22:25:42 +0530 | [diff] [blame] | 660 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 661 | |
| 662 | |
| 663 | # media_profiles and media_codecs xmls for msm8953 |
| 664 | PRODUCT_COPY_FILES += \ |
| 665 | $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \ |
| 666 | $(FP_PATH)/media/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ |
| 667 | $(FP_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
| 668 | $(FP_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \ |
| 669 | $(FP_PATH)/media/media_codecs_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_8953.xml \ |
| 670 | $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ |
| 671 | $(FP_PATH)/media/media_codecs_performance_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_8953.xml \ |
| 672 | $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_8953_v1.xml \ |
| 673 | $(FP_PATH)/media/media_profiles_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_8953_v1.xml \ |
| 674 | $(FP_PATH)/media/media_codecs_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \ |
| 675 | $(FP_PATH)/media/media_codecs_performance_8953_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \ |
| 676 | $(FP_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 677 | device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ |
| 678 | device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml |
| 679 | |
| 680 | PRODUCT_COPY_FILES += \ |
| 681 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ |
| 682 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ |
| 683 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 684 | frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \ |
| 685 | frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \ |
| 686 | frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \ |
| 687 | frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml |
Bharath | e3615be | 2021-08-18 22:25:42 +0530 | [diff] [blame] | 688 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 689 | |
| 690 | # NFC |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 691 | PRODUCT_PACKAGES += \ |
| 692 | NfcNci \ |
| 693 | Tag \ |
| 694 | com.android.nfc_extras \ |
| 695 | com.nxp.nfc.nq \ |
| 696 | com.nxp.nfc.nq.xml \ |
| 697 | libnqnfc-nci \ |
| 698 | libnqnfc_nci_jni \ |
| 699 | nfc_nci.nqx.default.hw \ |
| 700 | vendor.nxp.hardware.nfc@2.0-service |
| 701 | |
| 702 | # Permissions |
| 703 | PRODUCT_COPY_FILES += \ |
| 704 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 705 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ |
| 706 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 707 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 708 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 709 | frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ |
| 710 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 711 | vendor/nxp/opensource/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \ |
| 712 | vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci_SN100.conf |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 713 | |
| 714 | |
| 715 | # OMX |
| 716 | PRODUCT_PACKAGES += \ |
| 717 | libavservices_minijail.vendor \ |
| 718 | libc2dcolorconvert \ |
| 719 | libOmxAacEnc \ |
| 720 | libOmxAmrEnc \ |
| 721 | libOmxCore \ |
| 722 | libOmxEvrcEnc \ |
| 723 | libOmxQcelp13Enc \ |
| 724 | libOmxVdec \ |
| 725 | libOmxVenc \ |
| 726 | libqomx_core \ |
| 727 | libaacwrapper \ |
| 728 | libmm-omxcore \ |
| 729 | libstagefrighthw \ |
| 730 | libstagefright_softomx.vendor |
| 731 | |
| 732 | |
| 733 | # |
| 734 | # system prop for opengles version |
| 735 | # |
| 736 | # 196608 is decimal for 0x30000 to report major/minor versions as 3/0 |
| 737 | # 196609 is decimal for 0x30001 to report major/minor versions as 3/1 |
| 738 | # 196610 is decimal for 0x30002 to report major/minor versions as 3/2 |
| 739 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 740 | ro.opengles.version=196610 |
| 741 | |
| 742 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 743 | # AOSP Packages |
| 744 | PRODUCT_PACKAGES += \ |
| 745 | DeskClock \ |
| 746 | Calendar \ |
| 747 | CalendarProvider \ |
| 748 | Camera2 \ |
| 749 | CertInstaller \ |
| 750 | Gallery2 \ |
| 751 | LatinIME \ |
| 752 | Launcher3 \ |
| 753 | LiveWallpapersPicker \ |
| 754 | Music \ |
| 755 | netutils-wrapper-1.0 \ |
| 756 | Provision \ |
| 757 | Protips \ |
| 758 | QuickSearchBox \ |
| 759 | Settings \ |
| 760 | Stk \ |
| 761 | SystemUI \ |
| 762 | |
| 763 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 764 | # Perf |
| 765 | PRODUCT_COPY_FILES += \ |
| 766 | $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml |
| 767 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 768 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 769 | persist.vendor.qcomsysd.enabled=1 \ |
| 770 | ro.vendor.extension_library=libqti-perfd-client.so \ |
| 771 | sys.vendor.shutdown.waittime=500 |
| 772 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 773 | |
| 774 | # Power |
| 775 | PRODUCT_PACKAGES += \ |
| 776 | android.hardware.power@1.0-impl \ |
| 777 | android.hardware.power@1.0-service \ |
| 778 | power.qcom |
| 779 | |
| 780 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 781 | # privapp-permissions whitelisting |
| 782 | PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce |
| 783 | |
| 784 | |
| 785 | # Protobuf |
| 786 | PRODUCT_PACKAGES += \ |
| 787 | libprotobuf-cpp-full \ |
| 788 | libprotobuf-cpp-full-vendorcompat \ |
| 789 | libprotobuf-cpp-lite-vendorcompat |
| 790 | |
| 791 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 792 | # include additional QCOM build utilities |
| 793 | -include device/qcom/common/utils.mk |
| 794 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 795 | # RIL properties |
| 796 | PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so |
| 797 | PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so |
| 798 | #vendor prop to disable advanced network scanning |
| 799 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 800 | persist.vendor.radio.enableadvancedscan=false |
| 801 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 802 | # Enable Dual SIM by default |
| 803 | PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds |
| 804 | |
| 805 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 806 | persist.vendor.radio.apm_sim_not_pwdn=1 \ |
| 807 | persist.vendor.radio.sib16_support=1 \ |
| 808 | persist.vendor.radio.custom_ecc=1 \ |
| 809 | persist.vendor.radio.rat_on=combine \ |
| 810 | persist.vendor.radio.procedure_bytes=SKIP |
| 811 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 812 | |
| 813 | # RenderScript |
| 814 | PRODUCT_PACKAGES += \ |
| 815 | android.hardware.renderscript@1.0-impl |
| 816 | |
| 817 | |
| 818 | # SDCard |
| 819 | # default is nosdcard, S/W button enabled in resource |
| 820 | PRODUCT_CHARACTERISTICS := nosdcard |
| 821 | |
| 822 | |
| 823 | # Seccomp |
| 824 | PRODUCT_COPY_FILES += \ |
| 825 | $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
| 826 | $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy |
| 827 | |
| 828 | |
Bharath | 1710e06 | 2021-08-20 11:30:47 +0530 | [diff] [blame] | 829 | # Secure Element |
| 830 | PRODUCT_PACKAGES += \ |
| 831 | android.hardware.secure_element@1.2 |
| 832 | |
| 833 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 834 | # System helper |
| 835 | PRODUCT_PACKAGES += \ |
| 836 | vendor.qti.hardware.systemhelper@1.0 |
| 837 | |
| 838 | |
| 839 | # Service tracker |
| 840 | PRODUCT_PACKAGES += \ |
| 841 | vendor.qti.hardware.servicetracker@1.2.vendor |
| 842 | |
| 843 | |
Bharath | a60665d | 2021-08-19 09:37:22 +0530 | [diff] [blame] | 844 | # Sensors |
| 845 | PRODUCT_PACKAGES += \ |
| 846 | sensors.FP3 \ |
| 847 | android.hardware.sensors@1.0-impl \ |
| 848 | android.hardware.sensors@1.0-service \ |
| 849 | libsensorndkbridge |
| 850 | |
| 851 | # Sensor HAL conf file |
| 852 | PRODUCT_COPY_FILES += \ |
| 853 | $(FP_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf |
| 854 | |
| 855 | # Feature definition files for msm8953 |
| 856 | PRODUCT_COPY_FILES += \ |
| 857 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 858 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ |
| 859 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 860 | frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ |
| 861 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 862 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 863 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml |
| 864 | |
| 865 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 866 | # Telephony Permissions |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 867 | # whitelisted app |
| 868 | PRODUCT_COPY_FILES += \ |
| 869 | device/qcom/common/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml |
| 870 | |
| 871 | PRODUCT_COPY_FILES += \ |
| 872 | device/qcom/common/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml |
| 873 | |
| 874 | # Telephony wrappers |
| 875 | PRODUCT_PACKAGES += \ |
| 876 | qti-telephony-hidl-wrapper \ |
| 877 | qti_telephony_hidl_wrapper.xml \ |
| 878 | qti-telephony-utils \ |
| 879 | qti_telephony_utils.xml |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 880 | |
| 881 | |
| 882 | # Thermal |
| 883 | PRODUCT_PACKAGES += \ |
| 884 | android.hardware.thermal@1.0-impl \ |
| 885 | android.hardware.thermal@1.0-service |
| 886 | |
| 887 | |
| 888 | # Tinyxml |
| 889 | PRODUCT_PACKAGES += \ |
| 890 | libtinyxml |
| 891 | |
| 892 | # USB |
| 893 | PRODUCT_PACKAGES += \ |
| 894 | android.hardware.usb@1.0-service |
| 895 | |
| 896 | -include vendor/qcom/opensource/usb/vendor_product.mk |
| 897 | |
| 898 | |
| 899 | # Vendor move |
| 900 | PRODUCT_VENDOR_MOVE_ENABLED := true |
| 901 | |
| 902 | |
| 903 | # Vibrator |
| 904 | PRODUCT_PACKAGES += \ |
| 905 | android.hardware.vibrator@1.0-impl \ |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 906 | android.hardware.vibrator@1.0-service \ |
| 907 | vendor.qti.hardware.vibrator.service |
| 908 | |
| 909 | PRODUCT_COPY_FILES += \ |
| 910 | vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 911 | |
| 912 | |
Bharath | ed25571 | 2021-08-14 20:37:05 +0530 | [diff] [blame] | 913 | # WiFi |
| 914 | # WLAN drivers |
| 915 | PRODUCT_COPY_FILES += \ |
| 916 | $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \ |
| 917 | $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \ |
| 918 | $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10 |
| 919 | |
| 920 | # Flag to check if wcnss_service is built from source |
| 921 | TARGET_USE_WCNSS_HAL := false |
| 922 | |
| 923 | # If building from source then drop proprietary dependency |
| 924 | ifeq ($(TARGET_USE_WCNSS_HAL),true) |
| 925 | TARGET_USES_QCOM_WCNSS_QMI := false |
Bharath | 70cf2ae | 2022-02-14 12:13:50 +0530 | [diff] [blame] | 926 | |
| 927 | PRODUCT_PACKAGES += \ |
| 928 | libwcnss_qmi \ |
| 929 | wcnss_service |
Bharath | ed25571 | 2021-08-14 20:37:05 +0530 | [diff] [blame] | 930 | endif |
| 931 | |
| 932 | # WiFi HAL |
| 933 | PRODUCT_PACKAGES += \ |
| 934 | android.hardware.wifi@1.0-service |
| 935 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 936 | # WLAN DLKM |
| 937 | PRODUCT_PACKAGES += \ |
| 938 | pronto_wlan.ko |
| 939 | |
Bharath | ed25571 | 2021-08-14 20:37:05 +0530 | [diff] [blame] | 940 | # WiFi Components |
| 941 | PRODUCT_PACKAGES += \ |
| 942 | hostapd \ |
| 943 | hostapd.accept \ |
| 944 | hostapd.deny \ |
| 945 | hostapd_cli \ |
| 946 | hostapd_default.conf \ |
| 947 | libnl \ |
| 948 | libqsap_sdk \ |
Bharath | ed25571 | 2021-08-14 20:37:05 +0530 | [diff] [blame] | 949 | libwifi-hal-qcom \ |
| 950 | libwpa_client \ |
| 951 | p2p_supplicant_overlay.conf \ |
| 952 | vendor.qti.hardware.wifi.supplicant@1.0.vendor \ |
Bharath | ed25571 | 2021-08-14 20:37:05 +0530 | [diff] [blame] | 953 | wificond \ |
| 954 | wpa_cli \ |
| 955 | wpa_supplicant.conf \ |
| 956 | wpa_supplicant \ |
| 957 | wpa_supplicant_overlay.conf \ |
| 958 | WifiOverlay \ |
| 959 | TetheringConfigOverlay |
| 960 | |
| 961 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 962 | # Zlib |
| 963 | PRODUCT_HOST_PACKAGES += minigzip |
| 964 | |
| 965 | |
| 966 | #soong namespace for qssi vs vendor differentiation |
| 967 | SOONG_CONFIG_NAMESPACES += qssi_vs_vendor |
| 968 | SOONG_CONFIG_qssi_vs_vendor += qssi_or_vendor |
| 969 | SOONG_CONFIG_qssi_vs_vendor_qssi_or_vendor := vendor |
| 970 | |
| 971 | SOONG_CONFIG_NAMESPACES += aosp_vs_qva |
| 972 | SOONG_CONFIG_aosp_vs_qva += aosp_or_qva |
| 973 | ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true) |
| 974 | SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := qva |
| 975 | else |
| 976 | SOONG_CONFIG_aosp_vs_qva_aosp_or_qva := aosp |
| 977 | endif |
| 978 | |
| 979 | SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys |
| 980 | # Soong Keys |
| 981 | SOONG_CONFIG_qtidisplaycommonsys := displayconfig_enabled |
| 982 | # Soong Values |
| 983 | SOONG_CONFIG_qtidisplaycommonsys_displayconfig_enabled := true |
| 984 | |
| 985 | |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 986 | # Call the proprietary setup |
| 987 | # Call this in the end so that flags if required can be utilized. |
| 988 | $(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk) |
| 989 | |
Bharath | 1216328 | 2022-06-20 15:10:58 +0530 | [diff] [blame] | 990 | # Build some more display components to vendor |
| 991 | $(call inherit-product, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk) |
Bharath | 756d7dd | 2021-08-07 23:53:55 +0530 | [diff] [blame] | 992 | ################################################################################### |