Xperia 1 root guide

Search This thread

evo.9

New member
Mar 11, 2020
4
0
"boot_X-FLASH-ALL-A2CD.sin
Just copy to my phone and patch it on magsik ?
Or rename to boot.img ??
 

Pandemic

Senior Member
Aug 30, 2010
24,059
23,187
Meppel
talk.sonymobile.com
Xperia XZ2
Sony Xperia 1
"boot_X-FLASH-ALL-A2CD.sin
Just copy to my phone and patch it on magsik ?
Or rename to boot.img ??
Use unsin tool by @IgorEisberg
Rename it to boot
Hold shift and right click mouse button
Run in command window unsin boot.sin
Copy the boot.img to your internal memory
Patch it with magisk v20.4 and fastboot the magisk_patched.img
Done
 

evo.9

New member
Mar 11, 2020
4
0
Many thanks

---------- Post added at 06:33 PM ---------- Previous post was at 05:54 PM ----------

It's worked, but where I can download magsik 20.4
On post , use magsik canary
 

MeltdownSpectre

Retired Forum Moderator
Jan 12, 2013
2,952
2,550
Samsung Galaxy S22 Ultra

UhhBirb

New member
Jun 9, 2020
1
0
I have successfully rooted my Xperia 1!
But somehow I went from Android 10 to Android 9. (I think Emma.exe did it) Oh well. At least I have TWRP, so that's nice.

What I think happened was I used Emma to flash an older version/ factory version of Xperia 1. and I didn't realize it was Android 9. Not a big deal.
 

herb9876

Senior Member
Dec 9, 2016
102
39
Just in case anyone else was wondering

About locking your bootloader after unlocking it. I searched for two days and basically came to the conclusion you can't re lock your bootloader period. So I got a bit butt hurt about this and in a wave of anger just flashed my stock unsinned boot image back to both slots boot_a and boot_b then booted back to system and factory reset the phone. Once that was done I booted back into fastboot and just tried "fastboot oem lock" and to my surprise the bootloader locked and did a user wipe then I unplugged booted backup and sure as sh#t I was back to a bootloader locked j9110. So you can relock your bootloader I guess I wish I would have just tried that in the beginning . As far as something else not working be side of all this i certainly can't find anything permanently broken.
 

Pandemic

Senior Member
Aug 30, 2010
24,059
23,187
Meppel
talk.sonymobile.com
Xperia XZ2
Sony Xperia 1
About locking your bootloader after unlocking it. I searched for two days and basically came to the conclusion you can't re lock your bootloader period. So I got a bit butt hurt about this and in a wave of anger just flashed my stock unsinned boot image back to both slots boot_a and boot_b then booted back to system and factory reset the phone. Once that was done I booted back into fastboot and just tried "fastboot oem lock" and to my surprise the bootloader locked and did a user wipe then I unplugged booted backup and sure as sh#t I was back to a bootloader locked j9110. So you can relock your bootloader I guess I wish I would have just tried that in the beginning . As far as something else not working be side of all this i certainly can't find anything permanently broken.
Yes you can on xperia 1 and 5, relock it with adb code "fastboot oem lock"
use repair with xperia companion and done and you have the drm keys back.
 
Last edited:

bagusaryo

New member
Nov 15, 2014
1
8
Jakarta
Hi guys, I was doing my research about how to root Xperia 1. I have J9110 and running the latest firmware 55.1.A.8.1 with Android 10. I managed to root my device now. So, I decided to share it with you guys as clearer as possible for the guide. I'm rooting with Windows Laptop.

INFO: This guide can be applied to any series of Sony Xperia 1.
PLEASE NOTE: Rooting a device may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. Some methods may install additional apps/software on your device. I do not take any responsibility for your device. Root at your own risk and only if you understand what you are doing!

Remember to always setup your phone to enable USB Debugging Option.
  • Open the Settings application on your phone.
  • Open About Phone.
  • Then tap the Build Number option 7 times to enable Developer Mode.
  • Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
  • Go in there and enable the USB Debugging mode option.
  • Install ADB (move to the next guide)
  • You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.

Running ADB on Windows

Make sure you have ADB running on your windows.
  • Download the ADB zip file for Windows
  • Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb) *I recommend you to put and rename the folder into "adb"*
  • Open Windows explorer and browse to where you extracted the contents of this ZIP file
  • Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instead of “command prompt”.)
    ADBOpenHere.png
  • Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
  • In the Command Prompt window, enter the following command to launch the ADB daemon: adb devices
  • On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
    Image-002-2-300x180.png
  • Finally, re-enter the command adb devices. If everything was successful, you should now see your device’s serial number in the command prompt. Yay! You can now run any ADB command on your device!


How to unlock the bootloader.
  • Get the IMEI code for your device: type *#06# in phone dialer to find it out, note only the digits (no dashes)
    First, you should confirm that it is possible to unlock the bootloader of your phone by checking the service menu. In your phone, open the dialler and enter *#*#7378423#*#* to access the service menu.

    In your phone, tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.
  • At the bottom click 'Select your Device' and choose Sony Xperia 1
  • Enter your IMEI and check all the boxes then click Submit
  • Copy the code that shown and paste it to somewhere with notepad or you can just write it down on a piece of paper.
  • Turn off your phone. Press and hold the Volume Up button then connect the USB cable to PC. (Blue Light LED)
  • Open Command Prompt and type C:\adb\
  • Type this
    Code:
    fastboot devices
  • Type this
    Code:
    fastboot oem unlock 0x<insert your unlock code>
  • Insert your unlock code without the <>. If your code is 12345678900 then just type
    Code:
    fastboot oem unlock 0x12345678900
  • Congratulation! You have unlocked your bootloader.

Flashing and Rooting
You need to download the requirements below

Now we can proceed to the next guide.

  • Extract XperiFirm and UnSin to a Folder of Your Choice. I recommend you to extract UnSin on C:\\ directory folder then rename the folder to UnSin. It should be like this C:\UnSin\
  • Start XperiFirm and download the Firmware You want to use.
    • Select your device from the left-hand side. Then click on the latest firmware file that shows up on the extreme right.
    • All the details related to the latest firmware file will now be displayed. Go through the complete information and then hit the Download button situated at the bottom.
    • As soon as the download is completed, you will be greeted with the Unpacked Successful message. Click on OK.
  • Once downloaded, extract NewFlasher and copy and paste the all files of NewFlasher into the Firmware Folder
  • Now open the firmware folder and look for (boot_X-FLASH-ALL-A2CD.sin)
  • Copy and paste the file boot_X-FLASH-ALL-A2CD.sin into UnSin folder C:\UnSin\
  • Open Command Prompt and target to UnSin folder on C:
    • Type C:\UnSin\
    • Type unsin boot_X-FLASH-ALL-A2CD.sin
  • You will now get a .img file right besides the original File You just dropped on UnSin
  • Copy this .img File together with the Magisk Manager to your device Internal Storage.
  • Install the Magisk Manager, open it and choose Install. Select the File patching and look for the .img
  • Once the process is done do You get a "magisk_patched.img" on Your Internal Storage (Downloads)
  • Copy this "magisk_patched.img" to Your Fastboot Location (C:\adb\)
  • Now turn off Your Device, once off, hold Volume - (Down) and connect Your Device to Your PC (Green LED)
  • Start NewFlasher and say no to the first two Y/N questions. Say yes to all following...
  • Once the flashing is completed, disconnect Your Device until the green LED turns Off
  • Press and hold now Volume + (Up) and connect Your Device to Your PC again
  • Start the Fastboot process with:
    Code:
    fastboot flash boot magisk_patched.img
  • We are on a Treble Device with full A/B Support. So do now:
  • Type
    Code:
    fastboot --set-active=b
  • This will change the boot Slot to System B
  • Type
    Code:
    fastboot flash boot magisk_patched.img
  • This makes sure we have Magisk on both Systems / Kernels. Continue with
  • Type
    Code:
    fastboot --set-active=a
  • This sets the Primary System as boot Slot again
  • Finally, type
    Code:
    fastboot reboot
  • Your Device will now boot into the System. Install the Magisk Manager App again. Congratulations, your phone are now rooted


Source:
[Tutorial] Xperia Z1 Bootloader Unlocking/Relocking
UnSIN Tutorial
[GUIDE][WINDOWS] How to get Magisk / Root
How to Setup the Android Debug Bridge (ADB)
 
Last edited:
Hi guys, I was doing my research about how to root Xperia 1. I have J9110 and running the latest firmware 55.1.A.8.1 with Android 10. I managed to root my device now. So, I decided to share it with you guys as clearer as possible for the guide. I'm rooting with Windows Laptop.

INFO: This guide can be applied to any series of Sony Xperia 1.
PLEASE NOTE: Rooting a device may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. Some methods may install additional apps/software on your device. I do not take any responsibility for your device. Root at your own risk and only if you understand what you are doing!

Remember to always setup your phone to enable USB Debugging Option.
  • Open the Settings application on your phone.
  • Open About Phone.
  • Then tap the Build Number option 7 times to enable Developer Mode.
  • Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
  • Go in there and enable the USB Debugging mode option.
  • Install ADB (move to the next guide)
  • You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.

Running ADB on Windows

Make sure you have ADB running on your windows.
  • Download the ADB zip file for Windows
  • Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb) *I recommend you to put and rename the folder into "adb"*
  • Open Windows explorer and browse to where you extracted the contents of this ZIP file
  • Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instead of “command prompt”.)
    ADBOpenHere.png
  • Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
  • In the Command Prompt window, enter the following command to launch the ADB daemon: adb devices
  • On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
    Image-002-2-300x180.png
  • Finally, re-enter the command adb devices. If everything was successful, you should now see your device’s serial number in the command prompt. Yay! You can now run any ADB command on your device!


How to unlock the bootloader.
  • Get the IMEI code for your device: type *#06# in phone dialer to find it out, note only the digits (no dashes)
  • At the bottom click 'Select your Device' and choose Sony Xperia 1
  • Enter your IMEI and check all the boxes then click Submit
  • Copy the code that shown and paste it to somewhere with notepad or you can just write it down on a piece of paper.
  • Turn off your phone. Press and hold the Volume Up button then connect the USB cable to PC. (Blue Light LED)
  • Open Command Prompt and type C:\adb\
  • Type this
    Code:
    fastboot devices
  • Type this
    Code:
    fastboot oem unlock 0x<insert your unlock code>
  • Insert your unlock code without the <>. If your code is 12345678900 then just type
    Code:
    fastboot oem unlock 0x12345678900
  • Congratulation! You have unlocked your bootloader.

Flashing and Rooting
You need to download the requirements below

Now we can proceed to the next guide.

  • Extract XperiFirm and UnSin to a Folder of Your Choice. I recommend you to extract UnSin on C:\\ directory folder then rename the folder to UnSin. It should be like this C:\UnSin\
  • Start XperiFirm and download the Firmware You want to use.
    • Select your device from the left-hand side. Then click on the latest firmware file that shows up on the extreme right.
    • All the details related to the latest firmware file will now be displayed. Go through the complete information and then hit the Download button situated at the bottom.
    • As soon as the download is completed, you will be greeted with the Unpacked Successful message. Click on OK.
  • Once downloaded, extract NewFlasher and copy and paste the all files of NewFlasher into the Firmware Folder
  • Now open the firmware folder and look for (boot_X-FLASH-ALL-A2CD.sin)
  • Copy and paste the file boot_X-FLASH-ALL-A2CD.sin into UnSin folder C:\UnSin\
  • Open Command Prompt and target to UnSin folder on C:
    • Type C:\UnSin\
    • Type unsin boot_X-FLASH-ALL-A2CD.sin
  • You will now get a .img file right besides the original File You just dropped on UnSin
  • Copy this .img File together with the Magisk Manager to your device Internal Storage.
  • Install the Magisk Manager, open it and choose Install. Select the File patching and look for the .img
  • Once the process is done do You get a "magisk_patched.img" on Your Internal Storage (Downloads)
  • Copy this "magisk_patched.img" to Your Fastboot Location (C:\adb\)
  • Now turn off Your Device, once off, hold Volume - (Down) and connect Your Device to Your PC (Green LED)
  • Start NewFlasher and say no to the first two Y/N questions. Say yes to all following...
  • Once the flashing is completed, disconnect Your Device until the green LED turns Off
  • Press and hold now Volume + (Up) and connect Your Device to Your PC again
  • Start the Fastboot process with:
    Code:
    fastboot flash boot magisk_patched.img
  • We are on a Treble Device with full A/B Support. So do now:
  • Type
    Code:
    fastboot --set-active=b
  • This will change the boot Slot to System B
  • Type
    Code:
    fastboot flash boot magisk_patched.img
  • This makes sure we have Magisk on both Systems / Kernels. Continue with
  • Type
    Code:
    fastboot --set-active=a
  • This sets the Primary System as boot Slot again
  • Finally, type
    Code:
    fastboot reboot
  • Your Device will now boot into the System. Install the Magisk Manager App again. Congratulations, your phone are now rooted


Source:
[Tutorial] Xperia Z1 Bootloader Unlocking/Relocking
UnSIN Tutorial
[GUIDE][WINDOWS] How to get Magisk / Root
How to Setup the Android Debug Bridge (ADB)

No Credits for Me?
Well, Check My actualized Guides and copy/Paste that too. You don't need to Switch the Slots since You can directly flash to it...
 

munjeni

Senior Member
Jun 2, 2011
9,581
22,215
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Update on 27.6.2019
    Now Magisk Canary (19303) has fixed the boot loop issue.
    Everyone can use the newest Magisk manager, select "Canary Channel" to patch the boot.img.


    First , unlock your Xperia 1.
    go to
    https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
    to unlock your Xperia 1.
    If you can not find the Xperia 1, you can choose Xperia xz2.
    It also give you the right unlock number.

    Second, patch your boot.img
    the newest Magisk 19.4 is not supported for Xperia 1.
    You must use the Magisk 19.0 .
    downlowd the rom and unpack it, find the "boot_X-FLASH-ALL-A2CD.sin", it's the xperia 1's boot.img.

    downlowd the magisk manager, install and open it.
    https://drive.google.com/open?id=1qzBPd-whyZm-bX2UyC0kCNjn89bZvAtV

    Go to settings, tap the "Update channel", and select "Custom", then type it with this
    https://raw.githubusercontent.com/v...d8df2008632bd67e8437651b3ef7/custombuild.json

    Go back to the Magisk manager, tap the "INSTALL", and "select and patch a file", select the "boot_X-FLASH-ALL-A2CD.sin", wait a moment.
    then you will get a patch_boot.img.

    Go to Fastboot mode, and flash it. "Fastboot flash boot xxx.img"

    Enjoy it.

    I will put my patched boot.img here, but my xperia1 mode is J9110,CHINA MODEL. it may be not supported for you.
    https://drive.google.com/open?id=17zoZKNZvVIwikN6W2JdtD8bg1nqxLHVX
    8
    Hi guys, I was doing my research about how to root Xperia 1. I have J9110 and running the latest firmware 55.1.A.8.1 with Android 10. I managed to root my device now. So, I decided to share it with you guys as clearer as possible for the guide. I'm rooting with Windows Laptop.

    INFO: This guide can be applied to any series of Sony Xperia 1.
    PLEASE NOTE: Rooting a device may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. Some methods may install additional apps/software on your device. I do not take any responsibility for your device. Root at your own risk and only if you understand what you are doing!

    Remember to always setup your phone to enable USB Debugging Option.
    • Open the Settings application on your phone.
    • Open About Phone.
    • Then tap the Build Number option 7 times to enable Developer Mode.
    • Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
    • Go in there and enable the USB Debugging mode option.
    • Install ADB (move to the next guide)
    • You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.

    Running ADB on Windows

    Make sure you have ADB running on your windows.
    • Download the ADB zip file for Windows
    • Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb) *I recommend you to put and rename the folder into "adb"*
    • Open Windows explorer and browse to where you extracted the contents of this ZIP file
    • Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instead of “command prompt”.)
      ADBOpenHere.png
    • Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
    • In the Command Prompt window, enter the following command to launch the ADB daemon: adb devices
    • On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
      Image-002-2-300x180.png
    • Finally, re-enter the command adb devices. If everything was successful, you should now see your device’s serial number in the command prompt. Yay! You can now run any ADB command on your device!


    How to unlock the bootloader.
    • Get the IMEI code for your device: type *#06# in phone dialer to find it out, note only the digits (no dashes)
      First, you should confirm that it is possible to unlock the bootloader of your phone by checking the service menu. In your phone, open the dialler and enter *#*#7378423#*#* to access the service menu.

      In your phone, tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.
    • At the bottom click 'Select your Device' and choose Sony Xperia 1
    • Enter your IMEI and check all the boxes then click Submit
    • Copy the code that shown and paste it to somewhere with notepad or you can just write it down on a piece of paper.
    • Turn off your phone. Press and hold the Volume Up button then connect the USB cable to PC. (Blue Light LED)
    • Open Command Prompt and type C:\adb\
    • Type this
      Code:
      fastboot devices
    • Type this
      Code:
      fastboot oem unlock 0x<insert your unlock code>
    • Insert your unlock code without the <>. If your code is 12345678900 then just type
      Code:
      fastboot oem unlock 0x12345678900
    • Congratulation! You have unlocked your bootloader.

    Flashing and Rooting
    You need to download the requirements below

    Now we can proceed to the next guide.

    • Extract XperiFirm and UnSin to a Folder of Your Choice. I recommend you to extract UnSin on C:\\ directory folder then rename the folder to UnSin. It should be like this C:\UnSin\
    • Start XperiFirm and download the Firmware You want to use.
      • Select your device from the left-hand side. Then click on the latest firmware file that shows up on the extreme right.
      • All the details related to the latest firmware file will now be displayed. Go through the complete information and then hit the Download button situated at the bottom.
      • As soon as the download is completed, you will be greeted with the Unpacked Successful message. Click on OK.
    • Once downloaded, extract NewFlasher and copy and paste the all files of NewFlasher into the Firmware Folder
    • Now open the firmware folder and look for (boot_X-FLASH-ALL-A2CD.sin)
    • Copy and paste the file boot_X-FLASH-ALL-A2CD.sin into UnSin folder C:\UnSin\
    • Open Command Prompt and target to UnSin folder on C:
      • Type C:\UnSin\
      • Type unsin boot_X-FLASH-ALL-A2CD.sin
    • You will now get a .img file right besides the original File You just dropped on UnSin
    • Copy this .img File together with the Magisk Manager to your device Internal Storage.
    • Install the Magisk Manager, open it and choose Install. Select the File patching and look for the .img
    • Once the process is done do You get a "magisk_patched.img" on Your Internal Storage (Downloads)
    • Copy this "magisk_patched.img" to Your Fastboot Location (C:\adb\)
    • Now turn off Your Device, once off, hold Volume - (Down) and connect Your Device to Your PC (Green LED)
    • Start NewFlasher and say no to the first two Y/N questions. Say yes to all following...
    • Once the flashing is completed, disconnect Your Device until the green LED turns Off
    • Press and hold now Volume + (Up) and connect Your Device to Your PC again
    • Start the Fastboot process with:
      Code:
      fastboot flash boot magisk_patched.img
    • We are on a Treble Device with full A/B Support. So do now:
    • Type
      Code:
      fastboot --set-active=b
    • This will change the boot Slot to System B
    • Type
      Code:
      fastboot flash boot magisk_patched.img
    • This makes sure we have Magisk on both Systems / Kernels. Continue with
    • Type
      Code:
      fastboot --set-active=a
    • This sets the Primary System as boot Slot again
    • Finally, type
      Code:
      fastboot reboot
    • Your Device will now boot into the System. Install the Magisk Manager App again. Congratulations, your phone are now rooted


    Source:
    [Tutorial] Xperia Z1 Bootloader Unlocking/Relocking
    UnSIN Tutorial
    [GUIDE][WINDOWS] How to get Magisk / Root
    How to Setup the Android Debug Bridge (ADB)
    3
    About locking your bootloader after unlocking it. I searched for two days and basically came to the conclusion you can't re lock your bootloader period. So I got a bit butt hurt about this and in a wave of anger just flashed my stock unsinned boot image back to both slots boot_a and boot_b then booted back to system and factory reset the phone. Once that was done I booted back into fastboot and just tried "fastboot oem lock" and to my surprise the bootloader locked and did a user wipe then I unplugged booted backup and sure as sh#t I was back to a bootloader locked j9110. So you can relock your bootloader I guess I wish I would have just tried that in the beginning . As far as something else not working be side of all this i certainly can't find anything permanently broken.
    Yes you can on xperia 1 and 5, relock it with adb code "fastboot oem lock"
    use repair with xperia companion and done and you have the drm keys back.
    2
    Does camera break like on previous models?
    As in taking green pictures and black screen in view mode?
    I don't care about video enhancement.

    Since the XZ2 and the 4. PIE firmware unlocking in PIE doesn't break the camera anymore.
    2
    More hassle than whar its worth ? What you mean with that and oke and widevine still works and all camera functions ?

    Camera functions are all OK

    you'll lose L1 widevine

    ---------- Post added at 07:07 PM ---------- Previous post was at 06:58 PM ----------

    Well oke so better keep the bootloader locked indeed @Mackay53 ?

    If I could go back to a locked bootloader with all DRM keys I would. I just wanted to test out some GSIs