Commit Graph

1183 Commits

Author SHA1 Message Date
rounak1619
04bc6b3b36 sm6150-common: properties: Fix lag while app opening and Qs lags
Change-Id: Ib90ffd7748ae7fe9d84e143c4e28a25b5d170042
Signed-off-by: rounak1619 <rounakmehata9@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
K A R T H I K
e54f0bd80d sm6150-common: sepolicy: Fix up libperfmgr crash on logs
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 1, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /sys/class/devfreq/soc:qcom,cpu6-cpu-l3-lat/min_freq with value: 1516200000, fd: 10
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 0, fd: -1

Change-Id: I55c65018f1635353ebd6082e1a45c363424f881c
Signed-off-by: K A R T H I K <karthik.lal558@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
basamaryan
9071d99bac sm6150-common: Switch to the pixel power-libperfmgr
Change-Id: Ic018a0151f7156eab2bb983e3de52cd7b8756710
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Daniel Jacob Chittoor
72abec5589 sm6150-common: rootdir: Enable suspend to RAM
* Reference - https://www.kernel.org/doc/html/v4.18/admin-guide/pm/sleep-states.html
* Improves idle drain considerably.

Change-Id: I3f2d3a8dadf2ff2e26b70839ce0bfde9002cf36e
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Andreas Schneider
459a1fbd6f sm6150-common: sepolicy: Allow SF to read firmware
Change-Id: Ied30071128943db56056e3c3ee9f6e2d5fe55f00
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
minaripenguin
be212a0677 sm6150-common: properties: Enable APK fs-verity
* for some reason, some apps automatically detects that we're rooted due to verityUtils failing to measure the apps apk fs-verity.

Change-Id: Ib716d6e375c9d1063a958523ad2de028115bcb3c
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Joey Huab
1a909e840e sm6150-common: overlay: Enable Smart Pixels
Change-Id: I502019b1807edf54764580cddf709cf020177637
Signed-off-by: Joey Huab <jhuab@edukasyon.ph>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
cff093c1e3 sm6150-common: camera: Cap max_brightness
* Our maximum brightness is 500.
* However, for safety related reason, I have capped this to 255.
* 255 is more than sufficient, and I do not want to be responsible for LED damage.

* Finding the default percentage took some trial and error, in this case, 59% correlated to 75.

Co-authored-by: rahul <rahul@aospa.co>
Change-Id: Ie20969362c531391e4c51b22365b74d62ccb8e5e
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
1df19d885b sm6150-common: camera: set saner values
80 was default for torch, so set 80 as default.

Change-Id: I6711c8a77ed04f01a9afeff14325e62404f66ff7
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Cyber Knight
b0c78fda81 sm6150-common: sepolicy: Allow cameraserver to search directories in sysfs_leds
- This fixes a SEPolicy denial.

Change-Id: Ie2cba0bdc7b7f43e6d958268054aec26cbac1dee
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
e04e71b5a8 sm6150-common: camera: Add enabled bool for finished workarounds
Change-Id: Iede122113f17789cdf88896cb32bc30f574ec54f
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
bengris32
1037de338f sm6150-common: camera: Implement setTorchModeExt
Change-Id: Id61420be75b7efd1d13a4b0ee1d103ebd3835516
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
bengris32
a04743d19c sm6150-common: camera: Implement supportsSetTorchModeExt
Change-Id: I2ec2f4a30723763e6123a1b742468752f38e3d2f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Dhina17
eeaa8481ee sm6150-common: Implement torch light control
[RealJohnGalt:] modify for oneplus usage, add toggle switch
[cyberknight777]: Adapt nodes and SEPolicy for sunny

Change-Id: I8ff5d814-d58d-4ed1-9b42-b025415a5c85
Signed-off-by: Dhina17 <dhinalogu@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:45 +00:00
Cyborg2017
d7bc0de44b sm6150-common: properties: Set persist.radio.VT_CAM_INTERFACE=2 to use Camera2
Change-Id: I3c600336829d52ca99695f5ba78e3847c6724399
Signed-off-by: Cyborg2017 <wangyang0987654@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
someone5678
e334593efc sm6150-common: sepolicy: Allow radio get access to vendor_ims_prop
11-14 12:30:02.762  3084  3084 W m.android.phone: type=1400 audit(0.0:26): avc: denied { read } for name="u:object_r:qcom_ims_prop:s0" dev="tmpfs" ino=14068 scontext=u:r:radio:s0 tcontext=u:object_r:qcom_ims_prop:s0 tclass=file permissive=0
11-14 12:30:02.765  3084  3084 E libc    : Access denied finding property "persist.vendor.qti.telephony.vt_cam_interface"

Change-Id: Ic6460f4880506a229772c7f617a7347ce85f769e
Signed-off-by: someone5678 <nemui3353@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
51b0e5b491 sm6150-common: Drop soundtrigger HIDL impl
* breaks google voice match with pixelpropsutils as
   we don't have hotword enrollment support

Change-Id: I213626f9729e5ff47ce7e6c990d605ed669b97e3
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
donjohanliebert
6e0a62e070 sm6150-common: overlay: clean up Philippines Carriers
Change-Id: I9acc85cc8c3003006d78d7836254e97afc273480
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
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