# topjohnwu/magisk

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/topjohnwu-magisk).**

60,989 stars · 17,697 forks · Kotlin · GPL-3.0

## Links

- GitHub: https://github.com/topjohnwu/Magisk
- awesome-repositories: https://awesome-repositories.com/repository/topjohnwu-magisk.md

## Description

Magisk is an Android rooting framework designed to manage system-level modifications and grant administrative access to mobile devices. It functions by patching boot and recovery images to inject custom code into the operating system initialization sequence, allowing for system-wide control while maintaining compatibility with the underlying hardware.

The project distinguishes itself through a systemless modification layer that overlays a virtual file system on top of read-only partitions, enabling changes without altering core system files. It includes a policy daemon to manage security contexts and granular access control for privileged applications, alongside dynamic binary instrumentation capabilities that intercept function calls in running processes. These features are supported by a native toolchain that interacts directly with the hardware abstraction layer and kernel.

The framework provides a comprehensive suite for device modification management, including tools for patching firmware images, managing bootloader states, and handling recovery-based modifications on devices lacking a dedicated boot ramdisk. It also incorporates a cross-platform build toolchain for compiling and signing deployable packages, facilitating standardized software deployment across diverse hardware models.

## Tags

### Mobile Development

- [Android Rooting Frameworks](https://awesome-repositories.com/f/mobile-development/android-ecosystem/android-rooting-frameworks.md) — Facilitates administrative access by patching mobile operating system partitions to enable deep-level modifications.
- [Device Modification Managers](https://awesome-repositories.com/f/mobile-development/mobile-infrastructure-security/mobile-device-management/device-modification-managers.md) — Coordinates the installation, verification, and removal of system-level modifications across mobile hardware.
- [Firmware Customization Tools](https://awesome-repositories.com/f/mobile-development/mobile-operating-systems/firmware-customization-tools.md) — Integrates custom features and security configurations directly into manufacturer-provided mobile software images.
- [Firmware Modification Tools](https://awesome-repositories.com/f/mobile-development/mobile-infrastructure-security/mobile-device-management/firmware-modification-tools.md) — Patches boot and recovery images to support system-wide modifications on mobile devices. ([source](https://topjohnwu.github.io/Magisk/install.html))

### Operating Systems & Systems Programming

- [Kernel Patching Utilities](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/system-administration-utilities/system-modification-frameworks/kernel-patching-utilities.md) — Injects custom code into boot partitions during system initialization to establish administrative control.
- [Systemless Modification Layers](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/system-administration-utilities/system-modification-frameworks/systemless-modification-layers.md) — Applies system-level changes through a virtual file system overlay, leaving core read-only partitions untouched.
- [Mobile Firmware Patchers](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/system-administration-utilities/system-utilities/mobile-firmware-patchers.md) — Modifies boot and recovery images to execute custom code during the device startup sequence.
- [System Partition Modifiers](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/system-partition-modifiers.md) — Enables administrative modifications to system partitions by patching files rather than replacing entire firmware images.
- [Recovery Partition Hijacking](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/boot-startup-management/recovery-partition-hijacking.md) — Redirects boot sequences through recovery environments to persist system modifications on devices lacking dedicated boot ramdisks.

### Development Tools & Productivity

- [Mobile Build Toolchains](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-orchestration-logic/build-orchestration-configuration/build-automation-systems/build-systems/binary-compilation-toolchains/mobile-build-toolchains.md) — Supplies scripts and configuration logic to compile source code into signed, deployable binary packages for mobile environments.
- [Native Binary Toolchains](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-orchestration-logic/build-orchestration-configuration/build-automation-systems/build-systems/binary-compilation-toolchains/native-binary-toolchains.md) — Compiles C and C++ source code into native binaries capable of interacting directly with hardware abstraction layers and kernels.
- [Development Environment Setup Tools](https://awesome-repositories.com/f/development-tools-productivity/development-environment-management/environment-provisioning-configuration/development-environment-setup-tools.md) — Automates the configuration of necessary tools and platform-specific dependencies to establish a consistent software development workspace. ([source](https://topjohnwu.github.io/Magisk/build.html))

### DevOps & Infrastructure

- [Application Signing](https://awesome-repositories.com/f/devops-infrastructure/distribution-packaging/software-distribution/application-signing.md) — Applies digital signatures to software builds to verify authenticity and integrity during distribution. ([source](https://topjohnwu.github.io/Magisk/build.html))
- [Manufacturer-Specific Deployment](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/automation-and-tooling/deployment-tooling/manufacturer-specific-deployment.md) — Deploys patched firmware images by managing bootloader unlock states and executing specialized flashing procedures. ([source](https://topjohnwu.github.io/Magisk/install.html))

### System Administration & Monitoring

- [Dynamic Binary Instrumentation](https://awesome-repositories.com/f/system-administration-monitoring/logging-and-telemetry/dynamic-binary-instrumentation.md) — Intercepts and modifies system function calls by injecting custom libraries into running processes without altering disk files.
- [Package Management Guides](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/configuration-control-utilities/system-administration-tools/administration-tools/package-management-guides.md) — Restores original device states by uninstalling custom modifications through specialized installation packages or recovery environments. ([source](https://topjohnwu.github.io/Magisk/install.html))

### Part of an Awesome List

- [Mobile Device Management and Utilities](https://awesome-repositories.com/f/awesome-lists/devtools/mobile-device-management-and-utilities.md) — Systemless interface for modifying Android devices.
- [System Modification](https://awesome-repositories.com/f/awesome-lists/devtools/system-modification.md) — Standard tool for rooting and managing systemless modifications.
- [Security And Privacy](https://awesome-repositories.com/f/awesome-lists/security/security-and-privacy.md) — Systemless interface for modifying Android devices.

### Security & Cryptography

- [Access Control Daemons](https://awesome-repositories.com/f/security-cryptography/governance-policy-frameworks/security-frameworks/access-control-daemons.md) — Enforces granular access control for privileged applications by intercepting system calls and managing security contexts.
- [Bootloader Management](https://awesome-repositories.com/f/security-cryptography/hardware-security/bootloader-management.md) — Controls the device startup process to permit the execution of modified system images and custom recovery environments.
