Commit Graph

574 Commits

Author SHA1 Message Date
7539d31483 Change maintainer string
Change-Id: I6f9a2a00ccb0da0255c2af223fffe3e584714e88
Signed-off-by: MOVZX <movzx@yahoo.com>
2025-12-04 17:56:56 +07:00
Kelvin Zhang
b9551ec7b2 sm7125-common: Allow to access bootable/deprecated-ota targets
Sm7125-common is still using non-AB update.
non-AB code will be moved to a separated namespace, add
deprecated-ota to sm6150-common namespace list ahead of time to avoid
breakage.

Test: th
Bug: 324360816
Change-Id: I909064be36e8febe80492cf010eb6eac3d6bc33d
2025-11-30 12:19:40 +05:30
Michael Bestas
9839b86f36 sm7125-common: Build recovery QTI health AIDL service
We have a recovery partition.

Change-Id: I10841b26feea3c214349a20b2eedec74924f993a
2025-11-30 12:19:40 +05:30
theshaenix
3728b1aea2 sm7125-common: Drop the unused android.hardware.power@1.2.vendor 2025-11-30 12:19:40 +05:30
Bruno Martins
5e170e74b3 sm7125-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2025-11-30 12:19:39 +05:30
theshaenix
d7b1c2071f sm7125-common: Cleanup 2025-11-30 12:19:39 +05:30
aminfauzi
d1362347cd sm7125-common: fingerprint: preload HAL early for first-boot SetupWizard
Add an  trigger to start the fingerprint HAL immediately
after /data is mounted. Keeps  to avoid race
conditions, but ensures the HAL is available early enough for
first-boot SetupWizard enrollment.

This fixes the issue where fingerprint setup fails during initial
device setup but works after skipping and opening Settings.

Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-30 12:19:39 +05:30
theshaenix
e86c2261b6 sm7125-common: Enable EPPE 2025-11-30 12:19:39 +05:30
theshaenix
740b46504e sm7125-common: migrate to Adil MultiHAL 2025-11-30 12:19:39 +05:30
Omkar Chandorkar
3fcf8d108e sm7125-common: overlay: Steal CarrierConfig from phone1
* From Nothing OS 2.0.4

Change-Id: I8b761a30c86d72d6bd454332ec3042a22c1a7aac
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Mayur <ultramayur123@gmail.com>
2025-11-21 16:56:35 +05:30
aminfauzi
bccfa62cd8 sm7125-common: prop: Improve signal strength with missing optimization properties
Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-09 19:50:54 +05:30
aminfauzi
9cbeaf7f9a sm7125-common: prop: Clean up network mode conflict - keep only vendor.prop definition
Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-09 19:50:46 +05:30
1xtAsh
a8876fd7e7 sm7125-common: Disable default framerate for games
This props fixes frame rate restrictions in games

Signed-off-by: 1xtAsh <ashraykrsingh321@gmail.com>
2025-11-09 19:50:37 +05:30
ahmedtohamy1
bfa2e40a46 sm7125-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-11-09 19:29:34 +05:30
helliscloser
c997706fe1 sm7125-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.

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-11-09 19:29:06 +05:30
TheMysticle
7bca1e3cbd sm7125-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-11-09 19:28:48 +05:30
Ghosuto
eae47e3ba2 sm7125-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-11-09 19:28:36 +05:30
johnmart19
3b12dc0491 sm7125-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-11-09 19:28:23 +05:30
Rve27
b9141a9f34 sm7125-common: Enable ScrollOptimizer
Change-Id: I1d415521e3e10839afb87f1c6691a6057deab797
Signed-off-by: Rve27 <rve27github@gmail.com>
Signed-off-by: Quince <quinceroms@gmail.com>
2025-11-09 19:28:11 +05:30
theshaenix
d5b0780c14 sm7125-common: rootdir: kang post_boot from miatolls common tree
* Synced post_boot script from Evolution-X miatolls common tree
  https://github.com/Evolution-X-Devices/device_xiaomi_sm6250-common/blob/bka/rootdir/bin/init.qcom.post_boot-atoll.sh
2025-11-09 19:26:16 +05:30
someone5678
51e6b220d3 sm7125-common: Build vendor.qti.hardware.capabilityconfigstore@1.0
Log:
07-08 14:11:18.637  1300  1300 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:18.724  1366  1366 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/vppservice": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by /vendor/lib64/libvpplibrary.so in namespace (default)
07-08 14:11:23.638  3100  3100 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:28.644  3177  3177 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:33.651  3194  3194 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:28.395  5816  5816 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:45.348  7112  7112 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
2025-11-09 19:26:15 +05:30
theshaenix
1990a776fb sm7125-common: overlay: Aperture: Ignore redundant aux camera IDs
- Hide camera ID 6 (duplicate 1x lens)
- Hide camera ID 7 (logical/composite stub)
- Prevents duplicate selector and crash when switching lenses
2025-11-09 19:25:33 +05:30
theshaenix
3b20b70f4d sm7125-common: overlay: Allow aux camera package allowlist
- Add config_cameraAuxPackageAllowlist overlay
- Ensures Aperture can access auxiliary lenses
  when vendor aux camera whitelist is present
2025-11-09 19:25:33 +05:30
aminfauzi
3e49ec97fe sm7125-common: prop: Allow camera apps to access auxiliary camera
This enables camera apps (and other whitelisted apps) to use auxiliary sensors without HAL restrictions, preventing crashes when switching lenses.

Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-09 19:25:32 +05:30
aminfauzi
028c7ee1bd sm7125-common: overlay: Configure aux camera for Aperture
overlay from rmx2061 repo

Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-09 19:25:32 +05:30
theshaenix
631486dfff sm7125-common: prop: drop legacy camera EIS prop
- Set EIS enable and type using vendor props only
2025-11-09 19:22:09 +05:30
theshaenix
f8d7219744 sm7125-common: prop: set camera EIS type to 2
From dumpsys media.camera, the vendor tag showed EIS type = 2, which corresponds to:

0 → None
1 → EIS v2
2 → EIS v3
3 → OIS
4 → OIS + EIS

So your blobs natively support EIS v3 (type 2).
If you force is_type=4 (OIS+EIS) but your device only has EIS (no OIS hardware), the HAL may either:
silently fall back to EIS v3 (type 2), or misbehave / crash in certain modes
2025-11-09 19:22:09 +05:30
theshaenix
d852fdcb29 sm7125-common:Initialize EvolutionX 2025-11-09 19:22:09 +05:30
theshaenix
1e298d14a6 sm7125-common: fine tuned the zram 2025-11-09 19:22:09 +05:30
theshaenix
cfba3aaf95 Revert "sm7125-common : integrate Oplus camera vendor blobs"
This reverts commit ecff11a1d343c1c8c0e94c3d6d24b3ce3973921f.
2025-11-09 19:22:09 +05:30
theshaenix
8f96a9bf71 sm7125-common: rootdir : bin : Aggressive performance & boot optimization for RMX2061
- Fine-tuned GPU devfreq governors and frequencies for dynamic performance
  - Added support for simple_ondemand and msm-adreno-tz
  - AdrenoBoost handling for performance/battery modes
  - Dynamic min/max frequency assignment without killing idle sleep
- Improved ZRAM configuration
  - Auto-sized based on available RAM
  - Multi-threaded compression enabled
  - Aggressive memory management (swappiness 90, vfs_cache_pressure 80)
- VM and memory tweaks
  - Optimized dirty ratios, writeback intervals, overcommit, and compaction
  - Transparent HugePage disabled for faster memory reclaim
  - NUMA balancing disabled for unified memory efficiency
- LMK / RAM management updates
  - Preserves recent apps longer with custom minfree values
  - Extra free memory and watermark tuning
  - CPU cgroup tuning for foreground/background prioritization
- Thermal and network optimizations
  - Conservative thermal trip points to reduce throttling
  - TCP/IP stack and buffer tuning for low latency
- Bootspeed improvements
  - Suppressed printk, RCU and debug overhead
  - Disabled NMI watchdog and tracing for faster initialization
- Overall: Enhanced user experience for both gaming and everyday usage
  - Aggressive memory & GPU management without sacrificing idle or background tasks
2025-11-09 19:22:09 +05:30
theshaenix
a54e5c546c sm7125-common: ship excluded-input-devices.xml
- Add PRODUCT_COPY_FILES entry to install excluded-input-devices.xml
  into /vendor/etc
- Ensures vibrator HAL ignores blacklisted input devices
- Prevents duplicate or unintended haptic feedback
- Improves consistency of vibration across UI and apps
2025-11-09 19:22:08 +05:30
theshaenix
35b87f7c6d sm7125-common: configs: raise min blocks-per-second limit
- Increase blocks-per-second range from 24–979200 to 36–979200
- Prevents codec operation at extremely low block rates
- Reduces risk of underruns and playback instability
- Improves scheduling efficiency and smoother video performance

Trade-off: drops support for extreme low-FPS edge cases, but ensures
better stability across typical playback/recording scenarios.
2025-11-09 19:22:08 +05:30
theshaenix
0684cf355a sm7125-common: Switch to dot product CPU variant
* sm7125:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

 * From this, it's evident that our CPU (Snapdragon 720G)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.
[1]:
https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]:
https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23
2025-11-09 19:22:08 +05:30
theshaenix
ffd1ddfbf9 sm7125-common : integrate Oplus camera vendor blobs
- Cloned proprietary_vendor_oplus_camera repo by pjgowtham
  (https://gitlab.com/pjgowtham/proprietary_vendor_oplus_camera.git)
- Added vendor/oplus/camera directory
- Updated device tree to include
2025-11-09 19:22:08 +05:30
theshaenix
e005ad2aa1 sm7125-common: rootdir : bin: tune CPU, scheduler and memory
- Enable ZRAM with LZ4 compression and tuned swappiness
- Adjust CPU hispeed freqs and minimums for better responsiveness
- Configure schedutil governor for both clusters
- Lower migration thresholds for smoother task distribution
- Tune core_ctl for balanced performance vs. idle drain
- Re-enable sleep states for improved standby battery
- Set up bw_hwmon and mem_latency governors on interconnects
- Cleaned out unnecessary/duplicate entries from script

Overall effect: smoother UI, faster app response, and better
multitasking with minimal idle power impact.
2025-11-09 19:22:07 +05:30
theshaenix
a8c5e9bdd5 sm7125-common:Switch to android.hardware.sensors@2.1 multihal
The legacy 2.0 multihal does not support ScopedWakelock handling,
causing non-wakeup sensors (e.g. BMI160 gyroscope) to stall unless
the screen is actively touched.

Migrate to android.hardware.sensors@2.1-service.multihal_realme_sm7125
to properly integrate ScopedWakelock and per-event wakelock tracking.

This resolves issues where the gyroscope only reported data
while the device was awake, ensuring continuous event delivery
even when idle.

Tested:
- Gyroscope events stream without requiring screen touches
- dumpsys sensorservice shows correct flags and batching
- No regressions observed in other HAL sensors
2025-11-09 19:22:07 +05:30
theshaenix
5a2b337dbc sm7125-common: reduced the status bar padding top 2025-11-09 19:22:07 +05:30
anhdat1024
8e19cbb0a5 sm7125-common: overlay: Adjust status bar height 2025-11-09 19:22:07 +05:30
theshaenix
c5ea61e49f sm7125-common: props: Use EIS for camera
* Fixes gcam video stabilization
2025-11-09 19:22:07 +05:30
theshaenix
be8403dea6 sm7125-common : rootdir: Optimize CPU governor, sched, and core control for Snapdragon 720G
- Replaced static performance governor with dynamic schedutil for all cores
    - Tuned up_rate_limit_us and down_rate_limit_us for smooth everyday performance
    - Set scaling_min and scaling_max frequencies according to Kryo 465 Gold/Silver cores
    - Configured core_ctl for little cluster (min_cpus, busy thresholds, offline delay)
    - Disabled core_ctl on big cluster to let scheduler manage ramp-up efficiently
    - Adjusted b.L scheduler parameters (sched_downmigrate, sched_upmigrate, group migrate)
    - Set sched_little_cluster_coloc_fmin_khz for smoother colocation
    - Applied sched_load_boost per CPU for better responsiveness
    - Configured input boost frequency and duration for UI snappiness
    - Updated memory and bus DCVS parameters for balanced performance/power
    - Maintained conservative power optimizations (cpusets, sleep modes, kswapd, I/O scheduler)

    This commit ensures a universal setup for normal daily use and gaming while
    avoiding overheating and maintaining high FPS
2025-11-09 19:22:06 +05:30
aminfauzi
bccca041aa sm7125-common:audio: Sync with Spatial Audio
Signed-off-by: aminfauzi <aremean0107@gmail.com>
2025-11-09 19:22:06 +05:30
theshaenix
4f22c6fe43 sm7125-common: overlay: Enable Wifi display 2025-11-09 19:22:06 +05:30
theshaenix
025b4df531 sm7125-common: sm7125-common: overlay: Speed up animations
On low powered, legacy devices, the animations are a bit sluggish. Set the animation scales to 50% to make the UI feel snappier.
2025-11-09 19:22:06 +05:30
Skyblueborb
195e21ae45 sm7125-common: Label cust partition
Fixes flashing `cust` through fastbootd.

Change-Id: I1a950037dafa99c5e7b4305dda4aa8d35fce143b
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
2025-11-09 19:22:06 +05:30
theshaenix
57f7fb9151 sm7125-common: Disable scudo to save ram 2025-11-09 19:22:06 +05:30
theshaenix
e5405be694 sm7125-common: Switch to AIDL LiveDisplay HAL 2025-11-09 19:22:05 +05:30
LuK1337
e455368c95 sm7125-common: Set SSR restart_level in init.qcom.rc
Change-Id: I31e174f8c3647c17152a2b225b1bb524e22e07aa
2025-11-09 19:22:05 +05:30
theshaenix
0a8fe4c93c Revert "sm7125--common: Commonize schedtune and cpuset configuration"
This reverts commit 13f221fb28.
2025-11-09 19:22:05 +05:30
theshaenix
0b3cef643a sm7125-common: Disable EPPE targets 2025-11-09 19:22:05 +05:30