Before you flash: Flashing firmware will erase all data on your device. Back up contacts, photos, and apps before proceeding. FlashGuideHub is not responsible for any damage caused by following this guide.
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?
Qualcomm EDL 9008 Mode (Emergency Download)
Low-level Qualcomm bootloader emergency state used by QFIL and QPST to unbrick dead devices, recover from bootloops, and write raw UFS partitions.
Fastboot Mode
Official Google bootloader communication mode used for fastboot commands, partition checks, and temporary custom recovery booting.
Custom Recovery (TWRP wzsx150)
Touch-based custom recovery environment for manual backup creation, partition clearing, and flashing recovery ZIP archives.
Essential Equipment & Pre-Flash Setup for skywalker
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.
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.
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.
Download and install QPST v2.7.480 or newer. Launch QFIL directly from C:\Program Files (x86)\Qualcomm\QPST\bin\QFIL.exe as Administrator.
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.
-
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
-
Launch QFIL as Administrator, select Flat Build, click Browse to select prog_firehose_ddr.elf, and load rawprogram0.xml and patch0.xml
-
Ensure the persist partition line is omitted or unchecked in rawprogram0.xml to preserve optical fingerprint sensor factory calibration
-
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
-
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
Snapdragon 855 chips require high-speed, noise-free USB signal lines during the initial Sahara protocol handshake. If the PC port is USB 3.0, the controller can attempt a 5Gbps link negotiation that causes the Qualcomm 9008 boot ROM to drop the connection. Always plug your cable into a native black USB 2.0 port on the motherboard rear panel and keep the cable under 1 meter in length.
If your Black Shark 2 is deeply bricked and will not respond to the Volume Up + Down key combination, emergency 9008 mode can be triggered via hardware test points. The two gold test point pads are situated beneath the glass/aluminum rear cover, adjacent to the battery connector and main camera shielding bracket. Shorting these two pads with precision tweezers while connecting the USB cable forces the Qualcomm boot ROM into 9008 mode without battery power.
The persist partition stores unique hardware calibration data specific to your individual device, including the optical under-display fingerprint sensor baselines, digital camera color matrix calibration, and Bluetooth/Wi-Fi MAC addresses. If you flash a blank or generic persist.img from another device, the optical fingerprint scanner will fail with calibration errors and optical enrollment will stop working.
The Black Shark 2 features a specialized 240Hz touch polling digitizer driven by dedicated touch controller firmware on the vendor partition. If you cross-flash from China JoyUI to Global JoyUI without updating the vendor and bootloader partitions in the proper sequence, the kernel touch driver will fail to negotiate with the digitizer, rendering touch input frozen. Flashing the complete unbrick package or matching vendor.img resolves the issue.
Ready to Flash?
Follow the full step-by-step QFIL guide with interactive progress tracking, prerequisite checklist, and complete troubleshooting.