CLI & Native Applets

Magisk Command-Line Tools & Binaries

Exhaustive developer and power-user reference documentation for all 4 native Magisk command-line binaries: magiskboot, resetprop, magiskpolicy, and su.

Native Binary Architecture & Invocation

Magisk's command-line utilities are implemented in high-performance C++ and compiled with the Android NDK for all target architectures (arm64-v8a, armeabi-v7a, x86_64, x86). When Magisk is installed, these binaries reside in /data/adb/magisk/ and are symlinked into the global root $PATH as well as accessible as standalone tools.

Master Tools Comparison & Invocation Matrix

Tool Name Primary Function Invocation Layer Typical Developer Use Case
magiskboot Boot image unpack / repack & CPIO ramdisk patcher Offline / Pre-boot / Recovery Modifying boot partitions, injecting binaries into root cpio
resetprop Live in-memory system property manipulation Runtime OS / Root Shell Spoofing device fingerprints, bypassing Play Integrity checks
magiskpolicy Real-time SELinux policy compiler and rule injector Early Boot / Live Kernel Granting specific SELinux permissions to custom root daemons
MagiskSU (su) Multi-user Superuser client and mount namespace manager User-Space Shell Executing elevated commands and accessing global mount namespaces
Source & Verification Standard

Last Reviewed: August 19, 2026 • Verified With: Magisk v30.7 • Primary upstream: topjohnwu/Magisk. Primary reference: topjohnwu/Magisk on GitHub.