Flush third-party ROM (EvoX) on Xiaomi 12 (cupid)

该文章根据 CC-BY-4.0 协议发表,转载请遵循该协议。
本文地址:https://fenying.net/en/post/2024/08/03/flush-custom-rom-on-xiaomi12-cupid/

Overview

Last Sunday, I flashed the third-party firmware EvoX on the Xiaomi 12 I mainly use. Here is the whole process, in case I forget how to operate next time…

Excluding the process of unlocking the Bootloader.

0. Preparation

  1. Backup the data of the phone, because flashing ROM requires formatting all data.

  2. Ensure you could connect to Google services, otherwise you’ll need a proxy service.

    It’s recommended to use a WiFi that could connect to Google services, or there is a HTTP proxy server under the WiFi network that could connect to Google services. Remember the LAN IP and port.

1. Download Files

Download the following files:

WARNING:

  • Ensure to download files from the official website, avoiding downloading malicious files.
  • Put all these files in a folder for subsequent operations. Here I use the D:\Mi12 directory.
  • Backup the data on the phone in advance, because flashing ROM requires formatting all data.

2. Flush Recovery

If TWRP has been flushed, you can skip this step.

  1. Reboot the phone into fastboot mode and connect it to the computer via USB.

  2. Start PowerShell and enter the adb tool directory.

    1cd D:\Mi12\adb
    
  3. Check if you can connect to the device.

    1./fastboot devices
    

    If you can see the device number, the connection is successful.

    Otherwise, you will need to install the driver for the phone.

  4. Flush TWRP.

    1./fastboot flash recovery_ab D:\Mi12\twrp-3.7.1_12-v8.6_A14-cupid-skkk.img # Please change the path to your TWRP img file path
    2./fastboot reboot recovery # Reboot to recovery mode
    

Now the phone will reboot to the TWRP interface.

3. Flush ROM

The installation steps for every ROM may be different, please read the official instructions of the ROM before installation.

The following steps are only applicable to the EvoX ROM v9.2 for XiaoMi 12 (Cupid).

  1. Enter TWRP Recovery

  2. Choose Install

    In the file explorer, find out the zip file of EvoX, and choose it, slide to install.

    If there are many errors about mounting failure during installation, you can ignore them, that’s normal.

  3. After flashing successfully, reboot to recovery again.

    Now you will see the recovery interface provided by EvoX (because the EvoX ROM will overwrite TWRP).

    1. Choose Factory reset
    2. Execute Format data/factory reset
  4. Now, reboot to the system.

  5. And you can see the initialization interface for Android, follow the instruction to set up.

    Ensure you connected a WiFi that could connect to Google services, or setup a proxy to connect to Google services.

4. Root (Optional)

4.0. Reinstall TWRP

Just do the same steps as Flush Recovery said.

4.1. Flush Magisk

  1. Reboot to TWRP, choose Install, find the zip file of Magisk, choose it and slide to install.

  2. Reboot to the system, click the Magisk icon on the desktop, it will prompt that the App is damaged, reinstall the App following the instruction.

  3. Enter Magisk, it will prompt to install Magisk again, choose to install, select Direct install (recommended), and then reboot after installation.

  4. After rebooting, enter Magisk, everything should be fine.

4.2.1. Hiding Magisk App

  1. Click the setting icon in the top-right corner of the Magisk software, click “Hide Magisk App”.

  2. In the “Install unknown apps” interface, find Magisk, and enable “Allow from this source”.

  3. Enter the alternative App name (it’s not suggested to use keywords like Magisk, root, etc., you can name it as xxxx-settings)

  4. Wait for the background download of the App to reinstall.

    Note: If it gets stuck at “Hiding Magisk App” for a long time, there may be a problem with the background download, please switch to another network or connect to a proxy and then try again.

  5. After installation, allow Magisk to start the newly installed App, create a desktop shortcut as prompted, and then reboot the phone.

4.2.2. Enabling Zygisk

Start the Magisk, click the setting icon in the top-right corner, and enable the Zygisk option.

WARNING:

  • Don’t reboot after enabling Zygisk, wait until Shamiko installed.
  • Don’t enable the “Comply with exclusion list” option in Magisk settings, it might conflict with the Shamiko module.

4.2.3. Install Shamiko

Copy the zip file of Shamiko to the phone, enter Magisk module view, click the + icon, choose the zip file of Shamiko, install it and reboot the phone.

4.2.4. Hiding Root

Now, go to the Magisk settings, click the exclusion list, choose all Apps without needs for acquiring Root privileges.

Don’t just select an App by simply clicking on the checkbox, you’d better expand it first, and then click on its checkbox, so you could select all sub-modules of the App to hide once.

comments powered by Disqus

Translations: