For the moto E4, Motorola has a guide in their support site to unlock the bootloader. I used it to be able to flash a 64bit rom for my moto g4 plus and the process was pretty straightfoward, although you do need a pc to use the adb command line tool.