Reverting Xperia X to Android using only Linux

Hi, I have Sailfish on my Xperia X right now, and is has a serious issue that makes it unusable.
I want to go back to Android, and I have found several questions about it on TJC, but several differing approaches are proposed there as well as in other sources. My particular situation is different from what I’ve found:

  • I have only Linux computers (can’t use Emma)
  • I don’t want to flash Android 6, 7 (my device came with this, bought it refurbished) or 8 - unless it’s an unavoidable step for getting to 10.
    I want to flash Android 10, provided @xda-devs

It is suggested that you can flash any ROM from a Linux box using Flashtool, but instructions are meager, and I can’t tell whether they also apply to my case, where there’s Sailfish on the device.

Also, it says to flash an *.ftf file, but there isn’t one included in the downloads from xda.
There is, however this SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V9_LOIRE.img file (as opposed to SW_binaries_for_Xperia_AOSP_M_MR1_3.10_v13_loire.img found on Jolla’s site), but this isn’t mentioned anywhere in the instructions for Flashtool.
So, I’m quite lost… Anyone has done this?

Do you think I need to install an older Android AOSP first (which one?) and then upgrade to 10 (but all just with Linux), or is there a way to flash the Android 10 directly?

1 Like

Oh I did the same hard way. Especially without windows. Here is the workflow (the only one). Adb and fastboot tools needed.

  1. Get your stockfirmware with xperifirm.
  2. Extract all.
  3. Search newflasher from xda.
  4. Put newflasher script in the firmware folder.
  5. Start the script with plugged phone in flashmode (not fastboot).
  6. Now you are back to stock rom.

From here you are free to flash any custom roms. It is the only way, because without reverting to stock a custom rom would be a mess.

here is the link to newflasher. Check all the questions in the flashing progress carefully.

https://forum.xda-developers.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426

4 Likes

Thank you for confirming this works with Xperia X a device released in 2016 as inference is that Newflasher applies to Sony phones including and newer than the XZ Premium here:
https://github.com/newflasher/newflasher

1 Like

Which Android version would you recommend flashing?

Newflasher is letting me down it seems. In flash mode, it seems to read the usb device in a mode that Newflasher doesn’t support - look here:


The gist is that this device (Xperia X) would be incompatible with Newflasher, but if you did it, then how…?

@bennypr0fane

In regard to your original query where “It is suggested that you can flash any ROM from a Linux box using Flashtool”, as far as I can remember it doesn’t matter if you are downgrading or upgrading provided the correct “wipe” boxes are ticked before flashing else it won’t boot. Although attached is a guide that I found at the time I am not sure if this just appertained to downgrading Xperia X to allow saving TABackup. Sorry I can’t provide credit to original source of screenshot.

With regards to SW Binaries these “blobs” only have to be added to Sailfish OS as are part of Sony “Stock ROM”. Remember holding down volume up and power button in case device becomes unresponsive until “three vibrations” and ensure battery full before flashing. Bear in mind installation of TWRP makes “wiping” of device a lot simpler:https://forum.xda-developers.com/xperia-x/development/ub-twrp-v3-2-1-xperia-x-t3786431

Okay, I am now on stock Android 8 flashed with xflasher. But back to the problem that I don’t have an ftf file that Flashtool seems to require.
I also installed TWRP now, I think:

[ben@catull-mnj ~]$ adb reboot bootloader
[ben@catull-mnj ~]$ fastboot flash recovery /mnt/RedData/ISO-images/Xperia-X/twrp-3.3.1-0-suzu.img
Sending 'recovery' (21824 KB)                      OKAY [  0.741s]
Writing 'recovery'                                 OKAY [  0.161s]
Finished. Total time: 0.918s
[ben@catull-mnj ~]$ fastboot reboot
Rebooting                                          OKAY [  0.001s]
Finished. Total time: 0.052s

I’m trying to flash Android Q onto the Xperia X. It has the the stock Android 8 from Sony right now, but can’t figure out where to go from here.
this is what I want to install: https://forum.xda-developers.com/xperia-x/development/rom-q-builds-t3969967
The instructions say “Copy to SD card and flash with recovery”. I copied the .zip file to an SD card which I inserted into the Xperia X. I installed the zip file using TWRP in recovery mode now , but now the phone isn’t booting, it’s stuck on the Sony logo.