I just unlock bootloader and flash LineageOS for SO-04E
1. You must flash KitKat from official here: https://ftf.andro.plus/
2. Check your bootloader status from *#*#7378423#*#* into the dialler. Choose service info and see bootloader unlock status. Only yes is unlockable.
3. Don't use fastboot to unlock it, it failed at first time and succed after but relocking on reboot.
4. Go to Sony unlock site to get unlock code, check for xperia ZR.
5. Download latest flashtool from flashtool.net and unlock it, make sure you unlock it 2 times. Because first time will be not enough.
6. flash twrp and LineageOS for dogo
It's the first time I write tutorial