How liliya2727/azenith works
AZenith is an Android performance-tuning module with a manager app and cooperating Rust daemons. A typical session starts with the manager configuring per-app options; sysdaemon observes the foreground game, archdaemon selects a profile and applies device tuning, and the Game Space overlay exposes live controls and telemetry. Separate capabilities include frametime recording, preload, bypass charging, preference tweaks, and thermal control. The README documents the product-level links; source excerpts show daemon dispatch and selected state/reporting behavior, but not every runtime integration.
Main entry points: main.rs App monitor · profile.rs Profile orchestration · MainActivity.kt Manager UI · ZXSidePanelService.kt In-game sidepanel
Components 30
Manager app
- Manager UI
manager/app/src/main/java/zx/azenith/MainActivity.kt - Theme system
manager/app/src/main/java/zx/azenith/ui/theme/Theme.kt - Per-app tuning UI
manager/app/src/main/java/zx/azenith/ui/mainscreens/ApplistScreen.kt
Game observation
- App monitor
sysdaemon/src/main.rs - Focus and process state
sysdaemon/src/state.rs - Binder code discovery
sysdaemon/src/codes.rs - DEX inspection
sysdaemon/src/dex.rs - Process tracking
sysdaemon/src/procs.rs - Native Binder access
sysdaemon/src/ndk.rs - File event watcher
sysdaemon/src/inotify.rs
Profiles and tuning
- Profile orchestration
archdaemon/src/profile.rs - Daemon state core
archdaemon/src/core.rs - Hardware profile apply
binprofiles/src/main.rs - Preference tweaks
binprofiles/src/prefs/mod.rs - Bypass charging
archdaemon/src/bypass.rs - Display configuration
archdaemon/src/config/resolution.rs - System command access
archdaemon/src/shell.rs - System properties
archdaemon/src/sysprop.rs - Android logging FFI
archdaemon/src/android_ffi.rs - Device monitor
archdaemon/src/monitor.rs - Daemon logging
archdaemon/src/log.rs - Game preload
archdaemon/src/preload
Game Space
- Game Space shell
manager/app/src/main/java/zx/azenith/ui/gamespace/ZXGameSpaceShell.kt - In-game sidepanel
manager/app/src/main/java/zx/azenith/ui/gamespace/ZXSidePanelService.kt - Floating app windows
manager/app/src/main/java/zx/azenith/ui/gamespace/ZXFloatingAppManager.kt
Telemetry and thermal
- FPS client
sysdaemon/src/fps.rs - Frametime recorder
archdaemon/src/recorder/mod.rs - Thermal controller
thermalcore/src/policy_manager.rs - Thermal monitoring runtime
thermalcore/src/monitor.rs
Other components
- Device user
Connections 32
- Device user → Manager UI: configures
- Manager UI → Per-app tuning UI: sets per-app tuning
manager/app/src/main/java/zx/azenith/MainActivity.kt - Manager UI → Game Space shell: launches
- Manager UI → In-game sidepanel: starts overlay
manager/app/src/main/java/zx/azenith/MainActivity.kt - Manager UI → Theme system: uses
manager/app/src/main/java/zx/azenith/ui/theme/Theme.kt - App monitor → Binder code discovery: loads codes
sysdaemon/src/main.rs - App monitor → FPS client: starts
sysdaemon/src/main.rs - App monitor → Focus and process state: updates state
sysdaemon/src/main.rs - App monitor → DEX inspection: resolves Binder codes
sysdaemon/src/main.rs - App monitor → Native Binder access: uses native Binder
sysdaemon/src/main.rs - App monitor → Process tracking: tracks processes
sysdaemon/src/main.rs - App monitor → File event watcher: watches events
sysdaemon/src/main.rs - Focus and process state → App monitor: publishes focus status
sysdaemon/src/state.rs - App monitor → Profile orchestration: feeds game focus
- Profile orchestration → Daemon state core: reads shared state
archdaemon/src/profile.rs - Profile orchestration → Hardware profile apply: applies selected profile
- Profile orchestration → Per-app tuning UI: uses app overrides
- Profile orchestration → Bypass charging: controls charging behavior
archdaemon/src/profile.rs - Profile orchestration → Display configuration: applies display settings
archdaemon/src/profile.rs - Profile orchestration → Game preload: requests game preload
archdaemon/src/profile.rs - Hardware profile apply → Preference tweaks: applies preferences
binprofiles/src/main.rs - Profile orchestration → System command access: runs system commands
archdaemon/src/profile.rs - System properties → Android logging FFI: uses Android FFI
archdaemon/src/sysprop.rs - Profile orchestration → Device monitor: uses device monitoring
archdaemon/src/profile.rs - Game Space shell → In-game sidepanel: hands off session
- In-game sidepanel → FPS client: reads FPS status
- In-game sidepanel → Floating app windows: opens floating apps
manager/app/src/main/java/zx/azenith/ui/gamespace/ZXSidePanelService.kt - FPS client → Frametime recorder: publishes frametime data
- Device user → Frametime recorder: starts or stops recording
- Thermal monitoring runtime → Thermal controller: feeds thermal policy
- Thermal controller → Hardware profile apply: adapts device limits
- App monitor → Focus and process state: tracks focused app
sysdaemon/src/state.rs