| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The Android Open-Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # This file includes all definitions that apply to ALL marlin and sailfish devices |
| 18 | # |
| 19 | # Everything in this directory will become public |
| 20 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 21 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 22 | LOCAL_KERNEL := device/google/marlin-kernel/Image.gz-dtb |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 23 | else |
| 24 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 25 | endif |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 26 | |
| Gustav Sennton | 608268b | 2016-05-27 16:18:38 +0100 | [diff] [blame] | 27 | PRODUCT_SHIPPING_API_LEVEL := 24 |
| 28 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 29 | PRODUCT_COPY_FILES += \ |
| 30 | $(LOCAL_KERNEL):kernel |
| 31 | |
| Ed Tam | 911a5f3 | 2016-05-09 23:08:28 -0700 | [diff] [blame] | 32 | DEVICE_PACKAGE_OVERLAYS += device/google/marlin/overlay |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 33 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 34 | # Input device files |
| 35 | PRODUCT_COPY_FILES += \ |
| 36 | device/google/marlin/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| Jim Miller | 19279e3 | 2016-05-17 16:53:55 -0700 | [diff] [blame] | 37 | device/google/marlin/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl \ |
| Jim Miller | 85621c4 | 2016-07-13 19:41:45 -0700 | [diff] [blame] | 38 | device/google/marlin/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \ |
| Michael Wright | 7d0280c | 2016-08-08 21:58:53 +0100 | [diff] [blame] | 39 | device/google/marlin/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \ |
| 40 | device/google/marlin/synaptics_dsxv26.idc:system/usr/idc/synaptics_dsxv26.idc |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 41 | |
| 42 | # copy customized media_profiles and media_codecs xmls for msm8996 |
| Zhijun He | c3a3639 | 2016-03-21 11:53:45 -0700 | [diff] [blame] | 43 | PRODUCT_COPY_FILES += device/google/marlin/media_profiles.xml:system/etc/media_profiles.xml \ |
| Tim Murray | fd0fb0f | 2016-07-26 16:08:45 -0700 | [diff] [blame] | 44 | device/google/marlin/media_codecs.xml:system/etc/media_codecs.xml \ |
| 45 | device/google/marlin/media_codecs_performance.xml:system/etc/media_codecs_performance.xml |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 46 | |
| 47 | # Override heap growth limit due to high display density on device |
| 48 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Stuart Scott | 8c8e3e6 | 2016-03-30 11:38:43 -0700 | [diff] [blame] | 49 | dalvik.vm.heapgrowthlimit=256m \ |
| 50 | ro.telephony.default_cdma_sub=0 |
| 51 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 52 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 53 | $(call inherit-product, device/google/marlin/common/common64.mk) |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 54 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 55 | #Android EGL implementation |
| 56 | PRODUCT_PACKAGES += libGLES_android |
| 57 | |
| Marvin Tsai | 2e06f08 | 2016-04-08 20:54:47 +0800 | [diff] [blame] | 58 | # graphics |
| 59 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Steve Pfetsch | 2971c26 | 2016-07-11 12:26:23 -0700 | [diff] [blame] | 60 | ro.opengles.version=196610 |
| Marvin Tsai | 2e06f08 | 2016-04-08 20:54:47 +0800 | [diff] [blame] | 61 | |
| John Reck | 3f96168 | 2016-06-07 15:15:35 -0700 | [diff] [blame] | 62 | # HWUI common settings |
| 63 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 64 | ro.hwui.gradient_cache_size=1 \ |
| 65 | ro.hwui.drop_shadow_cache_size=6 \ |
| 66 | ro.hwui.r_buffer_cache_size=8 \ |
| 67 | ro.hwui.texture_cache_flushrate=0.4 \ |
| 68 | ro.hwui.text_small_cache_width=1024 \ |
| 69 | ro.hwui.text_small_cache_height=1024 \ |
| 70 | ro.hwui.text_large_cache_width=2048 \ |
| 71 | ro.hwui.text_large_cache_height=1024 |
| 72 | |
| Eino-Ville Talvala | 2a42ac5 | 2016-04-20 13:17:26 -0700 | [diff] [blame] | 73 | # For android_filesystem_config.h |
| Daniel Rosenberg | d065fcc | 2016-04-22 21:04:34 -0700 | [diff] [blame] | 74 | PRODUCT_PACKAGES += fs_config_files \ |
| Tim Murray | fd0fb0f | 2016-07-26 16:08:45 -0700 | [diff] [blame] | 75 | fs_config_dirs |
| Eino-Ville Talvala | 2a42ac5 | 2016-04-20 13:17:26 -0700 | [diff] [blame] | 76 | |
| Eric Laurent | f884ce6 | 2016-05-27 11:06:25 -0700 | [diff] [blame] | 77 | # Audio configuration |
| 78 | USE_XML_AUDIO_POLICY_CONF := 1 |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 79 | PRODUCT_COPY_FILES += \ |
| Yueyao (Nathan) Zhu | 7724e9f | 2016-05-20 14:47:52 -0700 | [diff] [blame] | 80 | device/google/marlin/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ |
| Jean-Michel Trivi | 02d7487 | 2016-07-07 17:21:33 -0700 | [diff] [blame] | 81 | device/google/marlin/audio_effects.conf:system/etc/audio_effects.conf \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 82 | device/google/marlin/mixer_paths.xml:system/etc/mixer_paths.xml \ |
| vincent_tew | a02fc8a | 2016-03-14 14:47:06 +0800 | [diff] [blame] | 83 | device/google/marlin/mixer_paths_tasha_t50.xml:system/etc/mixer_paths_tasha_t50.xml \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 84 | device/google/marlin/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 85 | device/google/marlin/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| carter_hsu | 4a44490 | 2016-03-23 10:18:36 +0800 | [diff] [blame] | 86 | device/google/marlin/sound_trigger_mixer_paths_tasha_t50.xml:system/etc/sound_trigger_mixer_paths_tasha_t50.xml \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 87 | device/google/marlin/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| vincent_tew | a02fc8a | 2016-03-14 14:47:06 +0800 | [diff] [blame] | 88 | device/google/marlin/audio_platform_info.xml:system/etc/audio_platform_info.xml \ |
| Eric Laurent | f884ce6 | 2016-05-27 11:06:25 -0700 | [diff] [blame] | 89 | device/google/marlin/audio_platform_info_tasha_t50.xml:system/etc/audio_platform_info_tasha_t50.xml \ |
| 90 | device/google/marlin/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \ |
| 91 | device/google/marlin/audio_policy_volumes_drc.xml:system/etc/audio_policy_volumes_drc.xml \ |
| 92 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:system/etc/a2dp_audio_policy_configuration.xml \ |
| 93 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \ |
| 94 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:system/etc/usb_audio_policy_configuration.xml \ |
| Kalle Raita | a19012e | 2016-07-11 13:36:36 -0700 | [diff] [blame] | 95 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \ |
| 96 | frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:system/etc/permissions/android.hardware.vulkan.level.xml \ |
| 97 | frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 98 | |
| Eric Laurent | f0edeb8 | 2016-06-16 18:24:35 -0700 | [diff] [blame] | 99 | # Audio effects |
| 100 | PRODUCT_PACKAGES += \ |
| 101 | libqcomvisualizer \ |
| 102 | libqcomvoiceprocessing \ |
| 103 | libqcomvoiceprocessingdescriptors \ |
| 104 | libqcompostprocbundle |
| 105 | |
| carter_hsu | 4a44490 | 2016-03-23 10:18:36 +0800 | [diff] [blame] | 106 | PRODUCT_PACKAGES += \ |
| 107 | sound_trigger.primary.msm8996 |
| 108 | |
| jasmine cha | 614d8e1 | 2016-05-04 18:29:31 +0800 | [diff] [blame] | 109 | # set audio fluence, ns, aec property |
| 110 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 111 | ro.qc.sdk.audio.fluencetype=fluencepro \ |
| 112 | persist.audio.fluence.voicecall=true \ |
| 113 | persist.audio.fluence.speaker=true \ |
| 114 | persist.audio.fluence.voicecomm=true \ |
| 115 | persist.audio.fluence.voicerec=false |
| 116 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 117 | # WLAN driver configuration files |
| 118 | PRODUCT_COPY_FILES += \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame] | 119 | device/google/marlin/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ |
| 120 | device/google/marlin/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 121 | device/google/marlin/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 122 | device/google/marlin/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 123 | |
| 124 | # MIDI feature |
| 125 | PRODUCT_COPY_FILES += \ |
| 126 | frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml |
| 127 | |
| Glenn Kasten | 01d5abe | 2016-07-13 10:53:54 -0700 | [diff] [blame] | 128 | # Audio low latency feature |
| 129 | PRODUCT_COPY_FILES += \ |
| 130 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml |
| 131 | |
| Glenn Kasten | 244c4ba | 2016-07-13 13:54:40 -0700 | [diff] [blame] | 132 | # Pro audio feature |
| 133 | PRODUCT_COPY_FILES += \ |
| 134 | frameworks/native/data/etc/android.hardware.audio.pro.xml:system/etc/permissions/android.hardware.audio.pro.xml |
| 135 | |
| Yin-Chia Yeh | a756500 | 2016-07-21 13:55:36 -0700 | [diff] [blame] | 136 | # Camera |
| 137 | PRODUCT_COPY_FILES += \ |
| 138 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 139 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 140 | frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \ |
| 141 | frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml |
| 142 | |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 143 | # Wi-Fi |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 144 | PRODUCT_PACKAGES += \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 145 | libwpa_client \ |
| 146 | hostapd \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 147 | wpa_supplicant \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame] | 148 | wpa_supplicant.conf |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 149 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 150 | # Listen configuration file |
| 151 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 152 | device/google/marlin/listen_platform_info.xml:system/etc/listen_platform_info.xml |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 153 | |
| 154 | #ANT+ stack |
| 155 | PRODUCT_PACKAGES += \ |
| 156 | AntHalService \ |
| 157 | libantradio \ |
| 158 | antradio_app \ |
| 159 | libvolumelistener |
| 160 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 161 | # Sensor features |
| 162 | PRODUCT_COPY_FILES += \ |
| 163 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 164 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 165 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 166 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 167 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 168 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 169 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 170 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 171 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml |
| 172 | |
| Ruben Brunk | ec50a81 | 2016-04-12 17:04:34 -0700 | [diff] [blame] | 173 | # Other hardware-specific features |
| 174 | PRODUCT_COPY_FILES += \ |
| 175 | frameworks/native/data/etc/android.hardware.vr.high_performance.xml:system/etc/permissions/android.hardware.vr.high_performance.xml |
| 176 | |
| Vineeta Srivastava | e17a628 | 2016-06-07 11:51:25 -0700 | [diff] [blame] | 177 | # For SPN display |
| 178 | PRODUCT_COPY_FILES += \ |
| 179 | device/google/marlin/spn-conf.xml:system/etc/spn-conf.xml |
| Ruben Brunk | ec50a81 | 2016-04-12 17:04:34 -0700 | [diff] [blame] | 180 | |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 181 | # Common sensor packages |
| Andrew Rossignol | 11effd2 | 2016-04-08 13:32:27 -0700 | [diff] [blame] | 182 | TARGET_USES_NANOHUB_SENSORHAL := true |
| 183 | NANOHUB_SENSORHAL_LID_STATE_ENABLED := true |
| Andrew Rossignol | 11effd2 | 2016-04-08 13:32:27 -0700 | [diff] [blame] | 184 | NANOHUB_SENSORHAL_SENSORLIST := $(LOCAL_PATH)/sensorhal/sensorlist.cpp |
| Alexey Polyudov | c1a54f4 | 2016-04-22 13:53:11 -0700 | [diff] [blame] | 185 | PRODUCT_PACKAGES += context_hub.default |
| Andrew Rossignol | 11effd2 | 2016-04-08 13:32:27 -0700 | [diff] [blame] | 186 | |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 187 | PRODUCT_PACKAGES += \ |
| Andrew Rossignol | 699fdf6 | 2016-02-19 16:34:16 -0800 | [diff] [blame] | 188 | nanoapp_cmd |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 189 | |
| Trevor Bunker | 0c8ac7f | 2016-03-28 07:37:55 -0700 | [diff] [blame] | 190 | # sensor utilities (only for userdebug and eng builds) |
| 191 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 192 | PRODUCT_PACKAGES += \ |
| 193 | nanotool \ |
| 194 | sensortest |
| 195 | endif |
| 196 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 197 | PRODUCT_COPY_FILES += \ |
| 198 | device/google/marlin/sec_config:system/etc/sec_config |
| 199 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 200 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system |
| 201 | |
| 202 | #FEATURE_OPENGLES_EXTENSION_PACK support string config file |
| 203 | PRODUCT_COPY_FILES += \ |
| 204 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml |
| 205 | |
| 206 | # MSM IRQ Balancer configuration file |
| 207 | PRODUCT_COPY_FILES += \ |
| Yueyao (Nathan) Zhu | 7724e9f | 2016-05-20 14:47:52 -0700 | [diff] [blame] | 208 | device/google/marlin/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 209 | |
| Jeff Vander Stoep | e0e5795 | 2016-02-29 09:14:01 -0800 | [diff] [blame] | 210 | # init launched script |
| 211 | PRODUCT_COPY_FILES += \ |
| Paul Lawrence | 67c299c | 2016-04-06 09:18:02 -0700 | [diff] [blame] | 212 | device/google/marlin/init.qcom.qseecomd.sh:system/bin/init.qcom.qseecomd.sh \ |
| Thierry Strudel | b4d838b | 2016-04-08 12:54:52 -0700 | [diff] [blame] | 213 | device/google/marlin/init.radio.sh:system/bin/init.radio.sh \ |
| Patrick Tjin | 4259200 | 2016-08-01 12:19:53 -0700 | [diff] [blame] | 214 | device/google/marlin/init.power.sh:system/bin/init.power.sh \ |
| Philip Cuadra | 1fe1d7c | 2016-08-04 10:40:38 -0700 | [diff] [blame] | 215 | device/google/marlin/init.mid.sh:system/bin/init.mid.sh \ |
| 216 | device/google/marlin/init.foreground.sh:system/bin/init.foreground.sh |
| Jeff Vander Stoep | e0e5795 | 2016-02-29 09:14:01 -0800 | [diff] [blame] | 217 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 218 | # Reduce client buffer size for fast audio output tracks |
| 219 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 220 | af.fast_track_multiplier=1 |
| 221 | |
| 222 | # Low latency audio buffer size in frames |
| 223 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 224 | audio_hal.period_size=192 |
| 225 | |
| 226 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Ranjith Kagathi Ananda | d41f135 | 2016-05-10 18:34:00 -0700 | [diff] [blame] | 227 | persist.camera.gyro.android=4 \ |
| Ranjith Kagathi Ananda | 0afc194 | 2016-05-18 13:44:44 -0700 | [diff] [blame] | 228 | persist.camera.tof.direct=1 \ |
| 229 | persist.camera.tnr.preview=1 \ |
| 230 | persist.camera.tnr.video=1 |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 231 | |
| Steve Pfetsch | a78cad8 | 2016-02-23 19:31:30 -0800 | [diff] [blame] | 232 | # Set bluetooth soc to rome |
| 233 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 234 | qcom.bluetooth.soc=rome |
| 235 | |
| Mekala Natarajan | 6c439d5 | 2016-03-03 00:59:55 -0800 | [diff] [blame] | 236 | PRODUCT_PROPERTY_OVERRIDES += \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 237 | persist.cne.feature=1 \ |
| tim.tm_lin | 3e1330a | 2016-07-28 15:01:23 +0800 | [diff] [blame] | 238 | persist.radio.data_ltd_sys_ind=1 \ |
| tim.tm_lin | f687be0 | 2016-07-28 14:27:29 +0800 | [diff] [blame] | 239 | persist.radio.is_wps_enabled=true \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 240 | persist.radio.RATE_ADAPT_ENABLE=1 \ |
| 241 | persist.radio.ROTATION_ENABLE=1 \ |
| tim.tm_lin | 29c3e3c | 2016-03-15 17:46:19 +0800 | [diff] [blame] | 242 | persist.radio.sw_mbn_update=1 \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 243 | persist.radio.videopause.mode=1 \ |
| 244 | persist.radio.VT_ENABLE=1 \ |
| 245 | persist.radio.VT_HYBRID_ENABLE=1 \ |
| Nathan Harold | b2b4d02 | 2016-07-15 11:10:31 -0700 | [diff] [blame] | 246 | persist.radio.data_con_rprt=true \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 247 | persist.rcs.supported=1 \ |
| Yueyao (Nathan) Zhu | 7724e9f | 2016-05-20 14:47:52 -0700 | [diff] [blame] | 248 | rild.libpath=/vendor/lib64/libril-qc-qmi-1.so |
| Mekala Natarajan | 6c439d5 | 2016-03-03 00:59:55 -0800 | [diff] [blame] | 249 | |
| Howard Yen | 408c75c | 2016-03-22 22:00:09 +0800 | [diff] [blame] | 250 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 251 | persist.data.mode=concurrent |
| 252 | |
| terry.cr_huang | 0589e03 | 2016-05-20 11:03:52 +0800 | [diff] [blame] | 253 | # Enable SM log mechanism by default |
| 254 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 255 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 256 | persist.radio.smlog_switch=1 |
| 257 | endif |
| 258 | |
| Vineeta Srivastava | 88b013b | 2016-03-24 17:10:26 -0700 | [diff] [blame] | 259 | # IMS over WiFi |
| 260 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 261 | persist.data.iwlan.enable=true |
| 262 | |
| Meng Wang | bb795ac | 2016-03-28 21:46:37 -0700 | [diff] [blame] | 263 | # LTE, CDMA, GSM/WCDMA |
| 264 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 265 | ro.telephony.default_network=10 \ |
| Meng Wang | 4010b82 | 2016-05-19 06:12:40 -0700 | [diff] [blame] | 266 | telephony.lteOnCdmaDevice=1 |
| Meng Wang | bb795ac | 2016-03-28 21:46:37 -0700 | [diff] [blame] | 267 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 268 | PRODUCT_AAPT_CONFIG += xlarge large |
| Patrick Tjin | 12f2d5e | 2016-08-16 12:22:47 -0700 | [diff] [blame] | 269 | PRODUCT_CHARACTERISTICS := nosdcard |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 270 | |
| Xue Tu | 3901eb3 | 2016-04-19 18:05:11 -0700 | [diff] [blame] | 271 | # Enable camera EIS |
| 272 | # eis.enable: enables electronic image stabilization |
| 273 | # is_type: sets image stabilization type |
| 274 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 275 | persist.camera.eis.enable=1 \ |
| 276 | persist.camera.is_type=4 |
| 277 | |
| kris_chen | f8c1a3a | 2016-03-18 18:36:19 +0800 | [diff] [blame] | 278 | # Fingerprint |
| 279 | PRODUCT_PACKAGES += \ |
| 280 | fingerprintd |
| 281 | |
| 282 | PRODUCT_COPY_FILES += \ |
| 283 | frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml |
| 284 | |
| Ed Tam | a5030fe | 2016-03-27 21:44:01 -0700 | [diff] [blame] | 285 | # Modem debugger |
| 286 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| Ed Tam | a5030fe | 2016-03-27 21:44:01 -0700 | [diff] [blame] | 287 | PRODUCT_COPY_FILES += \ |
| 288 | device/google/marlin/init.common.diag.rc.userdebug:root/init.common.diag.rc |
| Ed Tam | e79b849 | 2016-04-05 17:36:52 -0700 | [diff] [blame] | 289 | |
| 290 | # Subsystem ramdump |
| 291 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 292 | persist.sys.ssr.enable_ramdumps=1 |
| Ed Tam | a5030fe | 2016-03-27 21:44:01 -0700 | [diff] [blame] | 293 | else |
| 294 | PRODUCT_COPY_FILES += \ |
| 295 | device/google/marlin/init.common.diag.rc.user:root/init.common.diag.rc |
| 296 | endif |
| 297 | |
| kurt_huang | c67ca18 | 2016-06-29 02:33:11 +0800 | [diff] [blame] | 298 | # Subsystem silent restart |
| 299 | PRODUCT_PROPERTY_OVERRIDES += \ |
| carter_hsu | 9993aee | 2016-07-18 18:23:10 +0800 | [diff] [blame] | 300 | persist.sys.ssr.restart_level=venus,AR6320,slpi,modem,adsp |
| kurt_huang | c67ca18 | 2016-06-29 02:33:11 +0800 | [diff] [blame] | 301 | |
| Jenhao Chen | 54d4646 | 2016-03-31 07:09:27 +0800 | [diff] [blame] | 302 | PRODUCT_COPY_FILES += \ |
| 303 | device/google/marlin/thermal-engine-marlin.conf:system/etc/thermal-engine.conf |
| 304 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 305 | $(call inherit-product-if-exists, hardware/qcom/msm8996/msm8996.mk) |
| 306 | $(call inherit-product-if-exists, vendor/qcom/gpu/msm8996/msm8996-gpu-vendor.mk) |
| 307 | |
| 308 | # TODO: |
| 309 | # setup dm-verity configs. |
| 310 | # PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/7464900.sdhci/by-name/system |
| 311 | # $(call inherit-product, build/target/product/verity.mk) |
| Jeff Vander Stoep | e0e5795 | 2016-02-29 09:14:01 -0800 | [diff] [blame] | 312 | |
| greg_huang | 9b8d1ff | 2016-03-31 09:06:29 +0800 | [diff] [blame] | 313 | #Property of the BDA module path for loading BDA |
| 314 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 315 | ro.bt.bdaddr_path=/sys/module/bdaddress/parameters/bdaddress |
| 316 | |
| Nick Desaulniers | 6220573 | 2016-04-13 15:23:57 -0700 | [diff] [blame] | 317 | # Needed for encryption |
| 318 | PRODUCT_PACKAGES += \ |
| 319 | keystore.msm8996 \ |
| 320 | gatekeeper.msm8996 |
| Alex Deymo | 52a26f9 | 2016-04-21 17:30:43 -0700 | [diff] [blame] | 321 | |
| 322 | # Use the A/B updater. |
| 323 | AB_OTA_UPDATER := true |
| 324 | PRODUCT_PACKAGES += \ |
| Alex Deymo | 46383a6 | 2016-04-22 11:27:44 -0700 | [diff] [blame] | 325 | update_engine \ |
| 326 | update_verifier |
| Dan Willemsen | e2d3721 | 2016-06-22 21:50:38 -0700 | [diff] [blame] | 327 | |
| Alex Deymo | 2ce7461 | 2016-08-01 16:23:26 -0700 | [diff] [blame] | 328 | # Enable update engine sideloading by including the static version of the |
| 329 | # boot_control HAL and its dependencies. |
| 330 | PRODUCT_STATIC_BOOT_CONTROL_HAL := \ |
| 331 | bootctrl.msm8996 \ |
| 332 | librecovery_updater_msm \ |
| 333 | libsparse_static |
| 334 | PRODUCT_PACKAGES += \ |
| 335 | update_engine_sideload |
| 336 | |
| Dan Willemsen | e2d3721 | 2016-06-22 21:50:38 -0700 | [diff] [blame] | 337 | # Tell the system to enable copying odexes from other partition. |
| 338 | PRODUCT_PACKAGES += \ |
| 339 | cppreopts.sh |
| 340 | |
| 341 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 342 | ro.cp_system_other_odex=1 |
| 343 | |
| Fyodor Kupolov | 680ae80 | 2016-07-22 12:20:40 -0700 | [diff] [blame] | 344 | # Script that copies preloads directory from system_other to data partition |
| 345 | PRODUCT_COPY_FILES += \ |
| 346 | device/google/marlin/preloads_copy.sh:system/bin/preloads_copy.sh |
| 347 | |
| Alex Deymo | 46383a6 | 2016-04-22 11:27:44 -0700 | [diff] [blame] | 348 | PRODUCT_PACKAGES_DEBUG += \ |
| 349 | update_engine_client |
| Alex Deymo | 52a26f9 | 2016-04-21 17:30:43 -0700 | [diff] [blame] | 350 | |
| 351 | # A/B updater updatable partitions list. Keep in sync with the partition list |
| Alex Deymo | 7a1d4f4 | 2016-05-06 14:47:47 -0700 | [diff] [blame] | 352 | # with "_a" and "_b" variants in the device. Note that the vendor can add more |
| 353 | # more partitions to this list for the bootloader and radio. |
| 354 | AB_OTA_PARTITIONS += \ |
| 355 | boot \ |
| Yueyao (Nathan) Zhu | f65f85a | 2016-06-06 17:44:58 -0700 | [diff] [blame] | 356 | system |
| Alex Deymo | 46383a6 | 2016-04-22 11:27:44 -0700 | [diff] [blame] | 357 | |
| george.kg_chang | d9d034b | 2016-04-20 17:42:40 +0800 | [diff] [blame] | 358 | # NFC packages |
| 359 | PRODUCT_PACKAGES += \ |
| 360 | NfcNci \ |
| 361 | Tag |
| 362 | |
| Eino-Ville Talvala | b50776d | 2016-05-24 12:12:43 -0700 | [diff] [blame] | 363 | # NFC/camera interaction workaround - DO NOT COPY TO NEW DEVICES |
| 364 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 365 | ro.camera.notify_nfc=1 |
| 366 | |
| george.kg_chang | d9d034b | 2016-04-20 17:42:40 +0800 | [diff] [blame] | 367 | PRODUCT_COPY_FILES += \ |
| 368 | device/google/marlin/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \ |
| Yueyao (Nathan) Zhu | 7724e9f | 2016-05-20 14:47:52 -0700 | [diff] [blame] | 369 | device/google/marlin/nfc/libpn551_fw.so:$(TARGET_COPY_OUT_VENDOR)/firmware/libpn551_fw.so |
| george.kg_chang | d9d034b | 2016-04-20 17:42:40 +0800 | [diff] [blame] | 370 | |
| Alex Deymo | 46383a6 | 2016-04-22 11:27:44 -0700 | [diff] [blame] | 371 | # Bootloader HAL used for A/B updates. |
| 372 | PRODUCT_PACKAGES += \ |
| 373 | bootctrl.msm8996 |
| 374 | PRODUCT_PACKAGES_DEBUG += \ |
| 375 | bootctl |
| ocean_chen | ec57a7a | 2016-05-02 17:21:05 +0800 | [diff] [blame] | 376 | |
| 377 | # Storage: for factory reset protection feature |
| 378 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Ed Tam | f75f3b1 | 2016-05-09 22:49:27 -0700 | [diff] [blame] | 379 | ro.frp.pst=/dev/block/platform/soc/624000.ufshc/by-name/frp |
| Nick Desaulniers | a2f314f | 2016-05-20 11:36:05 -0700 | [diff] [blame] | 380 | |
| Naseer Ahmed | 81f0468 | 2016-06-24 16:03:31 -0400 | [diff] [blame] | 381 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Naseer Ahmed | 48567c4 | 2016-07-22 20:46:02 -0400 | [diff] [blame] | 382 | sdm.debug.disable_rotator_split=1 \ |
| 383 | qdcm.only_pcc_for_trans=1 \ |
| 384 | qdcm.diagonal_matrix_mode=1 |
| Naseer Ahmed | 81f0468 | 2016-06-24 16:03:31 -0400 | [diff] [blame] | 385 | |
| Praveen Chavan | f8d8c3a | 2016-07-14 17:35:53 -0700 | [diff] [blame] | 386 | # Enable low power video mode for 4K encode |
| 387 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 388 | vidc.debug.perf.mode=2 |
| 389 | |
| kurt_huang | 02013e0 | 2016-06-03 04:30:43 +0800 | [diff] [blame] | 390 | # OEM Unlock reporting |
| 391 | ADDITIONAL_DEFAULT_PROPERTIES += \ |
| 392 | ro.oem_unlock_supported=1 |
| 393 | |
| Nick Desaulniers | a2f314f | 2016-05-20 11:36:05 -0700 | [diff] [blame] | 394 | # Setup dm-verity configs |
| 395 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system |
| Yueyao (Nathan) Zhu | 7724e9f | 2016-05-20 14:47:52 -0700 | [diff] [blame] | 396 | PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/bootdevice/by-name/vendor |
| Nick Desaulniers | a2f314f | 2016-05-20 11:36:05 -0700 | [diff] [blame] | 397 | $(call inherit-product, build/target/product/verity.mk) |
| 398 | |
| Tao Bao | 35d6287 | 2016-06-10 10:08:43 -0700 | [diff] [blame] | 399 | # Partitions (listed in the file) to be wiped under recovery. |
| 400 | TARGET_RECOVERY_WIPE := \ |
| 401 | device/google/marlin/recovery.wipe.common |
| shinru_han | 3cdc81d | 2016-06-04 17:35:27 +0800 | [diff] [blame] | 402 | |
| 403 | # GPS configuration file |
| shinru_han | 3cdc81d | 2016-06-04 17:35:27 +0800 | [diff] [blame] | 404 | PRODUCT_COPY_FILES += \ |
| Andreas Gampe | 9901839 | 2016-06-08 14:10:26 -0700 | [diff] [blame] | 405 | device/google/marlin/gps.conf:system/etc/gps.conf |
| shinru_han | 3cdc81d | 2016-06-04 17:35:27 +0800 | [diff] [blame] | 406 | |
| Svet Ganov | 5e00844 | 2016-08-18 12:39:26 -0700 | [diff] [blame] | 407 | # Default permission grant exceptions |
| 408 | PRODUCT_COPY_FILES += \ |
| 409 | device/google/marlin/default-permissions.xml:system/etc/default-permissions/default-permissions.xml |
| 410 | |
| Andreas Gampe | 6292e8a | 2016-06-02 10:05:12 -0700 | [diff] [blame] | 411 | # A/B OTA dexopt package |
| 412 | PRODUCT_PACKAGES += otapreopt_script |
| 413 | |
| 414 | # A/B OTA dexopt update_engine hookup |
| 415 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 416 | RUN_POSTINSTALL_system=true \ |
| 417 | POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| Alex Deymo | 2ce7461 | 2016-08-01 16:23:26 -0700 | [diff] [blame] | 418 | FILESYSTEM_TYPE_system=ext4 \ |
| 419 | POSTINSTALL_OPTIONAL_system=true |
| Andreas Gampe | 70e5108 | 2016-06-16 11:49:46 -0700 | [diff] [blame] | 420 | |
| Paul Crowley | 277ed4c | 2016-06-23 15:46:41 -0700 | [diff] [blame] | 421 | #Reduce cost of scrypt for FBE CE decryption |
| 422 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 423 | ro.crypto.scrypt_params=13:3:1 |
| 424 | |
| Andreas Gampe | 70e5108 | 2016-06-16 11:49:46 -0700 | [diff] [blame] | 425 | # Add minidebug info to the system server to support diagnosing native crashes. |
| 426 | ifneq (,$(filter user userdebug, $(TARGET_BUILD_VARIANT))) |
| 427 | # System server and some of its services. |
| 428 | # Note: we cannot use PRODUCT_SYSTEM_SERVER_JARS, as it has not been expanded at this point. |
| 429 | $(call add-product-dex-preopt-module-config,services,--generate-mini-debug-info) |
| 430 | $(call add-product-dex-preopt-module-config,wifi-service,--generate-mini-debug-info) |
| 431 | endif |
| Andreas Gampe | f6da514 | 2016-06-27 15:20:58 -0700 | [diff] [blame] | 432 | |
| Andreas Gampe | 25dce18 | 2016-06-27 15:22:41 -0700 | [diff] [blame] | 433 | # b/28423767 |
| 434 | $(call add-product-sanitizer-module-config,rmt_storage,never) |
| Andreas Gampe | 48f0f8f | 2016-06-29 09:23:52 -0700 | [diff] [blame] | 435 | |
| Andreas Gampe | f92881b | 2016-07-26 21:17:28 -0700 | [diff] [blame] | 436 | # b/30302693 |
| 437 | $(call add-product-sanitizer-module-config,surfaceflinger libsigchain,never) |
| 438 | |
| Andreas Gampe | dc1ada6 | 2016-06-29 12:01:07 -0700 | [diff] [blame] | 439 | # b/28992626 |
| 440 | # For Hangouts, make ASAN-lite only sanitize 32-bit. |
| 441 | ifeq (true,$(SANITIZE_LITE)) |
| 442 | SANITIZE_ARCH := 32 |
| 443 | endif |
| Yuan Lin | be47211 | 2016-07-26 16:02:13 -0700 | [diff] [blame] | 444 | |
| 445 | # b/30349163 |
| 446 | # Set Marlin/Sailfish default log size on userdebug/eng build to 1M |
| 447 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 448 | PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M |
| 449 | endif |
| Dan Stoza | 3edc6fa | 2016-08-15 09:39:57 -0700 | [diff] [blame] | 450 | |
| 451 | # b/30022738 |
| 452 | # Work around janky screenrecord performance by disabling hardware composer |
| 453 | # virtual displays |
| 454 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 455 | debug.sf.disable_hwc_vds=1 |