A lightweight daemon for Android devices designed to automatically manage system performance based on the current context (active application, battery status, screen state).
This daemon is a core component of the Aozora Kernel Helper module (for Magisk/KSU/KSUFork) and is designed to work in tandem with the Aozora Kernel Manager app.
- Dynamic Performance Switching: Automatically switches between performance profiles.
- Game Detection: Identifies when a game is running and applies a specific gaming mode for optimal performance.
- Battery Saver Integration: Switches to a power-saving mode when the battery is low.
- App Integration: Toast notification from app.
This guide explains how to compile the autd binary (Rust Edition) for Android aarch64 from a Linux or macOS development environment (or WSL/Git Bash on Windows). The final binary will be for Android only.
Before you begin, you need to install the following tools on your development machine:
- Git: To clone the repository.
- Rust: The Rust toolchain (cargo, rustc). Install via rustup.rs.
- Android NDK: The Android Native Development Kit is required for cross-compilation.
-
Download: Download the latest Android NDK from the official Android developer website.
-
Extract: Extract the downloaded file to a stable location on your computer (e.g.,
~/Android/Sdk/ndk/orC:\Android\ndk). -
Set Environment Variable: You must set the
ANDROID_NDK_HOMEenvironment variable to point to the directory where you extracted the NDK. This is crucial for the build script to find the correct compiler.-
Linux/macOS (add to your
.bashrcor.zshrc):export ANDROID_NDK_HOME="/path/to/your/android-ndk"
Replace
/path/to/your/android-ndkwith the actual path. -
Windows (WSL / Git Bash): Use the Linux export command above inside your bash environment.
-
Clone this repository to your local machine:
git clone https://github.com/xMikkkaa/Automation-Daemon.git
cd Automation-DaemonOnce your environment is set up and you are in the project's root directory, simply run the compilation script.
bash compile.shThe compiled binary, named autd, will be created in the root of the project directory.
The compiled autd binary is for Android and must be copied to /system/bin/ on Aozora Kernel Helper Module. It requires root access to run.
# Example of running the daemon via terminal on android
su -c autd
# or
nohup autd