- Find factory firmware for specific device online.
- Open SP Flash Tool & browse for device's scatter file.
- Go to the Format tab , then mark Manual Format Flash.
- Set the necessary values (refer to the scatter file)
- click Start , connect the device. At the end there will be a small window " OK ".
- Click on "Start".
- Connect the switched off phone to the computer.
Didn't work on some newer MTK (MediaTek) devices as it requests an authentication certificate to flash. Example: Redmi 6A - it require special Xiaomi account (authorized mi account)