[Xiaomi Mi 9 Guides, News, & Discussion] LoganDeveloper:
Hello everyone! Today I make this step by step guide to explain you how to enable the next generation Google assistant on your Xiaomi Mi 9 (it may also works on another phone). This is for AOSP roms like Evolution X, Pixel Experience, Lineage OS, ... Please don't try to install it on a miui rom!

This is what you will get after this guide:

[IMG="Next gen google Assistant"]https://dl.xda-cdn.com/4/9/7/6/0/8/5/next_gen_Google_Assistant.jpg?key=ElNsxEY9e68eVOKENOhuIA&ts=1584820914[/IMG]

So this is how to get it:

1) Download and install Magisk Manager if you don't have already it (If you have it, go to the step 5).

2) open the Magisk Manager app, then click on the install button to download the installer zip file.

3) reboot into recovery mode, then flash the Magisk zip file. After that, reboot into system mode.

4) Open Magisk, and verify that the two checks are green.

[IMG="Magisk's main screen"]https://dl.xda-cdn.com/4/9/7/6/0/7/3/magisk_manager_main.jpg?key=L-IVfaTly-Yt58JYduU_YA&ts=1584820080[/IMG]

5) Go to the Download tab, then search and install the busybox and MagiskHide props config modules. After that, reboot your phone.

[IMG="The two Magisk's modules"]https://dl.xda-cdn.com/4/9/7/6/0/7/9/magisk_modules.jpg?key=YqxNUDqpig2iLEgBIb7qtg&ts=1584821298[/IMG]

6) Install a terminal emulator app like Termux.

[IMG="The playstore Termux's page"]https://dl.xda-cdn.com/4/9/7/6/0/8/7/termux_play_store.jpg?key=m1mLNuas1GkOUomY1jJnhA&ts=1584821280[/IMG]

7) Open it, type "su" then the enter key. Give it the root privileges.

For the next steps in the terminal, press the enter key after each command.

8) Type "props"

9) Type "4"

Repeat these following commands with these 5 properties associated with their value

ro.product.brand => Google

ro.product.manufacturer => Google

ro.product.model => Pixel 4 XL

ro.product.odm.model => Pixel 4 XL

ro.product.vendor.model => Pixel 4 XL

10) Type "n"

11) Type the propertie (ex: ro.product.brand)

12) Type the value associated with it (ex: Google)

13) Type "y"

14) Type "n"

After these steps, you should have these properties:

[IMG="The 5 properties that you should have"]https://dl.xda-cdn.com/4/9/7/6/0/8/3/magisk_props_properties.jpg?key=R627I2ZNl5tTnv-vCyX4LQ&ts=1584821197[/IMG]

15) Reboot your phone.

16) Go to the applications settings of your phone, then search for the Google app. Force stop and clear storage.

[IMG="Google app infos"]https://dl.xda-cdn.com/4/9/7/6/0/7/5/Google_app_infos.jpg?key=GHAUVH41oNOY5QqGchaJPw&ts=1584821085[/IMG]

17) Open the Google, and try to launch the Google Assistant.

18) If you still have the old one, go to the more tab => Settings => Google Assistant => the assistant tab => Languages. Please make sure that you have only English (US, UK, CA, Ireland, Australia, or Singapour).

[IMG="The Google Assistant Languages settings page"]https://dl.xda-cdn.com/4/9/7/6/0/7/7/Google_Assistant_languages_settings.jpg?key=CAML9UHBoaI_dlvNvyrL6w&ts=1584821103[/IMG]

19) Download this file: https://drive.google.com/file/d/1NcWZY11AgbiQ9T8SBMqsXvlMDO40nylS/view

20) Download root explorer from the playstore

21) In this app vive the root access then copy the downloaded file to /data/data/com.google.android.googlequicksearchbox/shared_prefs

22) Select the shared_prefs folder then in the properties menu set the permissions to 551 (remove the w permissions) ans apply

23) Reboot your phone

24) Enjoy :)

If it doesn't work, please tell me.​