10

[GUIDE] Root any Sony Android phone without TWRP

 1 year ago
source link: https://forum.xda-developers.com/t/guide-root-any-sony-android-phone-without-twrp.4542839/#post-88013707
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[GUIDE] Root any Sony Android phone without TWRPIMPORTANT

Rooting can break your phone. Do this at your own risk.

Intro

This guide explains how you can root any Sony Android phone without installing a custom recovery like TWRP. It's possible by downloading the latest firmware, patching the boot IMG file with Magisk and flashing the patched boot IMG.

Note:
If you have the XQ-AU52_EU_59.2.A.0.463-R14C firmware installed (Sony Xperia 10 II EU Android 12), you can skip downloading the firmware and converting the file from SIN to IMG. Flash the patched "boot.img" file in the attachment instead.


How to

  • Install all Android updates on your phone
  • Back-up your phone with a tool or Google back-up
  • Unlock the bootloader (wipes all data on your phone)
    Sony users:
    https://developer.sony.com/develop/...d/unlock-bootloader/how-to-unlock-bootloader/
  • Download the latest firmware
    Sony users can use XperiFirm which you will find in the attachment
    Make sure the version you download matches the one on your phone!
  • Convert the “boot SIN” file you just downloaded to IMG:
    Drag the “boot SIN” file to “unsin.exe” and an IMG file will be created
    (you will find "unsin.exe" in the attachment)
  • Copy the IMG file to your phone
  • Copy Magisk APK to your phone
    (you will find Magisk in the attachment)
  • Install Magisk on your phone using the APK you copied
  • Open Magisk on your phone
  • Install Magisk (button in the app) and patch the “boot IMG” file you just copied
  • Get the files for ADB (platform-tools)
    (you will find the files in the attachment)
  • Copy the patched “boot IMG” file to the “adb” folder on your pc and rename it to “boot.img”
  • Enable USB debugging on the phone:
    a) Settings » About » Tap “Build” until you a message appears you are a developer
    b) Settings » Advanced » Developer » USB debugging
  • Open a CMD window in the “adb” folder
    a) Press the “Windows botton”
    b) Type "cmd"
    c) Click "Command Prompt"
    d) Type "cd /d <path to directory with adb.exe file – i.e. c:\myfolder\adb>"
  • Start the phone in “fastboot” mode:
    a) Turn the phone off
    b) Press the "volume-up" button and connect the USB cable at the same time
  • Install the USB drivers
    (you will find the files in the attachment)
  • Run "fastboot flash boot boot.img" (watch the file name)
  • Disconnect the cable and turn the phone on
  • Download "Root Checker" from the Play Store and open it
  • Tap "Check Root"
  • A popup will appear to grand root access to the Root Checker app
  • If a message stating "ROOTED" appears your phone is succesfully rooted

That's it!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK