1. Emergency download mode /9008 comm port
adb reboot edl
fastboot oem edl
or
$ fastboot reboot emergency
lsusb =>
ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)
2. oem
adb reboot bootloader
fastboot.exe oem program-model-24
3.
fastboot erase userdata
fastboot -w
4. lock/unlock
C:\Temp>fastboot oem lock
OKAY [ 0.047s]
Finished. Total time: 0.047s
C:\Temp>fastboot -w
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 1359867 4k blocks and 340032 inodes
Filesystem UUID: f9ed9b40-f961-11e9-95e8-69aca3400eb4
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 65536 4k blocks and 65536 inodes
Filesystem UUID: fa32bb4e-f961-11e9-b28d-8db29ef4b572
Superblock backups stored on blocks:
32768
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
Erasing 'userdata' FAILED (remote: 'device is locked. Cannot erase')
Finished. Total time: 0.922s
##############
Android/Setting/Developer options ---> Allow the bootloader ti be unlocked
#######
C:\Temp>fastboot oem unlock-go
OKAY [ 0.031s]
Finished. Total time: 0.031s