Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 1 | # Copyright 2018-2020 Fairphone B.V. |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 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 | |
Francesco Salvatore | 8c5c069 | 2019-02-28 16:39:11 +0100 | [diff] [blame] | 16 | BLOBS_PATH = $(abspath device/fairphone/fp2-proprietary) |
| 17 | GET_BLOBS_CMD = vendor/fairphone/tools/bin/get_blobs.py --device FP2 --build-id $(BUILD_ID) --blobs-dir $(BLOBS_PATH) |
| 18 | |
| 19 | # Check the presence of proprietary blobs |
| 20 | ifeq ("$(wildcard $(BLOBS_PATH)/device-vendor.mk)","") |
| 21 | define BLOBS_INSTRUCTION |
| 22 | |
| 23 | |
| 24 | Cannot find FP2 binary blobs. |
| 25 | |
| 26 | Please run |
| 27 | |
| 28 | python3 $(GET_BLOBS_CMD) |
| 29 | |
| 30 | and accept the terms of agreement. |
| 31 | |
| 32 | |
| 33 | endef |
| 34 | $(error $(BLOBS_INSTRUCTION)) |
| 35 | endif |
| 36 | |
Karsten Tausche | a71dec3 | 2020-05-18 18:50:49 +0200 | [diff] [blame] | 37 | # Call the vendor setup |
| 38 | $(call inherit-product-if-exists, vendor/fairphone/fp2-common/device-vendor.mk) |
| 39 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 40 | # camera_detect |
| 41 | $(call inherit-product-if-exists, device/fairphone/fp2-common/camera_detect/camera_detect.mk) |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 42 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 43 | # setup dalvik vm configs. |
| 44 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 45 | |
Prityaa | c36e071 | 2020-03-05 15:35:16 +0530 | [diff] [blame] | 46 | # we don't have the calibration data so don't generate persist.img |
| 47 | FP2_SKIP_PERSIST_IMG := true |
| 48 | |
pitchaiah | cf54540 | 2020-10-13 09:19:30 +0200 | [diff] [blame] | 49 | # disable network scan for lack of ril support |
| 50 | TARGET_DISCARD_NETWORK_SCAN := true |
| 51 | |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 52 | # This is needed for the 2016 June official Nexus 5 driver's glsub |
| 53 | TARGET_USE_COMPAT_GRALLOC_PERFORM := true |
| 54 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 55 | # Common definitions to set undefined properties |
| 56 | $(call inherit-product, device/qcom/common/common.mk) |
| 57 | |
| 58 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 59 | # Call the proprietary setup |
| 60 | $(call inherit-product, $(BLOBS_PATH)/device-vendor.mk) |
| 61 | |
| 62 | TARGET_USES_QCOM_BSP := true |
| 63 | TARGET_USES_QCA_NFC := other |
| 64 | |
| 65 | ifeq ($(TARGET_USES_QCOM_BSP), true) |
| 66 | # Add QC Video Enhancements flag |
| 67 | TARGET_ENABLE_QC_AV_ENHANCEMENTS := true |
| 68 | endif #TARGET_USES_QCOM_BSP |
| 69 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 70 | PRODUCT_DEVICE := FP2 |
| 71 | PRODUCT_BRAND := Fairphone |
| 72 | PRODUCT_MANUFACTURER := Fairphone |
| 73 | |
Borjan Tchakaloff | 832cec4 | 2018-05-24 16:07:24 +0200 | [diff] [blame] | 74 | # The product flavors will set PRODUCT_NAME and PRODUCT_MODEL to something else |
| 75 | # but really, we are not allowed to change it because it was certified like this. |
| 76 | # To not break the build system and still have some properties set with the fancy |
| 77 | # flavour name, we only override the variables in the generated build.prop file. |
| 78 | PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP2 PRODUCT_NAME=FP2 |
| 79 | |
Borjan Tchakaloff | 1b9d260 | 2018-05-11 11:35:06 +0200 | [diff] [blame] | 80 | # Define the build number based on the product flavour and on the build manifest |
| 81 | # revision |
| 82 | ifneq (,$(strip $(PRODUCT_FLAVOR))) |
| 83 | _BUILD_MANIFEST_REV := $(shell (git -C $(TOPDIR).repo/manifests rev-parse --short=8 HEAD)) |
| 84 | BUILD_NUMBER := $(PRODUCT_FLAVOR)-$(_BUILD_MANIFEST_REV) |
| 85 | HAS_BUILD_NUMBER := true |
| 86 | else |
| 87 | $(error PRODUCT_FLAVOR must be defined) |
| 88 | endif |
| 89 | $(warning Build defined as $(BUILD_ID) ($(BUILD_NUMBER))) |
| 90 | |
| 91 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 92 | DEVICE_PACKAGE_OVERLAYS += device/fairphone/fp2-common/overlay |
| 93 | |
| 94 | # Do not enable data roaming by default |
| 95 | PRODUCT_PROPERTY_OVERRIDES := $(filter-out ro.com.android.dataroaming=%,\ |
| 96 | $(PRODUCT_PROPERTY_OVERRIDES)) \ |
| 97 | ro.com.android.dataroaming=false |
| 98 | |
| 99 | # Set default alarm sound |
| 100 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 101 | ro.config.alarm_alert=Cesium.ogg |
| 102 | |
| 103 | # Allow mediaserver to allocate up to 75% of total RAM |
| 104 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 105 | ro.media.maxmem=1451891712 |
| 106 | |
| 107 | # Enable strict operation |
| 108 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 109 | persist.sys.strict_op_enable=false |
| 110 | |
| 111 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 112 | persist.sys.whitelist=/system/etc/whitelist_appops.xml |
| 113 | |
| 114 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 115 | camera2.portability.force_api=1 |
| 116 | |
| 117 | |
| 118 | PRODUCT_COPY_FILES += \ |
| 119 | device/fairphone/fp2-common/rootdir/system/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml \ |
| 120 | device/fairphone/fp2-common/rootdir/system/etc/apns-conf.xml:system/etc/apns-conf.xml |
| 121 | |
| 122 | # MIDI feature |
| 123 | PRODUCT_COPY_FILES += \ |
| 124 | frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml |
| 125 | |
| 126 | PRODUCT_COPY_FILES += \ |
| 127 | device/fairphone/FP2/whitelist_appops.xml:system/etc/whitelist_appops.xml |
| 128 | |
Arvind Singh | 13c0267 | 2020-02-19 11:03:27 +0530 | [diff] [blame] | 129 | # WiFi driver |
| 130 | PRODUCT_COPY_FILES += \ |
Prityaa | c36e071 | 2020-03-05 15:35:16 +0530 | [diff] [blame] | 131 | device/fairphone/FP2/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini |
| 132 | |
| 133 | ifneq ($(strip $(FP2_SKIP_PERSIST_IMG)),true) |
| 134 | PRODUCT_COPY_FILES += \ |
Arvind Singh | 13c0267 | 2020-02-19 11:03:27 +0530 | [diff] [blame] | 135 | device/fairphone/FP2/wifi/WCNSS_qcom_wlan_nv.bin:persist/WCNSS_qcom_wlan_nv.bin |
Prityaa | c36e071 | 2020-03-05 15:35:16 +0530 | [diff] [blame] | 136 | endif |
Arvind Singh | 13c0267 | 2020-02-19 11:03:27 +0530 | [diff] [blame] | 137 | |
| 138 | # WiFi |
| 139 | PRODUCT_COPY_FILES += \ |
| 140 | device/fairphone/FP2/wifi/WCNSS_cfg.dat:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_cfg.dat \ |
| 141 | device/fairphone/FP2/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini \ |
| 142 | device/fairphone/FP2/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin |
| 143 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 144 | # Features |
| 145 | PRODUCT_COPY_FILES += \ |
| 146 | external/ant-wireless/antradio-library/com.dsi.ant.antradio_library.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.dsi.ant.antradio_library.xml \ |
| 147 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ |
| 148 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 149 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| 150 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
Karsten Tausche | c571786 | 2020-03-31 15:29:54 +0200 | [diff] [blame] | 151 | frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 152 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 153 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ |
| 154 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 155 | frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ |
| 156 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 157 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 158 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
| 159 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ |
| 160 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 161 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 162 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 163 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 164 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 165 | frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \ |
| 166 | frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \ |
| 167 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ |
| 168 | |
Vivekbalachandar M | 64df7ec | 2020-03-09 10:21:30 +0530 | [diff] [blame] | 169 | # Media |
| 170 | PRODUCT_COPY_FILES += \ |
| 171 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ |
Karsten Tausche | 4595580 | 2020-09-10 16:54:56 +0200 | [diff] [blame] | 172 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ |
| 173 | frameworks/av/media/libstagefright/data/media_codecs_google_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_tv.xml |
Vivekbalachandar M | 64df7ec | 2020-03-09 10:21:30 +0530 | [diff] [blame] | 174 | |
| 175 | PRODUCT_COPY_FILES += \ |
| 176 | device/fairphone/FP2/media/media_codecs_8974.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
Karsten Tausche | b02f5dd | 2020-08-31 15:43:31 +0200 | [diff] [blame] | 177 | device/fairphone/FP2/media/media_codecs_google_video_8974.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_8974.xml \ |
Vivekbalachandar M | 64df7ec | 2020-03-09 10:21:30 +0530 | [diff] [blame] | 178 | device/fairphone/FP2/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ |
| 179 | device/fairphone/FP2/media/media_profiles_8974.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 180 | |
| 181 | # Audio |
| 182 | PRODUCT_COPY_FILES += \ |
| 183 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Bluetooth_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb \ |
| 184 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_General_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_General_cal.acdb \ |
| 185 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Global_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Global_cal.acdb \ |
| 186 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Handset_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Handset_cal.acdb \ |
| 187 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Hdmi_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb \ |
| 188 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Headset_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Headset_cal.acdb \ |
| 189 | device/fairphone/FP2/audio/acdbdata/MTP/MTP_Speaker_cal.acdb:$(TARGET_COPY_OUT_SYSTEM)/etc/acdbdata/MTP/MTP_Speaker_cal.acdb |
| 190 | |
| 191 | PRODUCT_COPY_FILES += \ |
| 192 | device/fairphone/FP2/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 193 | device/fairphone/FP2/audio/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ |
| 194 | device/fairphone/FP2/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
| 195 | device/fairphone/FP2/audio/mixer_paths_auxpcm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_auxpcm.xml |
| 196 | |
| 197 | # Seccomp |
| 198 | PRODUCT_COPY_FILES += \ |
| 199 | device/fairphone/FP2/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
| 200 | device/fairphone/FP2/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy |
| 201 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 202 | # Boot animation |
| 203 | PRODUCT_COPY_FILES += \ |
| 204 | vendor/fairphone/media/bootanimation/fp2.zip:system/media/bootanimation.zip |
| 205 | |
| 206 | # Display logo image file |
| 207 | PRODUCT_PACKAGES += \ |
| 208 | libqcomvisualizer \ |
| 209 | libqcomvoiceprocessing \ |
| 210 | libqcompostprocbundle |
| 211 | |
| 212 | # battery_monitor |
| 213 | PRODUCT_PACKAGES += \ |
| 214 | battery_monitor \ |
| 215 | battery_shutdown |
| 216 | |
| 217 | # fstab.qcom |
| 218 | PRODUCT_PACKAGES += fstab.qcom |
| 219 | |
Bharath | 35eab12 | 2020-09-21 16:46:01 +0530 | [diff] [blame] | 220 | # Thermal |
| 221 | PRODUCT_COPY_FILES += \ |
| 222 | device/fairphone/FP2/configs/thermal-engine-8974.conf:vendor/etc/thermal-engine-8974.conf |
| 223 | |
Arvind Singh | 13c0267 | 2020-02-19 11:03:27 +0530 | [diff] [blame] | 224 | # WiFi |
| 225 | PRODUCT_PACKAGES += \ |
| 226 | hostapd \ |
| 227 | wcnss_service \ |
| 228 | wpa_supplicant |
| 229 | |
| 230 | PRODUCT_PACKAGES += \ |
| 231 | p2p_supplicant_overlay.conf \ |
| 232 | wpa_supplicant.conf \ |
| 233 | wpa_supplicant_overlay.conf |
| 234 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 235 | # ANT stack |
| 236 | PRODUCT_PACKAGES += \ |
| 237 | AntHalService \ |
| 238 | libantradio \ |
| 239 | ANTRadioService \ |
| 240 | antradio_app |
| 241 | |
Tejashwini Prabhu | 59601e9 | 2020-04-13 17:26:46 +0530 | [diff] [blame] | 242 | # Radio |
| 243 | PRODUCT_PACKAGES += \ |
| 244 | libril-wrapper |
| 245 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 246 | # include an expanded selection of fonts for the SDK. |
| 247 | EXTENDED_FONT_FOOTPRINT := true |
| 248 | |
| 249 | # remove /dev/diag in user version for CTS |
| 250 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 251 | PRODUCT_COPY_FILES += device/qcom/common/rootdir/etc/init.qcom.diag.rc.user:root/init.qcom.diag.rc |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 252 | endif |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 253 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 254 | # Enable the diagnostics interface by default in userdebug and eng builds |
| 255 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 256 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 257 | persist.sys.usb.config=diag |
| 258 | endif |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 259 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 260 | ifeq ($(strip $(FP2_SKIP_BOOT_JARS_CHECK)),) |
| 261 | SKIP_BOOT_JARS_CHECK := true |
| 262 | endif |
| 263 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 264 | # display density |
| 265 | PRODUCT_PROPERTY_OVERRIDES += \ |
Maarten Derks | 634ff08 | 2020-08-18 12:10:05 +0200 | [diff] [blame] | 266 | ro.sf.lcd_density=440 |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 267 | |
| 268 | $(call inherit-product, build/target/product/product_launched_with_l_mr1.mk) |
| 269 | |
| 270 | # Media |
| 271 | PRODUCT_PACKAGES += \ |
| 272 | audio.a2dp.default \ |
| 273 | audio.primary.msm8974 \ |
| 274 | audio.r_submix.default \ |
| 275 | audio.usb.default \ |
| 276 | audio_policy.msm8974 \ |
| 277 | libqcompostprocbundle \ |
| 278 | libqcomvisualizer \ |
| 279 | libqcomvoiceprocessing \ |
| 280 | libqcomvoiceprocessingdescriptors \ |
| 281 | tinymix |
| 282 | |
| 283 | # RenderScript |
| 284 | PRODUCT_PACKAGES += \ |
| 285 | android.hardware.renderscript@1.0-impl |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 286 | |
| 287 | # Boot animation |
| 288 | TARGET_SCREEN_HEIGHT := 1920 |
| 289 | TARGET_SCREEN_WIDTH := 1080 |
| 290 | |
Arvind Singh | ab01cec | 2020-02-20 16:22:51 +0530 | [diff] [blame] | 291 | # Bluetooth |
| 292 | PRODUCT_PACKAGES += \ |
| 293 | android.hardware.bluetooth@1.0-impl \ |
| 294 | android.hardware.bluetooth@1.0-service \ |
| 295 | libbt-vendor |
| 296 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 297 | # Camera |
| 298 | PRODUCT_PACKAGES += \ |
| 299 | android.hardware.camera.provider@2.4-impl \ |
| 300 | camera.device@1.0-impl \ |
| 301 | camera.msm8974 |
| 302 | |
Prityaa | 86940a2 | 2020-03-05 17:21:35 +0530 | [diff] [blame] | 303 | # Sensors |
| 304 | PRODUCT_PACKAGES += \ |
| 305 | android.hardware.sensors@1.0-impl |
| 306 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 307 | # Media |
| 308 | PRODUCT_PACKAGES += \ |
| 309 | libOmxAacEnc \ |
| 310 | libOmxAmrEnc \ |
| 311 | libOmxCore \ |
| 312 | libOmxEvrcEnc \ |
| 313 | libOmxQcelp13Enc \ |
| 314 | libOmxVdec \ |
| 315 | libOmxVenc \ |
| 316 | libc2dcolorconvert \ |
Karsten Tausche | 4595580 | 2020-09-10 16:54:56 +0200 | [diff] [blame] | 317 | libstagefright_soft_mpeg2dec \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 318 | libstagefrighthw |
| 319 | |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 320 | |
| 321 | # Display |
| 322 | PRODUCT_AAPT_CONFIG := normal |
| 323 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 324 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 325 | # Graphics |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 326 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 327 | copybit.msm8974 \ |
| 328 | gralloc.msm8974 \ |
| 329 | hwcomposer.msm8974 \ |
| 330 | liboverlay \ |
| 331 | memtrack.msm8974 |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 332 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 333 | # HAL Modules |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 334 | |
Arvind Singh | 13c0267 | 2020-02-19 11:03:27 +0530 | [diff] [blame] | 335 | # WiFi |
| 336 | PRODUCT_PACKAGES += \ |
| 337 | android.hardware.wifi@1.0-service |
| 338 | |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 339 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 340 | android.hardware.graphics.allocator@2.0-impl \ |
| 341 | android.hardware.graphics.allocator@2.0-service \ |
| 342 | android.hardware.graphics.composer@2.1-impl \ |
| 343 | android.hardware.graphics.mapper@2.0-impl \ |
| 344 | android.hardware.memtrack@1.0-impl \ |
| 345 | android.hardware.memtrack@1.0-service |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 346 | |
| 347 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 348 | android.hardware.audio@2.0-impl \ |
| 349 | android.hardware.audio@2.0-service \ |
| 350 | android.hardware.audio.effect@2.0-impl |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 351 | |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 352 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 353 | android.hardware.graphics.allocator@2.1-impl \ |
| 354 | android.hardware.graphics.allocator@2.1-service \ |
| 355 | android.hardware.graphics.composer@2.0-impl \ |
| 356 | android.hardware.graphics.mapper@2.0-impl \ |
| 357 | android.hardware.memtrack@1.0-impl \ |
| 358 | android.hardware.memtrack@1.0-service \ |
| 359 | android.hardware.graphics.allocator@2.0-service \ |
| 360 | android.hardware.graphics.composer@2.1-service |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 361 | |
| 362 | # Keystore |
| 363 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 364 | android.hardware.keymaster@3.0-impl \ |
| 365 | android.hardware.keymaster@3.0-service \ |
| 366 | keystore.msm8974 |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 367 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 368 | # Lights |
| 369 | PRODUCT_PACKAGES += \ |
| 370 | android.hardware.light@2.0-service.FP2 |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 371 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 372 | # Power |
| 373 | PRODUCT_PACKAGES += \ |
| 374 | android.hardware.power@1.1-service-qti |
Vivekbalachandar Marisamy | 659e6a6 | 2019-10-08 08:44:33 +0000 | [diff] [blame] | 375 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 376 | # USB |
| 377 | PRODUCT_PACKAGES += \ |
| 378 | android.hardware.usb@1.0-service.basic |
| 379 | |
| 380 | # Vibrator |
| 381 | PRODUCT_PACKAGES += \ |
| 382 | android.hardware.vibrator@1.0-impl \ |
| 383 | android.hardware.vibrator@1.0-service |
| 384 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 385 | PRODUCT_PACKAGES += \ |
| 386 | libhealthd.FP2 |
| 387 | |
| 388 | PRODUCT_PACKAGES += xdivert |
| 389 | |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 390 | # Ship the sound recorder app for backward compatibility with previous releases |
| 391 | PRODUCT_PACKAGES += SoundRecorder |
| 392 | |
| 393 | # Ramdisk |
| 394 | PRODUCT_PACKAGES += \ |
Vivekbalachandar M | 1506b5e | 2020-04-20 19:12:43 +0530 | [diff] [blame] | 395 | init.qcom.power.rc |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 396 | |
| 397 | # GPS |
| 398 | PRODUCT_PACKAGES += \ |
| 399 | android.hardware.gnss@1.0-impl \ |
| 400 | android.hardware.gnss@1.0-service \ |
Karsten Tausche | c571786 | 2020-03-31 15:29:54 +0200 | [diff] [blame] | 401 | gps.msm8974 \ |
| 402 | izat.conf \ |
| 403 | flp.conf \ |
| 404 | gps.conf \ |
| 405 | sap.conf |
Vivekbalachandar M | 7af3d83 | 2020-02-12 15:56:09 +0530 | [diff] [blame] | 406 | |
| 407 | PRODUCT_PACKAGES += senread |
Karsten Tausche | ec91c02 | 2019-07-17 15:36:32 +0200 | [diff] [blame] | 408 | |
| 409 | # Experimental OpenGL ES 3.0 support for Android 7 (and higher) |
| 410 | PRODUCT_PACKAGES += \ |
| 411 | init.fp.exp_gles3_setup.sh |