In order to root a
Sony Xperia XA phone I followed the steps described here, until the step to reboot the device in recovery mode. Using an Ubuntu computer and the phone connected by USB, I ran the following command:
sudo adb reboot recovery
after I copied the recovery image to the phone as described on the page linked above.
However, the phone rebooted normally and not in recovery mode. There was no option to load the root file to flash the device.
Is there any other way to reboot the device in recovery mode?