raphael edl unlock

    1

    Specialized EDL workflow for Redmi K20 Pro bootloader unlocking and unbricking via Keymaster exploit.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    raphael edl unlock

    Example session with this skill installed

    The K20 Pro is bricked with "The system has been destroyed" after a bad vbmeta flash. How do I recover it via EDL?

    • Read your context and instructions
    • Compiled the raphael edl unlock

    I will guide you through the EDL recovery for raphael. Since you have a The system has been destroyed error, we must restore the boot chain and vbmeta via the 9008 interface.

    Warning: Use the laptop USB port directly. Kill any stray python.exe processes before starting.

    Recovery Plan

    Enter EDL: Power off the device. Hold the EDL cable button and plug it into the laptop. Verify Qualcomm HS-USB QDLoader 9008 appears in Device Manager.
    2.

    Initialize Environment: Ensure UsbDk is running and you are using the loader at assets\edl\loaders\iqinix\k20pro_3rd.elf.
    3. Execute Restore: We will use the quick restore path to fix the boot chain and AVB headers.

    
    # Navigate to the workspace
    cd E:\vibecoding\K20_Pro
    
    # Run the restore script (Quick mode: boot chain + vbmeta + dtbo + boot + misc)
    .\.venv\Scripts\python.exe factory_flash.py restore --quick
    

    The script will validate the SHA-256 of the backup images before writing. Once complete, the device will reboot into a functional state.

    Next steps

    • Verify the device boots to the OS.
    • If you still intend to unlock, ensure you have the F11_keepNV-RAPHAEL engineering package ready.
    • Check references/troubleshooting.md if the firehose fails to initialize.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Unlocking the bootloader on the Xiaomi Redmi K20 Pro (raphael) often hits a wall when official Mi Account tokens are unavailable or the system is "destroyed". This skill provides a specialized EDL (Emergency Download Mode) workflow to bypass official gates using engineering builds and keymaster exploits.

    What it does

    • EDL recovery provides steps to unbrick devices stuck in "The system has been destroyed" or 9008 loops.
    • Bootloader unlocking executes an offline bypass via factory engineering images and the Keymaster PoC.
    • Partition management handles safe backups and restores of the SM8150 UFS storage.
    • Validation verifies the unlocked-critical state using fastboot parameters after the exploit.
    • Safety enforcement prevents writing to protected partitions like modemst, persist, or rpmb to avoid permanent hardware damage.

    How it works

    1. Environment check verifies the UsbDk service, Python venv, and specific auth-free firehose loaders are present.
    2. Device entry initiates 9008 mode using a button cable and validates the hardware ID (0x000A50E1).
    3. Engineering flash deploys the F11 factory build to expose ungated device state commands.
    4. Keymaster PoC pushes and executes the memory exploit to write unlock flags directly to RPMB.
    5. Restoration rolls back the boot chain to stock while preserving the new unlocked state.

    Frameworks & tools

    This skill utilizes Python for flashing scripts, adb/fastboot for device interaction, and specialized Qualcomm 9008 firehose loaders. It targets the SM8150 (MSM855) chipset specifically for the raphael device.

    Why this beats prompting it yourself

    Standard prompts often suggest generic fastboot oem unlock commands that fail due to Mi token verification. This skill understands the specific hardware milestone fuses and why devinfo patches fail on this ABL, preventing unrecoverable bricks.

    Use cases

    • Bypass the Mi Account waiting period for bootloader unlocking.
    • Recover a device from a "system has been destroyed" brick.
    • Perform deep partition backups before custom ROM installation.
    • Audit device security state using the Keymaster READ_KM_DEVICE_STATE PoC.

    Known limitations

    Requires specific leaked engineering files and an auth-free firehose. Only tested on Redmi K20 Pro/Mi 9T Pro (raphael) with V12.5.6.0.RFKCNXM firmware.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Requires pre-collected internal/leaked files (firehose, engineering build). Only supports raphael (SM8150) devices. Windows UsbDk and 9008 button cable required.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 14 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Write Files
    Listed14 days ago

    What's inside

    Frequently Asked Questions

    This skill is specifically designed for the Redmi K20 Pro (raphael) and requires an AI agent capable of running Python scripts, executing shell commands via adb/fastboot, and managing USB passthrough for 9008 mode.

    Unlike generic scripts, this skill uses a Keymaster memory exploit and engineering builds to bypass Mi Account token checks, allowing for an offline unlock even if your device is currently bricked or 'destroyed'.

    The package includes the specialized EDL workflow, the hardware-specific firehose loader, and a step-by-step automation script that handles the F11 factory flash and partition management.

    Yes, the skill includes built-in safety checks that verify your Hardware ID (0x000A50E1) and prevent the agent from writing to sensitive partitions like 'persist' or 'rpmb' to avoid permanent damage.

    While the core exploit is hardware-based, this skill is optimized for Raphael devices running V12.5.6.0.RFKCNXM firmware; users on different versions should verify their bootloader version before proceeding.

    New in Agents & Orchestration

    Free