diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index fa4ddae..af0852e 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -166,7 +166,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH) ENABLE_VENDOR_RIL_SERVICE := true # Security patch level -VENDOR_SECURITY_PATCH := 2021-09-01 +VENDOR_SECURITY_PATCH := 2022-03-01 # Sepolicy include device/qcom/sepolicy_vndr/SEPolicy.mk diff --git a/audio/audio_io_policy.conf b/audio/audio_io_policy.conf index 3dbd1c5..09050e7 100644 --- a/audio/audio_io_policy.conf +++ b/audio/audio_io_policy.conf @@ -76,7 +76,7 @@ outputs { } compress_offload_24 { flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING - formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO + formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO sampling_rates 44100|48000|88200|96000|176400|192000 bit_width 24 app_type 69940 diff --git a/configs/public.libraries.txt b/configs/public.libraries.txt index 57824a1..45d3fe0 100644 --- a/configs/public.libraries.txt +++ b/configs/public.libraries.txt @@ -34,5 +34,4 @@ libMIAIHDRhvx_interface.so 64 libmibokeh_712.so 64 libSNPE.so 64 libPlatformValidatorShared.so 64 -libc++_shared.so 64 libsnpe_dsp_domains_v2.so 64 diff --git a/lito.mk b/lito.mk index d033e2e..8e9771a 100644 --- a/lito.mk +++ b/lito.mk @@ -170,7 +170,9 @@ PRODUCT_PACKAGES += \ android.hardware.memtrack@1.0-service \ libdisplayconfig.qti \ libdisplayconfig.qti.vendor \ + libdisplayconfig.system.qti \ libqdMetaData \ + libqdMetaData.system \ libsdmcore \ libsdmutils \ libtinyxml \ diff --git a/manifest.xml b/manifest.xml index 7cd8b84..cdbe682 100644 --- a/manifest.xml +++ b/manifest.xml @@ -24,23 +24,11 @@ hwbinder @2.4::ICameraProvider/legacy/0 - - android.hardware.drm - hwbinder - @1.3::ICryptoFactory/wfdhdcp - @1.3::IDrmFactory/wfdhdcp - android.hardware.gatekeeper hwbinder @1.0::IGatekeeper/default - - android.hardware.gnss - hwbinder - @1.0::IGnss/gnss_vendor - @1.1::IGnss/default - android.hardware.ir hwbinder @@ -136,11 +124,6 @@ hwbinder @1.1::IEsePowerManager/default - - vendor.qti.gnss - hwbinder - @1.2::ILocHidlGnss/gnss_vendor - vendor.qti.hardware.alarm hwbinder diff --git a/proprietary-files.txt b/proprietary-files.txt index 0552def..c3982bd 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from monet 11 RKQ1.200826.002 V12.5.5.0.RJIEUXM release-keys +# All unpinned blobs below are extracted from monet 12 SKQ1.211006.001 V13.0.2.0.SJIEUXM release-keys # ADSP vendor/bin/adsprpcd @@ -15,6 +15,7 @@ vendor/lib/libadiertac.so vendor/lib/libadm.so vendor/lib/libaudcal.so vendor/lib/libqtigef.so +vendor/lib/libresampler.so vendor/lib/libssrec.so # Audio FX modules @@ -496,12 +497,10 @@ vendor/lib64/unnhal-acc-hta.so vendor/lib64/unnhal-acc-hvx.so # NFC -vendor/bin/hw/vendor.nxp.hardware.nfc@2.0-service -vendor/etc/init/vendor.nxp.hardware.nfc@2.0-service.rc -vendor/etc/permissions/com.nxp.mifare.xml vendor/etc/libnfc-nci.conf vendor/etc/libnfc-nxp.conf vendor/etc/libnfc-nxp_RF.conf +vendor/etc/libnfc-nxp-pnscr.conf vendor/lib/libsn100u_fw.so vendor/lib64/nfc_nci.nqx.default.hw.so @@ -575,7 +574,6 @@ system_ext/etc/permissions/qcrilhook.xml system_ext/etc/permissions/qti_libpermissions.xml system_ext/etc/permissions/qti_permissions.xml system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml -system_ext/etc/permissions/telephonyservice.xml system_ext/framework/qcrilhook.jar -system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk -vendor/app/IWlanService/IWlanService.apk @@ -751,9 +749,11 @@ vendor/etc/wifi/aoa_cldb_swl14.bin # WiFi Display -framework/WfdCommon.jar system_ext/bin/wfdservice +system_ext/bin/wfdservice64 system_ext/etc/init/wfdservice.rc system_ext/etc/permissions/wfd-system-ext-privapp-permissions-qti.xml system_ext/etc/seccomp_policy/wfdservice.policy +system_ext/etc/seccomp_policy/wfdservice64.policy system_ext/etc/wfdconfigsink.xml system_ext/lib/com.qualcomm.qti.wifidisplayhal@1.0.so system_ext/lib/libmmrtpdecoder.so @@ -792,14 +792,8 @@ system_ext/lib64/libwfduibcsinkinterface.so system_ext/lib64/libwfduibcsrc.so system_ext/lib64/libwfduibcsrcinterface.so -system_ext/priv-app/WfdService/WfdService.apk -vendor/bin/wfdhdcphalservice -vendor/bin/wfdvndservice vendor/bin/wifidisplayhalservice -vendor/etc/init/android.hardware.drm@1.1-service.wfdhdcp.rc vendor/etc/init/com.qualcomm.qti.wifidisplayhal@1.0-service.rc -vendor/etc/init/wfdvndservice.rc -vendor/etc/seccomp_policy/wfdhdcphalservice.policy -vendor/etc/seccomp_policy/wfdvndservice.policy vendor/etc/seccomp_policy/wifidisplayhalservice.policy vendor/etc/wfdconfig.xml vendor/lib/libFileMux_proprietary.so diff --git a/rootdir/bin/init.class_main.sh b/rootdir/bin/init.class_main.sh index 05c3251..2a4f602 100644 --- a/rootdir/bin/init.class_main.sh +++ b/rootdir/bin/init.class_main.sh @@ -33,12 +33,12 @@ baseband=`getprop ro.baseband` sgltecsfb=`getprop persist.vendor.radio.sglte_csfb` datamode=`getprop persist.vendor.data.mode` -low_ram=`getprop ro.config.low_ram` qcrild_status=true case "$baseband" in "apq" | "sda" | "qcs" ) - setprop ro.vendor.radio.noril yes + setprop ro.vendor.radio.noril true + stop ril-daemon stop vendor.ril-daemon stop vendor.qcrild esac @@ -86,10 +86,12 @@ case "$baseband" in if [ "$qcrild_status" = "true" ]; then # Make sure both rild, qcrild are not running at same time. # This is possible with vanilla aosp system image. + stop ril-daemon stop vendor.ril-daemon start vendor.qcrild else + start ril-daemon start vendor.ril-daemon fi @@ -127,15 +129,11 @@ case "$baseband" in case "$datamode" in "tethered") start vendor.dataqti - if [ "$low_ram" != "true" ]; then - start vendor.dataadpl - fi + start vendor.dataadpl ;; "concurrent") start vendor.dataqti - if [ "$low_ram" != "true" ]; then - start vendor.dataadpl - fi + start vendor.dataadpl ;; *) ;; diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index 4351649..a4d52f8 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -928,12 +928,23 @@ function configure_memory_parameters() { ProductName=`getprop ro.product.name` low_ram=`getprop ro.config.low_ram` -if [ "$ProductName" == "msmnile" ] || [ "$ProductName" == "kona" ] || [ "$ProductName" == "sdmshrike_au" ]; then +if [ "$ProductName" == "msmnile" ] || [ "$ProductName" == "kona" ] || [ "$ProductName" == "sdmshrike_au" ] || [ "$ProductName" == "alioth" ]; then # Enable ZRAM configure_zram_parameters configure_read_ahead_kb_values echo 0 > /proc/sys/vm/page-cluster echo 100 > /proc/sys/vm/swappiness + + #add memory limit to camera cgroup + MemTotalStr=`cat /proc/meminfo | grep MemTotal` + MemTotal=${MemTotalStr:16:8} + if [ $MemTotal -gt 8388608 ]; then + let LimitSize=838860800 + else + let LimitSize=524288000 + fi + + echo $LimitSize > /dev/memcg/camera/memory.soft_limit_in_bytes else arch_type=`uname -m` @@ -1015,7 +1026,7 @@ else *) #Set PPR parameters for all other targets. echo $set_almk_ppr_adj > /sys/module/process_reclaim/parameters/min_score_adj - echo 1 > /sys/module/process_reclaim/parameters/enable_process_reclaim + echo 0 > /sys/module/process_reclaim/parameters/enable_process_reclaim echo 50 > /sys/module/process_reclaim/parameters/pressure_min echo 70 > /sys/module/process_reclaim/parameters/pressure_max echo 30 > /sys/module/process_reclaim/parameters/swap_opt_eff @@ -3437,8 +3448,11 @@ case "$target" in echo 100 > /proc/sys/kernel/sched_group_upmigrate # cpuset settings - echo 0-3 > /dev/cpuset/background/cpus - echo 0-3 > /dev/cpuset/system-background/cpus + echo 0-2 > /dev/cpuset/background/cpus + echo 0-3 > /dev/cpuset/system-background/cpus + echo 4-7 > /dev/cpuset/foreground/boost/cpus + echo 0-2,4-7 > /dev/cpuset/foreground/cpus + echo 0-7 > /dev/cpuset/top-app/cpus # configure governor settings for little cluster @@ -3860,7 +3874,7 @@ case "$target" in if [ `cat /sys/devices/soc0/revision` == "2.0" ]; then # r2.0 related changes - echo "0:1075200" > /sys/devices/system/cpu/cpu_boost/input_boost_freq + echo "0:1516800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq echo 610000 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/rtg_boost_freq echo 1075200 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq echo 1152000 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_freq @@ -4013,8 +4027,10 @@ case "$target" in # Enable conservative pl echo 1 > /proc/sys/kernel/sched_conservative_pl - echo "0:1248000" > /sys/devices/system/cpu/cpu_boost/input_boost_freq + echo 2 > /sys/devices/system/cpu/cpu_boost/sched_boost_on_input + echo "0:1516800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms + echo 1 > /sys/devices/system/cpu/cpu_boost/sched_boost_on_powerkey_input # Set Memory parameters configure_memory_parameters @@ -4090,8 +4106,11 @@ case "$target" in setprop vendor.dcvs.prop 1 # cpuset parameters - echo 0-5 > /dev/cpuset/background/cpus - echo 0-5 > /dev/cpuset/system-background/cpus + echo 0-2 > /dev/cpuset/background/cpus + echo 0-3 > /dev/cpuset/system-background/cpus + echo 4-7 > /dev/cpuset/foreground/boost/cpus + echo 0-2,4-7 > /dev/cpuset/foreground/cpus + echo 0-7 > /dev/cpuset/top-app/cpus # Turn off scheduler boost at the end echo 0 > /proc/sys/kernel/sched_boost @@ -5571,8 +5590,10 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/pl # configure input boost settings - echo "0:1324800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq + echo "0:1344000" > /sys/devices/system/cpu/cpu_boost/input_boost_freq echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms + echo "0:1804800 1:0 2:0 3:0 4:2419200 5:0 6:0 7:2841600" > /sys/devices/system/cpu/cpu_boost/powerkey_input_boost_freq + echo 400 > /sys/devices/system/cpu/cpu_boost/powerkey_input_boost_ms # configure governor settings for gold cluster echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index 4941787..d2af158 100644 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -92,6 +92,13 @@ on early-init write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0 on init + # Setup permission for Power HAL + chown system system /dev/stune/top-app/schedtune.boost + chown system system /dev/cpu_dma_latency + + chmod 0664 /dev/stune/top-app/schedtune.boost + chmod 0664 /dev/cpu_dma_latency + # Boot time cpuset and stune write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/foreground/cpus 0-7 diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8e4c366..fc02db7 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -159,6 +159,16 @@ on boot chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo chmod 0660 /sys/class/rfkill/rfkill0/device/extldo + # add for power data upload + chown system system /sys/power/sum_wakeup_time + chmod 0660 /sys/power/sum_wakeup_time + chown system system /sys/power/last_wake_time + chmod 0660 /sys/power/last_wake_time + chown system system /sys/power/wake_times + chmod 0660 /sys/power/wake_times + chown system system /sys/power/screen_off_flag + chmod 0660 /sys/power/screen_off_flag + # This location is used by QCRIL to host UNIX domain # socket files used for internal IPC within QCRIL # modules @@ -253,9 +263,6 @@ on boot on post-fs-data mkdir /data/vendor/misc 01771 system system - # Create directory used for dump collection - mkdir /data/vendor/ssrdump 0770 root system - # Create directory used by display clients mkdir /data/vendor/display 0770 system graphics @@ -409,6 +416,9 @@ on post-fs-data #Create dir for TUI mkdir /data/vendor/tui 0700 system drmrpc + #Create dir for dolby + mkdir /data/vendor/dolby 0770 media media + service nqnfcinfo /system/vendor/bin/nqnfcinfo class late_start group nfc @@ -475,6 +485,9 @@ on property:ro.vendor.iocgrp.config=1 write /dev/blkio/blkio.weight 1000 write /dev/blkio/bg/blkio.weight 100 +on property:persist.vendor.sys.per_app_memcg=1 + setprop ro.config.per_app_memcg true + on property:persist.sys.mba_boot_timeout=* write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout} @@ -512,7 +525,7 @@ on property:vendor.radio.atfwd.start=false # corefile limit on property:persist.debug.trace=1 mkdir /data/core 0777 root root - write /proc/sys/kernel/core_pattern "/data/core/%E.%p.%e" + write /proc/sys/kernel/core_pattern "/data/core/core-%e-%p" on property:vendor.media.target.version=* setprop vendor.sys.media.target.version ${vendor.media.target.version} @@ -766,7 +779,7 @@ service charger /system/bin/charger capabilities SYS_BOOT seclabel u:r:charger:s0 -service diag_mdlog_start /system/vendor/bin/diag_mdlog +service diag_mdlog_start /system/vendor/bin/diag_mdlog -u -c -n 20 class late_start user shell group system oem_2901 sdcard_rw sdcard_r media_rw @@ -780,6 +793,44 @@ service diag_mdlog_stop /system/vendor/bin/diag_mdlog -k disabled oneshot +service diag_mdlog_auto_start /vendor/bin/diag_mdlog -c -n 20 + class late_start + user system + group system oem_2901 sdcard_rw sdcard_r media_rw + disabled + oneshot + +service diag_mdlog_auto_stop /vendor/bin/diag_mdlog -k + class late_start + user system + group system oem_2901 sdcard_rw sdcard_r media_rw + disabled + oneshot + +on property:persist.vendor.radio.diag_log_trriger=modem + setprop debug.offline_log.flag ${persist.vendor.radio.diag_log_trriger} + setprop debug.offline_log.enable true + setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger} + start diag_mdlog_auto_start + +on property:persist.vendor.radio.diag_log_trriger=gps + setprop debug.offline_log.flag ${persist.vendor.radio.diag_log_trriger} + setprop debug.offline_log.enable true + setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger} + start diag_mdlog_auto_start + +on property:persist.vendor.radio.diag_log_trriger=sensor + setprop debug.offline_log.flag ${persist.vendor.radio.diag_log_trriger} + setprop debug.offline_log.enable true + setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger} + start diag_mdlog_auto_start + +on property:persist.vendor.radio.diag_log_trriger=audio + setprop debug.offline_log.flag ${persist.vendor.radio.diag_log_trriger} + setprop debug.offline_log.enable true + setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger} + start diag_mdlog_auto_start + service qlogd /system/xbin/qlogd socket qlogd stream 0662 system system class main diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 0d314fa..cd0bfd4 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -32,13 +32,6 @@ on early-init write /proc/sys/kernel/sched_boost 1 on init - # Setup permission for Power HAL - chown system system /dev/stune/top-app/schedtune.boost - chown system system /dev/cpu_dma_latency - - chmod 0664 /dev/stune/top-app/schedtune.boost - chmod 0664 /dev/cpu_dma_latency - write /dev/stune/foreground/schedtune.sched_boost_no_override 1 write /dev/stune/top-app/schedtune.sched_boost_no_override 1 write /dev/stune/schedtune.colocate 0 @@ -182,6 +175,16 @@ on charger chown system system /sys/class/leds/white/brightness write /sys/class/leds/white/brightness 255 +on property:vendor.audio.cit.spkcal.copy=true + copy /data/vendor/cit/cs35l41_cal.bin /mnt/vendor/persist/audio/cs35l41_cal.bin + copy /data/vendor/cit/cs35l41_cal_right.bin /mnt/vendor/persist/audio/cs35l41_cal_right.bin + copy /data/vendor/cit/cs35l41_cal.txt /mnt/vendor/persist/audio/cs35l41_cal.txt + copy /data/vendor/cit/cs35l41_cal_right.txt /mnt/vendor/persist/audio/cs35l41_cal_right.txt + chmod 666 /mnt/vendor/persist/audio/cs35l41_cal.bin + chmod 666 /mnt/vendor/persist/audio/cs35l41_cal_right.bin + chmod 666 /mnt/vendor/persist/audio/cs35l41_cal.txt + chmod 666 /mnt/vendor/persist/audio/cs35l41_cal_right.txt + #pd-mapper service vendor.pd_mapper /vendor/bin/pd-mapper class core diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index 4a18a0a..f643fe9 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -303,6 +303,8 @@ firmware_directories /vendor/firmware_mnt/image/ /sys/devices/platform/soc/a98000.i2c/i2c-2/2-0020/input/input* secure_touch_enable 0660 system drmrpc /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input* secure_touch 0440 system drmrpc /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/platform/soc/a94000.i2c/i2c-3/3-00* secure_touch 0440 system drmrpc +/sys/devices/platform/soc/a94000.i2c/i2c-3/3-00* secure_touch_enable 0660 system drmrpc # GNSS Device premissions /dev/gnss_sirf 0660 gps gps diff --git a/wifi/WCNSS_qcom_cfg.ini b/wifi/WCNSS_qcom_cfg.ini index e038893..5b77723 100644 --- a/wifi/WCNSS_qcom_cfg.ini +++ b/wifi/WCNSS_qcom_cfg.ini @@ -458,8 +458,9 @@ ce_service_max_rx_ind_flush=1 maxMSDUsPerRxInd=8 # Enable NUD tracking feature -# 1 - enable 0 - disable(default) -gEnableNUDTracking=1 +# 0 - disable(default),1 - trigger disconnect, 2 - trigger roaming, +# 3 - trigger roaming, but if roam fails, disconnection +gEnableNUDTracking=3 # Enable PEER UNMAP CONF SUPPORT # 1 - enable 0 - disable(default) @@ -604,6 +605,14 @@ g_sta_sap_scc_on_dfs_chan=2 gActiveUcBpfMode=0 gActiveMcBcBpfMode=1 +# Minimum RSSI value of the candidate AP to consider it as candidate for +# roaming when roam trigger is disconnection from current AP due to beacon +# miss. +candidate_min_rssi_for_beacon_miss=-76 + +#Enable max link speed +gReportMaxLinkSpeed=2 + # disable emergency roaming which now cause data stall issue. enable_disconnect_roam_offload=0 @@ -620,6 +629,8 @@ avoid_list_expiry_time=3 black_list_expiry_time=3 # Improve threshold to move the Ap from avoid to blacklist bad_bssid_counter_thresh=7 +# Increase gindoor_channel_support config set to 1. +gindoor_channel_support=1 END