[Upgrading, Modifying and Unlocking] eleven.co:
Greetings Readers,

Today you will learn how to unlock bootloader of your Mi A2 device along with flashing latest(as per now) TWRP(v3.5.0) subsequently flashing the latest(as per now) Resurrection remix OS(v8.6.5).

Your Phone's warranty would void. So you might wanna think again before going forward.

All of your device data would be wiped so create a backup beforehand.

Your device might get stuck in bootloop.

Your device might get damaged.

I won't be responsible for any ruckus you create.​

Pre-requisites:

- Your phone's battery must be charged at least to 70%.​

- Keep your PC plugged into power as well.​

- Be confident.​

Lets Begin

​

Things Needed:

- Xiaomi Mi A2​

- PC(Windows recommended)​

- Data Cable​

​

Files Needed​

File Name	Download Link	Instructions
RROS-Q-Final v8.6.5	Resurrection Remix Downloads	- Scroll down until you see a file: RROS-Q-Final-8.6.5-20201215-jasmine_sprout-Official-gapps.zip

View attachment 5226269

- Now click on this file name to start the download.

*Gapps included in this ROM file​

twrp v3.5.0	Download twrp-3.5.0_9-0-jasmine_sprout.img	-Click on the blue colored text: Download twrp-3.5.0_9-0-jasmine_sprout.imgView attachment 5226271
twrp-installer v3.5.0	Download twrp-installer-3.5.0_9-0-jasmine_sprout.zip	- Click on the blue colored text: Download twrp-installer-3.5.0_9-0-jasmine_sprout.zipView attachment 5226273
platform-tools v31.0.0	SDK Platform Tools release notes | Android Developers	- Scroll down a bit and under Downloads section click on blue colored text: Download SDK Platform-tools for windows

View attachment 5226281

- Now click on checkbox and then click on the download button to start the download:

View attachment 5226285
Mi Unlock Tool v4.5.813.51	miflash_unlock-en-4.5.813.51.zip

-​

Dm Verity Force Encrypt Disabler v11.02.2020	Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip

-​

*all the above given download links are from the respective official websites. So, download them all on your PC.

Preparing Mi A2​

Enabling OEM Unlock and USB Debugging:

- Navigate to Settings > About phone.​

~ Tap on Build number 7 times.​

- Navigate to Settings > System > Developer options.​

~ Enable the 'OEM unlocking' and 'USB debugging' switch.​

- Switch off your phone.​

- Press the Power button and Volume Down button simultaneously, until you see the fastboot screen.​

- Connect the phone to your PC using USB data cable.​

Working on PC​

Installing drivers:

- Extract the 'miflash_unlock-en-4.5.813.51.zip' file.​

- Inside this file double click on 'miflash_unlock.exe' file.​

*we are not installing this tool. We are just using it for installing our device drivers.​

​

View attachment 5226331​

​

- On the top right corner click on the settings gear icon.​

​

View attachment 5226333​

​

- Now click on 'Check' button.​

​

View attachment 5226335​

​

*it will ask for Administration Access twice.​

- Click on 'Yes' both the times.​

*a new dialogue box appears asking you to connect your device again.​

- Unplug your device and connect it again and the drivers will get installed.​

​

Unlocking Bootloader:

- Extract the 'platform-tools_r31.0.0-windows.zip' file.​

- Inside this file will be a folder platform-tools. Open it.​

- Now in the address bar type 'cmd' and hit enter.​

​

View attachment 5226371​

​

*we did this in order to open cmd to this location. So that our future commands are accessible.​

- In the cmd window type the command:​

fastboot devices

​

*it will display our device, something like this:​

​

View attachment 5226381​

​

/* In case your device is not displayed.​

Try installing drivers again. */​

- Enter the command:​

fastboot oem unlock

​

*this unlocks the bootloader temporarily​

/* A screen pops up on our phone.​

Navigate using volume buttons and select using power button.​

Our phone reboots.​

Set up everything haphazardly.​

Navigate to Settings and enable Developer options.​

Enable USB debugging in Developer options.​

Switch off your phone and boot into fastboot mode again. ​

Enter the command fastboot devices in order to check if our device is successfully connected. */​

- Enter the command:​

fastboot oem unlock_critical

​

*this will unlock our bootloader permanently​

/* Once again a screen pops up on our phone asking for a confirmation.​

Confirm it and phone reboots.​

Once again set it up haphazardly.​

Enable Developer options and USB debugging subsequently.​

Boot into fastboot mode again. */​

- Enter the command:​

fastboot oem device-info

*this command will confirm if our device' bootloader has been unlocked or not​

​

View attachment 5226413​

Installing twrp:

-Enter command:​

fastboot format userdata

*this command wipes Internal Storage of our phone​

-Enter command:​

fastboot format cache

*this command wipes cache of our phone​

-Now enter the command fastboot boot and drag and drop the 'twrp-3.5.0_9-0-jasmine_sprout.img' file into cmd and hit enter.​

*we did this so that command file will know the location of our twrp img file and hence execute the command​

​

/* Our phone will boot into recovery mode.​

Transfer 'twrp-3.5.0_9-0-jasmine_sprout.img', 'twrp-installer-3.5.0_9-0-jasmine_sprout.zip', 'RROS-Q-Final-8.6.5-20201215-jasmine_sprout-Official-gapps.zip' to Mi A2's Internal storage. */​

Working on Phone​

​

- Tap on Install > Install Image(bottom right corner) button.​

- Select 'twrp-3.5.0_9-0-jasmine_sprout.img' file.​

- Now in 'Select Partition to Flash Image:' scroll down and select the 'Install Recovery Ramdisk' option.​

- Swipe right to flash.​

- Press back once flashing is complete.​

*temporary installed twrp in Slot B​

​

- Go to Home > Wipe > Advanced Wipe.​

- Tap on every checkbox except the 'Internal Storage'.​

- Swipe right to wipe.​

*we wiped the stock rom from Slot B​

​

- Go to Home > Reboot > Slot A.​

- Go to Home > Install.​

- Select the file 'twrp-installer-3.5.0_9-0-jasmine_sprout.zip' and swipe right to flash.​

*we temporary installed twrp in Slot A​

​

- Go to Home > Reboot > Recovery.​

- Tap on Wipe > Advanced Wipe.​

- Tap on every checkbox except the 'Internal Storage'.​

*we wiped stock rom from Slot A​

​

- Go to Home > Install.​

- Select the 'RROS-Q-Final-8.6.5-20201215-jasmine_sprout-Official-gapps.zip' ROM file and swipe right to flash.​

*this might take some time​

- When flashing is finished tap on 'Wipe Cache/Dalvik' button.​

*we flashed RROS rom in Slot A​

​

- Go to Home > Install.​

- Select the 'twrp-installer-3.5.0_9-0-jasmine_sprout.zip' and swipe right to flash it again.​

*we installed twrp in Slot A again as it got wiped when we flashed our rom​

​

- Go to Home > Reboot > Slot B.​

- Go to Home > Install.​

- Select the 'twrp-installer-3.5.0_9-0-jasmine_sprout.zip' file and swipe right to flash.​

- Head back to Home > Wipe > Format Data.​

- Type 'yes' and tap on the Tick button.​

- Go to Home > Reboot > Recovery.​

- Go to Mount and tap on 'Enable MTP' button in the lower right corner (Do not press it if it's showing 'Disable MTP').​

- Now transfer the 'Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip' file into your phone's internal storage using your PC.​

- Go to Install and select the file 'Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip' and swipe right to flash.​

*we installed twrp permanently in slot B​

- Select the 'twrp-installer-3.5.0_9-0-jasmine_sprout.zip' and swipe right to flash it again.​

- Head to Home > Reboot > System.​

​

​

Congratulations we have successfully installed RROS on our Mi A2​

How to boot into recovery:

Method 1: using Software

- Navigate to Settings > Resurrection tools > System > Power dialog.​

- Scroll down and under the 'BUTTONS' section, enable the 'Enable advanced restart' switch.​

-Now long press the power button and then select Advanced from the menu to see all the options.​

Method 2: using Hardware

- Switch off the phone.​

- Press Power button and Volume Up button simultaneously.​

- Just as you see Android Boot Splash Screen, press the Volume Up button twice.​

​

Bugs & Fixes​

Bugs	Fixes
Camera isn't recording videos.	- Head to Camera Settings.

- In 'Video quality' select 'FHD 1080p, 30fps' option.
Phone stuck on boot splash screen when battery drains completely.

*this might occur for the very first time only​

- Boot into recovery using Power + Volume Up buttons.

- On twrp home screen, go to Reboot > Power Off.

- Switch On your phone by long pressing power button.
Sometimes excessive tweaking delays device wake up.	- Reboot SystemUI.

- Let the phone sit for a minute.
Camera sounds not turning off.

- Root your device using latest Magisk app.

- Now, install the module 'Disable screenshot and camera sounds'.

- Reboot your device.​

Special Thanks to:

RROS Team for providing such a wonderful ROM.

TeamWin - TWRP for providing the twrp files.

@Zackptg5 for the Disable Dm-Verity file.

And to every person who made this possible.

Thankyou for Reading​