[Rom][9.0] Android One for MI CC9e ported from MI A3

HuiXiaQing-Liu

New member
Mar 3, 2018
4
6
0
Hey guys,

The Xiaomi Mi A3 (laurel_sprout) is exactly the Xiaomi Mi CC9e (laurus) with the only difference being the Mi CC9e runs MIUI while the Mi A3 runs on stock Android.

Thanks to Project Treble developed by Google, the two devices now have the ability of converting to each other. In previous versions of Android, devices that didn't support A/B updates could mount the system image under the /system directory. In Android Pie, the root of the system image is mounted as the root of the device.

Xiaomi Mi CC9e has been used the partition layout called "system-as-root" which means we could flash a A/B system image into it, while Xiaomi Mi A3 has been used typical A/B slot partition layout.

Now let's get rid of MIUI and experience stock Android One based on Android Pie.

Steps:

0. Make sure you have done the three things below.

Your device is Xiaomi Mi CC9e (laurus).
The bootloader of your devices has been unlocked.
The "Find My Phone" function has been disabled.

1. Flash China Developer Edition MIUI

No matter which version of MIUI your device is running, download the latest official China Developer Edition MIUI and update to it. This will update your device firmware.

Full-OTA Rom Download Link (China Developer Edition 20.1.16)

Download the zip file to /sdcard/Download folder, make sure you have already backup important data, make sure you have login MIUI account.

Open Settings-My Device-MIUI version, click the MIUI logo for 5 times, then click the icon in upper right corner, choose "Update from local rom" (or a similar description), locate to /sdcard/Download folder and choose your downloaded rom. The device will update automatically to China Developer Edition MIUI.

2. Flash TWRP Recovery

Download Android SDK Platform-Tools from official Google website or Google Drive. Extract to a folder that does not contain Chinese characters in the path.

Download TWRP Recovery for Xiaomi Mi CC9e from Google Drive, copy to the same folder as above.

Thanks to TWRP Developer: wzsx150

Fully shutdown your Xiaomi Mi CC9e and hold the power and volume - keys simultaneously until you see a fastboot logo on the screen, then connect your phone to the computer.

Open your Windows CMD or Windows Powershell or Linux Terminal or macOS Terminal, use cd command to locate to your extraction folder.

First, type the code below to detect your devices connected to the computer.

Code:
fastboot devices
Then, type the code below to flash TWRP Recovery to your Xiaomi Mi CC9e.

Code:
fastboot flash recovery TWRP_Recovery_for_laurus.img
Then, hold the volume + button and type the code below to reboot to recovery.

Code:
fastboot reboot
Maybe you will see the logo of TWRP Recovery twice, don't worry, just hold the volume + button until you see some blocks. Then click the block named "清除" (Clear) then "清除 Data 数据" (Clear Data), type "yes" and slide to clean your data partition.

Then, type the code below to reboot to recovery.

Code:
adb reboot recovery
3. Flash Xiaomi.eu Rom

You can change the language of the TWRP Recovery in the menu named "设置" (Settings) or you can just follow my steps if you don't understand Chinese.

You'd better download the same version of Xiaomi.eu Rom as the China Developer Edition MIUI you have flashed before.

Xiaomi.eu Developer Edition Rom Download Link

Example:
You have flashed China Developer Edition MIUI 20.1.16 in step 1, so you need to download the same version of Xiaomi.eu Rom from here.

Download the zip file to your computer, make sure you have already backup important data of your Xiaomi Mi CC9e.

Transfer the zip file to the phone, then click "安装" (Install) of the TWRP Recovery from the phone, find the zip file you just transferd and click it, silde to flash the Xiaomi.eu Rom.

Don't reboot or shutdown! Just continue.

4. Flash Xiaomi Mi A3 Official Rom

Download Payload_Dumper to the computer and extract to a folder that does not contain Chinese characters in the path.

Download the latest Xiaomi Mi A3 official rom to the computer, extract the payload.bin file to folder named "payload_input" of the extraction folder above.

Full-OTA Rom Download Link (Global Edition V10.3.13.0) (January 2020 Security Patch)

Run payload_dumper.exe until the command window close automatically, copy system.img from the folder named "payload_output" and transfer to the phone.

Click the button named "清除" (Clear) of the TWRP Recovery, just slide to clear data and cache partition, then click "安装" (Install) then "刷入 Image", choose the system.img you have just transfered, select the "System 镜像" (System Image) option, then slide to flash.

After flash system image, click the button named "清除" (Clear) of the TWRP Recovery, just slide to clear data and cache partition.

Don't reboot or shutdown! Just continue.

5. Flash Magisk

You HAVE TO flash Magisk to successfully boot.

Download Magisk V19.4 from official GitHub Release Page, transfer to the phone.

Click "安装" (Install) of the TWRP Recovery from the phone, find the zip file you just transferd and click it, silde to flash Magisk.

DON'T flash Magisk V20.x ! You won't boot successfully.

If you want, you can clear the cache and dalvik cache partition, but DON'T clear data partition after flashing Magisk.

6. Reboot to system

Enjoy your Android One!

 

Attachments

yjceyy

New member
Feb 3, 2020
2
0
0
The brushing was successful, but the minimum brightness is very bright. Glare. The video player cannot adjust the brightness.
 

siam312

New member
Nov 5, 2013
1
0
0
I was unable to update to china developer rom from my current china stable rom. so I u can see I failed in the step 1. Plz need help.
 

deletedb

New member
Aug 11, 2018
1
0
0
TWRP bootloop

Hello!

First of all, thanks for doing the hard work to make this tutorial.

Unfortunately my phone got stuck in a TWRP bootloop at the last stage of the process and I can't get out of it!

Things that were successful when I followed the steps in the tutorial:
unlock/installing twrp/installing Chinese ROM (20.1.16)/ installing 20.1.16 eu ROM (this successfully booted)

BUT since I installed Android One 10.3.13 (LaurelSprout Global) (no errors - I did follow the extraction of system.img process)), and then Magisk 19.4 (no errors) my phone has been stuck in TWRP boot loop. Each time the device is booted it goes direct to TWRP. Please help!

THINGS I've tried:
Flashing the EU and China MIUI roms (20.1.16). Still won't boot.
I've tried using Magisk uninstall. I've done factory reset multiple times, and wiped data etc. No luck.
I also (perhaps stupidly) wiped the System partition at one point.

OTHER info: FastBOOT can be booted with the button combo.
but ADB doesn't find my device.

Can someone please help me return to a working android image?

UPDATE:

I managed to restore my phone using MiFlash to flash the FASTBOOT China stock system image (V11.0.2.0) from flashxiaomi dot com.

At the time the phone was stuck in a Fastboot loop ( I couldn't get into TWRP anymore), and periodically it would automatically reboot and go straight back into fastboot.

I'm back to where I started now. May try this process again soon.
 
Last edited: