Connecting to Download port...
Make sure battery is fully charged before flashing !!!
Power off the phone, Disconnect and reconnect the battery(if possible), Hold the VOL DOWN or VOL UP+DOWN and connect USB cable
Scanning Download port... Done.
Detected SPRD U2S Diag (COM6)
Connection status: XHCI:HUB3:HUB3:USB 2.0 High-Speed
USB Driver: [DriverCoding Corporation] sprdvcom, version: 2.0.0.114, date: 6-27-2014
Boot id: SPRD3
Sending FDL ... Done.
Boot version: Spreadtrum Boot Block version 1.1
Change baudrate to 460800 ... Done.
Sending NAND_FDL ... Done.
platform: , cpu abi: armeabi-v7a
manufacturer: Lava
board: , name: Z40
brand: Lava, model: Z40
build id: OPM2.171019.012, version: 8.1.0 Oreo (LAVA_Z40_1_8_V2.0_S107_20190130_ENG_IN)
build description: Z40-user 8.1.0 OPM2.171019.012 213 release-keys
Clear FRP Lock... Done.