Home > Root

Unlock Bootloader and Root Sony Xperia 1 IV

In this guide, we will show you the steps to unlock the bootloader on your Sony Xperia 1 IV and then root it via Magisk patched boot file. The latest flagship level offering from Sony beholds quite an impressive specs sheet. With the latest Snapdragon 8 Gen 1 chipset, up to 12GB RAM, and 120hz display, there’s a lot to look forward to. Moreover, the device is performing quite decently in custom development as well.

In this regard, the ability to gain administrative access by rooting the device via Magisk has always been the go-to choice for many tech enthusiasts. And for the users owing this device, it could prove to be more of a necessity than just an optional tweak. This is because the device is frequently facing overheating issues and with no help from Sony, users have decided to take matters into their hands.

In other words, flashing a custom kernel, underclocking the device, using a scheduler/governor profile, and disabling some core are just some of the modifications that users are looking to try out to fix this overheating issue. For all these tweaks, there are two requirements that you need to checkmark off the list- unlocking the bootloader and then rooting your Sony Xperia 1 IV. So without further ado, let’s check out how this could be carried out.

Benefits and Risks of Rooting

Once you root your device by flashing the Magisk patched boot.img via Fastboot Commands, you will be in a position to try out a plethora of customizations on your device. These include the likes of flashing custom ROMs, installing a custom recovery like TWRP, or flashing a custom kernel. Along the same lines, you could also flash Magisk Modules, Xposed Framework, Substratum Themes, Viper4Android, and the likes. However, this is just one side of the story.

benefits and risks of rooting android

Carrying out this process also has its downsides. First off, the process requires an unlocked bootloader. Doing so will wipe off all the data and could nullify the device’s warranty as well. Likewise, WideVine L1 will be degraded to L3, resulting in the inability to stream Netflix in HD [FIXED]. Then the SafetyNet will be triggered [FIXED], which might cause issues with banking apps [FIXED]. So if all that’s well and good, then let’s get started with the steps to root Sony Xperia 1 IV via Magisk.

How to Unlock Bootloader and Root Sony Xperia 1 IV

root Sony Xperia 1 IV

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned. 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: Install Android SDK

install adb platform tools windows

To begin with, install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.

STEP 2: Enable USB Debugging and OEM Unlocking

Next up, you will have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.

So head over to Settings > About Phone > Software Information > Tap on Build Number Number 7 times > Go back to Settings > System > Developer Options > Enable USB Debugging and OEM Unlocking.

STEP 3: Unlock Bootloader on Sony Xperia 1 IV

You will also have to unlock the bootloader on your device. Do keep in mind that doing so will wipe off all the data and might make the device’s warranty null and void as well. So if that’s well and good, then refer to our guide on How to Unlock Bootloader on any Sony Xperia Device

Root Sony Xperia 1 IV

STEP 4: Get Sony Xperia 1 IV Stock Boot.img

  1. To begin with, download the stock firmware for your device using XperiFirm.Root Sony Xperia 1 IV
  2. Make sure to download the same firmware version that is currently installed on your device.
  3. Then extract the firmware and you will get the partition files.Root Sony Xperia 1 IV
  4. However, the boot file will be in SIN format, you will have to convert it to IMG.
  5. To do so, please check out the guide on How to Extract Sony Boot.sin and get the Stock Boot.img File.Root Sony Xperia 1 IV
  6. Once you have got the stock boot.img file, transfer it to your device.

STEP 5: Patch Sony Xperia 1 IV Stock Boot via Magisk

  1. First off, install the Magisk App on your device.
  2. Then tap on the Install button situated next to Magisk.
  3. From the Method section, choose Select and Patch a file.
    Root Sony Xperia 1 IV
  4. Browse to the extracted boot.img file and select it.
  5. Then tap on the Let’s Go option situated at the top right.
  6. Magisk will now load the boot.img file and will patch it accordingly.Root Sony Xperia 1 IV
  7. Once that is done, you would get the Download Complete message.
  8. The patched boot image file will be saved in Internal Storage > Downloads. Rename it to magisk_patched_boot.img.

STEP 7: Boot Sony Xperia 1 IV to Fastboot Mode

  1. Connect your device to the PC via a USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
    command-prompt-inside-adb
  3. After that, type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader

    Root Sony Xperia 1 IV

  4. To verify the Fastboot connection, type in the below command and you should get back the device ID.
    fastboot devices

STEP 8: Root Sony Xperia 1 IV via Magisk

  1. To begin with, transfer the magisk_patched_boot.img file to the platform-tools folder on your PC.
    Root Sony Xperia 1 IV
  2. Then head over to the platform-tools folder address bar, type in CMD, and hit Enter.
  3. This will launch Command Prompt. Execute the below command to flash the Magisk Patched Boot file:
    fastboot flash boot magisk_patched_boot.img

    Root Sony Xperia 1 IV

  4. Finally, execute the below command to boot your device to the OS:
    fastboot reboot

That’s it. These were the steps to unlock the bootloader and root Sony Xperia 1 IV via Magisk. 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: