Hi,
I recently installed successfully U-community on an XZ2 compact devices, but I faced an issue in unlocking the boot loader from a windows 10 PC. The sony sa0118 USB driver I fetched from here https://developer.sony.com/file/download/xperia-xz2-driver didn’t work with fastboot in fastboot mode, (but works with adb when booted). I finally found this topic https://xdaforums.com/t/tool-latest-adb-fastboot-and-usb-driver-installer-tool-for-windows.3999445/ and used this Latest-ADB-Installer.bat file and it solved my problem. Before running the script the device must be connected in fastboot mode to the PC. The windows device manager identifies it as “Android Composite ADB Interface”.
Regain your privacy! Adopt /e/OS the deGoogled mobile OS and online services