If you are in possession of a Sony Xperia SP C5302 / C5303 / C5306 (code name: huashan) and you want to install the official TWRP Recovery 3.5.0 software on your device, then you are on the right page. This manual is for the Sony Xperia SP HSPA C5302, Sony Xperia SP LTE C5303, Sony Xperia SP LTE C5306.

The Sony Xperia SP features the Qualcomm MSM8960T Snapdragon S4 Pro chipset, a dual-core 1.7 GHz Krait processor, an Adreno 320 GPU, a 4.6-inch (~66) display and a 58.3 cm2 (~58.3% screen to trunk ratio), TFT, 720 x 1280 pixels, 16:9 aspect ratio (~319 pixels per inch density), Gorilla Carbon glass, 8GB internal memory/ RAM (5.8GB available to users), 1GB RAM, 8 MP main camera, f/2.4, autofocus, VGA with selfie camera.

If you are an Android enthusiast and want to perform TWRP recovery on your beloved device, then you have come to the right page. In this article, we will guide you in getting to know the Sony Xperia SP.

The TWRP offers an attractive hardware design and user interface (UI). If you follow this guide, you can install the latest version of TWRP for the Sony Xperia SP. You can download TWRP Recovery from the links in the sample section of this article. Please note that this is an unofficial TWRP recovery and only for the Sony Xperia SP (Confirm model by going to Settings > About). The process described below is only for rooting and installing TWRP on Sony Xperia SP, do not test this method on other devices.

If you want to exploit the full potential of your Sony Xperia SP hardware, the most important task is to perform a custom recovery like TWRP. Exchange ROMs often have limited and unsupported customization options. If you have a root device and a flashed TWRP recovery, you can install any custom ROMs, modules, kernels, Xposed, etc, as well as many applications that require access with superuser privileges to function properly. You can easily power your device with the One Click Android Root Tool, either via PC or APK, which is a quick process.

Brief information and benefits of TWRP recovery

TWRP (Team Win Recovery Project) is an open source community development project. Flashing TWRP allows you to install your device any firmware, boot your smartphone, change zip files for settings, Xposed modules for settings, root and unroot processes in one click. You can also make a full backup of Nandroid and restore it later, flash the image file with one click, remove bloatware, overclock and underclock. With TWRP, you can easily delete, cache, and clear data after flashing an image file to reflect changes and correct minor errors caused by caching.

ALSO READ the root of the Sony Xperia XZ Premium G8141 and install TWRP recovery.

To install TWRP, your Sony Xperia SP phone must have an unlocked boot loader. This means that you must first unlock the bootloader to install the device root, and to do any configuration.

Disclaimer : While AndroidWeblog.com covers everything very clearly so that our readers get exactly what they want, there is still a modest chance that the steps listed here will cause major problems. It is therefore in the interest of the user to follow the instructions very carefully to avoid any incident with your device.
Installing a custom ROM firmware and flashing it will definitely invalidate your device’s warranty and AndroidWeblog.com cannot be held responsible for invalid warranties or devices with limitations.


Be sure to check the model number, it should be listed:

  • Sony Xperia SP (models : Sony Xperia SP HSPA C5302, Sony Xperia SP LTE C5303, Sony Xperia SP LTE C5306i) [codename : huashan].

Make sure you read the disclaimer carefully before using your phone regularly and agree to continue to bear the risk.

Your phone must be at least 70% charged, otherwise complications may occur during the experiment. Don’t take any chances and load them fully.

If you’re going to root your phone or install a custom ROM, it’s a good practice to back up your phone. Back up all your media, like photos, videos, and everything else on your PC, as well as your contacts in the cloud.

(Applies to the PC method only, skip this step if you are using the APK method).

You need to enable the USB debugging option by going to Settings, Applications and Developer Options.

Download Rooting the Sony Xperia SP C5302, C5303, C5306 (huashan)

Sony USB drivers download here

Download the ADB universal drivers here (if the drivers are already installed on your PC, you can skip this step).

Download the Platform Tools/ SDK Tools with Android SDK package on PC from here. (Android Command Line Tools> Package SDK Tools)

Download the TWRP recovery for Sony Xperia SP here :

TWRP Recovery 3.5.0

Download SuperSU from Chainfire from here.

Download Magisk Manager from here.

Make sure you have downloaded the required files (link in the Requirements section of this article). Then go through the steps.

Unlock steps for Sony Xperia SP C5302, C5303, C5306 (Huashan)

Message: If you already have the bootloader unlocked, you can skip these steps. Before you can unlock the bootloader of your device, you need to support the model of your Sony device. To confirm that the bootloader can be unlocked, check the following steps and obtain the unlock code.

ALSO READ the Root Access and CWM recovery manual for Sony Xperia E C1505 / C1504 [Manual].

Step one: Go to the official Sony Developerspage, and check the list by selecting your device from the drop-down list. Sign up for a new Sony Xperia account or sign in with your existing account, or sign in directly with your Google/Gmail account.

Step two: Make sure your device has an active internet connection before proceeding. Some actions are model specific. Therefore, check whether you can unlock the boot loader of the device as described above. As usual, devices with two SIM cards always have two IMEI numbers. So use IMEI 1 to get the unlock code for the boot loader of your device.

Step three: Start the dialer and key in this code:


Step four: On the screen, go to Service Info > Configuration > Rooting Status > and verify that the bootloader unlock system is enabled. If everything seems normal, proceed as follows.

Step Five: Download the Google USB driver in the sample area above, as the android_winusb.inf/ Google USB driver is required to perform adb debugging with Google devices on a Windows PC.

Step six: Open the phone number again, dial *#06# and copy the IMEI number of your Sony Xperia device (make sure to copy SIM IMEI 1 if your device has two SIM cards, as above).

Step seven: Return to the Sony Developer World page, select your device model and enter your email address. A link with an unlock code to unlock the bootloader of your device will be sent to your email address shortly. Just click on the link to get the unlock code.

Step 8 : First you need to connect your Sony Xperia SP to the computer in fastboot mode. You can reboot the device for a quick start with a command in the ADB terminal:

Advertising Reset

Alternatively, press and hold the volume down button and connect the unit to a PC with a USB cable.

Step 9 : Now open the Adb terminal in the PC and simply enter this command :


Step 10 : At this point, the interface should show the connected devices. If the issue does not occur in the same way, just restart the terminal/command line. Disconnect your Sony Xperia SP from the PC and connect it again. When your device is detected, simply enter this command.

quick download oem unlock 0x

Make sure the generated key is correctly inserted into the controller. Then press the Enter key and wait a moment.

Step 11 : At this point, your device will automatically reboot. You can now run the Sony Xperia SP because the bootloader of your device is already unlocked.

Steps to flash/install TWRP recovery 3.5.0 on Sony Xperia SP C5302, C5303, C5306 (huashan)

Step one: Suppose you have already downloaded the platform tools of the Android SDK (SDK Manager) to your PC. The platform tools include the necessary ADB binaries and quick downloads.

Step two: Make sure the drivers are installed on your computer. Then proceed to the next step.

Message: If the development settings and USB debug settings are already enabled on your device, as suggested in the Benefits section, simply skip steps 3 and 4 and go directly to step 5.

Step three: Now activate the developer settings on your Sony Xperia SP device. To do this, go to Settings -> About and find the build number, then click on the build number 7 times, which will activate the development settings on your device.

ALWAYS read the GT-I8552 learning curve for the Samsung Galaxy Grand Quattro root/non-root

Step four: If you already have a USB debug, you can skip this step. Otherwise, open the developer settings and enable the USB debugging option.

Step Five: Now open a command prompt on the computer/ADB terminal and just type the command :

Advertising Reset

Step six: The device must not be put into the quick start mode. Now copy the downloaded TWRP.img file in the mandatory section to the same folder where the ADB and rapidboot binaries are located. Rename the file to twrp.img and enter this command :

Quick start Flash recovery twrp.img

then run this command, enter :

early recovery

Step 7 (important) : On some devices, the custom recovery is not automatically replaced on first boot. You can search for a shortcut on Google to put the device in recovery mode. After executing the quick restart command, hold down the appropriate key combination to enter TWRP mode. Once the device is booted into TWRP mode, TWRP automatically patches the stock ROM to prevent TWRP from being overwritten by a stock recovery.

After entering the fast restart command, hold down the combination key and start in TWRP. Once loaded, the TWRP will patch the ROM to prevent the TWRP from replacing the ROM. If you do not perform this step, you must repeat the installation.

How to install Sony Xperia SP C5302, C5303, C5306 (Huashan) / Install Magisk or SuperSU.

Make sure you have downloaded SuperSU or Magisk Manager (link in the required section of this article). Then go through the steps.

Attention: You can use Magisk Manager or Super SU, but only one, so choose well. If you’re not sure, go to Magisk Manager.

Step one: Move the downloaded SuperSU or Magisk Manager file to the internal memory / SD card of your Sony Xperia SP smartphone.

Step two: Now all we have to do is initiate the recovery. You can also backup the ROM through the TWRP interface. However, I recommend making a backup copy of the ROM. Because if the process fails, you can flash the ROM.

Step three: Press Install, then navigate to SuperSU.zip or magisk.zip and drag the firmware confirmation file (located at the bottom of the screen). The Magisk/SuperSU flash process has started and will take a few seconds.

Congratulations, you are now rooted in the Sony Xperia SP and you have also broken into the TWRP. You can now install the Xposed Framework and customize your smartphone. If you want to check this, you can download and check the status of the root through the Root Checker program.