Xiaomi

Xiaomi Black Shark 2 (skywalker): QFIL & Fastboot Flashing Guide

Complete firmware flashing guide for the Xiaomi Black Shark 2 (skywalker) using QFIL. Covers prerequisites, firmware package setup, and step-by-step instructions.

Xiaomi Black Shark 2 (skywalker) March 2019
Models
SKW-H0 (Global / Europe), SKW-A0 (China)
CPU
Octa-core (1x 2.84 GHz Kryo 485 + 3x 2.42 GHz Kryo 485 + 4x 1.78 GHz Kryo 485)
GPU
Qualcomm Adreno 640
RAM
6 GB, 8 GB, 12 GB LPDDR4X
Storage
128 GB, 256 GB UFS 2.1
Display
6.39" AMOLED, 1080 x 2340 FHD+, 240Hz touch polling rate
Battery
4000 mAh Li-Ion, 27W wired charging (Quick Charge 4.0+ / USB-PD 3.0)
OS
Android 9.0 (JoyUI 11), upgradable to Android 10 (JoyUI 12)
Connectivity
Wi-Fi 802.11 a/b/g/n/ac dual-band, Bluetooth 5.0, USB Type-C 2.0 (No NFC)
Colors: Shadow Black Mirage Blue Frozen Silver

About the Xiaomi Black Shark 2 (skywalker)

The Xiaomi Black Shark 2 (skywalker) (hardware codename skywalker) is a high-performance gaming phone officially launched in March 2019. Powered by the 7nm Qualcomm Snapdragon 855 SM8150 (7nm) processor with an Adreno 640 GPU, the device features a pressure-sensitive 6.39-inch AMOLED display with a 240Hz touch polling rate, dual front stereo speakers, liquid cooling pipes, and up to 12 GB RAM.

This procedural guide details how to repair, restore, and flash official stock JoyUI software on the Xiaomi Black Shark 2 (skywalker). Whether unbricking a hard-bricked phone stuck in Qualcomm 9008 EDL mode via QFIL or performing a clean fastboot restore, follow these tested workshop procedures to return your device to full working factory order.

Which Flash Mode Should You Use?

Fastboot Mode

Official Google bootloader communication mode used for fastboot commands, partition checks, and temporary custom recovery booting.

How to enter
Power off the device. Hold Volume Down and Power buttons simultaneously until the green Black Shark Fastboot rabbit logo appears on screen.
Requires
PC, ADB & Fastboot binaries, USB cable

Custom Recovery (TWRP wzsx150)

Touch-based custom recovery environment for manual backup creation, partition clearing, and flashing recovery ZIP archives.

How to enter
Boot device into Fastboot mode. In terminal, execute fastboot flash recovery recovery.img, then hold Volume Up and Power until the TWRP splash screen displays.
Requires
Unlocked Bootloader, Fastboot mode

Essential Equipment & Pre-Flash Setup for skywalker

1
Charge Battery to 50%+

Verify that your 4,000 mAh battery is at least 50% charged. If unbricking a dead device, let it charge on a standard 5V wall charger for 30 minutes before entering EDL mode.

2
Rear Motherboard USB 2.0 Port

Use an authentic USB Type-C cable plugged into a rear USB 2.0 port. Front-panel USB 3.0 hubs frequently drop packet handshakes during UFS partition writing.

3
Qualcomm 9008 Signed Drivers

Install signed Qualcomm HS-USB QDLoader 9008 drivers (v1.0.0.51 or newer) on a 64-bit Windows installation so QFIL can communicate with the emergency COM port.

4
QPST & QFIL Suite Installed

Download and install QPST v2.7.480 or newer. Launch QFIL directly from C:\Program Files (x86)\Qualcomm\QPST\bin\QFIL.exe as Administrator.

5
Backup Critical Data

Performing full rawprogram0.xml restoration completely formats the UFS 2.1 flash memory, wiping user applications, photos, and internal storage.

Quick 5-Minute QFIL EDL Restoration Steps

These 5 steps are tailored to the Xiaomi Black Shark 2 (skywalker) (Snapdragon 855). For screenshots, an interactive checklist, and troubleshooting, open the full QFIL guide.

  1. Download and unpack the verified unbrick archive Xiaomi_Black_Shark_2_SKW-H0_Non-EEA_190919_QPST.zip into a short directory such as C:\BS2_FW
  2. Launch QFIL as Administrator, select Flat Build, click Browse to select prog_firehose_ddr.elf, and load rawprogram0.xml and patch0.xml
  3. Ensure the persist partition line is omitted or unchecked in rawprogram0.xml to preserve optical fingerprint sensor factory calibration
  4. Power off the Black Shark 2, hold Volume Up and Volume Down together, and insert the USB cable to establish the Qualcomm 9008 COM port
  5. Select the detected COM port in QFIL, click Download to write all raw UFS partitions, and disconnect the cable once Download Succeed displays

Qualcomm XML Partition Table & Firehose Configuration

The Xiaomi Black Shark 2 uses Qualcomm XML partition tables (rawprogram0.xml and patch0.xml) paired with the DDR firehose programmer (prog_firehose_ddr.elf) rather than MediaTek scatter files. Load rawprogram0.xml inside QFIL to map all UFS storage partitions.

rawprogram0.xml

Qualcomm Snapdragon 855 devices utilize XML partition descriptors. The primary programmer file initializes LPDDR4X memory timing, while rawprogram0.xml instructs the QPST engine on sector assignments for system, vendor, boot, and modem partitions.

Never check or replace the persist.img partition when flashing XML files in QFIL unless specifically recovering a destroyed persist block. Overwriting persist erases factory optical fingerprint calibration and proximity sensor parameters.

Verified Factory Firmware Downloads for Black Shark 2

The verified factory packages below represent tested unbrick images for both European SKW-H0 and Chinese SKW-A0 hardware variants.

Version Region Android Version Size MD5 Download
SKYW1909192OS00MP4 (QFIL EDL Unbrick) Global (Non-EEA) / Europe Android 9.0 (JoyUI 11) 2.05 GB b75049a9b51642cc12523f187712f514 ⬇️ Download
SKYW2203210CN00MR1 (China Factory EDL) China Domestic Android 10 (JoyUI 12) 4.1 GB 491f2e6eb0c64c5b8068d5c3509eaad0 ⬇️ Download

Need earlier JoyUI builds, transition packages, or TWRP recovery installers? Browse the complete Xiaomi Black Shark 2 firmware archive on AndroidFirmwareFile

Critical Firmware Partition Notes for Black Shark 2

Flashing Qualcomm Snapdragon 855 architecture requires strict adherence to communication timing. When flashing unbrick images such as Xiaomi_Black_Shark_2_SKW-H0_Non-EEA_190919_QPST.zip, ensure you connect your USB cable directly to a rear USB 2.0 motherboard port on a 64-bit Windows PC.

If your device has an unlocked bootloader and is stuck in a bootloop, you can use Fastboot mode to boot or flash TWRP-3.3.2B-0218-BLACKSHARK_SHARK2-CN-wzsx150-fastboot.zip, enabling manual user data backups and clean ZIP installations prior to performing full EDL reflashes.

Troubleshooting Black Shark 2 Flashing & QFIL EDL Errors

ERROR: function: sahara_rx_data:277 / Sahara protocol error: 2

Occurs when QFIL fails to exchange the initial hello packet with the Qualcomm primary bootloader over the USB bus. This is typically caused by connecting to a USB 3.0/3.1 port or using a loose cable. Switch your USB cable to a rear USB 2.0 port, reseat the connection, and relaunch QFIL.

FAILED (remote: 'Partition not found or not flashable')

Occurs in Fastboot when attempting to flash custom recovery or system partitions while the bootloader is locked, or when targeting a non-existent slot. Verify your bootloader status by executing fastboot oem device-info and ensure your bootloader is unlocked before flashing recovery.

QSaharaServer: Fail to open COM port / Device descriptor request failed

Windows Device Manager displays a yellow exclamation mark on the Qualcomm device. This indicates driver signature conflicts or missing Qualcomm QDLoader drivers. Reinstall the signed Qualcomm HS-USB QDLoader 9008 driver package (v1.0.0.51) with Administrator privileges and reboot your PC.

Resolutions for Sahara handshake failures, driver conflicts, and Fastboot partition errors on the Black Shark 2. Troubleshooting & Error Resolutions β†’

Black Shark 2 Flashing & Workshop Troubleshooting FAQ

Ready to Flash?

Follow the full step-by-step QFIL guide with interactive progress tracking, prerequisite checklist, and complete troubleshooting.

Open Full Guide