Skip to content

Durocks/Oneplus-12-System-Server-Mods

Repository files navigation

OnePlus 12 System Server Mods - Magisk Module

Version _time_stamp_ _time_stamp_
OnePlus 12 System Server Mods is a Magisk module designed for the OnePlus 12 that disables specific system server threads and subprocesses, such as osense, which are known to consume high amounts of CPU resources. This helps optimize battery life and enhance overall system performance.

Background

Having a rooted OnePlus 12, I noticed executing the top command sometimes showed a constant 40-100% usage from the system_server main process. I therefore executed top -H to see what specific thread was causing the high CPU usage, and it turned out to be a thread called osense.compress, which according to the very little information I found, is a OnePlus process related to memory compression and processes management. I was able to stop the process by rebooting or killing system_server (Which of course triggered a System UI restart), but after a while, the CPU usage was back to 40-100%.

What does the module do?

Simple, it modifies the init.rc file under /system/etc/init/hw/, commenting the lines that start the osense process. I still need some testing to be sure it's actually managing to stop the process. So far, I haven't seen it start again, and the CPU usage has been normal (Closer to 12%) when idle.

Usage

  1. Installation:

    • Download the latest version of the OnePlus.12.System.Server.Mods module zip file from the releases section.
    • Open Magisk Manager and navigate to the Modules section.
    • Tap Install from storage and select the OnePlus.12.System.Server.Mods.zip file.
  2. Effect:

    • Once installed, the module will disable resource-heavy system server threads to reduce CPU usage, helping to save battery and improve device responsiveness.
  3. Further Configuration:

    • No additional configuration is required after installation. The module is designed to work out of the box.

Contributions

Contributions are welcome! Feel free to submit issues or pull requests.

Disclaimer

This module is intended for use with the OnePlus 12 and may not work properly on other devices. Use it at your own risk.

About

A Magisk module for the OnePlus 12 that disables specific system server threads and subprocesses, such as osense, known to consume high CPU resources. Designed to optimize battery life and improve overall system performance by reducing background activity from non-essential services.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages