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