Securing an Android Device with LineageOS
medium.com
medium.com
After installing LineageOS you should restore the stock recovery then lock the bootloader. It will do a factory reset. If you want to update down the road or flash another ZIP, run the flash_image binary as root with the proper parameters to install a temporary recovery, install any update or ZIP, then use the flash_image binary again to install the stock recovery.
Once someone has physical access to your device, you can pretty much always consider it to be compromised.
Also, I'd assume that the stock recovery on most phones will check the signature of the running Android, and refuse to boot if it doesn't match the one from the manufacturer.
Wouldn't your alteration prevent LineageOS from updating itself on a regular basis? I think it requires TWRP to do so.