How to install Sailfish X on Xperia™ 10 II

The instructions provide you step-by-step guidance how to install Sailfish X on Xperia™ 10 II.
During this process, you will install fastboot driver, download Sailfish X and necessary software binaries, unlock the bootloader of the phone, and last but not least, flash Sailfish X to your phone.
The process will take an average of 25 minutes.

1   What you need to begin

      • Xperia™ 10 II, either a single or dual SIM variant. Models XQ-AU51 and XQ-AU52, respectively.
      • Please upgrade your phone to Android 11 first (Android 10 works, too, but we recommend 11). You can do it in Settings app > System > Advanced > Software update.
      • Computer running Microsoft Windows (preferably Windows 10 or Windows 11, updated to the latest version)
      • Internet connection for your phone and computer
      • USB-C data cable, with one end of it always connected to the computer. There is no need to use the eject utility of Windows before detaching the cable from the phone anywhere in this guide
      • Purchased Sailfish X licence

2   Test key functions of your Xperia 10 running Android

      • Please use your Xperia™ 10 II running Android for a while prior to flashing Sailfish X.
      • Use the same SIM card(s) as you will use with Sailfish X. Check that you can make and receive phone calls and that you can hear the other person speaking and you can be heard during a phone call.
      • Browse a few web pages using mobile data connection while the WLAN is turned off.
      • Browse also web pages using WLAN as a data connection.
      • Open the camera app and shoot a few photos.
      •         Use GPS and find the location of your phone on a map.
      • If everything works normally then please proceed.

3   Install the fastboot driver to your computer

Note: The procedure below only does NOT work on Windows 10 with version 2004. Please upgrade your computer to version 20H2 (or any later version) and also install the cumulative updates after that. Check your Windows 10 version at Settings > System > About > Windows specifications (or at Settings > Update & Security > View update history).

3.1    Switch off your phone and wait until the LED is off.
3.2    While the phone is off, hold down the Volume Up button and connect your phone to your computer via USB cable. The LED light next to the speaker on the phone should light up blue. If it turns green then disconnect the cable and try again.
3.3    Get the needed fastboot driver from Sony. The Sony web page points to a driver for Sony Xperia™ X, however, this driver works on Xperia™ 10 II, too. Download the driver file from here to your computer.
3.4    Right-click the file xperia-x-driver.zip, click Extract All… and extract it to a folder.
3.5    On Windows 10 & 8, right-click the Windows Start button and choose Device Manager
3.5.1 On Windows 7, right-click the Computer icon on the desktop and choose Manage. When the Computer Management app appears, choose the Device Manager.
3.6    If the tree view features Sony sa0114 and Sony sa0114 ADB Interface Driver below, then your computer already has the correct fastboot driver installed. Go to chapter 3.21.
3.7    However, if you see Android with a warning triangle under Other devices, then the fastboot driver is not correctly installed.
3.8    Right-click Android and choose Update driver.
3.9    Then choose the option Browse my computer for driver software
3.10  Select Let me pick from a list of available drives on my computer
3.11   Select Show All Devices and click Next
3.12   Select Have disk…
3.13   Select Browse … and go to the folder where you extracted the drivers at chapter 3.3
3.14   Select the file sa0114adb.inf inside the folder and click Open
3.15   Click OK
3.16   Then you will see Sony sa0114 ADB Interface Driver in the Model list.
3.17   Click Next
3.18   At this point, you might see Update Driver Warning. Click Yes
3.19   After this, you see Windows has successfully updated your drivers and you can click Close.
3.20   The Device Manager features now Sony sa0114 in the tree view.
3.21   Disconnect the USB cable from your phone.
3.22   Your computer is now ready for unlocking the bootloader of your Xperia 10 II.

4   Get Sailfish X

4.1  Get the latest Sailfish X software from Jolla’s software download page. There, look for your phone, Xperia™ 10 II, either single SIM (XQ-AU51) or dual SIM (XQ-AU52) variant, and then download the related software. Download Sailfish X from here.
4.2  Extract the contents of the zip file to a folder.

5   Get the Sony software binaries

5.1   Download the Sony Software binaries for AOSP
SW_binaries_for_Xperia_Android_10.0.7.1_r1_v12b_seine.zip
Download from here.

5.2   Extract the contents of the zip file to a folder
5.3   Copy the resulting ‘.img’ file to the same folder as used in chapter 4.2

6   Enable developer options on your phone

6.1   Ensure that the phone has an internet connection
6.2  On the phone, go to Settings app About Phone, write down the IMEI number for later use. If there are two IMEI numbers, then only mark the IMEI of the SIM slot 1.
6.3  Tap on Build number multiple times to enable Developer options.
6.4  Go to Settings > System > Advanced > Developer options, and enable OEM unlocking (use the slider even if it appeared greyed out) and USB debugging.

7   Unlock the bootloader

7.1  Take your computer
7.2  You need an unlock code from the Sony web page. Please read the instructions carefully. See the Sony web page.
7.3  Proceed to the bottom of the page where it says Select your device.
7.4  Select your phone, Xperia™ 10 II
7.5  Enter the IMEIfrom chapter 6.2, into the web page’s input field, acknowledge warranty terms and then click Submit.
7.6   The unlock code will appear. Write it down for later use.
7.7   Switch off your phone and wait until the LED is off.
7.8   Press and hold the Volume up button and connect the other end of the USB cable to your phone and wait for the LED to light up blue. If it turns green then disconnect the cable and try again.
7.9  On your computer go to the folder, created in chapter 4.2, by using the Windows file manager. On top of the window, there is the path shown inside a field. Click on the empty part of the field (near the right end) which then highlights the whole path in blue.
7.10 Type cmd – these 3 letters will appear in the same field, replacing the blue path. Press Enter to commit.

7.11 The Windows terminal app opens with the path set to your current folder.

7.12 Enter the following command into the Windows terminal app.  When typing the command, you need to replace all characters after “0x” (zero ex) with your unlock code from step 7.6. Do not type the brackets.  See step 7.13 for an example of the actual command.

fastboot oem unlock 0x[insert your received unlock code]

7.13  On the terminal, you should see the output similar to this:

fastboot oem unlock 0xF6147ED3A507FBAD
OKAY [ 1.716s]
finished. total time: 1.720s

7.14   Disconnect the USB cable from your phone. Then, turn the phone on and let it boot up to the UI. No need to run the “Get started” phase (if requested). It is good to stop there. Just turn the phone off. This will complete the unlocking session.

8   Flash Sailfish X

NOTE:
If you did not yet restart the phone at step 7.14 do it now or else you will need to do the flashing (chapter 8) two times!

8.1  Make sure your phone is powered off.  The LED must not show any light.
8.2  Hold down the Volume Up button and connect the other end of the USB cable to the phone. The LED next to the speaker on the phone should light up blue.
8.3  Using the File Manager, go to the folder which you created in chapter 4.2. This folder must contain the Sailfish X and Sony Software binaries.
8.4  Double-click on flash-on-windows.bat. A console window appears.
8.5  Follow the instructions shown in the console window.
8.6  Detach the USB cable after the flashing has finished. The last 3 lines the flashing script prints are:

Flashing completed.
Remove the USB cable and bootup the device by pressing powerkey.
Press any key to continue . . .

8.7  Reboot your phone into Sailfish X!
If the phone keeps the blue LED lit (so it doesn’t turn off) use this trick. Then press the Power key to turn the phone on.
8.8  First, you will see a reminder of an unlocked bootloader, which can be ignored, and then the Sailfish OS logo.
NOTE: A sine sweep sound is played, unfortunately, when booting up this first time.
8.9   Sign in to your Jolla account in order to get the Android AppSupport and other licensed content. The Jolla account must be the same as you used when purchasing the Sailfish X licence.
8.10 Next, you can install more Sailfish apps from the Jolla Store or Android apps from stores like APKPure or Aptoide.
8.11  Please restart your Xperia 10 II once at this point to activate all services and complete the installation.

Happy flashing!