[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Creater0822:
Yes here is a reupload of that file: https://drive.google.com/file/d/18XOpA_fHXJlWiZPOCKgcFVtbTxpn5vaX/view?usp=sharing

It's even on Google Drive, aka a non-inferior limited-time-only semi-ad-host, the way that all filehosts should be xD

---------- Post added at 03:02 PM ---------- Previous post was at 02:04 PM ----------

With that said, because I have not seen a proper installation guide on TWRP in this thread I guess I'll try one.

Before the installation guide begins I'd want to first proclaim a couple of assumptions that I have taken when writing this post:

I'm assuming that you're using Magisk (because it's superior over SuperSU, and thus over every other root manager)

I'm assuming that you've already unlocked your bootloader, installed ADB/Fastboot correctly on the pc you're using and understand how to use the two.

I'm assuming you're using OpenGApps. I may have heard or seen things such as ways to keep GApps installed even after OTA, but due to laziness I've never done research into that, hence you're currectly at the wrong address if you're interested in that until the day I did try it out myself.

Next up is a few things that are important before proceeding:

Always flash Magisk as last!! I'd suggest flashing TWRP first, then followed by OpenGapps and finally Magisk.

Unfortunately, if you want Xposed/EDXposed you'll be flashing it after Magisk.

Now that we've got the assumptions and out of the way, let's start things off:

Scenario 1) You've just bought your phone and want to root it as well as relief the Android Stock Recovery from its misery as it sucks, but you don't want to flash to a different ROM such as LineageOS, AOSP or anything else.

Unlock your bootloader and never re-lock it, install or update to the lastest ADB/Fastboot on your pc and load the TWRP image through fastboot.

Now that TWRP has been loaded from the image file, you'll have to press the button "Reboot"

In the Reboot menu you'll see a label saying Current slot: with a letter that is either A or B, toggle that letter or otherwise you'll be flashing TWRP over your system. Make sure you've made a backup beforehand if you're unsure if you'll nail it your first time xD

Now that you've toggled that letter, you can go back to the main menu, press the "Install" button, find the TWRP installation zip that you have placed in your phone's storage or SD Card and flash it.

Once flashed you'll go back to the Recovery menu and toggle the slot letter back.

After you've toggled the slot letter back to what it was originally, you can flash Magisk and that's it.

Scenario 2) You're about to install a new ROM such as LineageOS over your stock ROM. You want to have both Magisk and TWRP, and you obviously want Google Apps.

Download the latest OpenGapps from https://opengapps.org by choosing the correct platform, Android version and variant. I suggest the Nano package as it contains less bloatware in my opinion.

Make sure you've backed things up such as Whatsapp messages/media, phone contacts, etc etc as you will lose these.

Reboot to TWRP or fastboot into TWRP, I suggest making a backup before you continue.

Press the "Wipe" button and press "Advanced Wipe". Check and wipe the following: System/Data/Cache/Dalvik

Flash your LineageOS installer, don't worry about which slot you're at.

Once it's flashed you have lost TWRP in case you had it installed on your phone prior, I personally suggest to reboot to bootloader and fastboot the TWRP image.

Once you've loaded from the TWRP image, go to the Reboot menu and flip the slot letter over.

Now you can flash the TWRP zip installer.

Go to the Reboot menu and flip the slot letter back to what it was before.

Flash OpenGApps first, then flash Magisk. Once that's finished you're basically done.

Scenario 3) You have already installed LineageOS and want to update to a later version. You obviously don't want to lose all your installed apps and such.

Download the latest LineageOS from your computer and copy it to either your SD Card or internal storage.

While you're at it, also revisit the OpenGapps website and download the latest version as it receives updates quite often.

Reboot to fastboot to TWRP.

Go to the Advanced Wipe menu and wipe System only.

Flash your latest LineageOS installer

Once it's flashed, reboot to bootloader and fastboot to TWRP from image.

Flip to the opposite slot letter in the Reboot menu and flash the TWRP installer

Flip the slot letter back to what it was and flash OpenGApps.

Just to be safe, don't flash Magisk yet. Instead reboot to system and see that it works first. The reboot back to TWRP and flash Magisk.

Scenario 4) You're upgrading from LineageOS 15.1 to LineageOS 16.0.

Exactly the same procedure as scenario 3. Step 8 in scenario 3 is a must-do in this scenario.

If you want Xposed Framework with Android 9 you'll have to follow this guide: https://github.com/ElderDrivers/EdXposed/blob/master/README.md