The-Clover-Project v3.12-HOTFIX for onyx

The-Clover-Project v3.12-HOTFIX for onyx

Kaveer Rana

ONYX — Major Performance, Efficiency & Device Integration Update

This update represents one of the most significant optimization cycles for Onyx so far.

A large amount of work has gone into the device tree, vendor configuration, hardware integration and, most importantly, the move to our own source-built OSS kernel.

The objective throughout this work has been straightforward: make Onyx substantially faster, smoother and more efficient, while keeping power consumption under control.

The result is a build focused equally on gamers and everyday users, with improvements ranging from low-level CPU/GPU scheduling to battery management, audio, display, connectivity and hardware functionality.


OSS Kernel & Source-Built Components

The biggest change in this update is the transition to our own kernel source.

Onyx now uses a source-built kernel, along with source-built DTBO and kernel modules, giving us much greater control over the hardware stack and allowing device-specific optimization at a much deeper level.

The kernel integration has been heavily optimized around Onyx instead of simply relying on a generic configuration.

This is particularly important for performance and efficiency because CPU scheduling, GPU behavior, memory handling, power management, touch interaction and other hardware-level operations can now be tuned alongside the device tree.

In addition to the kernel itself:

  • DTBO is now source-built
  • Kernel modules are source-built
  • Kernel module loading has been cleaned up and modernized
  • Kernel-related initialization has been brought into the device tree
  • Xiaomi-specific kernel changes have been separated and integrated cleanly
  • Kernel headers are now used correctly by the touch and power implementations

This gives Onyx a much stronger foundation for future development and optimization.


Performance

Performance has received a very substantial overhaul.

The device tree has been cleaned of unnecessary services, legacy performance mechanisms and background components that do not provide value on a production device.

At the same time, scheduling and workload handling have been improved.

The update includes:

  • Optimized CPU cpuset configuration
  • Improved CPU scheduling
  • HWUI integration with HintManager for better scheduling decisions
  • Better CPU/GPU workload distribution
  • Additional game libraries registered for scheduler handling
  • Improved GPU utilization in supported games
  • GAME mode setup updated to the newer kernel interface
  • WALT scheduling parameters tuned for the platform
  • Removal of obsolete CPU-share configuration
  • Removal of unnecessary power-key boost behavior
  • Removal of unnecessary GPU profiling
  • Removal of legacy I/O prefetching tied to the old QTI performance stack
  • Removal of unnecessary system daemons and factory-only services
  • Reduced system-server logging overhead
  • Reduced unnecessary statistics collection
  • Removal of unnecessary test and debug components

The end result is a system with significantly less unnecessary work happening in the background and a much more efficient path between applications and the hardware.

Performance has been significantly improved, with the OSS kernel and low-level scheduling work providing the foundation for those improvements.

The intention is not simply to chase benchmark numbers, but to make the device feel faster during real usage — app launches, scrolling, multitasking, gaming, media playback and sustained workloads.


Gaming

Gaming is one of the major focuses of this update.

Onyx now includes additional scheduler handling for game libraries and fixes aimed specifically at improving GPU utilization.

GAME mode has also been updated to communicate through the newer kernel interface.

Combined with the optimized kernel and reduced system overhead, this provides a significantly stronger foundation for gaming.

The system is designed to:

  • Make better use of the GPU
  • Allocate CPU resources more effectively
  • Reduce unnecessary background activity
  • Improve responsiveness during heavy workloads
  • Maintain more consistent performance during gameplay

GameBar has also been added and its GPU information path has been corrected.

This makes Onyx particularly well suited for users who want a device that can handle demanding games while still remaining responsive outside of gaming.


Battery & Power Efficiency

The performance improvements have not been achieved by simply increasing power consumption.

A major part of the optimization work has been focused on making the device more efficient while maintaining higher performance.

Battery and idle behavior have been improved through:

  • Wi-Fi Deep Sleep and QPower working together
  • Tuned Wi-Fi idle listening behavior
  • Reduced unnecessary Wi-Fi activity while the screen is off
  • Improved power-state handling
  • Hibernation support through the power-state interface
  • Removal of unnecessary background services
  • Reduced unnecessary CPU wakeups during audio playback
  • Cleanup of legacy power-management configuration
  • Improved integration between the kernel and device power interfaces

The audio offload implementation was also tuned specifically to reduce CPU wakeups during playback, allowing the audio subsystem to process more data at a time rather than repeatedly waking the CPU.

The goal throughout the kernel work has been the same:

higher performance when the hardware is needed, and lower power consumption when it is not.

As a result, battery efficiency has been significantly improved alongside overall performance.


Memory & Multitasking

Memory management has also received extensive attention.

Changes include:

  • Improved ZRAM configuration
  • LZ4KD enabled
  • Updated Dalvik heap configuration
  • 12GB memory profile adjustments
  • Improved virtual-memory component integration
  • libvmmem built from source
  • Removal of unnecessary memory-heavy services
  • IORAP disabled where it was causing unnecessary RAM and performance overhead
  • UFFD garbage-collection support explicitly configured for the build system

These changes are intended to reduce unnecessary memory pressure and keep the system responsive during multitasking.

The focus is on making better use of the available memory rather than simply allowing more background components to consume it.


UI, Rendering & Smoothness

The rendering stack has been optimized as well.

HWUI now makes better use of system scheduling through HintManager, allowing CPU and GPU work to be balanced more effectively.

Additional rendering improvements include:

  • SurfaceFlinger cleanup
  • Improved frame-pacing behavior
  • Correct FPS reporting for the primary display pipeline
  • Ultra HDR shader pre-warming
  • EGL multi-file cache configuration
  • Removal of obsolete graphics properties
  • Removal of unnecessary GPU profiling configuration

There are also fixes aimed at everyday smoothness, including a fix for scroll lag in affected applications and a reduction in camera-related UI jitter.

The result is a cleaner rendering pipeline designed to make scrolling, animations and general navigation feel more consistent.


Display & Refresh Rate

Display handling has been refined at several levels.

The FPS monitoring implementation now reads from the correct primary display pipeline, providing accurate measured-FPS information.

Screen recording has also been configured with an appropriate 120 FPS limit.

Additional display changes include:

  • Improved FPS monitoring
  • Correct primary CRTC mapping
  • Better SystemUI FPS information
  • Ultra HDR shader cache pre-warming
  • Correct display overlays
  • Updated corner and cutout overlays
  • Better handling of display-related SELinux permissions

These changes improve both display accuracy and the overall consistency of the rendering stack.


Touch & UDFPS

The touch and under-display fingerprint implementation has received a large amount of cleanup and refinement.

The update includes:

  • Migration to kernel-provided Xiaomi touch headers
  • Improved touch handling between power and UDFPS
  • GAME mode integration through the kernel interface
  • Removal of redundant touch-sampling configuration
  • Improved file-descriptor management
  • Reduced unnecessary touch-ID selection
  • More efficient UDFPS status handling
  • Cleanup of legacy fod_status handling
  • Improved FingerUp handling after authentication
  • FingerUp handling for cancelled authentication
  • Improved handling of authentication success/failure states
  • Fix for an onFingerDown() race condition that could leave high-brightness mode enabled
  • Correct handling of FOD long-press gestures
  • Recovery touch support

Several of these changes also improve memory/resource management by replacing older resource-handling patterns and addressing potential leaks.

This should make fingerprint authentication and touch interaction more reliable and better integrated with the kernel.


Sensors

Sensor functionality has also been refined.

  • Single-tap sensor support enabled
  • Double-tap sensor support updated
  • Sensor handling moved toward the proper hardware interfaces
  • Unnecessary legacy sensor handling removed

These changes improve integration of gesture-related hardware while keeping the implementation cleaner.


Audio

The audio stack has received one of the largest rounds of work in the update.

Dolby Audio has been further developed and extensively refined for Onyx.

This is not simply a matter of enabling another package. The underlying audio implementation has also been worked on extensively.

Changes include:

  • Additional audio libraries integrated
  • Audio blob rules cleaned up
  • More vendor audio dependencies correctly handled
  • Sound-effect modules built from source wherever possible
  • libagmclient / libagmipcservice and related dependencies properly integrated
  • Vendor HAL stub mode support
  • Improved audio routing
  • WhatsApp and VoIP volume handling improvements
  • Audio buffering tuned for efficiency and responsiveness
  • AptX voice behavior corrected
  • AptX voice power-management configuration added

The result is a substantially more complete audio implementation.

Dolby itself has been developed further as part of this work, giving the audio stack a much more polished and refined character.

For music, videos, gaming, calls and everyday media playback, the audio experience has been seriously improved.


Connectivity

Wi-Fi and Bluetooth have also been refined.

Wi-Fi changes include:

  • Improved idle power behavior
  • Deep Sleep + QPower integration
  • Tuned BMPS listening intervals
  • Better Wi-Fi re-association behavior
  • Fast BSS transition support
  • Reduced unnecessary firmware logging
  • Reduced background activity while the screen is off
  • Cleanup of redundant configuration

Bluetooth changes include:

  • Automatic profile connection improvements
  • AVRCP controller support
  • AptX voice handling improvements
  • Power-management configuration for supported voice profiles

Additional carrier configuration has also been added where required for VoWiFi.


Camera & Media

Camera and media handling have received a number of smaller but important fixes.

  • Reduced excessive camera logging
  • Reduced camera-related UI jitter
  • Fixed Qualcomm ImageReader configuration that could produce incorrect/inverted colors
  • Camera HAL permissions corrected
  • Device-as-Webcam support added

These changes improve reliability without adding unnecessary background processing.


Charging, Battery & USB

Hardware power handling has also been refined.

  • Fast-charging detection improved
  • Turbo Charging display behavior added
  • Battery status handling improved in recovery
  • Battery and USB OTG detection fixed
  • ADSP loading corrected where required for battery and USB power-supply functionality
  • USB-OTG support expanded
  • Recovery-side hardware initialization improved

This is particularly important with the source-built kernel because the device now has a cleaner and more direct hardware initialization path.


Infrared

The infrared implementation has been modernized.

Onyx has moved through the Xiaomi IR AIDL implementation and is now aligned with the common AIDL IR service.

This provides a cleaner and more modern hardware-service implementation while reducing reliance on older interfaces.


Recovery

Recovery has received several important improvements:

  • Touch input properly wired up
  • Battery status support restored
  • ADSP loader integration added
  • Firmware-loading order corrected
  • Hardware initialization cleaned up
  • Recovery module handling improved

This makes recovery considerably more functional and better aligned with the source-built kernel/module setup.


System Cleanup

A very large part of this update is simply removing things that should not be running on a production device.

The device tree has been cleaned of:

  • Obsolete QTI daemons
  • Factory-only services
  • Unused services
  • Legacy init entries
  • Redundant property triggers
  • Unnecessary test scripts in user builds
  • Obsolete logging components
  • Unused Wi-Fi migration services
  • Unused WiGig components
  • Old GPS-related directory creation
  • Legacy framebuffer support
  • Unnecessary debug and profiling configuration
  • Duplicate configuration
  • Unused filesystem and service definitions

This cleanup reduces background overhead and makes the device tree substantially easier to maintain.


SELinux & Hardware Integration

SELinux policies and hardware permissions have been cleaned up across the platform.

Fixes include permissions for:

  • Camera HAL hardware access
  • Vendor QRTR
  • Kernel module handling
  • Filesystem decryption
  • Hardware properties
  • Window services
  • UDFPS and touch interfaces
  • GameBar GPU information
  • FPS monitoring
  • Various vendor hardware nodes

This allows the relevant hardware components to operate correctly without relying on permissive policy workarounds.


Firmware & Module Handling

Firmware and kernel-module handling has also been modernized.

  • Updated firmware blob paths
  • Corrected firmware symlinks
  • Source-built kernel modules
  • Proper module-load list handling
  • Improved ADSP firmware loading
  • Better separation of vendor and device initialization
  • Updated rootdir scripts
  • Modernized kernel initialization

These changes are particularly important for the new OSS kernel architecture.


Other Improvements

A number of smaller changes also improve the overall implementation:

  • Correct hardware revision reporting
  • Improved USB-OTG filesystem support
  • Better Bluetooth service configuration
  • SystemUI restart support in Advanced Reboot
  • Cleaner charging-status presentation
  • Corrected display cutout/corner overlays
  • Removal of obsolete properties
  • Improved device-specific initialization

Each of these changes may be small individually, but together they contribute to a cleaner and more complete Onyx implementation.


Overall

This update goes far beyond a conventional device-tree cleanup.

Onyx has been reworked across the entire stack — from the kernel and hardware interfaces to Android's rendering, scheduling, memory, networking and audio layers.

The most important part is the move to our own source-built OSS kernel, which provides the foundation for much deeper device-specific optimization.

With the kernel, DTBO and modules now built from source, along with extensive scheduling, memory, GPU, power and hardware integration work, performance has been significantly improved while battery efficiency has also been significantly improved.

Gaming has received dedicated attention through GPU utilization and scheduler improvements.

Daily use has benefited from lower background overhead, smoother rendering, better memory handling and extensive cleanup.

Audio has been substantially refined, with Dolby further developed and the underlying audio stack rebuilt and cleaned up.

At the same time, fingerprint, touch, sensors, display, camera, Wi-Fi, Bluetooth, charging, recovery and USB functionality have all received targeted improvements.

In practical terms:

Faster when you need it.

More efficient when you don't.

Smoother in daily use.

Better optimized for gaming.

More refined across the hardware stack.

And finally powered by our own OSS kernel.

Onyx now has a significantly stronger foundation for both performance-focused users and everyday users, while leaving much more room for future kernel-level optimization.

Report Page