Commit Graph

1165 Commits

Author SHA1 Message Date
donjohanliebert
317beb822d Revert "sm6150-common: Redefine bluetooth a2dp offload capabilities"
This reverts commit 535ef6ad80.
* we do need this

Change-Id: If8c7f1024b41e324c084a523abb99c8bfaad09ac
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
16cbf50605 sm6150-common: Silence some spammy logging
HWC and cit sensor logspam is so intense it bumps up logd's idle CPU
usage up to over 3%. With this change, logs are much cleaner and logd
idle CPU usage is reduced to under 1%, while still allowing error logs
to pass through.
- Do this only in user/debug builds (except eng).
- Add wifi and cnss too while we're at it, they can get noisy at times.

Change-Id: I3322e333f9f18ad73e3774d322474e3a779eb7ed
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
a7f71f27da sm6150-common: overlay: Enable video pause workaround for video calling
Change-Id: I3a2f9a0ef47fca9cf296f1c507e2f774cac858f5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
IMMANUEL44
c6439ddaee sm6150-common: properties: Enable Camera2API for legacy targets
Set persist.vendor.qti.telephony.vt_cam_interface=2 for
legacy targets to enable Camera2 API usage in VT telephony.

Change-Id: I571e543bb8ba8b3fb3f29e11c8f0c7cc912e246d
Signed-off-by: IMMANUEL44 <immanuelr44@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
AngeloGioacchino Del Regno
1af4936aea sm6150-common: properties: Enable Video Distribution Profile (VDP) on IMS
Enable support for the Video Distribution Profile (VDP) on the
IP Multimedia Subsystem (IMS) to enable operator video-calling
functionality on 4G IMS if the carrier supports it.

Change-Id: Iba23e5fb308a7b7868e910bc17634800c10e0a13
Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
f0df3b7555 sm6150-common: properties: Kill off IMS logspam with fire
Change-Id: Iab5bb0c4dec64262d3e636b20f5ec828d933d570
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Tim Zimmermann
4af6b8157c sm6150-common: overlay: Set LTE+ threshold bandwidth to 0
* so LTE+ icon will show whenever it's available

Change-Id: I45a569fa52d19f4b9af370d7a18c4198e29febc6
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

Change-Id: Id41fbe7260557a2c596c090ba4ac4c1d90993d06
Signed-off-by: Tim Zimmermann <tim@linux4.de>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Vishalcj17
788b1411a9 sm6150-common: overlay: Globally enable LTE+ icon
Change-Id: Ifcad30636c0ee76a1fa4830bc0c8143d2b7be879
Signed-off-by: Vishalcj17 <vishalcj@aospa.co>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Terminator_J
2171a412d8 sm6150-common: rootdir: Fix the battery drain due to statsd
* Fix battery drain after 100h of uptime

Change-Id: Icb0dd42ee2bf64386f4d7095b8f922905129ffbe
Signed-off-by: Terminator_J <terminator_j@hotbutteredmonkey.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
New Author Name
aaa58f6fd2 sm6150-common: properties: Drop ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
fixes lag in pip mode

Change-Id: I32775273b7c45a7ba3163cdbdeb2587416adb9a5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
clarencelol
4fabc12929 sm6150-common: properties: Optimize ram management
Change-Id: I11bae6b03f594baf302ec0a8e92a768ac3000048
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Paul Keith
29de9e0437 sm6150-common: properties: Enable QCRIL radio power saving
Change-Id: I339d0fbec60b554c6b7930162f5a917e052fc5a1
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Subratam6296
c59edc00cf sm6150-common: overlay: Add overlay to improve signal reception
Change-Id: I469729c6c084fd94c0a1112aa46ecc2990b1839b
Signed-off-by: Subratam6296 <padraramesh420@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
etylix
46331bc62d sm6150-common: properties: Add radio props to improve battery life
Changed “ro.ril.disable.power.collapse” value to zero.
Seems to be a debate on what value is more effective but after more reading and testing found that a value of “0” shows more improvement.
Have also added “ro.mot.eri.losalert.delay=1000 “ that helps smooth out disconnects and reconnects, saving battery.
Changed “ro.ril.disable.power.collapse” value to zero.

Co-authored by: KARTHIK LAL <karthik.lal558@gmail.com>
Change-Id: Ic86e75a637f67b753bbe4edbf9d081303473ae77
Signed-off-by: etylix <me@etylix.me>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Guidix
9509686eb8 sm6150-common: properties: Enable support for kernel idle timer
- Kernel idle time enabled, as it supports better power management

Change-Id: I2736b5ebf0c97498a1a2854f747547d84757cd9e
Signed-off-by: Guidix <guidixm@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Akash Srivastava
85f3cb82d4 sm6150-common: Build some missing LDAC libs
* Bluetooth libs look for them

Change-Id: I72ac9c1edf6b05947034908339dbe6a19b8088c0
Signed-off-by: Akash Srivastava <akashniki@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
DarkJoker360
8681c28d62 sm6150-common: properties: Enable LTE_CA workaround
Change-Id: Id877d9beb497851427a92497f68e28aaab9a88c1
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Cyber Knight
b92e51bfed sm6150-common: overlay: Disable QS media player turbulence effect by default
- This turbulence effect causes tremendous lags on devices with a midrange/low-end GPU as it requires expensive rendering.
- Hence, disable it by default to alleviate the situation.

Change-Id: I1a446adb36a2a9834b7733b74d8057e38425f8a6
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Alex Naidis
04fcb9a612 sm6150-common: wifi: Smarter decisions on whether to use a 2 or 5Ghz AP
Implement a smarter system on whether to connect
to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Alan Chen
ba687d437c sm6150-common: wifi: Enable Optimized Power Management
gEnablePowerSaveOffload was renamed to gOptimizedPowerManagement

[1]: 10989ba376
[2]: 9ef1447db3

Change-Id: Ia6615a7f8d9d83c5e5382d2149f972db08d9058b
Signed-off-by: Alan Chen <alache@codeaurora.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Juhyung Park
ce40181bf4 sm6150-common: wifi: Disable FW TWT
Firmware TWT feature is causing latency spikes, more noticeable on some
select APs.

Specifically, Qualcomm-based APs with QCN9024 prominently cause latency
spikes exceeding multiple seconds frequently from many client generations,
including kona, lahaina and waipio.

Many vendors are disabling FW TWT by default, follow it and disable FW TWT
for faster Wi-Fi experience.

Note that this does not disable TWT altogether and the host software will
be handling it instead.

Change-Id: Ib8b1f93ea051e27626381268aab031b461183055
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
justinweng
403af6b5ba sm6150-common: properties: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback
Change-Id: If8eb1d3041161979063bf852e2b0b397e87e7c05

Change-Id: Idff8ed8f4d0e7032054eebea45a62f8a7c5db50c
Signed-off-by: justinweng <justinweng@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
5c358b97e8 sm6150-common: properties: Defer refresh rate changes when screen is off
Some devices with video mode panels experience refresh rate mismatches when the screen is turned off. Specifically:
- The scheduler sets the refresh rate to 120 Hz after the screen turns off at 60 Hz (VRR idle).
- However, the HWC ignores this change, resulting in SurfaceFlinger (SF) incorrectly assuming the device is at 120 Hz when the display is turned back on.
- This causes a mismatch, as HWC continues rendering at 60 Hz, leading to inconsistencies.

To enable this behavior, set the following property:
- `debug.sf.defer_refresh_rate_when_off=1`

Change-Id: I46fd9e6b983138c1f625d52a65451eb04ce42820
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Haran Govindan
efe96ebc2a sm6150-common: rootdir: Give proper permissions for /dev/diag
* This gives proper permission to /dev/diag node so that diag driver can load successfully

Before in log:
Diag_Lib:  Diag_LSM_Init: Failed to open handle to diag driver, error = 13

After in log:
Diag_Lib: qpLogDiagInit <== result : 1
Diag_Lib: QMID : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled
0, gIsIMSLogsDisabled 0

Change-Id: Id85a0424647fb1e855eaa4d417e7ef37f4ee8878
Signed-off-by: Haran Govindan <32816717+YourDeathWish@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Michael W
75dbb50f17 sm6150-common: rootdir: Give proper permissions for /dev/diag
* This gives proper permission to /dev/diag node so that diag driver
  can load successfully

* Logs spam with error '-13' which basically translates to access denied/invalid permission.

* Fix this by giving system read and write access.

Change-Id: I743de1ca77c5ddedd6905117e4d35cdcfb1541ab
Signed-off-by: Michael W <baddaemon87@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
johnmart19
0b1d17e82d sm6150-common: audio: Don't advertise vorbis offloading support
Change-Id: I2049e1b38010fc02bbb7f0c7a032c7fbb411e39b
Signed-off-by: johnmart19 <johnivan19999@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
officialputuid
5897ea66d0 sm6150-common: properties: Remove Force triple frame buffers
* Causing some apps laggy & UI performance regression

Change-Id: I452b2d5f5293682a6065506359e359231fabeefd
Co-Authored-By: Reinazhard <reinazhard@gmail.com>
Co-Authored-By: Ratoriku <a1063021545@gmail.com>
Signed-off-by: officialputuid <officialputuid@hack.id>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
ghostrider-reborn
9940e3df87 sm6150-common: properties: Enable frame pacing for smoother visual performance
- Enabled `vendor.perf.framepacing.enable` to improve visual smoothness by regulating frame timing. This enhancement ensures consistent frame delivery, reducing stuttering and enhancing overall visual quality, particularly in graphics-intensive applications such as games.

Change-Id: I1a493fe97aa7dbcd757ca2336b683d3b8817cd2f
Signed-off-by: ghostrider-reborn <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
GeoPD
16c211fb88 sm6150-common: properties: Disable camera perflock
* Seems to improve the HDR processing in Gcam a bit fast
and we don't have any boostframework binaries either

Change-Id: If0b974fd10ce8d09bc8eb91669fa1ab06ac2e546
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Richard Raya
6f274fc2f3 sm6150-common: properties: Import suspend properties from gs201
053f552fae/device.mk (1114)

Change-Id: I3ad335c987abfd3e081342a0117567dcaef1c21f
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Michael Bestas
9426afc79d sm6150-common: Remove deprecated config_mobile_tcp_buffers/networkAttributes
Change-Id: Ieda947e283cde11cf74a01dc1b438e1deeb902c9
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Ethan Chen
e3a11dd7b0 sm6150-common: Remove wigig leftover
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Cassie
c7355c5c9e sm6150-common: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Cosmin Tanislav
064eea7f58 sm6150-common: Remove unused config_speed_up_audio_on_mt_calls
Change-Id: I2860ab34e0252418236a4d90623b4fbfc6ad994a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Alexander Koskovich
52a7855c2e sm6150-common: Enable concurrent restricted connectivity
Change-Id: I4258a337503e9dc9dea8e35b326a78fbec86bb88
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Danny Lin
722845628f sm6150-common: Enable USB and skin temperature warnings
Change-Id: I951f60579a4b7fa2dcc270b5acd433ad1ecb083c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Yan Yan
f3bdcb730e sm6150-common: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
4a72844b69 sm6150-common: sepolicy: Label props to address denials
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
db40a6c29d sm6150-common: sepolicy: Do not audit surfaceflinger denials
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
chrisl7
deadfd1b61 sm6150-common: sepolicy: Allow vendor_hal_usb_qti to acess vendor_sysfs_usb_controller
Change-Id: Ia6b9546fb951b4f2cbe80c2b67848c932f8f9160
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
LuK1337
6460f75bb9 sm6150-common: init: Add formattable flag for /data fstab entry
Otherwise it results in broken data wipe in recovery.

Change-Id: I42bde849dc872f1d4d282c8bda3a87703c0eeebe
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
c4338f2280 sm6150-common: rootdir: Set up read ahead values properly
* QCOM sets up for dm-0, dm-1 and dm-2 on boot via init.qcom.rc and for sda* via post boot script.
* Also set watermark_scale_factor and watermark_boost_factor basis QCOM recommendation.
* Reduce swappiness to 60.
* Modify configure_read_ahead_kb_values to set nr_requests value.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
firebird11
e377ac3bc7 sm6150-common: Add back Saturated color
Change-Id: I34b1447dcebf59b6f468e7a671516c4ae86067c7
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
c4a6a68889 sm6150-common: overlay: Disable 5G toggle
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
4164dcec15 sm6150-common: configs: Update wcnss config from sm8150
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
d7833b9429 sm6150-common: overlay: Remove 5G specific config
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
7fb18748e0 sm6150-common: Use jemalloc to fix MIUI camera
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
iovxw
c911863768 sm6150-common: audio: Remove FM Tuner from input devices
* This fixes google voice recorder.

Change-Id: Ibe1fb52ebee738b26e73ba9b45915a0317113de1
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
markakash
9ec241ece2 sm6150-common: audio: Add wired headset mic source for voip_tx
* Fix mic issues in apps like WhatsApp

Change-Id: I2b178a7284038f7ed22449576b7f050d6c9d66bd
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
3a08fdd70f sm6150-common: Move wide display prop to system.prop
* Vendor partition is RO and prop cannot be changed there to
  disable wide color gamut.

Change-Id: Ie5d90bc608f428c2be11d5159aaec98a6cdfbd03
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00