Skip to content

Debugging & Troubleshooting

A boundary-first diagnostic guide and issue reporting manual for Auriya on physical Android devices. Auriya spans four architectural boundaries:

  1. Android Manager Application: Jetpack Compose UI and floating HUD overlay.
  2. Unix Domain Socket: Local control plane at /dev/socket/auriya.sock.
  3. Native Binder IPC: Direct framework RPCs (IActivityManager, IPowerManager, IDisplayManager, IWifiManager, INotificationManager, IWindowManager).
  4. 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.

Auriya provides an extensive suite of CLI commands via auriyactl to audit, monitor, and troubleshoot the daemon in real time.

Displays the daemon’s operational state, PID, active package, active profile mode, and target FPS:

Terminal window
auriyactl status

Output:

Auriya Daemon Status
Daemon: Running
Enabled: true
Binder IPC: OPERATIONAL
Games: 1 configured
FPS: 42.8 (sysfs)
Log Level: Info

If it prints Daemon: Not running, the daemon process failed to start or crashed during initialization. Inspect /data/adb/auriya/daemon.log.

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:

Terminal window
auriyactl info

Output:

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: 7

Auriya uses a high-performance, zero-allocation file logger that writes dmesg-style timestamps directly to disk without intermediate shell buffers.

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.

Inspects, streams, or truncates the daemon log file directly from the terminal:

Terminal window
# View the last 30 log lines (default)
auriyactl log
# View the last 100 log lines
auriyactl log -n 100
# Stream logs continuously in real-time (equivalent to tail -f)
auriyactl log -f
# Truncate / clear the daemon log file
auriyactl log --clear

Adjust 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:

Terminal window
auriyactl set-log debug # Options: trace | debug | info | warn | error

log_level is not re-read from TOML on standard config reload; set-log is the live IPC mechanism for on-the-fly tracing.

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:

Terminal window
# 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 -1

Queries a point-in-time telemetry snapshot:

Terminal window
# Plain text human-readable summary
auriyactl stats

Output:

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)
Terminal window
# Raw JSON API envelope (ApiResponse<StatsSnapshot>)
auriyactl stats --json
# Continuous telemetry snapshot stream
auriyactl stats --stream --interval-ms 1000

Auriya interacts directly with Android’s system framework via Native Binder IPC without spawning child helper processes.

Probes Android’s servicemanager and audits connectivity with all core framework services:

Terminal window
auriyactl binder probe

Output:

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': Available

Executes an end-to-end automated self-test across all registered actuators:

Terminal window
auriyactl binder test

Output:

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).

Test individual hardware actuators directly:

Terminal window
# Set Do Not Disturb filter
auriyactl binder dnd priority # or 'all'
# Set display refresh rate override (0 to restore auto)
auriyactl binder rate 120
auriyactl binder rate 0
# Toggle Wi-Fi Low-Latency Lock (WIFI_MODE_FULL_LOW_LATENCY)
auriyactl binder wifi on
auriyactl binder wifi off
auriyactl binder wifi status
# Toggle High Touch Polling Rate boost
auriyactl binder touch on
auriyactl binder touch status
# Toggle notification status bar lock
auriyactl binder statusbar lock
auriyactl binder statusbar unlock

To debug profile scheduling and game detection without launching a heavy 3D game:

Terminal window
# Inject a mock package name
auriyactl inject com.miHoYo.GenshinImpact
# Check if profile switched to Performance
auriyactl status
# Clear mock injection and return to live Binder ProcessObserver
auriyactl clear-inject
Terminal window
auriyactl ping # Verify Unix domain socket responsiveness ("PONG")
auriyactl get-pid # Get PID of the running daemon process
auriyactl get-fps # Query current measured FPS and target rate
auriyactl get-rates # Query display refresh rates supported by Android
auriyactl reload # Hot-reload settings.toml and gamelist.toml from disk
auriyactl restart # Gracefully terminate daemon (SIGTERM) and relaunch

Symptoms: auriyactl status reports Daemon: Not running, or auriyactl ping fails.

  1. Inspect /data/adb/auriya/daemon.log and /data/adb/auriya/restart.log.
  2. Check logcat -s auriya for early kernel aborts or abort messages from service.sh.
  3. 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. Check dmesg | grep -i avc.
    • Stale Socket: A leftover socket file exists. Run auriyactl restart to 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.

  1. Run auriyactl binder probe to verify Foreground App. If it displays None, check daemon.log for ProcessObserver errors.
  2. Confirm the game package name is present in the configuration:
    Terminal window
    auriyactl list-games
    If absent, add it via auriyactl add-game <package_name>.
  3. Verify the decision order:
    • Is the screen off? (PowerManager Interactive = false).
    • Is Android Battery Saver mode turned on? Battery Saver always forces Powersave regardless of whitelist status.
  4. Test with mock injection: auriyactl inject <package_name>. If the profile switches during injection, the issue is restricted to the foreground detection sensor.

Symptoms: Game runs smoothly, but FPS reads 0 or N/A.

  1. Run auriyactl info and examine the Kernel eBPF Diagnostics section:
    • If BPF Mount is not mounted, check if /sys/fs/bpf exists.
    • If BPF Syscall is unavailable, the running kernel lacks CONFIG_BPF_SYSCALL=y.
    • If Kala Probe is unavailable, check daemon.log to see if Kala failed to resolve android::Surface::queueBuffer in /system/lib64/libgui.so.
  2. 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.

  1. Run auriyactl binder probe. Ensure Display Mode (Binder) or relevant actuator fields are operational.
  2. Run auriyactl binder test to review step-by-step actuator execution logs.
  3. Check auriyactl get-rates to verify the target refresh rate is actually supported by the display panel.
  4. On heavily customized vendor ROMs (MIUI, HyperOS, ColorOS), OEM display frameworks may override standard IDisplayManager Binder calls.

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 Reproduce
1. [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]