Root Sony Xperia XA2/Plus/Ultra Pie 9.0 Using TWRP And Magisk

Có thể bạn quan tâm

Download, extract, and save the TWRP File in your PC and your External mobile storage and rename it to recovery.img. You should keep the file in both locations. On the other hand, copy this file to the Mobile External SD Card.

  • twrp-3.3.1-2-pioneer.img (XA2)
  • twrp-3.3.1-0-voyager.img (Plus)
  • twrp-3.3.1-1-discovery.img (Ultra)
  • Copy all the above files into the Fastboot folder.

Unlock the bootloader using ADB and Fastboot

Your mobile should be supported to get the unlock code. Check this using the below step. If your mobile supported, get the code and unlock using unlock stages.

Check Compatibility

  • Go to Sony Developers Official Page to check if your device model is accepted for this.
  • You should signup to a new Sony Xperia account or login with details to an existing account. Alternatively, you can use your Gmail account.

  • The device must be connected to the internet

  • Dual SIM Sony devices have two IMEI numbers. Use the IMEI 1 to get the exact unlock code for your deviceselect device sony

  • This action works for all Sony Android devices. However, you still have to check out if your device model supports such action (unlocking the bootloader);

If your device is supported, then go ahead with the steps below to unlock the boot loader.

Unlock Steps

  • Open your phone dialer and dial this code – *#*#7378423#*#*

  • Go to Service Info >>> configuration >>> rooting status >>> Check to see if bootloader unlocking is allowed or not. If it is allowed, then continue below.

  • Get the “download_inf.zip” file and paste it into the folder where you installed ADB and Fastboot.

  • Dial *#06# and copy down your Sony Mobile IMEI number.

fill details to get unlock ID sony

  • Return to the Sony Official page, select your device model, and provide your Email Id.

  • You will receive a link to your Email id, click on the link to get the Unlock code to use and unlock your bootloader.

  • Switch off your device. Then, enter into Fastboot mode. To do this, press and hold down the Volume Down button connect mobile to your PC using USB Cable.
  • Go to the ADB and Fastboot folder, Launch the fastboot on your computer. Open a Command prompt on your PC and type below command.

  • fastboot devices
  • It should display the connected devices. If you didn’t get the device, restart the command prompt and Disconnect and Connect your Sony Xperia XA2. If you are detected, type below command and Hit Enter.
  • fastboot oem unlock 0x<insert your unlock code>

Note: you have to replace the key with your own generated Key

  • Tap “Enter” and wait for some time

  • Your mobile bootloader is now unlocked, reboot the device. Move to flash TWRP steps.

Flash TWRP

Xperia XA2 Fastboot Mode

  • Switch off your device. Then, enter into Fastboot mode. To do this, press and hold down the Volume Down button connect mobile to your PC using USB Cable.
  • Launch the fastboot on your computer. Open a Command prompt on your PC and type below command.

  • fastboot devices
  • It should display the connected devices. If you didn’t get the device, restart the command prompt and Disconnect and Connect your Sony Xperia XA2. If your device detected type below command and Hit Enter.
  • fastboot flash boot recovery.img
  • After the flash of the above file, type below command and hit Enter.

fastboot boot recovery

  • If you can’t reboot your mobile using the above command, Press Volume Down+ Power button to exit Fastboot mode. When the screen goes off, Immediately Press Volume Up + Power buttons to boot into Recovery mode.
  • It will boot into the temporary TWRP. Don’t Boot into standard OS until we flash magisk.

Install TWRP, Magisk, and Kernel in your Sony Xperia XA2 using TWRP

Sony Xperia 1 TWRP

  • In TWRP, Make a full Backup on External SD Card or Pendrive using OTG Cable.
  • After the process complete, Reboot to Bootloader using TWRP Option. Reboot->Reboot Bootloader.
  • Go to the TWRP menu. Select Advanced Menu->Install recovery ramdisk->recovery.img. This file is what we stored in the SD card before.
  • Return to Home of TWRP select Install.
  • Select Magisk.Zip.
  • Again Return to Home of TWRP select Install.
  • Select Kernel.Zip. The same process goes for Camera Fix. Don’t use Add more Zips in TWRP. Install one by one.
  • After the Installation Reboot Your Mobile.
  • You can also install Magisk Manager in your Mobile Applications. Download Root Checker to check your mobile root status.

Sony Xperia XA2 Magisk Root Screenshot

What More?

In my opinion, you don’t need rooting for your Sony Xperia XA2. If you thought you could Improve Performance By root; With the Qualcomm Snapdragon 660 Octa-Core processor and 3/4/6 GB RAM, your device can perform well. If you don’t know how much RAM you need, You will never use this much RAM. Don’t Install any apps other than trusted sites on rooted devices. Third-party site apps can contain some background codes. So, Check twice before installing those apps. If you want to return to stock firmware, flash Sony Xperia XA2/Plus/Ultra Pie 9.0 firmware. During this process, If you face any problem, comment below.

Source, (2), (3)

174884903535965Selva Ganesh

Selva Ganesh is a Computer Science Engineer, Android Developer, and Tech Enthusiast. As the Chief Editor of this blog, he brings over 10 years of experience in Android development and professional blogging. He has completed multiple courses under the Google News Initiative, enhancing his expertise in digital journalism and content accuracy. Selva also manages Android Infotech, a globally recognized platform known for its practical, solution-focused articles that help users resolve Android-related issues.

Share This Post:

Related Posts

  • Root Sony Xperia XZ1 Pie 9.0 using TWRP and Magisk
  • Root Sony Xperia 1 Pie 9.0 using TWRP and Magisk
  • Root Sony Xperia XZ1 Pie 9.0 using TWRP and Magisk

Từ khóa » H3113 Xda