Magisk Nezha Agent logo

Magisk Nezha Agent

By@castula
Open Source
Downloads
0
Version
v2.3.4
Size
6.33 MB
Updated
4 Sept 2026

Module Overview

The Magisk Nezha Agent module integrates the Nezha server monitoring client directly into the Android systemless environment. It runs a persistent background daemon, allowing administrators to track device metrics continuously while bypassing standard Android process restrictions on ARM64 hardware.

Technical Overview of Magisk Nezha Agent

This module systemlessly injects the Nezha client binary into the Android boot process using a custom service script. Administrators can configure power strategies, choosing between a mandatory wake-lock for continuous connectivity or a default mode that respects Android deep sleep cycles to preserve battery life. Network fault tolerance logic prevents accidental offline reporting during mobile data transitions.

Core Features of Magisk Nezha Agent

  • Background Daemon: Implements a robust service script that automatically restarts the probe after exceptions and manages error limit tracking.
  • Selectable Power: Allows switching between constant wake-lock operations and battery-friendly deep sleep synchronization via the RUN_MODE variable.
  • Fault Tolerance: Conducts rapid pre-start ping tests to handle sudden network handoffs without triggering false offline panel alerts.
  • Automated Core: Relies on GitHub Actions to continually build and package the latest official ARM64 Nezha agent binary.
  • HTTPS Ready: Sets the SSL_CERT_FILE environment path using a built-in root certificate to maintain secure encrypted communication.

Supported Root Managers & Updates

Magisk Nezha Agent is strictly built for 64-bit (ARM64) Android devices and operates through Magisk, KernelSU, and APatch. The latest release infrastructure utilizes automated GitHub Actions to pull and compile the newest upstream agent core, ensuring immediate synchronization with modern monitoring panels.

How to Install Magisk Nezha Agent

  • Extract the module archive and insert your panel communication address and secret key into the /bin/config.yml file.
  • Repackage the modified directory back into a standard ZIP archive while strictly preserving the original folder structure.
  • Flash the customized ZIP file through Magisk, KernelSU, or APatch and restart the device to initiate the background service.

Why Choose Magisk Nezha Agent?

This module transforms a rooted Android device into a reliable monitoring node without permanently altering the core file system. Its customizable power management scripts ensure stable data reporting while successfully avoiding aggressive battery drain during network fluctuations.

Rate this Module

Share your experience with the community.

* You will be prompted to login via Google in one click to verify your rating.