I can provide the exact file downloads and tailored steps for your device version. Share public link

If your phone hangs on the boot animation for more than 20 minutes, boot back into TWRP, perform a Factory Reset, and re-flash the ROM.

A custom recovery allows you to wipe partitions and flash the ROM zip files.

Receive Android security patches that Sony stopped providing years ago.

I can provide the exact file links and custom instructions for your exact setup. Share public link

Before you begin, you must check if your device is even eligible.

If your Xperia XA1 is feeling sluggish, dropping app support, or draining battery quickly, a custom ROM is the ultimate solution. Installing custom firmware allows you to bypass factory limitations, upgrade your Android version, and regain control over your hardware. Why Install a Custom ROM on the Xperia XA1?

Boot back into TWRP recovery, select Wipe > Factory Reset , and reboot. If the problem persists, re-download the ROM zip file to ensure the file wasn't corrupted during download, and flash it again.