[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Adinid:
This is my first time posting here on xda if i miss some rules please let me know

Installing drivers & Preparing PC (Thanks to balazs312)

- Download this file and extract it

- Open and install "adb-setup-1.4.3.exe"

- When it is done, go to "Drivers" folder and start "miflash_unlock.exe"

- Click on the gear icon top right corner and click on "Check" next to "Click the button to install the drive"

- Do as the installer says

- Hopefully the drivers has been installed so we're done with it

NOW Unlock Bootloader (It will wipe ur data! so backup before doing it)

-Open the Settings app on ur phone

-Go to System.

-Tap on About phone.

-Scroll down and tap on Build number 7 times until it says you’re now a developer.

-Go back one page you should see “Developer options.” click it

-then you should see an “OEM unlocking” option. Enable it.

-Scroll down a bit until you see “USB debugging.” Enable it.

-Disable automatic updates

-now turn off your phone

-now turn on ur phone in fastboot mode by pressing volume down + power key in will boot in fastboot mode

- Download zip and extract it on your PC

- Open it and type "cmd" (without the quotations) in the file manager header where you see (This computer>somethingsomething>Mi A2 fastboot), don't be afraid just type it in, and hit enter and you'll enter into command prompt

- Now we are ready for action

- Type these commands one by one:

fastboot flashing unlock
fastboot flashing unlock_critical

done now pop up will show on your phone select unlock bootloader with volume key n power

it will reboot set up ur phone again

2. Installing Magisk

To Install Magisk you need patched boot image you can have one from here

{always use img that matches exactly to ur build no}

OR

{OPTIONAL}

you can make own boot img

download fastboot rom and get boot.img from there

or download untouched img from here

so now ur phone is unlocked download magisk manager and install it from HERE

copy that untouched boot image from ur pc to phone

open magisk manager >install >patch boot image select ur boot img u just transferred

magisk manager will create a patch image in same directory or download folder

Fastboot patch img

Now if u have created ur own patch img transfer it to pc from ur phone n put it in adb folder

or if u have simply downloaded the patch image copy it to adb folder

Open a fastboot command prompt on your pc.

Type "fastboot boot {patched boot image name}.img"

Your phone will reboot

Install the magisk apk.

Now open Magisk Manager app

Click Install, direct install. Wait for the process

And click reboot.

HOW TO APPLY OTA UPDATES

IMPORTANT: it will only work if you do not alter system yourself like build.prop (try altering system just using magisk modules)

{if u created ur own patch img}

When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

{if u have not created ur own img put untouched downloaded build.img in magisk folder then}

When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

Close Magisk Manager and go to "Settings" > "About Phone" > "System update" and install the OTA update. Dont Reboot

Open Magisk Manager again and tap on "Install" > "Install" > "Install to Inactive Slot" and after that you can tap on "Reboot".

alternatively

Magisk could alert you that it cannot restore the original boot.img when you trying to uninstall

To fix this, you can flash directly the untouched boot.img through fastboot

fastboot getvar current-slot

then you will get ur active slot it might be a or b

if its a then use

fastboot flash boot_a boot.img

If its b then use

fastboot flash boot_b boot.img

Now We Have Mi A2 Telegram Group get in if u want to help or need some help

OffTopic Group HERE

Development Group HERE