Before you can flash any custom software, you must unlock the bootloader. Note that this process and will permanently delete your DRM keys.

your chosen ROM and the correct GApps (Google Apps) package. Boot into TWRP by holding Power + Volume Down. Data, Cache, and System partitions. file, followed immediately by the GApps and wait (the first boot can take up to 10 minutes). 📁 Where to Find Downloads

In conclusion, the pursuit of a custom ROM for the Sony Xperia XA1 is a microcosm of the broader Android modding spirit. It is not for the faint of heart; it requires patience, a tolerance for bug-squashing, and a willingness to accept that perfection may never come. Yet, for the enthusiast who looks at a three-year-old phone gathering dust in a drawer and sees potential rather than waste, the custom ROM is a liberation. It proves that even a mid-range MediaTek device can learn new tricks, that security patches can be current, and that with enough community dedication, a 2017 Xperia can feel less like a relic and more like a renaissance.