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