Saltar al contenido

Root for xiaomi mi A2 – TWRP

To root a Xiaomi device using TWRP (TeamWin Recovery Project) and Magisk, you’ll typically follow these general steps. Please note that the specific steps may vary depending on your device model and software version, and performing these actions may void your device warranty and could potentially result in data loss or device malfunction if not done correctly. Ensure you have a backup of your important data before proceeding.

  1. Unlock the Bootloader: Before you can install TWRP or root your Xiaomi device, you’ll need to unlock the bootloader. Xiaomi provides an official method for unlocking bootloaders on their devices, but the process may vary slightly depending on the model. You can usually find instructions on Xiaomi’s website or forums dedicated to Xiaomi devices.
  2. Install TWRP: Once the bootloader is unlocked, you’ll need to install TWRP custom recovery on your device. You can find the appropriate TWRP recovery image for your device model on the official TWRP website or on community forums. Then, follow instructions specific to your device for flashing TWRP using tools like fastboot.
  3. Download Magisk: Download the latest Magisk ZIP file from the official Magisk website or from a trusted source. Make sure you have this file saved on your device’s internal storage.
  4. Boot into TWRP Recovery: Power off your device completely. Then, boot into TWRP recovery mode by pressing and holding the appropriate key combination. This combination may vary depending on your device, but it often involves holding down the power button and volume down button simultaneously until the TWRP logo appears.
  5. Flash Magisk: Once you’re in TWRP recovery, select «Install» from the main menu, then navigate to the location where you saved the Magisk ZIP file. Select the Magisk ZIP file, then swipe to confirm the flash. This will install Magisk on your device.
  6. Reboot: After flashing Magisk, you can reboot your device from the TWRP main menu. Your device should now boot up normally, but it will be rooted with Magisk installed.

Please remember that rooting your device can have implications for security, warranty, and the stability of your device. Make sure you understand the risks involved and proceed with caution. Additionally, it’s important to use trusted sources and follow instructions carefully to avoid damaging your device.

Devices with Dedicated Recovery Partitions (A/B):
These devices have dedicated «recovery_a» and «recovery_b» partitions.
The custom recovery image can be flashed to «recovery_a» and «recovery_b» partitions directly.
Flashing to «recovery_ab» will flash to both «recovery_a» and «recovery_b» with a single command, if the device supports it.
The custom recovery will persist across ROM updates.

Devices with Boot as Recovery (A/B):
These devices don’t have a dedicated partition for recovery.
The recovery ramdisk resides in the «boot_a» and «boot_b» partitions.
A shared kernel is used for both the system and the recovery.
Due to that, you should never flash a custom recovery image directly to the «boot_a» and/or «boot_b» partitions. If you do that, the system will fail to boot.

Platforms: Snapdragon 678/680/695/778G/778G+/780G/870/888/888+
Devices: alioth, haydn, lisa, mona, moonstone, munch, odin, psyche, redwood(in), renoir, spes(n), star/mars, sunny, sunstone, taoyao, thyme, venus, veux/peux, vili
Image size: 192 MiB (201,326,592 bytes), or 96/128 MiB (100,663,296/134,217,728 bytes) for low-mid devices
Installation:

Code:
fastboot boot recovery.img
In the recovery interface: Advanced -> Install Recovery Ramdisk

 

Adicionales

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Aprende a quitar los anuncios en Android y iphone !

No olvide regalar su poderoso like y suscribete que es gratis, te quiero :3

You have Successfully Subscribed!