Setting up SailfishOS for Sony Xperia 10iii

NOTE: This is exclusively for the XQ-BT52 variant of the Sony Xperia 10iii device.

We’re following the instructions for macOS as that’s my main laptop (but prefer linux).

In particular, follow instructions to unlock bootloader on the Sony website. Yes, you need to submit information to Sony in order to get the hexadecimal unlock code for your bootloader! (They won’t just let you do it - you must submit your IMEI.)

Once you’ve got your bootloader unlocked, go buy a SailfishOS license.

For limited time we offer you a perpetual commercial Sailfish OS license for legacy Sony Xperia™ devices.

Download the latest version of SailfishOS. As of this moment, I’m on 5.1.0.11, so I’ve mirrored the downloads necessary under: https://gluecode.net/web/software/sailfishos/

Specifically you need the image (per the flash-conf.sh script) at: https://opendevices.sony.net/file/download/software-binaries-for-aosp-android-11-0-kernel-4-19-lena

For a look at the actual output of the flashing process:

Sailfish_OS-Jolla-5.1.0.11-xqbt52-1.0.1.12$ sudo bash ./flash.sh
Flash utility v1.2
Detected macOS 26.5
Searching device to flash..
Found XQ-BT52, serial:HQ615D43A4, baseband:62.2.A.0.548,
bootloader:1322-1665_X_Boot_SM6350_LA2.0.2_T_205
Found matching device with serial HQ615D43A4
Fastboot command: fastboot -s HQ615D43A4
>> fastboot -s HQ615D43A4 getvar secure
<< secure: no
>> fastboot -s HQ615D43A4 flash:raw boot_a hybris-boot.img
Sending 'boot_a' (28620 KB)                        OKAY [  0.694s]
Writing 'boot_a'                                   OKAY [  0.120s]
Finished. Total time: 0.820s
>> fastboot -s HQ615D43A4 flash:raw boot_b hybris-boot.img
Sending 'boot_b' (28620 KB)                        OKAY [  0.695s]
Writing 'boot_b'                                   OKAY [  0.147s]
Finished. Total time: 0.853s
>> fastboot -s HQ615D43A4 flash dtbo_a dtbo.img
Sending 'dtbo_a' (238 KB)                          OKAY [  0.014s]
Writing 'dtbo_a'                                   OKAY [  0.005s]
Finished. Total time: 0.031s
>> fastboot -s HQ615D43A4 flash dtbo_b dtbo.img
Sending 'dtbo_b' (238 KB)                          OKAY [  0.009s]
Writing 'dtbo_b'                                   OKAY [  0.005s]
Finished. Total time: 0.026s
>> fastboot -s HQ615D43A4 flash userdata sailfish.img001
Warning: skip copying userdata image avb footer due to sparse image.
Sending sparse 'userdata' 1/3 (785385 KB)          OKAY [ 19.169s]
Writing 'userdata'                                 OKAY [ 17.793s]
Sending sparse 'userdata' 2/3 (771354 KB)          OKAY [ 19.104s]
Writing 'userdata'                                 OKAY [ 15.363s]
Sending sparse 'userdata' 3/3 (311592 KB)          OKAY [  7.736s]
Writing 'userdata'                                 OKAY [  7.222s]
Finished. Total time: 87.482s
>> fastboot -s HQ615D43A4 flash oem_a
>> ./SW_binaries_for_Xperia_Android_11_4.19_v9a_lena.img
Warning: skip copying oem_a image avb footer due to sparse image.
Sending 'oem_a' (343636 KB)                        OKAY [  8.255s]
Writing 'oem_a'                                    OKAY [  0.002s]
Finished. Total time: 8.272s

Flashing completed.

Remove the USB cable and bootup the device by pressing powerkey.

Sailfish_OS-Jolla-5.1.0.11-xqbt52-1.0.1.12$ 

Total time from “bootloader unlocked” to a running SFOS on the phone was about 20 minutes.