Download the latest version from XiaomiUpdate .
The phone is stuck in Emergency Download (EDL) mode due to a corrupted bootloader or partition table.
The Mi 5X is a robust device, but it has vulnerabilities, particularly regarding its software partitioning. Common causes for a hard brick include: mi 5x dead fix firmware
After the flash completes:
Before downloading any files, you must diagnose the problem. There are two types of "dead" for the Mi 5X: Download the latest version from XiaomiUpdate
Do not skip this. If your PC doesn't see your phone, the firmware won't flash.
If your phone is completely dead, you might already be in EDL mode, or you need to force it. but it has vulnerabilities
This firmware typically consists of: