527 Commits

Author SHA1 Message Date
ahmedtohamy1
bb96f3e638 sm6125-common: Compile HWUI for performance
optimizing compiler flags for HWUI. * -fno-omit-frame-pointer, -marm, -mapcs

Signed-off-by: JaswalAshish <ashish@m.ms.evolution-x.org>
Change-Id: Ia141b59cd1334eede94cfbec5a66c2d0d7784cd4
2025-12-02 23:29:56 +01:00
Kuba Wojciechowski
9e67156501 sm6125-common: Disable kpti
It can also help increase performance by a lot in some scenarios.

Change-Id: Ica465f586a44129047c266597316045fab762550
Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-02 23:29:56 +01:00
helliscloser
db65bf3ad5 sm6125-common: Explicitly disable "Enable GL comp backpressure"
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.

Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.

Lag & janks are gone now, even with blur.

Change-Id: Ia82d84d6ee867caa52ae93b72fbff132070bf808
Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-02 23:29:56 +01:00
TheMysticle
28400e685e sm6125-common: Enable ADPF CPU hints for improved UI performance
Turns on `debug.sf.enable_adpf_cpu_hint` to allow SurfaceFlinger to utilize Android Dynamic Performance Framework CPU hints, improving overall UI responsiveness and frame pacing on Snapdragon devices.

Change-Id: Ia715ab89ffc8a18130904e5588f9e4b487a20faa
2025-12-02 23:29:56 +01:00
Ghosuto
15a2cb45f6 sm6125-common: Enable Client Composition Cache
- All latest soc use it by default. with this cache can improve performance by reusing composition, This can result in smoother UI performance and potentially lower power consumption

- cons: It does increase memory usage because the system needs to store these results, but its not a big issue cause most devices are 12gb ver. and fine for 8gb also

Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-12-02 23:29:56 +01:00
johnmart19
f729ab037c sm6125-common: Enable full ART optimizations with VDEX/ODEX
Enable comprehensive ART optimizations including VDEX and ODEX
generation for all system components to improve first-boot
performance and reduce application startup latency.

Configuration:
- WITH_DEXPREOPT := true          # Global dexpreopt enable
- DEX_PREOPT_DEFAULT := generate-vdex-and-image  # VDEX+ODEX gen
- WITH_DEXPREOPT_DEBUG_INFO := false  # Exclude debug symbols

Results:
- Verified generation of .odex files (optimized dex)
- Verified generation of .vdex files (verification dex)
- ART images created for core system components
- First boot time significantly reduced
- Application startup latency improved

Test procedure:
1. Full system build with 'm evolution' command
2. Verified artifacts in:
   - system/framework/oat/arm64/*.odex
   - system/framework/oat/arm64/*.vdex
   - system/app/*/oat/arm64/*.odex
   - system/priv-app/*/oat/arm64/*.vdex
3. Confirmed valid ART runtime loading during boot

Signed-off-by: johnmart19 <johnivan19999@gmail.com>
Signed-off-by: Quince <quinceroms@gmail.com>
2025-12-02 23:29:56 +01:00
Rve27
949b78a8df sm6125-common: Enable ScrollOptimizer
Change-Id: I1d415521e3e10839afb87f1c6691a6057deab797
Signed-off-by: Rve27 <rve27github@gmail.com>
Signed-off-by: Quince <quinceroms@gmail.com>
2025-12-02 23:29:56 +01:00
Mathieu Chartier
40fc4fb1d0 sm6125-common: Speed profile services and wifi-service to reduce RAM and storage
Signed-off-by: Mathieu Chartier <mathieuc@google.com>
Signed-off-by: Quince <quinceroms@gmail.com>
2025-12-02 23:29:56 +01:00
Pranav Vashi
b0dff02003 sm6125-common: dolby: Add profiles overlay for moto dolby
Change-Id: Ided92625cb73f530656e86929b3ba70fea1e940d
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
Pranav Vashi
47a00f68b2 sm6125-common: dolby: Update dax-default from moto
Change-Id: I430adc74c64093bf3c1439e66607567cb6444b80
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
Pranav Vashi
9a80723eea sm6125-common: libstagefright_foundation-v33 moved to lineage compat
Change-Id: Ib1fd8644e6c2567c89d67967f31c62582cc006ef
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
dogpoopy
c54d438cfd sm6125-common: Switch dolby soundfx to libswdap
* libhwdap.so doesn't work with devices that doesn't have dolby hardware support
* libswdap.so from https://github.com/reiryuki/Dolby-Atmos-Moto-G52-Magisk-Module.git

[@neobuddy89: Pin libswdap.so from above module]
Change-Id: Icb22599d2d439a837b537b59330f30e558869532
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
Pranav Vashi
e9d2a31ba7 sm6125-common: audio: Add dolby to audio effects
Change-Id: Ie4865489f79b617f2568fc29b382c56bb0cd6f11
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
Pranav Vashi
0f01b12eb1 sm6125-common: audio: Apply NLSound 4.0 optimization for dolby
Change-Id: I221799b79f80933cc8302418f1290893722a5368
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
basamaryan
b478242c9a sm6125-common: audio: Forcefully disable volume leveler
sed -i "/volume-leveler-enable/ s/true/false/g" configs/audio/dax-default.xml

Change-Id: I7ceb29291a9e55036d57975f5a28a149c7fcb435
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
Fabian Leutenegger
985d23e0fb sm6125-common: Link Dolby Atmos dependencies against v33 libstagefright_foundation
* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
basamaryan
02226853a6 sm6125-common: Build XiaomiDolby
Change-Id: I31ff2c27a479423951c8a645bf1cd65dc6ad6f81
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
madmax7896
4d57d1ba78 sm6125-common: Import Dolby audio blobs and sepolicy
Squashed with:
commit b1baf8e4109edf71727c39bff18077110174dff2
Author: Yuan Si <do4suki@gmail.com>
Date:   Sat Sep 16 06:35:46 2023 +0800

    sweet: sepolicy: Address more Dolby audio denials

    09-16 06:33:17.209   613   613 E SELinux : avc:  denied  { find } for interface=vendor.dolby.hardware.dms::IDms sid=u:r:mediacodec:s0 pid=1262 scontext=u:r:mediacodec:s0 tcontext=u:object_r:hal_dms_hwservice:s0 tclass=hwservice_manager permissive=0
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: connectService : Connect to Dolby Native Service failed
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: checkShareConfig: Dolby service is NULL

    Change-Id: Ideb557073b53e7b31f6535d6053933104b455ae7
    Signed-off-by: Yuan Si <do4suki@gmail.com>

commit e83b80995343c56382e43bf0656ee1e2b79ee067
Author: YuKongA <70465933+YuKongA@users.noreply.github.com>
Date:   Thu Oct 12 00:02:27 2023 +0800

    sweet: sepolicy: Address mediacodec denials

    Partially taken from ec0e9c641f and extended to hal_dms_server

    Change-Id: I51cfbbb2f8b9d83e74ef2f44196e8393189ca3dc
    Signed-off-by: basamaryan <basam.aryan@gmail.com>

commit 0a7aab81667f137c57fa95c4661fa7e43e0e2c1c
Author: Pranav Vashi <neobuddy89@gmail.com>
Date:   Fri Aug 2 20:27:52 2024 +0530

    sweet: Move dax-default to device tree

    Change-Id: Id2054bb5e61bcfe58706e32f44d37fe7524aa912
    Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I2d466238525d074269377a82627a816527aefd74
Signed-off-by: Mesquita <mesquita@aospa.co>
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-12-02 23:29:56 +01:00
feef4fc5c6 sm6125-common: Welcome to EvolutionX
Signed-off-by: Onelots <onelots@onelots.fr>
2025-12-02 23:29:56 +01:00
LuK1337
a6a3e58eeb sm6125-common: Remove vendor/lineage device framework matrix inclusion
See: I78da6340f38b93fdc4c3694cb8f431f387d16c0d
Change-Id: I0b9f527de50ca02082be9b92375559f4893b2688
2025-11-29 22:37:56 +00:00
basamaryan
1c3042c8a3 sm6125-common: Bump kernel BPF version override to 5.4.299
This matches android12-5.4

Test: atest netd_integration_test
Change-Id: I9b811c05610c11718d64289f10ab88c8c67df3c5
2025-10-09 17:27:04 +02:00
basamaryan
a8d63ac126 sm6125-common: Override kernel BPF version
Change-Id: I3c581f3120b6258b3b45020c5ba12f6bf5b0ee27
2025-10-09 17:27:04 +02:00
Skyblueborb
9a3141b828 sm6125-common: Build QCamera wrapper
Allows SM6125 to use the common Lineage camera HAL without any source
edits. Shifts the camera struct for laurel_sprout to avoid get_cam_pos.
Edits metadata for ginkgo/willow to properly register ID 61 logical
camera.

Change-Id: Iabf37484a401e63dcbcebac3db6bfbd898d78b1f
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
2025-08-23 19:30:59 +00:00
Skyblueborb
94beb47402 sm6125-common: sepolicy: Allow vendor_init to set camera remapid prop
Change-Id: I43dc9fa5d79b55ef338a1fd09f372ab0a3acefec
2025-08-23 17:06:06 +02:00
Skyblueborb
8629a0e53f sm6125-common: props: Switch to aux camera blacklist
Change-Id: Ide5f0007da2e7ec70ebebfa8e25aa398260a3ad1
2025-08-23 17:06:06 +02:00
Tim Zimmermann
ba5fd8e6c6 sm6125-common: Switch to AIDL camera HAL
Change-Id: Idc9ccc33c4ba9c2c6668d145405da623cf4dfc49
2025-08-23 17:05:59 +02:00
Bruno Martins
beb6dab5b4 sm6125-common: Switch to AIDL LiveDisplay HAL
To be noted that it now includes VINTF fragments.

Change-Id: Ic20c950e243a0b6e50822034e17a7ef364f80d49
2025-08-20 20:47:36 +02:00
Michael Bestas
bee5ab4f3a sm6125-common: Enable UFFD GC
Kernel has support for it now.

Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
2025-07-27 20:46:45 +02:00
LuK1337
552011cc7d sm6125-common: Set SSR restart_level in init.qcom.rc
Change-Id: I31e174f8c3647c17152a2b225b1bb524e22e07aa
2025-06-21 18:55:13 +02:00
Yumi Yukimura
3d8644c592 sm6125-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2025-06-14 09:35:20 +02:00
Yumi Yukimura
480a51fb22 sm6125-common: Move usage of USB MTP/PTP functionality with USB F_FS driver
* `vendor/qcom/opensource/usb/vendor_product.mk` enables it for
  kernel 4.9~4.19, and we're on kernel 4.14

Change-Id: I7bc8153b4016ab804d4e385ece5808f187a87886
2025-06-14 09:35:20 +02:00
LuK1337
355b988011 sm6125-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2025-06-14 09:35:16 +02:00
Hridaya Prajapati
507426ee22 sm6125-common: Switch to common AIDL IR service
Change-Id: I36c05aaa312969e479896c6e63a26a68cf897afa
2025-06-09 17:32:44 +00:00
Yan Yan
5960951f6e sm6125-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
2025-06-07 22:07:28 +03:00
Michael Bestas
0377e86e48 Revert "sm6125-common: manifest: Freeze kernel-level to 5"
This reverts commit 0e57f2b574.

Reason for revert: We invented level 6 support for 4.14

Change-Id: I780141ed37059772efd9f1fb0d1ec26c3f8881c4
2025-06-07 10:33:20 +00:00
Michael Bestas
b4edc8e6d0 sm6125-common: Include xiaomi-trinket defconfig fragment
Change-Id: I0de844832394cb12dabf1c880e67edd55808caf9
2025-05-31 00:11:36 +03:00
Skyblueborb
a06203600e sm6125-common: Label cust partition
Fixes flashing `cust` through fastbootd.

Change-Id: I1a950037dafa99c5e7b4305dda4aa8d35fce143b
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
2025-05-30 18:43:47 +00:00
Michael Bestas
144cd21294 sm6125-common: sepolicy: Suppress NFC denials
Change-Id: I88aebdb2d5568ca106f46b95d29845cf057beffa
2025-05-30 18:43:40 +00:00
Skyblueborb
21e9e1835b sm6125-common: Commonize schedtune and cpuset configuration
This should be in common.

Change-Id: I818449733a14b0818ea53dc2c3699c9683879021
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
2025-05-30 18:43:40 +00:00
Hridaya Prajapati
be210ab321 sm6125-common: sepolicy: remove duplicate IR rules
Change-Id: I825fac0d61b9dac2fb3e875ccc9df4232d335f50
2025-05-27 18:26:44 +03:00
Michael Bestas
07fd43a419 sm6125-common: Enable charging control bypass mode
Change-Id: Icd4955df45007b693cf8f01c11cc00edec3888d1
2025-05-26 23:36:02 +03:00
Hridya Valsaraju
19b3bf1f69 sm6125-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2025-05-26 23:35:48 +03:00
Alexander Koskovich
3b7cb1b996 sm6125-common: init: Don't mount TraceFS twice
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2025-05-26 23:35:47 +03:00
P.Adarsh Reddy
90c4fad1db sm6125-common: Clean up the no longer used logdump service code.
Change-Id: Iaeacbe4f2c99c9251be9ee1bde756f6abf25c021
2025-05-26 23:35:47 +03:00
Bruno Martins
754d4ae86d sm6125-common: Ditch rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2025-05-26 23:35:47 +03:00
Ethan Chen
db33fe90fc sm6125-common: Remove unnecessary hvdcp service
* hvdcp_opti is the correct one

Change-Id: I2ce6c1ea983526dfd6fbc919e7f884a886ead99c
2025-05-26 23:35:47 +03:00
Ayishwarya Narasimhan
300173b78a sm6125-common: init.qcom.rc: Remove unused property
Remove persist.ims.regmanager.mode
property along with the service
which is unused

Change-Id: I6875dadffa2770d2f4ce19f44ec9b24b08523cc6
2025-05-26 23:35:47 +03:00
Michael Bestas
32eb76c5f3 sm6125-common: init: Uprev hwcomposer to 2.4
Change-Id: Ie52242f290c7240e7dacd3e929cc0fb4df07c80b
2025-05-26 23:35:47 +03:00
Qing Huang
2f55ec1e01 sm6125-common: Correct hwcomposer name
Hwcomposer service is changed from vendor.hwcomposer-2-1
to vendor.hwcomposer-2-3. Correct the property
name accordingly to start/stop mm-pp-dpps service.

Change-Id: Ic4fd9806e903ed752f6551c776cacd0032cf74af
2025-05-26 23:35:47 +03:00
Michael Bestas
4b2e6b5dc0 sm6125-common: init: Add missing vendor prefix to hwcomposer props
Change-Id: Ie5837e41c110940b821e499a2171a84c93c48b86
2025-05-26 23:35:47 +03:00