[Xiaomi Mi A1 Guides, News, & Discussion] ilpanos:
Most Nexus phones users use magisk in order to be able to have root and xposed and also be able to easily pass safetynet check tests in order to be able to get OTA updates.

Well now magisk 14.4 works on our device and OTA updates should work just fine according to this https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips

Of course when Android Oreo rom comes out we should wait before applying it just to be sure that magisk and twrp will work on that rom so that we wont be left without root after updating (or brick the device.

I wrote a guide for installing magisk 14.4 on our device having 2nd october OTA installed, i copy it here so that more people can see it.

DISCLAIMER - USE AT YOUR OWN RISK! Bellow steps worked for my device but they might brick yours, you might lose warranty etc.!!!!!!

I am not a developer, I am just a user that wants to have the new phone setup like the older phones in my possession before using it as the main everyday phone.

All below packages are here due to the hard work of the people who made them. If you use them, give them the appropriate credits. This is also the reason that I don't attach any files in this post, I only give links to download the packages on the the forum threads/ sites I also found them.

Here I just show a combination of packages/ programs that worked.

PREREQUISITES:

1) Read the whole guide before starting. Make sure you are familiar with all the terms used and you understand what you are doing in each step.

2) I advise you to firstly download all the needed packages and have them in a folder in your computer and also make a copy of them in your phone and then start with the steps of this guide.

3) In this guide I use a windows pc. Fastboot commands are written in cmd. If you use a pc with another operating system, just make sure you can use adb/ fastboot commands and that you can also use miflash or another tool to flash the rom to your phone.

4) Make sure you have correct adb drivers installed in your pc. For this guide I have used adb-setup-1.4.3.exe from this thread.

So this is the step by step procedure with links:

Flash official rom with miflash

rom image: Here is the latest rom. (tissot_images_7.10.14_20171014.0000.00_7.1_d791bf99f4.tgz is the image I used while writing this guide)

miflash: MiFlash2017-7-20-0.zip

Boot to freshly flashed rom,

Install second october OTA update (75mb),

Do reboot and wait a few minutes until the update is installed.

If you have not done any changes to your device (other root like supersu, old magisk verision etc) you can ignore above step.

From settings-->developer options:

Usb debuging on

OEM unlocking on

Just to be on the safe side for magisk manager app also go to Settings --> Security and enable Unknown sources.

Then shutdown phone, boot phone to fastboot with Vol- & power button,

send the command "fastboot oem unlock" in order to unlock bootloader.

Phone reboots by it self if I remember correctly.

Boot to rom, now being unlocked, and see the splash screen to see if it says "Unlocked" to be sure that it is unlocked.

Then shut down the phone.

Again boot phone to fastboot with Vol- & power button,

boot twrp (just boot, not flash) with command "fastboot boot recovery.img"

recovery-3.1.1-1

From twrp, install Magisk-v14.4-20171103-073038

It installs magisk 14.4 but magisk manager apk version installed with this is 14.0.

So, in order to have magisk 14.4, reboot to rom, uninstall magisk manager and then install Magisk Manager 5.4.0 (as suggested by matcho13579) MagiskManager-v5.0-20170513.apk

The problem now with this version of magisk manager is that it installs modules correctly and they work just fine, but the installed modules are not listed in magisk manager modules page (they work but they cannot be seen). That means that you cannot disable a single module, you have to enable magisk core mode to disable all of them or normal mode to have all modules enabled - I hope this will be fixed in a newer version. Magisk-v14.4-20171103-073038 zip file as I said installs magisk manager 14.0 which also appears to be working, but I did all tests on my device with MagiskManager-v5.0-20170513.apk installed.

Next, inside magisk manager downloads, search and install xposed framework sdk 25 systemless by topjohnwu.

After installation is completed reboot phone (phone boot takes some time at this step).

Then install this Xposed installer apk -material design XposedInstaller_by_dvdandroid_31_10_17.apk.

Now you have October 2nd update rom in your device, magisk 14.4 & xposed framework.

If you select magisk core only mode (which disables magisk modules), have enabled magisk hide and hide it form all apps except the ones you want to have root access, the device passes safetynet and theoretically you can install OTA updates (xposed framework -systemless or not- does not pass safetynet, but being installed systemlessly through magisk, it can be disabled), according to this link

Inside magisk manager you can also install this MiA1Plus_V1.01 module in order to enable camera2api & EIS, to be able to use google camera application.

Finally, i installed gravitybox using gravitybox non-fbe 7.0.4 - 29/10/2017 and it also appears to be working, I have not tested it thoroughly though:

https://xdaforums.com/showpost.php?p=73340439&postcount=2

https://xdaforums.com/attachment.php?attachmentid=4317286&d=1509267532