Debugging & Troubleshooting
A boundary-first diagnostic guide and issue reporting manual for Auriya on physical Android devices. Auriya spans four architectural boundaries:
- Android Manager Application: Jetpack Compose UI and floating HUD overlay.
- Unix Domain Socket: Local control plane at
/dev/socket/auriya.sock. - Native Binder IPC: Direct framework RPCs (
IActivityManager,IPowerManager,IDisplayManager,IWifiManager,INotificationManager,IWindowManager). - Kernel & Hardware Adapters: sysfs nodes, procfs readers, and Kala kernel eBPF Uprobes.
When an issue occurs, pinpoint the boundary first, then use the specialized tools and workflows below.
Modern Diagnostic Toolset (auriyactl)
Section titled “Modern Diagnostic Toolset (auriyactl)”Auriya provides an extensive suite of CLI commands via auriyactl to audit, monitor, and troubleshoot the daemon in real time.
1. General Status & Hardware Info
Section titled “1. General Status & Hardware Info”auriyactl status
Section titled “auriyactl status”Displays the daemon’s operational state, PID, active package, active profile mode, and target FPS:
auriyactl statusOutput:
Auriya Daemon Status Daemon: Running Enabled: true Binder IPC: OPERATIONAL Games: 1 configured FPS: 42.8 (sysfs) Log Level: InfoIf it prints Daemon: Not running, the daemon process failed to start or crashed during initialization. Inspect /data/adb/auriya/daemon.log.
auriyactl info
Section titled “auriyactl info”Executes a deep audit of hardware capabilities, SoC platform, CPU cluster topology, GPU devfreq/KGSL backend, kernel eBPF subsystem readiness, and daemon runtime RSS memory:
auriyactl infoOutput:
Hardware & Platform: Brand: Xiaomi Codename: marble Android: 17 (API 37) SoC Board: SM7475 (qcom) CPU Topology: 8 cores (4 Little, 3 Mid, 1 Prime) GPU: Adreno 725 GPU Driver: v@0863.1 (kgsl) Vulkan: Supported (v1.1) Active Render: OpenGL ES (GLES) Display: 120Hz (1080x2400) [Supported: 60Hz, 90Hz, 120Hz] Root Manager: KernelSU SELinux: Enforcing Kernel: 5.10.269-Chandelier-prjkt+ (aarch64)
Kernel eBPF Diagnostics: BPF Mount: Mounted (/sys/fs/bpf) BPF Syscall: Available (SYS_bpf) JIT Compiler: Enabled (bpf_jit_enable = 1) Kala Probe: Supported & Ready Active Engine: sysfs DRM Fallback
Daemon Runtime: PID: 11783 (Running) Memory (RSS): 5.4 MB CPU Load: 19.0% Workers: 72. Log Management & Live Streaming
Section titled “2. Log Management & Live Streaming”Auriya uses a high-performance, zero-allocation file logger that writes dmesg-style timestamps directly to disk without intermediate shell buffers.
Primary Log Files
Section titled “Primary Log Files”| Log File | Path | Details |
|---|---|---|
| Daemon Active Log | /data/adb/auriya/daemon.log |
Active runtime log with boottime timestamps ([ 1234.567890] [info] ...). |
| Daemon Rotated Log | /data/adb/auriya/daemon.log.old |
Previous log segment rotated automatically at 2 MB. |
| Restart Log | /data/adb/auriya/restart.log |
Startup captures generated during service restarts by service.sh. |
| Android System Log | logcat -s auriya |
Android system logcat entries from daemon bootup and root scripts. |
auriyactl log
Section titled “auriyactl log”Inspects, streams, or truncates the daemon log file directly from the terminal:
# View the last 30 log lines (default)auriyactl log
# View the last 100 log linesauriyactl log -n 100
# Stream logs continuously in real-time (equivalent to tail -f)auriyactl log -f
# Truncate / clear the daemon log fileauriyactl log --clearAdjust Log Verbosity Live (auriyactl set-log)
Section titled “Adjust Log Verbosity Live (auriyactl set-log)”Change the daemon’s log level at runtime without restarting:
auriyactl set-log debug # Options: trace | debug | info | warn | errorlog_level is not re-read from TOML on standard config reload; set-log is the live IPC mechanism for on-the-fly tracing.
3. Real-Time Telemetry & Monitoring
Section titled “3. Real-Time Telemetry & Monitoring”auriyactl monitor
Section titled “auriyactl monitor”Launches an interactive live telemetry dashboard tracking real-time frame rates, frame times, CPU cluster frequencies and loads, GPU frequencies, device temperatures, battery discharge current, and active package:
# Standard in-place dashboard (refreshes every 1000ms)auriyactl monitor
# Specify refresh interval (e.g. 500ms)auriyactl monitor -i 500
# Single-line rolling output (ideal for log files or non-interactive terminals)auriyactl monitor -1auriyactl stats
Section titled “auriyactl stats”Queries a point-in-time telemetry snapshot:
# Plain text human-readable summaryauriyactl statsOutput:
Auriya Live Telemetry (Ctrl+C to quit): FPS: 59.8 FPS (1% low: 56.4, 0.1% low: 52.1, peak: 60, σ: 1.24ms) CPU Load: 42% GPU Load: 68% (540 MHz) Temperature: CPU: 42°C, Bat: 37°C Battery: 78% (-612 mA) Active App: com.miHoYo.GenshinImpact (performance)# Raw JSON API envelope (ApiResponse<StatsSnapshot>)auriyactl stats --json
# Continuous telemetry snapshot streamauriyactl stats --stream --interval-ms 10004. Native Android Binder IPC Diagnostics
Section titled “4. Native Android Binder IPC Diagnostics”Auriya interacts directly with Android’s system framework via Native Binder IPC without spawning child helper processes.
auriyactl binder probe
Section titled “auriyactl binder probe”Probes Android’s servicemanager and audits connectivity with all core framework services:
auriyactl binder probeOutput:
Native Android Binder Probe: Binder IPC Status: Operational PowerManager.isInteractive: true Foreground App: com.miHoYo.GenshinImpact (PID: 15302) [Fullscreen] Display Mode (Binder): null (dynamic) Wi-Fi Low-Latency Lock: Inactive Status Bar Lock: Inactive (Unlocked) High Touch Polling Rate: Supported (Ready) Battery Saver (Native): Disabled Display Rotation: Frozen (Locked) Animation Scales: [1.0, 1.0, 1.0] Vibrator HAL Caps: 0x0027 PowerHAL Sustained: Supported PowerHAL Expensive: Supported Service 'power ': Available Service 'notification ': Available Service 'activity ': Available Service 'activity_task ': Available Service 'display ': Available Service 'statusbar ': Available Service 'window ': Available Service 'wifi ': Available Service 'thermalservice ': Available Service 'android.hardware.power.IPower/default': Available Service 'android.hardware.vibrator.IVibrator/default': Available Service 'vendor.lineage.touch.IHighTouchPollingRate/default': Availableauriyactl binder test
Section titled “auriyactl binder test”Executes an end-to-end automated self-test across all registered actuators:
auriyactl binder testOutput:
Native Binder Hardware Test:[1/13] Binder Servicemanager: PASS[2/13] PowerManager.isInteractive (true): PASS[3/13] Native Binder Foreground (com.miHoYo.GenshinImpact | PID: 15302 | fullscreen): PASS[4/13] Testing DnD actuator (Priority)... zen_mode is 1 (expected: 1) Restoring DnD actuator (All)... zen_mode restored to 0 (expected: 0)[5/13] Testing Display Refresh Rate actuator (120Hz)... Native Binder mode: Some(120.0) peak_refresh_rate is 120 (expected: 120.0) Restoring Display Refresh Rate (0Hz / dynamic)... Native Binder mode restored to None peak_refresh_rate restored to 120[6/13] Testing Wi-Fi Low-Latency lock actuator... Acquire Wi-Fi Low-Latency result: Ok(true) (Active: true) Restoring Wi-Fi Low-Latency lock... Release Wi-Fi Low-Latency result: Ok(false) (Active: false)[7/13] Testing Status Bar lock actuator... Lock Status Bar result: Ok(true) (Active: true) Restoring Status Bar lock... Unlock Status Bar result: Ok(false) (Active: false)[8/13] Testing PowerHAL modes actuator... Set ExpensiveRendering=true: Ok(()) Trigger Interaction boost: Ok(())[9/13] Testing Vibrator HAL actuator... Vibrator HAL capabilities: Ok(39) Pulse vibrator (30ms): Ok(()) Silence vibrator: Ok(())[10/13] Testing WindowManager actuator... Freeze rotation: Ok(()) (is_frozen: Ok(true)) Thaw rotation: Ok(()) Animation scales: Ok([1.0, 1.0, 1.0])[11/13] Testing Battery Saver actuator... Battery Saver active: Ok(false)[12/13] Testing Native Toast actuator... Show toast result: Ok(true)[13/13] Testing Direct Binder Broadcast actuator... Broadcast result: Ok(())
Native Binder self-test completed successfully (all 13 checks passed).Manual Binder Actuator Commands
Section titled “Manual Binder Actuator Commands”Test individual hardware actuators directly:
# Set Do Not Disturb filterauriyactl binder dnd priority # or 'all'
# Set display refresh rate override (0 to restore auto)auriyactl binder rate 120auriyactl binder rate 0
# Toggle Wi-Fi Low-Latency Lock (WIFI_MODE_FULL_LOW_LATENCY)auriyactl binder wifi onauriyactl binder wifi offauriyactl binder wifi status
# Toggle High Touch Polling Rate boostauriyactl binder touch onauriyactl binder touch status
# Toggle notification status bar lockauriyactl binder statusbar lockauriyactl binder statusbar unlock5. Runtime Tuning & Simulation
Section titled “5. Runtime Tuning & Simulation”Mock Package Injection (auriyactl inject)
Section titled “Mock Package Injection (auriyactl inject)”To debug profile scheduling and game detection without launching a heavy 3D game:
# Inject a mock package nameauriyactl inject com.miHoYo.GenshinImpact
# Check if profile switched to Performanceauriyactl status
# Clear mock injection and return to live Binder ProcessObserverauriyactl clear-injectOther Control Commands
Section titled “Other Control Commands”auriyactl ping # Verify Unix domain socket responsiveness ("PONG")auriyactl get-pid # Get PID of the running daemon processauriyactl get-fps # Query current measured FPS and target rateauriyactl get-rates # Query display refresh rates supported by Androidauriyactl reload # Hot-reload settings.toml and gamelist.toml from diskauriyactl restart # Gracefully terminate daemon (SIGTERM) and relaunchSystematic Troubleshooting by Boundary
Section titled “Systematic Troubleshooting by Boundary”1. Daemon Not Running / Crashes on Boot
Section titled “1. Daemon Not Running / Crashes on Boot”Symptoms: auriyactl status reports Daemon: Not running, or auriyactl ping fails.
- Inspect
/data/adb/auriya/daemon.logand/data/adb/auriya/restart.log. - Check
logcat -s auriyafor early kernel aborts or abort messages fromservice.sh. - Common root causes:
- Corrupted Installation: Binary SHA256 checksum mismatch. Re-flash the module ZIP.
- SELinux Denial: SELinux blocking socket creation under
/dev/socket/auriya.sock. Checkdmesg | grep -i avc. - Stale Socket: A leftover socket file exists. Run
auriyactl restartto trigger cleanup and relaunch.
2. Game Not Recognized / Profile Not Switching
Section titled “2. Game Not Recognized / Profile Not Switching”Symptoms: The game is open in the foreground, but auriyactl status remains on Powersave or Balanced.
- Run
auriyactl binder probeto verifyForeground App. If it displaysNone, checkdaemon.logforProcessObservererrors. - Confirm the game package name is present in the configuration:
If absent, add it via
Terminal window auriyactl list-gamesauriyactl add-game <package_name>. - Verify the decision order:
- Is the screen off? (PowerManager Interactive =
false). - Is Android Battery Saver mode turned on? Battery Saver always forces
Powersaveregardless of whitelist status.
- Is the screen off? (PowerManager Interactive =
- Test with mock injection:
auriyactl inject <package_name>. If the profile switches during injection, the issue is restricted to the foreground detection sensor.
3. FPS Stuck at 0 or Not Updating
Section titled “3. FPS Stuck at 0 or Not Updating”Symptoms: Game runs smoothly, but FPS reads 0 or N/A.
- Run
auriyactl infoand examine the Kernel eBPF Diagnostics section:- If
BPF Mountis not mounted, check if/sys/fs/bpfexists. - If
BPF Syscallis unavailable, the running kernel lacksCONFIG_BPF_SYSCALL=y. - If
Kala Probeis unavailable, checkdaemon.logto see if Kala failed to resolveandroid::Surface::queueBufferin/system/lib64/libgui.so.
- If
- Auriya automatically falls back to sysfs frame timing when eBPF is unavailable. If sysfs nodes are also absent on your vendor tree, FPS detection cannot operate.
4. Refresh Rate Override / DND Actuators Failing
Section titled “4. Refresh Rate Override / DND Actuators Failing”Symptoms: Entering a game does not switch the display to the configured refresh rate or DND fails to activate.
- Run
auriyactl binder probe. EnsureDisplay Mode (Binder)or relevant actuator fields are operational. - Run
auriyactl binder testto review step-by-step actuator execution logs. - Check
auriyactl get-ratesto verify the target refresh rate is actually supported by the display panel. - On heavily customized vendor ROMs (MIUI, HyperOS, ColorOS), OEM display frameworks may override standard
IDisplayManagerBinder calls.
Issue Reporting Guide
Section titled “Issue Reporting Guide”If you discover a bug, unexpected behavior, or a kernel/device incompatibility, please submit an issue on the Auriya GitHub Issues tracker.
When opening an issue, provide your device model, kernel version, Android version, root solution and version (KernelSU, Magisk, or APatch), Auriya version, and relevant logs from /data/adb/auriya/daemon.log.
You can copy and fill out the template below:
### Issue Summary[Provide a clear and concise description of the bug or unexpected behavior]
### Environment & Device Information- **Device Model**: [e.g. Xiaomi POCO F5 (marble)]- **SoC / Platform**: [e.g. Snapdragon 7+ Gen 2 (SM7475)]- **Android Version**: [e.g. Android 14 (API 34)]- **ROM / OS**: [e.g. HyperOS 1.0.8.0.UMRMIXM / LineageOS 21]- **Kernel Version**: [e.g. Linux 5.10.198-android12-9-00045-g84e491295b92 aarch64]- **Root Solution & Version**: [e.g. KernelSU v0.9.5 / Magisk v27.0 / APatch v10763]- **Auriya Version**: [e.g. v2.2.0 (release)]
### Target Application- **Package Name**: [e.g. com.miHoYo.GenshinImpact or N/A]- **Configured Profile**: [e.g. Performance / Balanced]
### Steps to Reproduce1. [First Step]2. [Second Step]3. [Third Step]
### Expected Behavior[What you expected to happen]
### Actual Behavior[What actually happened, including any error messages]
### Relevant Daemon Logs (`/data/adb/auriya/daemon.log`)[Paste the last 50-100 lines of /data/adb/auriya/daemon.log captured during the issue here]