Sony is now rolling out a new software update 48.1.A.2.21 for Xperia XA1 family smartphones. The update comes with Android May security patch.
The latest Android May security patch brings fixes for Common Vulnerabilities and Exposures (CVE) in the open-source Android OS. In addition, the firmware update also includes bug fixes and other improvements.
Software update 48.1.A.2.21 for Xperia XA1 family smartphones will gradually roll out to everyone. You can also check manually for updates, go to Settings > About device > System update.
Make sure you have enough charge on your device at least 60% to 70% before downloading the update.