Xperia 10 II: How to use the Recovery Mode

Jolla Care -

 

If your Xperia 10 II is not starting up normally or not starting up at all, you can attempt to fix your device with the help of the Recovery Mode. This article will provide you with step-by-step instructions on recovering a malfunctioning device.

NOTE: This article is for Xperia 10 II only. There are separate articles for all other Xperias, Jolla Phone, Jolla C (also Aqua Fish) and for Jolla Tablet:

 

CONTENTS

1 What is the Recovery Mode?
1.1 When should I use the Recovery Mode?

2 Setting up the Recovery Mode
2.1 Forcing Xperia to the Recovery Mode
2.2 Preparing your Windows computer for the Recovery Mode
2.3 Preparing your Mac computer for the Recovery Mode
2.4 Preparing your Linux computer for the Recovery Mode

3 Fixing your device with the Recovery Mode
3.1 Backing up data from your phone to a memory card
3.2 Resetting phone to factory settings in Recovery Mode
3.3 Releasing Xperia from "Permanent lock"
3.4 Running file system check

4 Reverting phone back to the normal state




 

1 What is the Recovery Mode?

Recovery Mode is a tool designed to help your device recover from critical errors. It is somewhat "hidden", because you are not meant to have to use it except in case of a rare device malfunction. To use it successfully you need a MicroSD card in your device.

Recovery Mode is considered a last resort and should be used only if there is no other way. It is a powerful tool and using it always means that your data on the device is at risk. Please read the instructions in this article carefully.

NOTE : You can install Sailfish X again ("re-flash") to your Xperia 10 II device. This is an effective way to resolve many kinds of problems, compared to Recovery Mode. Your Sailfish X license even entitles you to download a more recent Sailfish version from Jolla Shop. On the other hand, flashing implies that all data and apps in the device will be wiped away and lost. Please consider which way suits better to you.

If at any point you are uncertain about using Recovery Mode, please contact us.




 

1.1 When should I use Recovery Mode?

  • You are experiencing problems starting up your device.
  • Your device doesn't start past the Sony logo.
  • Your device seems to never complete the startup process, before restarting again (AKA "boot loop", starts up to "Sony logo" but no further).
  • Your device starts up to a state where it is unusable because of a corrupted or not visible user interface.
  • Some parts of the Sailfish OS system seem to be missing. For example, opening Settings crashes the phone or Settings opens as a blank screen.
  • You were instructed by Jolla's Service & Support personnel to use it.




 

2 Setting up the Recovery Mode




 

2.1 Forcing Xperia 10 II to the Recovery Mode

  • Disconnect the USB cable from Xperia 10 II

  • Turn Xperia 10 II OFF

  • If you have the fastboot drivers (Windows) or fastboot tools (Linux, Mac) already installed on your computer, skip to the next step. You have them if you installed Sailfish OS to your Xperia 10 II with the present computer. If not, install fastboot now - the instructions are:

  • Force your Xperia 10 II to the fastboot mode:

    • hold Volume Up key down and connect the data-connected USB cable (a charging cable would not work)
    • ensure that the LED at the top of the display area is lit in BLUE colour (if not, disconnect the cable, release the key and try again)
  • You will need the same version of hybris-recovery.img as belongs to the Sailfish OS version of your phone currently. In other words, if you have updated OS version 4.1.0 (say) to your phone, then you should use the hybris-recovery.img of that OS release. To ensure this, download the latest Sailfish OS image from https://shop.jolla.com/downloads/ (provided that you have updated your phone to the latest). Unzip the archive and observe the hybris-recovery.img file in it.

  • Open the Terminal app on your computer. Proceed to the directory where you have the hybris-recovery.img file. This directory should have the code "xqau51" or "xqau52" in its name.

  • The following commands will enable the Recovery Mode (the BLUE LED should be lit at this point)

On Windows:

  
  fastboot flash boot_a hybris-recovery.img
  fastboot flash boot_b hybris-recovery.img
  fastboot reboot

On Linux or Mac:

  sudo fastboot flash boot_a hybris-recovery.img 
  sudo fastboot flash boot_b hybris-recovery.img
  sudo fastboot reboot

 

Flashing_and_booting_Xperia_10_II_to_RecoveryMode.png

After this, there should not be any BLUE light on your Xperia 10 II. Instead, the following text should appear (in a really tiny font) at the top of Xperia 10 II display :

"RECOVERY: Connect USB cable and open telnet to address 10.42.66.66"

 

RecoveryMode.jpg

 

Next, if you have

  • a Windows computer, go to chapter 2.2
  • a Mac computer, go to chapter 2.3
  • a Linux computer, go to chapter 2.4




 

2.2 Preparing your Windows computer for the Recovery Mode

Controlling the Recovery Mode from a Windows computer requires the "RNDIS" drivers and a terminal application. If you have used Recovery mode before and installed RNDIS drivers then they might still be okay. In such a case, creating a Telnet connection from the PC to the phone could go as simple as this:

1. Connect your Xperia 10 II to your PC with a data-enabled USB cable.

2. Open the Windows CMD terminal

3. Type into the Terminal:

telnet 10.42.66.66

If this worked correctly you would see the black Recovery Mode menu on your computer screen (below). You are now ready to move to Chapter 3 Fixing your device with Recovery Mode

 

RecoveryModeXperia.png

 

However, if the telnet command (above) failed then continue following the instructions below.

Do the following to install the "RNDIS drivers" and the terminal application.

  1. Connect your Xperia 10 II (which is now in the Recovery Mode after running the steps of chapter 2.1 with a USB cable to your computer. While doing this, do not press any buttons of Xperia 10 II - simply connect the cable.

  2. Launch the Windows Device Manager:

- Windows 7: Open Start Menu and right-click on "Computer". Select "Manage".
- Windows 10: Open Start Menu and type "device manager". You should see Device Manager in the search list now. Alternatively, right-click on the Windows Start menu and find Device Manager in the list (see picture below).

 

         WinDevMgr.PNG

  1. Left-click on Device Manager and find the Device "RNDIS" under "Other Devices", equipped with a small triangle. If you do not see it listed, then ensure that you have the item "Remote NDIS compatible device" under "Network adapters" (this implies that the driver should be ok in your computer).

NOTE: The fastboot device "sa0114" of Sony must not appear in the listing of Windows Device Manager at this point anymore. If you do see it, detach the USB cable, turn the phone off and go back to the beginning of chapter 2.2.

        RNDIS-warning-triangle.PNG

  1. Right-click on the RNDIS item (see above) and select Update Driver Software.

    Update-RNDIS.PNG

  2. When the window pops up (Windows 7 and 10) select "Browse My Computer" for driver software, then on the next screen, click on the bottom that says "Let me pick from a list of drivers on my computer".

  3. Next, you will be asked for the device type. Here you go down to Network Adapters – click on it. Select "Next", then.

  4. Then when it asks you to select a manufacturer:

- Windows 7: select "Microsoft Corporation" (do not select "Microsoft")
- Windows 8 and 10: select "Microsoft"

  1. Then select "Remote NDIS Compatible Device".

    RNDIS-select-driver.PNG

  2. Select "Next". Windows will present a warning dialogue telling that it is not safe, etc. Ignore this. Proceed to install it. Windows should show a message about a successful update. Close it. "RNDIS" should appear now below Network adapters.

  3. Next, install a Terminal application and enable Telnet. There are two options (in the case of Windows 10 - if you still have Windows 7 then use Putty):

a) In the case of Windows 10 it is possible to enable the actual Telnet (instead of installing Putty) and run it from the default CMD terminal of Windows (or from PowerShell). This can be done in "Control panel > Programs > Programs and Features" by clicking at "T_urn Windows features on or off_" (visible on the left) and then setting the checkmark for "Telnet client" in the list. Click OK to confirm. Done.

b) Install Putty. Download it from www.putty.org > "Download PuTTY" which currently points to http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html . Select "putty.exe" under "Alternative binary files" (make sure you take either the 32-bit or the 64-bit version, depending on your Windows architecture).

  1. Launch either a) the CMD terminal on the PC or b) the Putty application. So, use either option a) or b) below.

a) In the CMD terminal, type the command telnet 10.42.66.66.

b) On the first screen of Putty, select Telnet as the Connection type (default is SSH) and then enter and set Host Name (IP address) to 10.42.66.66. See the picture below. Click Open.

 

Putty-menu.PNG

  1. You should now see the black Recovery Mode menu on your computer screen (picture below):

RecoveryModeXperia.png

This signifies that you are ready to perform a fix by using Recovery Mode.

You are now ready to move to Chapter 3 Fixing your device with Recovery Mode




 

2.3 Preparing your Mac computer for the Recovery Mode

To run the Recovery Mode on a Mac computer, you need to download the HoRNDIS driver but all other software is already on your computer. You must use version 9 (or later) of HoRNDIS driver.

Citation of proof of https://joshuawise.com/horndis: "Versions 10.11 and newer of Mac OS X have a rewritten USB stack that is substantially less compatible than that in 10.10 and below. HoRNDIS 9.0 has been rewritten to support MacOS 10.11 and above (El Capitan, Sierra, High Sierra and Mojave); for those versions of MacOS, please try the latest version of HoRNDIS!"

  1. Browse to www.joshuawise.com/horndis

  2. Download and install the latest version of the HoRNDIS driver.

  3. After installing the driver you may be prompted to perform a system restart and receive a notification about a "Kernel extension not from an identified developer":

         Mac_Horndis_installed.png

Please click OK on the pop-up and restart your computer if you are unsure should you do so or not.

  1. Once the driver is installed, attach your Xperia 10 II to your Mac. (Note: Jolla must be in "Recovery Mode" before attaching the cable, see chapter 2.1)

  2. Next, you need to locate the Terminal application. To do so:

5a. Open Finder
5b. Click the tab "Applications" and open "Utilities"

Mac_Apps-Utilities.png

5c. Double-click the Terminal icon to launch it.

Mac_Terminal.png

  1. Once Terminal is open, select Shell > "New Remote Connection..."

    Mac_remote_conn.png

  2. Click on "Remote Login (telnet)" and then the + -icon to add a server.

    Mac_telnet.png

  3. Type in the address: 10.42.66.66 and press "OK".

    Mac_telnet_IP.png

  4. You should now be in Recovery Mode, with the Recovery Mode menu visible on your computer screen:

RecoveryModeXperia.png

You are now ready to move to Chapter 3 Fixing your device with Recovery Mode




 

2.4 Preparing your Linux computer for the Recovery Mode

It is likely that you won't need to download any additional software to use Recovery Mode. Below we've used Ubuntu.

1. Connect your Xperia 10 II to your PC. You will likely see a notification relating to a disconnect/connect and Ethernet/Wired connection:

2. Open the Terminal application

3. Type into the Terminal:

telnet 10.42.66.66

4. You should now see the Recovery Mode menu:

RecoveryModeXperia.png

You are now ready to move to Chapter 3 Fixing your device with Recovery Mode




 

3 Fixing your device with the Recovery Mode




 

3.1 Backing up data from your phone to a memory card

It may be possible to save some data from your device using option "3) Shell" in the Recovery menu. For this operation, you will need a MicroSD card inserted into your phone. The card must have been formatted for Sailfish OS (see the help article on SD cards).

To learn about saving some of your data through the Recovery Mode, please follow this help article.

 

 




 

3.2 Resetting phone to factory settings in the Recovery Mode

NOTE: this option deletes ALL data from your device. Resetting to factory settings does not affect data on the SD (memory card) and SIM cards, however.

  1. Prepare your PC and device for Recovery Mode (as described in Chapter 2, until you see the Recovery Menu:
  2. In the Recovery Mode menu take option #1 "Reset device to factory state"

Note: If your terminal application suddenly disappears when attempting to run this function, simply connect to Recovery Mode again, and go straight to performing the Device Reset. You may have to repeat this a number of times.

  1. Give the process some time to run and follow on-screen instructions.

When the process has completed, please refer to chapter 4 to correctly revert your phone from the Recovery Mode back to its normal state.




 

3.3 Releasing Xperia 10 II from "Permanent lock"

This requires that you know the correct security code!

In some circumstances it may happen that the allowed maximum number of unlocking attempts of the device lock gets exceeded, resulting in "Maximum attempts used. Device is permanently locked". The following procedure may help in unlocking the device:

  • Take option "3) Shell" in the Recovery menu
  • Type the following two commands. In the latter command replace "12345" with your correct security code!
  chroot /rootfs
  /usr/lib*/qt5/plugins/devicelock/encsfa-fpd --check-code 12345
exit
    NOTE: There is no feedback from the 2nd command, so be sure to type your security code correctly. You will see the result (i.e. phone no more permanently locked) only after leaving the Recovery Mode.

 

  • Type exit to escape the Shell and return to the main menu of Recovery Mode.
  • Skip to chapter 4 now.




 

3.4 Running file system check

It is possible to have the file system of your Xperia 10 II checked by selecting option #4 in the Recovery menu. This utility will try to fix problems if possible, too.

Please type the security code of your Xperia 10 II when requested.

The following excerpt shows sample output from an Xperia XA2 (that of Xperia 10 II is similar):

Type the number of the desired action and press [Enter]: 4 /dev/mmcblk0rpmb:
  read failed after 0 of 4096 at 0: Input/output error /dev/mmcblk0rpmb: read failed
  after 0 of 4096 at 4128768: Input/output error /dev/mmcblk0rpmb: read failed
  after 0 of 4096 at 4186112: Input/output error /dev/mmcblk0rpmb: read failed
  after 0 of 4096 at 4096: Input/output error 2 logical volume(s) in volume group
  "sailfish" now active e2fsck 1.45.4 (23-Sep-2019) Pass 1: Checking inodes, blocks,
  and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity
  Pass 4: Checking reference counts Pass 5: Checking group summary information
  root: 24319/153600 files (0.5% non-contiguous), 334332/640000 blocks Opening
  encrypted filesystem, you will be prompted for your security code. Enter passphrase
  for /dev/sailfish/home:

  e2fsck 1.45.4 (23-Sep-2019) Pass 1: Checking inodes, blocks, and sizes Pass 2:
  Checking directory structure Pass 3: Checking directory connectivity Pass 4:
  Checking reference counts Pass 5: Checking group summary information /dev/mapper/luks-home:
  3627/1150560 files (2.1% non-contiguous), 428882/4601344 blocks /dev/mmcblk0rpmb:
  read failed after 0 of 4096 at 0: Input/output error 0 logical volume(s) in volume
  group "sailfish" now active Done

Press [Enter] to return to recovery menu... `

Continue to chapter 4 below.

 




 

4 Reverting phone back to the normal state

It is crucial to follow the below steps to successfully revert your phone from Recovery Mode back to its normal state:

  • Select option 6 'Exit' in the Recovery Mode menu.

  • Disconnect the USB cable from the phone.

  • Press Vol Up key down, keep it pressed and then also press the Power key. When you feel the vibrator play, release the Power key.

Your phone has exited the Recovery mode now. You will still need to return it to its normal state.

  • Force your Xperia 10 II again to the fastboot mode:

    • hold Volume Up key down and connect the data-connected USB cable (a charging cable would not work)
    • ensure that the LED at the top of the display area is lit in BLUE colour

It is mandatory to obtain the same version of hybris-boot.img that belongs to the Sailfish OS version of your phone currently. In other words, if you have updated OS version 4.1.0 (say) to your phone, then you should use the hybris-boot.img of that OS release. To ensure this, download the latest Sailfish OS image from https://shop.jolla.com/downloads/ (provided that you have updated your phone to the latest). Unzip the archive and observe the hybris-boot.img file in it. If you still cannot obtain the matching version of hybris-boot.img, you can extract it from the device by selecting the option "5) Run sshd" and using "scp" to retrieve it from /rootfs/boot/hybris-boot.img.

  • Open the Terminal app on your computer. Proceed to the directory where you have the hybris-boot.img file.
  • The following commands will restore the boot partition (the BLUE LED must be lit at this point)

On Windows:

  fastboot flash boot_a hybris-boot.img 
  fastboot flash boot_b hybris-boot.img 
  fastboot reboot

On Linux or Mac:

  sudo fastboot flash boot_a hybris-boot.img
  sudo fastboot flash boot_b hybris-boot.img
  sudo fastboot reboot

 

Restoring_Xperia_10_II_boot_partition.png

After the reboot, your phone will be back to the normal state. Sailfish UI should appear.

 

Please read this general article about factory reset. In particular, read what is recommended after the factory reset, as explained in chapter "First actions after the reset"

 

 

 

Have more questions? Submit a request
Powered by Zendesk