Get LineageOS for the Sony Xperia Z2
Special boot modes
Recovery: With the device powered off, hold Volume Down + Power. Keep holding both buttons until the device vibrates, then release.
Bootloader/Fastboot/Download: With the device powered off, hold Volume Up and connect the USB cable. The notification light should turn blue.