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