This article is made to help those who get stuck in Custom Recovery, every time then try to boot into the ROM. This happen usually after trying to take an OTA Update. To help us a XDA Recognized Developer named autoprime created something helpful for us.
Following the guide below will result in fixing stuck in Recovery issue. firstly download LG_G3_Flash2FixStuckRecovery.zip. Once downloaded copy it from PC to your phone. You can use TWRP’s MTP Feature to copy it from computer to phone. Use the OTG w/connected storage containing zip or use adb push to get the file onto your phone:
adb push LG_G3_Flash2FixStuckRecovery.zip /sdcard/
Then flash LG_G3_Flash2FixStuckRecovery.zip in Recovery or use adb commands below to fix boot issues:
adb shell su dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=256 count=1 conv=notrunc reboot
If you are still booting into TWRP/CWM, it might be because you may have accidentally flashed the Custom Recovery img to the boot partition slot instead of the Recovery Partition slot. Reflashing the ROM in TWRP/CWM should fix the boot.img. Or you can download the required boot.img, place it on root of internal storage and flash the boot.img in TWRP/CWM.
dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot reboot