For those having an issue with the never ending reboot of their Sony Xperia X Performance when trying to install, and having issues gaining access to TWRP. Please follow these instructions, it will fix all issues.
-
Start your phone in fastboot
-
In terminal make sure your device is showing up. Type "fastboot devices" and your phone should appear in the list.
-
Make sure you know the path to your TWRP recovery IMG file (twrp-3.4.0-0-dora.img). I just open terminal in the folder where the TWRP IMG resides, and then enter the following command,
"fastboot flash boot twrp-3.4.0-0-dora.img"
Remove the usb when complete and reboot the phone, it should startup to TWRP.
-
In TWRP select, "wipe", "format data"
-
Don't wipe everything, just wipe "data", "system", "dalvik", and "cache."
-
Reboot to bootloader and use UBports-installer to flash again. The installer first flashes UBports recovery, then the phone reboots and automatically goes into UBports recovery, then the system is flashed.
Let the installer and phone do their thing, it should work.