Xperia 1 root guide

Search This thread

yishisanren

Member
Aug 3, 2009
31
13
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
 
Last edited:

zhouxin

Member
Mar 13, 2014
16
3
26
成都
老哥速度很快啊,已经发到xda了,帮顶:laugh:

MOD EDIT: Translation below (whatever that means)

"Brother is very fast, has been sent to xda, help top"
 
Last edited by a moderator:

xzent

Member
Oct 31, 2016
12
1
New York
worked!
Vnl8uB2.png
 

SirisRui

Member
Jun 11, 2019
17
6
it there any problems when yours drvice had rooted?
i still remember android 9.0 on sony smartphone. After you have unlock bootloader. "sittings-display-quality-Vedio image enhancement"will not useful. Is it also happen on xperia 1 ?:confused:
 

snake218

Senior Member
Nov 1, 2012
552
135
I ordered mine yesterday, i like to root all my devices too, but i would advice wait some time for a DRM keys backup method.
 

snake218

Senior Member
Nov 1, 2012
552
135
me too
got mine Yesterday and can't wait to root and have no prob to pay or donate for an afterroot DRM Fix

I currently are using a xz1, i rooted before a drm backup existed, and yes, there are drm fix solutions, but you loose forever the video enchantment even with it.

If you are Ok with that, then go ahead, rooting is always great :)
 

DanielMode

Senior Member
Jan 26, 2017
181
16
i'm not a video guy and don't even take many pictures lol

so u make me thinking about lol
 

snake218

Senior Member
Nov 1, 2012
552
135
Well, you if you can live a few months without root, will be a better option. In my case i will wait, i will freeze or remove via adb the bloatware meanwhile.

One of the best points of the Xperia 1 is the video consumption capabilities, and i think a lot of the "magic" would be lost without the video enchantment and Bravia features.
 

DanielMode

Senior Member
Jan 26, 2017
181
16
Well, you if you can live a few months without root, will be a better option. In my case i will wait, i will freeze or remove via adb the bloatware meanwhile.

One of the best points of the Xperia 1 is the video consumption capabilities, and i think a lot of the "magic" would be lost without the video enchantment and Bravia features.

the most thing i hate are the stupid Android System message while apps doing something :mad:
is that possible to turn off by adb command.?
edit: got it easy fix 0_o

---------- Post added at 01:52 PM ---------- Previous post was at 01:48 PM ----------

Do you know how to flash firmware for another country?
Thank you

use flashtool and Xperfirm to download FW

https://developer.sony.com/develop/open-devices/get-started/flash-tool
 
Last edited:

QuestionYup

New member
Jun 16, 2019
1
0
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.
 

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