I am facing a Xiaomi Redmi Note 7 (lavender) screen locked, and fortunately, the phone not connected MI Cloud. The bootloader has not been opened and is still closed, so I try to factory reset via Emergency Download Mode or commonly abbreviated as EDL.
Test Point EDL Mode
Connect the two points using tweezers then connect to a PC using a USB Cable. You must remove the rear body cover.

Need an Authorized Xiaomi ID?
No, what you need is a Prog EMMC Firehose SDM660 file.
How to Factory Reset using UFI Android Tool-Box?
- First, you must have a UFI Box or Dongle to run the Android ToolBox software.
- Make sure the phone is connected to a PC and state Qualcomm HS-USB QDLoader 9008 in the Ports Device Manager.
- Run as administrator UFI Android ToolBox launcher.
- Select the Flash menu tab → Qualcomm.
- Brand → Xiaomi.
- Platform → Xiaomi.
- Models → Xiaomi Redmi Note 7 (lavender).
- In the Firehose field, insert prog_emmc_firehose_Sdm660_ddr.mbn. Leave rawprogram.xml and patch.xml empty.
- Press the Identify Device button.
- Special Task -> Factory Reset.
- Confirmation warning erase all user data select Yes.
Logs Identify
Scanning for Qualcomm HS-USB QDLoader 9008 device...
Download Port: Qualcomm HS-USB QDLoader 9008 (COM6)
Connection status: XHCI:HUB3:HUB3:USB 2.10 High-Speed
USB Driver: [Qualcomm Incorporated] qcusbser, version: 2.1.2.0, date: 7-8-2015
Initializing...
MSM Serial number: 0xbe229af4
MSM HW ID: 0x0008c0e1 (SDM660)
OEM Public Key Hash: 0xa7b8b82545a98eca23d6e9105fb464568d1b5828264903441bdef0cd57e3c370
SBL SW version: 4
Firehose: prog_emmc_firehose_Sdm660_ddr[2].elf
hash: e6e2ea924913595285cdbbf47ef8075b8f0b9f0e, size: 618.97 KiB
QC_IMAGE_VERSION: BOOT.XF.1.4-00255-S660LZB-1
IMAGE_VARIANT: Sdm660LA
OEM_IMAGE_VERSION: c3-bsp-builder-job004.bj
Sending firehose loader... Done
Handshaking...
Sending ping... Done
Binary build date: Aug 2 2018 23:25:32
Chip serial num: 4294967295 (0xffffffff)
Sending configurations...
TargetName: MSM8996
MemoryName: eMMC
DateTime: Aug 2 2018 - 23:25:32
Version: 1
Firehose configured.
Storage type: eMMC
Manufacturer ID: 0x15 (Samsung)
Product name: DH6DAB (0x444836444142), rev: 0x02, serial number: 0x00000000
Capacity: 58.25 GiB(62,549,655,552 bytes)
Boot1: 4096 KiB
Boot2: 4096 KiB
RPMB: 4096 KiB
User area: 58.24 GiB(62,537,072,640 bytes)
platform: sdm660, cpu abi: arm64-v8a
manufacturer: Xiaomi
board: sdm660, name: lavender
brand: xiaomi, model: Redmi Note 7
build id: PKQ1.180904.001, version: 9 Pie (PKQ1.180904.001) (MIUI10)
build description: lavender-user 9 PKQ1.180904.001 V10.3.5.0.PFGMIXM release-keys
Mi account info:
status: off
user id:
lost mode: no
crypto state: encrypted
Logs Factory Reset
Scanning for Qualcomm HS-USB QDLoader 9008 device...
Download Port: Qualcomm HS-USB QDLoader 9008 (COM6)
Connection status: XHCI:HUB3:HUB3:USB 2.10 High-Speed
USB Driver: [Qualcomm Incorporated] qcusbser, version: 2.1.2.0, date: 7-8-2015
Initializing...
platform: sdm660, cpu abi: arm64-v8a
manufacturer: Xiaomi
board: sdm660, name: lavender
brand: xiaomi, model: Redmi Note 7
build id: PKQ1.180904.001, version: 9 Pie (PKQ1.180904.001) (MIUI10)
build description: lavender-user 9 PKQ1.180904.001 V10.3.5.0.PFGMIXM release-keys
Factory reset...
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 13/16384 inodes and 2091/65536 blocks
Writing cache... Done
Creating filesystem with parameters:
Size: 54618206208
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 13334523
Block groups: 407
Reserved block group size: 1024
Created filesystem with 11/3334144 inodes and 255346/13334523 blocks
Writing userdata... Done