Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
[{"name":"adb-magisk-download.py","purpose":"Download Magisk APK and boot image from GitHub releases","type":"python","command":"uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-download.py","zero_context":true,"version":"1.0.0","last_updated":"2025-12-02T00:00:00.000Z"},{"name":"adb-magisk-install-app.py","purpose":"Install Magisk Manager app via adb install","type":"python","command":"uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-install-app.py","zero_context":false,"version":"1.0.0","last_updated":"2025-12-02T00:00:00.000Z"},{"name":"adb-magisk-extract-boot.py","purpose":"Extract boot.img from device via adb pull","type":"python","command":"uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-extract-boot.py","zero_context":false,"version":"1.0.0","last_updated":"2025-12-02T00:00:00.000Z"},{"name":"adb-magisk-patch-boot.py","purpose":"Patch boot image using Magisk app's patching mechanism","type":"python","command":"uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-patch-boot.py","zero_context":false,"version":"1.0.0","last_updated":"2025-12-02T00:00:00.000Z"},{"name":"adb-magisk-flash-boot.py","purpose":"Flash patched boot image back to device via fastboot","type":"python","command":"uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py","zero_context":false,"version":"1.0.0","last_updated":"2025-12-02T00:00:00.000Z"}]
color
blue
Quick Reference (30 seconds)
Complete Magisk System Installation
What It Does: Fully automates Magisk system installation from scratch. Handles app installation, boot image extraction, patching, and flashing. Transforms "Installed: N/A" to "Installed: Yes".
Core Capabilities:
📥 Download: Get latest Magisk APK and files from GitHub
📱 App Install: Install Magisk Manager via adb install
💾 Boot Extract: Pull boot.img from device
🔧 Boot Patch: Patch boot image using Magisk
⚡ Boot Flash: Flash patched image via fastboot
When to Use:
Device shows "Installed: N/A" (Magisk not system-integrated)
Fresh Magisk setup needed
Upgrading Magisk version (27.0 → 30.6)
Boot image needs patching
Device Status Meaning:
✅ Installed: Yes - Magisk integrated with system
⚠️ Installed: N/A - App installed, but boot image not patched/flashed
❌ Installed: No - Magisk app not installed
Installation Workflow
The complete Magisk installation process (magisk-complete-install.toon):
Phase 1: Download & Prepare
Download Magisk APK from GitHub releases
Download matching boot image (device-specific)
Stage files on device storage (/sdcard)
Phase 2: Install App
Push Magisk Manager APK to device
Install via adb install
Verify app launches successfully
Phase 3: Extract Boot Image
Connect via adb
Extract boot.img from active partition
Store locally for patching
Phase 4: Patch Boot Image
Launch Magisk Manager app
Select boot image for patching
Magisk generates patched_boot.img
Pull patched image from device
Phase 5: Flash Boot Image
Enable USB fastboot mode
Flash patched_boot.img via fastboot
Verify installation
Device reboots with Magisk integrated
Scripts
adb-magisk-download.py
More from this repository
Download latest Magisk APK and boot image from GitHub releases.
# Download latest version
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-download.py \
--output-dir /tmp/magisk
# Download specific version
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-download.py \
--version 30.6 \
--output-dir /tmp/magisk
# Include boot image
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-download.py \
--version 30.6 \
--include-boot \
--output-dir /tmp/magisk
# JSON output
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-download.py \
--version 30.6 \
--json
adb-magisk-install-app.py
Install Magisk Manager APK via adb install.
# Install APK on device
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-install-app.py \
--device 127.0.0.1:5555 \
--apk-path /tmp/magisk/Magisk-v30.6.apk
# Force reinstall
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-install-app.py \
--device 127.0.0.1:5555 \
--apk-path /tmp/magisk/Magisk-v30.6.apk \
--force
# Verify after install
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-install-app.py \
--device 127.0.0.1:5555 \
--apk-path /tmp/magisk/Magisk-v30.6.apk \
--verify
# JSON output
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-install-app.py \
--device 127.0.0.1:5555 \
--apk-path /tmp/magisk/Magisk-v30.6.apk \
--json
adb-magisk-extract-boot.py
Extract boot.img from device via adb pull.
# Extract boot image (auto-detects active partition)
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-extract-boot.py \
--device 127.0.0.1:5555 \
--output-path /tmp/magisk/boot.img
# Extract from specific partition
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-extract-boot.py \
--device 127.0.0.1:5555 \
--partition boot_a \
--output-path /tmp/magisk/boot_a.img
# Verify integrity
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-extract-boot.py \
--device 127.0.0.1:5555 \
--output-path /tmp/magisk/boot.img \
--verify
# JSON output
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-extract-boot.py \
--device 127.0.0.1:5555 \
--output-path /tmp/magisk/boot.img \
--json
adb-magisk-patch-boot.py
Patch boot image using Magisk Manager app.
# Patch boot image (interactive via Magisk app)
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-patch-boot.py \
--device 127.0.0.1:5555 \
--boot-path /sdcard/boot.img
# Wait for patching to complete
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-patch-boot.py \
--device 127.0.0.1:5555 \
--boot-path /sdcard/boot.img \
--wait-completion
# Download patched image automatically
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-patch-boot.py \
--device 127.0.0.1:5555 \
--boot-path /sdcard/boot.img \
--output-path /tmp/magisk/patched_boot.img
# JSON output
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-patch-boot.py \
--device 127.0.0.1:5555 \
--boot-path /sdcard/boot.img \
--json
adb-magisk-flash-boot.py
Flash patched boot image via fastboot.
# Flash patched boot image
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py \
--device 127.0.0.1:5555 \
--boot-path /tmp/magisk/patched_boot.img
# Flash to specific partition
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py \
--device 127.0.0.1:5555 \
--boot-path /tmp/magisk/patched_boot.img \
--partition boot_b
# Auto-reboot after flash
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py \
--device 127.0.0.1:5555 \
--boot-path /tmp/magisk/patched_boot.img \
--reboot
# Verify before flashing
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py \
--device 127.0.0.1:5555 \
--boot-path /tmp/magisk/patched_boot.img \
--verify
# JSON output
uv run .claude/skills/adb-magisk-installer/scripts/adb-magisk-flash-boot.py \
--device 127.0.0.1:5555 \
--boot-path /tmp/magisk/patched_boot.img \
--json
Workflows
magisk-complete-install.toon
Complete Magisk installation from scratch (14 steps, ~15 minutes).