Home > Tips and Tricks

How to Extract Sony Boot.sin/Init_Boot.sin get the IMG File

extract Sony Boot.sin and get Stock Boot.img File

In this guide, we will show you the steps to extract the Sony boot.sin file and get the boot.img file. When it comes to extracting the full potentiality of your device, gaining access to the system partition and having administrative privileges are among the topmost requirements for the end-user. Both these tasks could be achieved by rooting your device via Magisk. In this regard, there are two different methods: you could either flash the Magisk App via TWRP or without using the TWRP Recovery.

The latter one requires you to get the stock boot.img file, patch it via Magisk, and flash it via Fastboot Commands. While the second method is a slightly longer one but is mostly the preferred one for many users. This is because not every Sony device has a working TWRP Recovery. Moreover, there are quite a few complexities involved in using a custom recovery. However, nowadays OEMs don’t provide the stock firmware files in a ZIP format.

OnePlus has its payload.bin format, Realme and Oppo come with OZIP, and so on. In this regard, Sony has its firmware partition files (boot, system, vendor, vbmeta, etc) in SIN format. And there have been various queries from many concerned as to how they could extract this file format. If you also echo this question, then this guide is here to help you out. Given here are the detailed instructions to extract the Sony boot.sin file and get the boot.img file.

How to Extract Sony Boot.sin and get the Stock Boot.img File

YouTube video

There exist two different methods to get this job done- via Sony Dump Tool and using UnSin. It is recommended that you try out the latter method as it is the easier and shorter of the two. However, if you wish to challenge your inner geek, the do have a look at the Dump Tool as well. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Download Sony Stock Firmware

  1. To begin with, you will have to download the stock firmware for your Sony device. For that, we will use the XperiFirm Tool.
  2. So download the XperiFirm Tool v 5.6.1 [Credits XDA Senior Member IgorEisberg] and extract it to any convenient location on your PC.
    launch xperifirm tool
  3. Now go to that folder and double-click on the XperiFirm-x64.exe file to launch it (32-bit user should launch the x86 file).
  4. Select your device and region from the left menu bar. Then click on the firmware version number present at the extreme right, under the Available Firmware section.
    download sony firmware xperifirm extract boot.sin get boot.img
  5. Now click on the Download button, select the download folder and wait for the process to complete.
  6. Once done, you shall get the Unpacked Successfully message, as shown in the image.
    sony firmware downloaded xperifirm boot.sin extract boot.img
  7. After this, extract the downloaded firmware file to any location on your PC.
    sony firmware boot.sin extract boot.img

So with this, we have got the firmware for our device. Let’s now proceed to the next step of this guide to extract the Sony boot.sin file and get the stock boot.img file.

STEP 2A: Extract Sony Boot.sin/Init_boot.sin via UnSin

  1. Download and extract UnSin on your PC [Credits: XDA Senior Member IgorEisberg
  2. Then transfer the boot.sin/init_bot.sin file to that folder.extract sin via unsin sony
  3. Now just drag the boot.sin/init_bot.sin file to the unsin.exe file.
  4. You’ll get the corresponding boot.img/init_bot.img file right away.extracted sin to img sony

STEP 2B: Extract Sony Boot.sin/Init_boot.sin via Sony Dump Tool

  1. Start off by downloading the Sony Dump Tool (Credits: XDA Senior Member munjeni)
  2. Once downloaded, extract it to any convenient location onto your PC.
  3. Now transfer the boot.sin/init_boot.sin file to this folder where you have extracted the Dump Tool.
    sony boot.sin file dump tool
  4. Within this folder, create a new folder and name it output. The extracted boot file will be placed here itself.
  5. Now head over to this Dump Tool folder’s address bar, type in CMD in its address bar, and hit Enter. This shall launch the Command Prompt.
    cmd sony sin file extractor tool
  6. Execute the below command in this CMD window and hit Enter (replace boot/init_boot filename accordingly):
    sony_dump output bootfilename.sin
    sony_dump output init_bootfilename.sin
  7. In my case, the bootfilename corresponds to boot_X-FLASH-ALL-2389, so the command would be:
    sony_dump output boot_X-FLASH-ALL-2389.sin

    extract sony boot.sin get boot.img

  8. The converted file will now be placed under the output folder that we had created earlier.
  9. Go to that folder, and you shall see that boot/init_boot file.
  10. However, it isn’t having any extension as of now (we are not talking about the ‘crt’ Certificate file).
    extracted sony boot.sin file
  11. So right-click on it and select Rename. Then add .img to the end of the file name.
  12. Windows will now give a popup asking if you really want to change the file extension. Reply Yes.
    change sony boot.sin to boot.img extension
  13. That’s it, the process now stands complete and you have got the boot.img//init_boot.img file from boot.sin/init_boot.sin. Just to double-check, I tried patching it via Magisk and it went totally fine without any issues. [READ: How to Root Sony Devices via Magisk and Boot.Sin File].

So this was all from this guide on how you could extract the Sony boot.sin file and get the boot.img file for root. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

Share: