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