diff options
author | Sebastiano Barezzi <barezzisebastiano@gmail.com> | 2021-09-12 19:24:17 +0200 |
---|---|---|
committer | Sebastiano Barezzi <barezzisebastiano@gmail.com> | 2021-09-12 20:41:09 +0200 |
commit | 8533d0fd2fab58a927066dc059c1b3cf6237815c (patch) | |
tree | c189e3f99257bec6138574c06b9b5a3917117f1e | |
parent | 76a1f9503c9af3e178c43a1fdc404487c0700bda (diff) |
sdm660-common: Move to *.prop
Change-Id: I66b834b2df9f652ef3173815270d7aa0a85a9e14
-rw-r--r-- | BoardConfigCommon.mk | 4 | ||||
-rw-r--r-- | odm.prop | 2 | ||||
-rw-r--r-- | product.prop | 3 | ||||
-rw-r--r-- | properties.mk | 201 | ||||
-rw-r--r-- | sdm660.mk | 9 | ||||
-rw-r--r-- | system.prop | 26 | ||||
-rw-r--r-- | vendor.prop | 156 |
7 files changed, 191 insertions, 210 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 4a5def0..bf50ab5 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -136,6 +136,10 @@ TARGET_USES_INTERACTION_BOOST := true # Properties BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true +TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop +TARGET_PRODUCT_PROP += $(COMMON_PATH)/product.prop +TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop +TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop # SELinux include device/qcom/sepolicy-legacy-um/SEPolicy.mk diff --git a/odm.prop b/odm.prop new file mode 100644 index 0000000..3e7abe3 --- /dev/null +++ b/odm.prop @@ -0,0 +1,2 @@ +# Fwk detect +ro.vendor.qti.va_odm.support=1 diff --git a/product.prop b/product.prop new file mode 100644 index 0000000..b12665d --- /dev/null +++ b/product.prop @@ -0,0 +1,3 @@ +# Charger +ro.charger.disable_init_blank=true +ro.charger.enable_suspend=true diff --git a/properties.mk b/properties.mk deleted file mode 100644 index ecdad15..0000000 --- a/properties.mk +++ /dev/null @@ -1,201 +0,0 @@ -# Audio -PRODUCT_PROPERTY_OVERRIDES += \ - af.fast_track_multiplier=1 \ - vendor.audio_hal.period_size=240 \ - ro.vendor.audio.sdk.fluencetype=fluence \ - persist.vendor.audio.fluence.voicecall=true \ - persist.vendor.audio.fluence.voicerec=false \ - persist.vendor.audio.fluence.speaker=true \ - vendor.audio.tunnel.encode=false \ - persist.vendor.audio.ras.enabled=false \ - vendor.audio.offload.buffer.size.kb=64 \ - audio.offload.min.duration.secs=30 \ - audio.offload.video=true \ - vendor.audio.offload.track.enable=true \ - audio.deep_buffer.media=true \ - vendor.voice.path.for.pcm.voip=true \ - vendor.audio.offload.multiaac.enable=true \ - vendor.audio.dolby.ds2.enabled=false \ - vendor.audio.dolby.ds2.hardbypass=false \ - vendor.audio.offload.multiple.enabled=false \ - vendor.audio.offload.passthrough=false \ - ro.vendor.audio.sdk.ssr=false \ - vendor.audio.offload.gapless.enabled=true \ - vendor.audio.safx.pbe.enabled=false \ - vendor.audio.parser.ip.buffer.size=262144 \ - vendor.audio.flac.sw.decoder.24bit=true \ - vendor.audio.use.sw.alac.decoder=true \ - vendor.audio.use.sw.ape.decoder=true \ - vendor.audio.hw.aac.encoder=true \ - audio.sys.noisy.broadcast.delay=600 \ - audio.sys.offload.pstimeout.secs=3 \ - persist.vendor.audio.hifi.int_codec=true \ - ro.af.client_heap_size_kbyte=7168 \ - vendor.audio.volume.headset.gain.depcal=true \ - persist.vendor.bt.aac_frm_ctl.enabled=true \ - vendor.audio.spkr_prot.tx.sampling_rate=48000 - -PRODUCT_PROPERTY_OVERRIDES += \ - vendor.audio.feature.afe_proxy.enable=true \ - vendor.audio.feature.anc_headset.enable=true \ - vendor.audio.feature.battery_listener.enable=false \ - vendor.audio.feature.compr_cap.enable=false \ - vendor.audio.feature.compress_in.enable=false \ - vendor.audio.feature.compress_meta_data.enable=true \ - vendor.audio.feature.compr_voip.enable=true \ - vendor.audio.feature.concurrent_capture.enable=false \ - vendor.audio.feature.custom_stereo.enable=true \ - vendor.audio.feature.display_port.enable=true \ - vendor.audio.feature.dsm_feedback.enable=false \ - vendor.audio.feature.dynamic_ecns.enable=false \ - vendor.audio.feature.ext_hw_plugin.enable=false \ - vendor.audio.feature.external_dsp.enable=false \ - vendor.audio.feature.external_speaker.enable=false \ - vendor.audio.feature.external_speaker_tfa.enable=false \ - vendor.audio.feature.fluence.enable=true \ - vendor.audio.feature.fm.enable=true \ - vendor.audio.feature.hdmi_edid.enable=true \ - vendor.audio.feature.hdmi_passthrough.enable=true \ - vendor.audio.feature.hfp.enable=true \ - vendor.audio.feature.hifi_audio.enable=true \ - vendor.audio.feature.hwdep_cal.enable=false \ - vendor.audio.feature.incall_music.enable=false \ - vendor.audio.feature.multi_voice_session.enable=true \ - vendor.audio.feature.keep_alive.enable=false \ - vendor.audio.feature.kpi_optimize.enable=true \ - vendor.audio.feature.maxx_audio.enable=false \ - vendor.audio.feature.ras.enable=true \ - vendor.audio.feature.record_play_concurency.enable=false \ - vendor.audio.feature.src_trkn.enable=true \ - vendor.audio.feature.spkr_prot.enable=true \ - vendor.audio.feature.ssrec.enable=true \ - vendor.audio.feature.usb_offload.enable=true \ - vendor.audio.feature.usb_offload_burst_mode.enable=false \ - vendor.audio.feature.usb_offload_sidetone_volume.enable=false \ - vendor.audio.feature.deepbuffer_as_primary.enable=false \ - vendor.audio.feature.vbat.enable=true \ - vendor.audio.feature.wsa.enable=false \ - vendor.audio.feature.audiozoom.enable=false \ - vendor.audio.feature.snd_mon.enable=true - -PRODUCT_PROPERTY_OVERRIDES += \ - ro.config.media_vol_steps=25 \ - ro.config.vc_call_vol_steps=7 \ - vendor.audio.adm.buffering.ms=6 - -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - persist.bluetooth.a2dp_offload.disabled=false \ - ro.bluetooth.a2dp_offload.supported=true \ - vendor.audio.feature.a2dp_offload.enable=true - -# Bluetooth -PRODUCT_PROPERTY_OVERRIDES += \ - vendor.qcom.bluetooth.soc=cherokee - -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - persist.vendor.bt.a2dp.aac_whitelist=false \ - persist.vendor.qcom.bluetooth.enable.splita2dp=true \ - persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxhd-aac-ldac \ - ro.bluetooth.library_name=libbluetooth_qti.so \ - vendor.bluetooth.soc=cherokee - -# Camera -PRODUCT_PROPERTY_OVERRIDES += \ - persist.vendor.camera.preview.ubwc=0 \ - vendor.video.disable.ubwc=1 \ - vidc.enc.dcvs.extra-buff-count=2 - -# Charger -PRODUCT_PRODUCT_PROPERTIES += \ - ro.charger.disable_init_blank=true \ - ro.charger.enable_suspend=true - -# CNE -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - persist.vendor.cne.feature=1 - -# Display -PRODUCT_PROPERTY_OVERRIDES += \ - debug.sf.early_app_phase_offset_ns=1500000 \ - debug.sf.early_gl_app_phase_offset_ns=15000000 \ - debug.sf.early_gl_phase_offset_ns=3000000 \ - debug.sf.early_phase_offset_ns=1500000 \ - debug.sf.enable_gl_backpressure=1 \ - debug.sf.enable_hwc_vds=1 \ - debug.sf.hw=1 \ - debug.sf.latch_unsignaled=1 \ - ro.opengles.version=196610 \ - ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \ - ro.surface_flinger.max_virtual_display_dimension=4096 \ - ro.surface_flinger.protected_contents=true \ - ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \ - ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000 \ - ro.vendor.display.cabl=0 \ - vendor.display.disable_skip_validate=1 \ - vendor.display.enable_default_color_mode=1 \ - vendor.gralloc.enable_fb_ubwc=1 - -# FRP -PRODUCT_PROPERTY_OVERRIDES += \ - ro.frp.pst=/dev/block/bootdevice/by-name/frp - -# IMS -PRODUCT_PROPERTY_OVERRIDES += \ - persist.dbg.volte_avail_ovr=1 \ - persist.dbg.vt_avail_ovr=1 \ - persist.dbg.wfc_avail_ovr=1 - -# Media -PRODUCT_PROPERTY_OVERRIDES += \ - debug.stagefright.omx_default_rank.sw-audio=1 \ - debug.stagefright.omx_default_rank=0 \ - media.stagefright.thumbnail.prefer_hw_codecs=true \ - vendor.vidc.dec.enable.downscalar=1 \ - vendor.vidc.enc.disable_bframes=1 \ - vendor.vidc.enc.disable.pq=true - -# Netflix -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - ro.netflix.bsp_rev=Q660-13149-1 - -# Perf -PRODUCT_PROPERTY_OVERRIDES += \ - ro.vendor.extension_library=libqti-perfd-client.so - -# Radio -PRODUCT_PROPERTY_OVERRIDES += \ - persist.radio.multisim.config=dsds \ - persist.vendor.data.iwlan.enable=true \ - persist.vendor.data.mode=concurrent \ - persist.vendor.radio.apm_sim_not_pwdn=1 \ - persist.vendor.radio.atfwd.start=true \ - persist.vendor.radio.custom_ecc=1 \ - persist.vendor.radio.data_con_rprt=1 \ - persist.vendor.radio.rat_on=combine \ - persist.vendor.radio.sib16_support=1 \ - ro.telephony.default_network=22,22 \ - ro.vendor.use_data_netmgrd=true - -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - DEVICE_PROVISIONED=1 \ - persist.sys.fflag.override.settings_network_and_internet_v2=true \ - ril.subscription.types=NV,RUIM \ - telephony.lteOnCdmaDevice=1 - -# Sensor -PRODUCT_PROPERTY_OVERRIDES += \ - ro.vendor.sdk.sensors.gestures=false \ - ro.vendor.sensors.cmc=false \ - ro.vendor.sensors.facing=false \ - ro.vendor.sensors.dev_ori=true \ - ro.vendor.sensors.pmd=true \ - ro.vendor.sensors.sta_detect=true \ - ro.vendor.sensors.mot_detect=true - -# Time -PRODUCT_PROPERTY_OVERRIDES += \ - persist.vendor.delta_time.enable=true - -# WFD -PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ - persist.debug.wfd.enable=0 @@ -21,9 +21,6 @@ # definition file). # -# Inherit properties -$(call inherit-product, $(LOCAL_PATH)/properties.mk) - # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay \ @@ -217,12 +214,6 @@ PRODUCT_PACKAGES += \ libqti_vndfwk_detect \ libqti_vndfwk_detect.vendor -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - ro.vendor.qti.va_aosp.support=1 - -PRODUCT_ODM_PROPERTIES += \ - ro.vendor.qti.va_odm.support=1 - # GPS / Location PRODUCT_PACKAGES += \ android.hardware.gnss@2.0-impl-qti \ diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..1258453 --- /dev/null +++ b/system.prop @@ -0,0 +1,26 @@ +# Audio +persist.bluetooth.a2dp_offload.disabled=false +ro.bluetooth.a2dp_offload.supported=true +vendor.audio.feature.a2dp_offload.enable=true + +# Bluetooth +persist.vendor.bt.a2dp.aac_whitelist=false +persist.vendor.qcom.bluetooth.enable.splita2dp=true +persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxhd-aac-ldac +ro.bluetooth.library_name=libbluetooth_qti.so +vendor.bluetooth.soc=cherokee + +# CNE +persist.vendor.cne.feature=1 + +# Netflix +ro.netflix.bsp_rev=Q660-13149-1 + +# Radio +DEVICE_PROVISIONED=1 +persist.sys.fflag.override.settings_network_and_internet_v2=true +ril.subscription.types=NV,RUIM +telephony.lteOnCdmaDevice=1 + +# WFD +persist.debug.wfd.enable=0 diff --git a/vendor.prop b/vendor.prop new file mode 100644 index 0000000..df1a37f --- /dev/null +++ b/vendor.prop @@ -0,0 +1,156 @@ +# Audio +af.fast_track_multiplier=1 +vendor.audio_hal.period_size=240 +ro.vendor.audio.sdk.fluencetype=fluence +persist.vendor.audio.fluence.voicecall=true +persist.vendor.audio.fluence.voicerec=false +persist.vendor.audio.fluence.speaker=true +vendor.audio.tunnel.encode=false +persist.vendor.audio.ras.enabled=false +vendor.audio.offload.buffer.size.kb=64 +audio.offload.min.duration.secs=30 +audio.offload.video=true +vendor.audio.offload.track.enable=true +audio.deep_buffer.media=true +vendor.voice.path.for.pcm.voip=true +vendor.audio.offload.multiaac.enable=true +vendor.audio.dolby.ds2.enabled=false +vendor.audio.dolby.ds2.hardbypass=false +vendor.audio.offload.multiple.enabled=false +vendor.audio.offload.passthrough=false +ro.vendor.audio.sdk.ssr=false +vendor.audio.offload.gapless.enabled=true +vendor.audio.safx.pbe.enabled=false +vendor.audio.parser.ip.buffer.size=262144 +vendor.audio.flac.sw.decoder.24bit=true +vendor.audio.use.sw.alac.decoder=true +vendor.audio.use.sw.ape.decoder=true +vendor.audio.hw.aac.encoder=true +audio.sys.noisy.broadcast.delay=600 +audio.sys.offload.pstimeout.secs=3 +persist.vendor.audio.hifi.int_codec=true +ro.af.client_heap_size_kbyte=7168 +vendor.audio.volume.headset.gain.depcal=true +persist.vendor.bt.aac_frm_ctl.enabled=true +vendor.audio.spkr_prot.tx.sampling_rate=48000 + +vendor.audio.feature.afe_proxy.enable=true +vendor.audio.feature.anc_headset.enable=true +vendor.audio.feature.battery_listener.enable=false +vendor.audio.feature.compr_cap.enable=false +vendor.audio.feature.compress_in.enable=false +vendor.audio.feature.compress_meta_data.enable=true +vendor.audio.feature.compr_voip.enable=true +vendor.audio.feature.concurrent_capture.enable=false +vendor.audio.feature.custom_stereo.enable=true +vendor.audio.feature.display_port.enable=true +vendor.audio.feature.dsm_feedback.enable=false +vendor.audio.feature.dynamic_ecns.enable=false +vendor.audio.feature.ext_hw_plugin.enable=false +vendor.audio.feature.external_dsp.enable=false +vendor.audio.feature.external_speaker.enable=false +vendor.audio.feature.external_speaker_tfa.enable=false +vendor.audio.feature.fluence.enable=true +vendor.audio.feature.fm.enable=true +vendor.audio.feature.hdmi_edid.enable=true +vendor.audio.feature.hdmi_passthrough.enable=true +vendor.audio.feature.hfp.enable=true +vendor.audio.feature.hifi_audio.enable=true +vendor.audio.feature.hwdep_cal.enable=false +vendor.audio.feature.incall_music.enable=false +vendor.audio.feature.multi_voice_session.enable=true +vendor.audio.feature.keep_alive.enable=false +vendor.audio.feature.kpi_optimize.enable=true +vendor.audio.feature.maxx_audio.enable=false +vendor.audio.feature.ras.enable=true +vendor.audio.feature.record_play_concurency.enable=false +vendor.audio.feature.src_trkn.enable=true +vendor.audio.feature.spkr_prot.enable=true +vendor.audio.feature.ssrec.enable=true +vendor.audio.feature.usb_offload.enable=true +vendor.audio.feature.usb_offload_burst_mode.enable=false +vendor.audio.feature.usb_offload_sidetone_volume.enable=false +vendor.audio.feature.deepbuffer_as_primary.enable=false +vendor.audio.feature.vbat.enable=true +vendor.audio.feature.wsa.enable=false +vendor.audio.feature.audiozoom.enable=false +vendor.audio.feature.snd_mon.enable=true + +ro.config.media_vol_steps=25 +ro.config.vc_call_vol_steps=7 +vendor.audio.adm.buffering.ms=6 + +# Bluetooth +vendor.qcom.bluetooth.soc=cherokee + +# Camera +persist.vendor.camera.preview.ubwc=0 +vendor.video.disable.ubwc=1 +vidc.enc.dcvs.extra-buff-count=2 + +# Display +debug.sf.early_app_phase_offset_ns=1500000 +debug.sf.early_gl_app_phase_offset_ns=15000000 +debug.sf.early_gl_phase_offset_ns=3000000 +debug.sf.early_phase_offset_ns=1500000 +debug.sf.enable_gl_backpressure=1 +debug.sf.enable_hwc_vds=1 +debug.sf.hw=1 +debug.sf.latch_unsignaled=1 +ro.opengles.version=196610 +ro.surface_flinger.force_hwc_copy_for_virtual_displays=true +ro.surface_flinger.max_virtual_display_dimension=4096 +ro.surface_flinger.protected_contents=true +ro.surface_flinger.vsync_event_phase_offset_ns=2000000 +ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000 +ro.vendor.display.cabl=0 +vendor.display.disable_skip_validate=1 +vendor.display.enable_default_color_mode=1 +vendor.gralloc.enable_fb_ubwc=1 + +# FRP +ro.frp.pst=/dev/block/bootdevice/by-name/frp + +# Fwk detect +ro.vendor.qti.va_aosp.support=1 + +# IMS +persist.dbg.volte_avail_ovr=1 +persist.dbg.vt_avail_ovr=1 +persist.dbg.wfc_avail_ovr=1 + +# Media +debug.stagefright.omx_default_rank.sw-audio=1 +debug.stagefright.omx_default_rank=0 +media.stagefright.thumbnail.prefer_hw_codecs=true +vendor.vidc.dec.enable.downscalar=1 +vendor.vidc.enc.disable_bframes=1 +vendor.vidc.enc.disable.pq=true + +# Perf +ro.vendor.extension_library=libqti-perfd-client.so + +# Radio +persist.radio.multisim.config=dsds +persist.vendor.data.iwlan.enable=true +persist.vendor.data.mode=concurrent +persist.vendor.radio.apm_sim_not_pwdn=1 +persist.vendor.radio.atfwd.start=true +persist.vendor.radio.custom_ecc=1 +persist.vendor.radio.data_con_rprt=1 +persist.vendor.radio.rat_on=combine +persist.vendor.radio.sib16_support=1 +ro.telephony.default_network=22,22 +ro.vendor.use_data_netmgrd=true + +# Sensor +ro.vendor.sdk.sensors.gestures=false +ro.vendor.sensors.cmc=false +ro.vendor.sensors.facing=false +ro.vendor.sensors.dev_ori=true +ro.vendor.sensors.pmd=true +ro.vendor.sensors.sta_detect=true +ro.vendor.sensors.mot_detect=true + +# Time +persist.vendor.delta_time.enable=true |