Guide: How-to Unlock, Root, TWRP, ROMs, Android P, Google Apps, Magisk

Search This thread

underlines

Senior Member
Aug 26, 2011
490
442
Bangkok
In the original Mi Mix Forum we had a one-in-all thread for all new users, so I try to continue it here.
I will try to mention all people from who I take sources from. If I forgot anyone, please don't hesitate to tell me.
If you have change requests or useful additions, I will try to update the original posts ASAP.

Change log 2018-08-16 03:30 AM UTC
Code:
+ Updated: MIUI 10 china & global beta links
+ Added: Google Maps Location Sharing & Timeline on Chinese ROM
+ Updated: Working GCam links

Chat Group
Get live help and discuss topics around Mi Mix 2S in our Telegram Group: MOD EDIT: Telegram link removed, read the STICKY!

Available ROM & Download Links

The variants sold outside of China come with the Global ROM including Google Apps.
For devices that have the Official Chinese ROM, it's only possible to flash the Official Global ROM after you unlock your device due to region mismatch.

OTA or recovery zips can be flashed in the official MIUI updater app if it matches your region) or if you're unlocked, you can flash through TWRP whatever you want.
Fastboot ROM can be flashed by using fastboot or the XiaoMi Flash Tool.

ROMs:

Recovery can be flashed through the Updater app on your phone (if locked, china can only flash china, global can only flash global) or better through TWRP Recovery (if unlocked, can of course flash any region over any).
Fastboot can be flashed by connecting your phone through USB and use XiaoMi Flash Tool or fastboot.
Custom ROMs can be flashed by TWRP (if unlocked)

MIUI 9.5 Official Download Links on miui.com (Chinese Stable/Developer, Global Stable/Developer)
Recovery latest
Fastboot latest

MIUI 9.5 Global Stable (leaked):
Recovery 9.5.19
Recovery 9.5.18
Recovery 9.5.4
Fastboot 9.5.4

MIUI 10 Global Closed Beta, Android 9 (leaked)
Recovery 8.8.7

MIUI 10 Global Closed Beta, Android 8 (leaked):
Fastboot 8.6.26
Recovery 8.6.14

MIUI 10 Chinese Beta, Android 9.0 (leaked)
Recovery 8.8.15

MIUI 10 Chinese Beta, Android 8.0 (leaked)
Recovery 8.7.2
Fastboot 8.6.21
Recovery 8.6.13
Recovery 8.6.12
Recovery 8.6.11
Recovery 8.6.6 *relocks bootloader, flash root/magisk or unlock again (you'll loose /data)
Recovery 8.6.5
Recovery 8.6.4
Recovery 8.5.31

MIUI 9.5 xiaomi.eu Custom ROM:
Recovery latest

Official Android P preview from Google (pure AOSP):
System Image

AOSP Custom ROMs
Mokee
Lineage Treble



Available TWRP recoveries & Download Links

TWRP by xiaomi.eu and miuiItalia
The first versions are from xiaomi.eu and miuiItalia and aren't able to read encrypted internal storage. If you want to flash something with this TWRP you need to format your internal storage then copy the file over in MTP mode and flash it. So you loose your storage all the time. No problem when you want to cleanly flash new ROMs, but annoying when you just flash magisk, mods and other things.
Download TWRP polaris by xiaomi.eu
Download TWRP by miuiItalia

TWRP by notsyncing
notsyncing's version is able to work with encrypted storage. You need to enter your pin or draw your lock pattern in order to work. Switching between different ROMs like Chinese/Global/Custom you most probably still need to format your /data, but when you stay on the same ROM no need to wipe or format.

Thread


Guide: Install Google Apps & Contact Sync on Chinese ROMs

Chinese ROMs don't contain Google Apps. Especially if you didn't unlock your phone you probably want to install Google Apps and Framework:
  1. Download the Oreo Google Apps package: https://androidfilehost.com/?fid=818222786056028173 and extract it on your phone
  2. Install every APK from 1-6 without opening them after installation!
  3. Install 8.0-Oreo.com.google.android.gsf_8.0.0-4147944-26_minAPI26.apk
  4. Don't inistall the remaining two APKs
  5. Download and install the updated contacts sync 8.1.0 APK: https://www.apkmirror.com/apk/google-inc/google-contacts-sync/google-contacts-sync-8-1-0-release/google-contacts-sync-8-1-0-2-android-apk-download/
  6. Go into Settings > Installed apps and find all Google Apps in the list. Select each of them and turn on Autostart Permission. Additionally go into Permissions and enable all permissions in there. Again: Do this for all Apps you've just installed or that have the name Google or Contacts or Calendar in it.
  7. Reboot your phone
  8. Login to your google account, by opening Settings > Sync > Add Account > Google


Guide: Install Global ROM (leak)

If you're on Chinese or xiaomi.eu ROM and you want to flash the official Global ROM that has been leaked:
  1. Unlock bootloader
  2. Download Global V9.5.18.0.ODGMIFA from above
  3. Boot phone into fastboot, open fastboot console on your pc, connect phone via USB with your pc
  4. download and extract official twrp recovery for mix 2s and name the file recovery.img and copy it onto C:\
  5. fastboot boot recovery.img
  6. wipe > advanced > dalvik cache, system, data, internal storage, cache
  7. copy V9.5.18.0.ODGMIFA zip and region fix onto your phone (may not be necessary with global device, and/or with newer global ROM leaks. try without the fix first)
  8. twrp: install V9.5.18.0.ODGMIFA zip
  9. twrp: install region fix zip
  10. reboot and complete setup of your phone
    For magisk see below


Guide: Install MIUI 10 leak

  1. phone: boot to fastboot
  2. pc:
    Code:
    fastboot boot twrp.img
  3. phone: wipe data, system, dalvic, cache
  4. phone: format DATA
  5. phone: reboot phone into fastboot
  6. pc: fastboot boot twrp.img
  7. pc: transfer miui 10 zip to phone memory
  8. phone: install miui 10 zip
  9. phone: reboot to miui 10 setup device wizard
  10. phone: in case your device is bound to a xiaomi ID, enter your password
  11. phone: complete MIUI 10 setup
  12. phone: download form apkmirror and install:
Magisk
Info: info: may not work if you have the chinese 6GB model instead of the global model, but always works on the 8gb model
  1. phone: reboot to fastboot
  2. pc: copy magisk 16.4 install/uninstall zip to phone
  3. phone: install magisk
  4. reboot


Guide: Install official Android P developer preview

Google announced the Android P preview officially for the Mi Mix 2S as shown here: https://developer.android.com/preview/devices/

Requirements:

Steps to install: Download Android P for Mi Mix 2S: http://www.mi.com/en/androidppreview/




Guide: Unlock bootloader

  1. On your phone, login to your Miui Account, if you don't have an account, create one. That's under Settings > MI Account
  2. Enable developer mode on your phone, under Settings > My Device > All Specs > Tap on MIUI version 5 times until the toast notification tells you that you're a developer
  3. Go into Settings > Additional Settings > Developer options > Enable: OEM unlocking, then go into MI Unlock status and "Add account and device". (If you get an error messages, you need to use a VPN app and connect to a city in Mainland China, like Beijing)
  4. Download and run http://en.miui.com/unlock/ the unlocker app on your computer, login with your MI Account. The first time you may have to apply for Unlocking permissions with your MI Account. The SMS confirmation code they send you may take several days to arrive. Please be patient and don't try to unlock your device before.
  5. After you got your SMS confirmation code, enter it in the unlocker application on your computer and connect your phone via USB
  6. Try to unlock your phone.
  7. Sometimes Xiaomi will now force you to wait for up to 360 hours until you can try again to unlock. This is annoying, but you have to wait. Otherwise your account may be blocked.


Guide: Flash any Treble ROM


Download any Treble ROM:

Requirements:
  • Unlocked bootloader
  • Be on Global or Chinese official stable ROM, flash it through XiaoMiFlasher and download the fastboot ROM from mi.com if necessary
  • Minimal ADB & Fastboot installed on your Windows computer
  • Download the ARM64 NANO OpenGApps for the exact Android version your Treble ROM uses: https://opengapps.org/
  • Optional: Download Magisk 16.4 and Magisk Uninstaller

  1. Perform a factory reset on your device. You have two options here:
  2. Open the settings app on your phone and look for the factory reset option.
  3. Boot your phone into fastboot
  4. With your device connected to your PC start the Minimal ADB & Fastboot console
  5. Enter a command in the following format:
    Code:
    fastboot flash system
    having a space at the end, so it's fastboot flash system(SPACE) and drag and drop your Treble img file with your mouse from an Explorer window into the cmd console
    Example:
    Code:
    fastboot flash system C:\Users\Superman\Desktop\Mix2S\system-arm64-aonly-gapps-su.img
  6. Push enter, and allow the image to flash, it could take a few minutes.
  7. Once it has completed, reboot your device into fastboot then (WARNING: THIS WIPES EVERYTHING) enter
    Code:
    fastboot -w
    from your computers command prompt window.
  8. Reboot
Optional:
You can flash TWRP and then flash GApps and or Magisk if you want. The DM-Verity check may prevent the phone from booting, so by flashing Magisk DM-Verity check should be disabled and your phone should boot.



Guide: Flash TWRP Recovery and Custom ROM

Download TWRP for Mi Mix 2S above

  1. Extract the img file of the TWRP zip you've downloaded, into C:\ and name it recovery.img
  2. Turn off phone
  3. Press Volume Down + Power button until phone boots into fastboot mode
  4. Download and install latest Minimal ADB and Fastboot from here https://forum.xda-developers.com/showthread.php?t=2317790 on your windows computer
  5. Connect your phone with the USB cable
  6. Open a CMD window on your windows computer (Press CTRL+R enter cmd, press enter)
  7. enter the following command and press enter: fastboot flash recovery C:\recovery.img
  8. enter the following command and press enter: fastboot boot C:\recovery.img
  9. Wipe /data partition
  10. Copy the ROM zip file to the internal storage of your phone
  11. Install the ROM zip
  12. Reboot
  13. done



Guide: Install Magisk

More information on http://en.miui.com/thread-2449455-1-1.html

For Official Global ROM (not xiaomi.eu) I can confirm this works (safetynet passed):

NOTE: Check your phone model in settings > my device > model (MIUI 9) or settings > my device > verification (MIUI 10). Depending on your Model and ROM Magisk may not work. See below for confirmed outcomes.


Chinese / Global / Beta + M1803D5XA + Magisk = OK
Chinese + M1803D5XE + Magisk = OK
Chinese + M1803D5XE + Magisk = OK
xiaomi.eu + M1803D5XE + Magisk = OK
Global + M1803D5XA + SR-SuperSU-v2.82-SR5 = OK

How to flash Magisk the common way
Use the modified twrp with working partition decryption
  1. Unlock your bootloader
  2. on PC: fastboot boot recovery.img
  3. in TWRP: Install your ROM (example Global V9.5.18.ODGMIFA)
  4. If you want to flash global on a chinese device, in TWRP: install region fix otherwise go to next step
  5. on Phone: Boot and complete MIUI setup
  6. on PC: fastboot boot recovery.img
  7. in TWRP: enter your password to decrypt storage
  8. in TWRP: install Magisk-v16.4.zip
  9. Reboot


Guide: Pass Safety Net with Magisk

  1. Install MagiskHide Props Config in MagiskManager Modules
  2. Reboot phone
  3. Install Terminal Android, and start it.
  4. Give it root permissions
  5. type in the terminal window:
    Code:
    su
    props
    1
    fingerprint
    use the fingerprint:
  6. Code:
    Xiaomi/polaris/polaris:8.0.0/OPR1.170623.032/V9.5.15.0.ODGCNFA:user/release-keys
  7. And boom, pass safetynet after a reboot

Info: You can enable developer mode, turn on USB debugging and use ADB on your PC instead of the terminal on your android. After installing Minimal ADB & Fastboot on your PC, search for the link in your start menu and open it. A black CMD window should appear where you can type commands after you connect your PC with your phone, and allow ADB on your phone. Then enter:
Code:
adb devices
adb shell
Enter the commands in the tutorial above


Enable Google Maps Location Sharing & Location History on Chinese MIUI ROM

You need Magisk properly installed on your ROM and then download & install the module: Unlock CN GMS



Google Camera with HDR+

Some modified versions of Google Camera may allow to use HDR+ with the Mi Mix 2S. For some these may work:
defcomg-fix_OP6v0.3_MGC_5.1.018_FINAL_3.4A.apk
As the modders keep creating new fixes, you should try out new versions from here regularily and see if HDR+ works and the portrait camera works.
Original thread: Mix 2S Google Camera
 
Last edited by a moderator:

Bill Power

Senior Member
Apr 11, 2018
142
23
...

Official Global ROM
The variants sold outside of China come with the Global ROM including Google Apps.
For devices that have the Official Chinese ROM l, it's possible to flash the Official Global ROM. L

  1. Follow the Unlock tutorial in this guide
  2. Download the Official Global ROM: http://bigota.d.miui.com/V9.5.4.0.ODGMIFA/miui_MIMIX2SGlobal_V9.5.4.0.ODGMIFA_702fd64fce_8.0.zip
  3. Extract the Zip to C:\rom
  4. Download and install Mi Flash tool
  5. Turn off your phone. Press Volume Down + Power button to boot into Fastboot mode
  6. Connect your phone via USB to your computer
  7. Flash the ROM with Mi Flash Tool
...
Coming soon

Thanks for your effort. About the quoted part i don't think it will work by following this steps. People in this topic tried without success: https://forum.xda-developers.com/xiaomi-mi-mix-2s/how-to/global-stable-rom-link-t3786717

It seems the proper way is the one it follows:

I've just tried it and the bootloader has to be unlocked, otherwise the phone will not boot. But thanks for your guide, I have succesfully installed Global, many thanks :) so to sum things up, to install Global rom you need to:

  1. Unlock your bootloader
  2. Flash TWRP from Xiaomi.eu
  3. Flash Global from first post and WITHOUT rebooting flash region fix from carburano's guide
  4. Now you can reboot to system
 

tasar

Senior Member
Mar 17, 2007
708
124
I think, he never test his guide himself... the rom is the same as in the other link here from italian guy and it is not an fastboot rom. So i wonder, how he flash this file with miui-flash... so i think, he never had flash this.
 

underlines

Senior Member
Aug 26, 2011
490
442
Bangkok
Well this time xiaomi forced me to wait for 360 hours before i can unlock, even though my mi account has unlock permissions since 2016... So i can't yet validate anything.
Thanks for your input. I'll adapt the guide
 

ruicc

Senior Member
Jan 8, 2008
1,763
615
Somewhere in the world...
In the original Mi Mix Forum we had a one-in-all thread for all new users, so I try to continue it here.
I will try to mention all people from who I take sources from. If I forgot anyone, please don't hesitate to tell me.
If you have change requests or useful additions, I will try to update the original posts ASAP.


Hi,

Don't forget to add "How to install Google Apps", please.

Thanks


EDIT 1; NVM, found it under Chinese rom


EDIT 2: Gapps installation went flawlessly, many many thanks
 
Last edited:

underlines

Senior Member
Aug 26, 2011
490
442
Bangkok
Change log 2018-05-09 04:38AM GMT
Code:
+ Added: Android P developer preview for Mi Mix 2S section
+ Added: Magisk section
- Removed: Xposed section
 

Top Liked Posts

  • There are no posts matching your filters.
  • 28
    In the original Mi Mix Forum we had a one-in-all thread for all new users, so I try to continue it here.
    I will try to mention all people from who I take sources from. If I forgot anyone, please don't hesitate to tell me.
    If you have change requests or useful additions, I will try to update the original posts ASAP.

    Change log 2018-08-16 03:30 AM UTC
    Code:
    + Updated: MIUI 10 china & global beta links
    + Added: Google Maps Location Sharing & Timeline on Chinese ROM
    + Updated: Working GCam links

    Chat Group
    Get live help and discuss topics around Mi Mix 2S in our Telegram Group: MOD EDIT: Telegram link removed, read the STICKY!

    Available ROM & Download Links

    The variants sold outside of China come with the Global ROM including Google Apps.
    For devices that have the Official Chinese ROM, it's only possible to flash the Official Global ROM after you unlock your device due to region mismatch.

    OTA or recovery zips can be flashed in the official MIUI updater app if it matches your region) or if you're unlocked, you can flash through TWRP whatever you want.
    Fastboot ROM can be flashed by using fastboot or the XiaoMi Flash Tool.

    ROMs:

    Recovery can be flashed through the Updater app on your phone (if locked, china can only flash china, global can only flash global) or better through TWRP Recovery (if unlocked, can of course flash any region over any).
    Fastboot can be flashed by connecting your phone through USB and use XiaoMi Flash Tool or fastboot.
    Custom ROMs can be flashed by TWRP (if unlocked)

    MIUI 9.5 Official Download Links on miui.com (Chinese Stable/Developer, Global Stable/Developer)
    Recovery latest
    Fastboot latest

    MIUI 9.5 Global Stable (leaked):
    Recovery 9.5.19
    Recovery 9.5.18
    Recovery 9.5.4
    Fastboot 9.5.4

    MIUI 10 Global Closed Beta, Android 9 (leaked)
    Recovery 8.8.7

    MIUI 10 Global Closed Beta, Android 8 (leaked):
    Fastboot 8.6.26
    Recovery 8.6.14

    MIUI 10 Chinese Beta, Android 9.0 (leaked)
    Recovery 8.8.15

    MIUI 10 Chinese Beta, Android 8.0 (leaked)
    Recovery 8.7.2
    Fastboot 8.6.21
    Recovery 8.6.13
    Recovery 8.6.12
    Recovery 8.6.11
    Recovery 8.6.6 *relocks bootloader, flash root/magisk or unlock again (you'll loose /data)
    Recovery 8.6.5
    Recovery 8.6.4
    Recovery 8.5.31

    MIUI 9.5 xiaomi.eu Custom ROM:
    Recovery latest

    Official Android P preview from Google (pure AOSP):
    System Image

    AOSP Custom ROMs
    Mokee
    Lineage Treble



    Available TWRP recoveries & Download Links

    TWRP by xiaomi.eu and miuiItalia
    The first versions are from xiaomi.eu and miuiItalia and aren't able to read encrypted internal storage. If you want to flash something with this TWRP you need to format your internal storage then copy the file over in MTP mode and flash it. So you loose your storage all the time. No problem when you want to cleanly flash new ROMs, but annoying when you just flash magisk, mods and other things.
    Download TWRP polaris by xiaomi.eu
    Download TWRP by miuiItalia

    TWRP by notsyncing
    notsyncing's version is able to work with encrypted storage. You need to enter your pin or draw your lock pattern in order to work. Switching between different ROMs like Chinese/Global/Custom you most probably still need to format your /data, but when you stay on the same ROM no need to wipe or format.

    Thread


    Guide: Install Google Apps & Contact Sync on Chinese ROMs

    Chinese ROMs don't contain Google Apps. Especially if you didn't unlock your phone you probably want to install Google Apps and Framework:
    1. Download the Oreo Google Apps package: https://androidfilehost.com/?fid=818222786056028173 and extract it on your phone
    2. Install every APK from 1-6 without opening them after installation!
    3. Install 8.0-Oreo.com.google.android.gsf_8.0.0-4147944-26_minAPI26.apk
    4. Don't inistall the remaining two APKs
    5. Download and install the updated contacts sync 8.1.0 APK: https://www.apkmirror.com/apk/google-inc/google-contacts-sync/google-contacts-sync-8-1-0-release/google-contacts-sync-8-1-0-2-android-apk-download/
    6. Go into Settings > Installed apps and find all Google Apps in the list. Select each of them and turn on Autostart Permission. Additionally go into Permissions and enable all permissions in there. Again: Do this for all Apps you've just installed or that have the name Google or Contacts or Calendar in it.
    7. Reboot your phone
    8. Login to your google account, by opening Settings > Sync > Add Account > Google


    Guide: Install Global ROM (leak)

    If you're on Chinese or xiaomi.eu ROM and you want to flash the official Global ROM that has been leaked:
    1. Unlock bootloader
    2. Download Global V9.5.18.0.ODGMIFA from above
    3. Boot phone into fastboot, open fastboot console on your pc, connect phone via USB with your pc
    4. download and extract official twrp recovery for mix 2s and name the file recovery.img and copy it onto C:\
    5. fastboot boot recovery.img
    6. wipe > advanced > dalvik cache, system, data, internal storage, cache
    7. copy V9.5.18.0.ODGMIFA zip and region fix onto your phone (may not be necessary with global device, and/or with newer global ROM leaks. try without the fix first)
    8. twrp: install V9.5.18.0.ODGMIFA zip
    9. twrp: install region fix zip
    10. reboot and complete setup of your phone
      For magisk see below


    Guide: Install MIUI 10 leak

    1. phone: boot to fastboot
    2. pc:
      Code:
      fastboot boot twrp.img
    3. phone: wipe data, system, dalvic, cache
    4. phone: format DATA
    5. phone: reboot phone into fastboot
    6. pc: fastboot boot twrp.img
    7. pc: transfer miui 10 zip to phone memory
    8. phone: install miui 10 zip
    9. phone: reboot to miui 10 setup device wizard
    10. phone: in case your device is bound to a xiaomi ID, enter your password
    11. phone: complete MIUI 10 setup
    12. phone: download form apkmirror and install:
    Magisk
    Info: info: may not work if you have the chinese 6GB model instead of the global model, but always works on the 8gb model
    1. phone: reboot to fastboot
    2. pc: copy magisk 16.4 install/uninstall zip to phone
    3. phone: install magisk
    4. reboot


    Guide: Install official Android P developer preview

    Google announced the Android P preview officially for the Mi Mix 2S as shown here: https://developer.android.com/preview/devices/

    Requirements:

    Steps to install: Download Android P for Mi Mix 2S: http://www.mi.com/en/androidppreview/




    Guide: Unlock bootloader

    1. On your phone, login to your Miui Account, if you don't have an account, create one. That's under Settings > MI Account
    2. Enable developer mode on your phone, under Settings > My Device > All Specs > Tap on MIUI version 5 times until the toast notification tells you that you're a developer
    3. Go into Settings > Additional Settings > Developer options > Enable: OEM unlocking, then go into MI Unlock status and "Add account and device". (If you get an error messages, you need to use a VPN app and connect to a city in Mainland China, like Beijing)
    4. Download and run http://en.miui.com/unlock/ the unlocker app on your computer, login with your MI Account. The first time you may have to apply for Unlocking permissions with your MI Account. The SMS confirmation code they send you may take several days to arrive. Please be patient and don't try to unlock your device before.
    5. After you got your SMS confirmation code, enter it in the unlocker application on your computer and connect your phone via USB
    6. Try to unlock your phone.
    7. Sometimes Xiaomi will now force you to wait for up to 360 hours until you can try again to unlock. This is annoying, but you have to wait. Otherwise your account may be blocked.


    Guide: Flash any Treble ROM


    Download any Treble ROM:

    Requirements:
    • Unlocked bootloader
    • Be on Global or Chinese official stable ROM, flash it through XiaoMiFlasher and download the fastboot ROM from mi.com if necessary
    • Minimal ADB & Fastboot installed on your Windows computer
    • Download the ARM64 NANO OpenGApps for the exact Android version your Treble ROM uses: https://opengapps.org/
    • Optional: Download Magisk 16.4 and Magisk Uninstaller

    1. Perform a factory reset on your device. You have two options here:
    2. Open the settings app on your phone and look for the factory reset option.
    3. Boot your phone into fastboot
    4. With your device connected to your PC start the Minimal ADB & Fastboot console
    5. Enter a command in the following format:
      Code:
      fastboot flash system
      having a space at the end, so it's fastboot flash system(SPACE) and drag and drop your Treble img file with your mouse from an Explorer window into the cmd console
      Example:
      Code:
      fastboot flash system C:\Users\Superman\Desktop\Mix2S\system-arm64-aonly-gapps-su.img
    6. Push enter, and allow the image to flash, it could take a few minutes.
    7. Once it has completed, reboot your device into fastboot then (WARNING: THIS WIPES EVERYTHING) enter
      Code:
      fastboot -w
      from your computers command prompt window.
    8. Reboot
    Optional:
    You can flash TWRP and then flash GApps and or Magisk if you want. The DM-Verity check may prevent the phone from booting, so by flashing Magisk DM-Verity check should be disabled and your phone should boot.



    Guide: Flash TWRP Recovery and Custom ROM

    Download TWRP for Mi Mix 2S above

    1. Extract the img file of the TWRP zip you've downloaded, into C:\ and name it recovery.img
    2. Turn off phone
    3. Press Volume Down + Power button until phone boots into fastboot mode
    4. Download and install latest Minimal ADB and Fastboot from here https://forum.xda-developers.com/showthread.php?t=2317790 on your windows computer
    5. Connect your phone with the USB cable
    6. Open a CMD window on your windows computer (Press CTRL+R enter cmd, press enter)
    7. enter the following command and press enter: fastboot flash recovery C:\recovery.img
    8. enter the following command and press enter: fastboot boot C:\recovery.img
    9. Wipe /data partition
    10. Copy the ROM zip file to the internal storage of your phone
    11. Install the ROM zip
    12. Reboot
    13. done



    Guide: Install Magisk

    More information on http://en.miui.com/thread-2449455-1-1.html

    For Official Global ROM (not xiaomi.eu) I can confirm this works (safetynet passed):

    NOTE: Check your phone model in settings > my device > model (MIUI 9) or settings > my device > verification (MIUI 10). Depending on your Model and ROM Magisk may not work. See below for confirmed outcomes.


    Chinese / Global / Beta + M1803D5XA + Magisk = OK
    Chinese + M1803D5XE + Magisk = OK
    Chinese + M1803D5XE + Magisk = OK
    xiaomi.eu + M1803D5XE + Magisk = OK
    Global + M1803D5XA + SR-SuperSU-v2.82-SR5 = OK

    How to flash Magisk the common way
    Use the modified twrp with working partition decryption
    1. Unlock your bootloader
    2. on PC: fastboot boot recovery.img
    3. in TWRP: Install your ROM (example Global V9.5.18.ODGMIFA)
    4. If you want to flash global on a chinese device, in TWRP: install region fix otherwise go to next step
    5. on Phone: Boot and complete MIUI setup
    6. on PC: fastboot boot recovery.img
    7. in TWRP: enter your password to decrypt storage
    8. in TWRP: install Magisk-v16.4.zip
    9. Reboot


    Guide: Pass Safety Net with Magisk

    1. Install MagiskHide Props Config in MagiskManager Modules
    2. Reboot phone
    3. Install Terminal Android, and start it.
    4. Give it root permissions
    5. type in the terminal window:
      Code:
      su
      props
      1
      fingerprint
      use the fingerprint:
    6. Code:
      Xiaomi/polaris/polaris:8.0.0/OPR1.170623.032/V9.5.15.0.ODGCNFA:user/release-keys
    7. And boom, pass safetynet after a reboot

    Info: You can enable developer mode, turn on USB debugging and use ADB on your PC instead of the terminal on your android. After installing Minimal ADB & Fastboot on your PC, search for the link in your start menu and open it. A black CMD window should appear where you can type commands after you connect your PC with your phone, and allow ADB on your phone. Then enter:
    Code:
    adb devices
    adb shell
    Enter the commands in the tutorial above


    Enable Google Maps Location Sharing & Location History on Chinese MIUI ROM

    You need Magisk properly installed on your ROM and then download & install the module: Unlock CN GMS



    Google Camera with HDR+

    Some modified versions of Google Camera may allow to use HDR+ with the Mi Mix 2S. For some these may work:
    defcomg-fix_OP6v0.3_MGC_5.1.018_FINAL_3.4A.apk
    As the modders keep creating new fixes, you should try out new versions from here regularily and see if HDR+ works and the portrait camera works.
    Original thread: Mix 2S Google Camera
    5
    I've made a flashable zip with the build.prop modification that @jat001 came up with for us XE model users that want Magisk on Global MIUI. All credits goes to him, once again big thanks for the method. Just flash this in TWRP if you experience any reboots to recovery. File in attachment.

    Edit. It modifies the build.prop, so it works on every Global release out there.
    3
    How do you change it? And do you pass safetynet after that?

    1. reboot into twrp recovery
    2. flash magisk
    3. mount system partition
    4. open a terminal and type
    Code:
    adb pull /system/build.prop
    5. open build.prop and find
    Code:
    ro.product.name
    6. change it to any value except polaris
    7. back to terminal and type
    Code:
    adb push build.prop /system/build.prop
    8. reboot

    Yes. safetynet passed. I can use google pay.
    2
    Have you tried to change the NFC settings to hce?
    Also, you have to solve the safetynet problem. You can try the usnf or other modules.
    Confirmed, not working for the eu. hce is. The safetynet test passes. On xiaomi.eu is the theme.
    2
    Have you tried to change the NFC settings to hce?
    Yes.
    Also, you have to solve the safetynet problem. You can try the usnf or other modules.
    There is no problem. Just can't add card to gpay. And at Global version i have "cts profile match fail". And i can not use Magisk, because after install phone can not boot. Anyone have idea how make gpay working?