Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vendor image article #427

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,36 @@ _Sony vendor image is a binary file that contains device-specific firmware from
_This file is sometimes called by the name "AOSP SW binary blob", too._

This article explains how the vendor image can be reflashed (installed) **without reflashing the actual Sailfish OS**. This means that you can change the vendor image while
keeping your data and apps untouched.
keeping your data and apps untouched.

Sony keeps updating the vendor image every now and then. When publishing a Sailfish OS port for a new Xperia device, Jolla tests the functionality with one vendor image and recommends using the tested one. Potential more recent images are usually not tested. However, the community people at the [Forum](https://forum.sailfishos.org/) may do so.

Sony keeps updating the vendor image every now and then. The image for Xperia XA2 has been upgraded from version 16 to version 17B in March 2019. This is used in the examples of this document.
The vendor image for Xperia XA2 has been upgraded from version 16 to version 17B in March 2019. This is used in the examples of this document.


# How to check the current vendor image
# How to check the current vendor image on a phone

Checking the current version of the vendor image can be done with the following command on Xperia XA2 and Xperia 10.
Checking the current version of the vendor image can be done with the following commands.

* Xperia XA2 and Xperia 10:
```
devel-su grep ro.odm.version /odm/build.prop
```
* Xperia 10 III, Xperia 10 IV, and Xperia 10 V:
```
devel-su grep ro.odm.version /odm/etc/build.prop
```

Unfortunately, we do not have the command for Xperia 10 II nor 10 III.
We do not have the command for Xperia 10 II.


# Upgrading the vendor image


1. Download the zipped vendor image file to your Sailfish OS installation directory (where you flashed your phone).
2. Unzip it there. The resulting file is "SW_binaries_for_Xperia_Android_*.img"
3. Connect your Xperia to a USB2 port of your computer (pressing the Vol Up button at the same time) so that the blue LED gets lit on the Xperia.
4. Give one of the following commands.
3. Connect your Xperia to a USB2 port of your computer (pressing the Vol Up button at the same time) so that the blue indicator light gets lit on the Xperia.
4. Give the following command (it is good for all Xperia models).

```
fastboot flash oem_a <filename>
Expand All @@ -53,8 +60,7 @@ fastboot flash oem_a SW_binaries_for_Xperia_Android_8.1.6.4_r1_v17_nile.img

This is the expected output from the command:
```
fastboot flash oem_a
SW_binaries_for_Xperia_Android_8.1.6.4_r1_v17_nile.img
fastboot flash oem_a SW_binaries_for_Xperia_Android_8.1.6.4_r1_v17_nile.img
target reported max download size of 536870912 bytes
sending 'oem_a' (210888 KB)...
OKAY [ 4.885s]
Expand Down
Loading