Question Does anyone have Xiaomi 12 with unlocked bootloader? Test LineageOS

Search This thread

Jvlong2019

New member
May 10, 2022
1
3
Hello everyone, I'm porting LineageOS to Xiaomi 12, but I haven't unlocked the bootloader.
Can someone help me testing my port? I'll be appreciated if you could help me.
Requirements:
  1. A Xiaomi 12 with unlocked bootloader.
  2. Have enough time to test.
  3. Know how to use logcat.
  4. Speak English or Chinese.
Please contact me at [email protected] or [email protected] if you are willing to help. Thank you very much.
If you have a QQ account, just add my account 2958537424 please.
Device Tree(WIP)
 
Last edited:

fygesser

Member
Dec 21, 2010
7
2
Hey, i still have to wait some 120-ish hours to get my bootloader unlocked, but once I do, I can give it a try
 

ydd0ras

Senior Member
Dec 28, 2014
1,825
903
Xiaomi Mi 11 Lite 5G
I, i Will be pleased if you upload a flashing guide.
OK, I have wrote a flashing guide for Windows users, tho I don't use Windows so I hope all steps are correct:

Flashing LOS on Cupid


Xiaomi 12 LOS ROM flashing

Prerequisites:

Your bootloader must be unlocked.

You should use latest platform tools on Windows. https://dl.google.com/android/repository/platform-tools-latest-windows.zip

Your device should be charged above 50%. Well, it doesn't have to be, but this is just for your phones safety.

Download all required files - ROM, boot, vendor_boot, dtbo and recovery.

Make a proper backup if needed and push it to another storage.

First steps:

After you have unlocked the bootloader, device will reboot automatically. Finish the setup, enable developer settings and finally enable USB-Debugging in developer settings.

In Windows open the folder in which you have unzipped the platform tools.

Hold left shift and press right click
click "open powershell window here"

Type in Terminal for example "adb devices" and grant the permissions for this PC on your device.

Reboot your device to fastboot and connect it with your PC.


The flashing procedure:

Flash boot, vendor_boot, dtbo and recovery:

Type in Windows Terminal:

fastboot flash boot lineage-19.1-20220617-UNOFFICIAL-cupid-boot.img

fastboot flash vendor_boot lineage-19.1-20220617-UNOFFICIAL-cupid-vendor_boot.img

fastboot flash dtbo_ab lineage-19.1-20220617-UNOFFICIAL-cupid-dtbo.img

fastboot flash recovery lineage-19.1-20220617-UNOFFICIAL-cupid-recovery.img

and finally

fastboot reboot recovery or

reboot to recovery by holding volume up and power buttons until you see Mi logo on your screen (on device).

In LOS recovery:

do a factory reset first

go to "Factory reset" and perform "Format data / Factory reset"

all data will be erased. Then....

go to "Apply update", followed by "Apply from ADB"

Now sideload the ROM:

type in Windows Terminal


adb sideload lineage-19.1-20220617-UNOFFICIAL-cupid.zip

You can also drag ROM zip file into your terminal window, instead of typing the full name/path to file.

When finished, reboot simply your device.
 

inyellow

Member
Dec 31, 2009
24
6
Guangzhou
OK, I have wrote a flashing guide for Windows users, tho I don't use Windows so I hope all steps are correct:

Flashing LOS on Cupid


Xiaomi 12 LOS ROM flashing

Prerequisites:

Your bootloader must be unlocked.

You should use latest platform tools on Windows. https://dl.google.com/android/repository/platform-tools-latest-windows.zip

Your device should be charged above 50%. Well, it doesn't have to be, but this is just for your phones safety.

Download all required files - ROM, boot, vendor_boot, dtbo and recovery.

Make a proper backup if needed and push it to another storage.

First steps:

After you have unlocked the bootloader, device will reboot automatically. Finish the setup, enable developer settings and finally enable USB-Debugging in developer settings.

In Windows open the folder in which you have unzipped the platform tools.

Hold left shift and press right click
click "open powershell window here"

Type in Terminal for example "adb devices" and grant the permissions for this PC on your device.

Reboot your device to fastboot and connect it with your PC.


The flashing procedure:

Flash boot, vendor_boot, dtbo and recovery:

Type in Windows Terminal:

fastboot flash boot lineage-19.1-20220617-UNOFFICIAL-cupid-boot.img

fastboot flash vendor_boot lineage-19.1-20220617-UNOFFICIAL-cupid-vendor_boot.img

fastboot flash dtbo_ab lineage-19.1-20220617-UNOFFICIAL-cupid-dtbo.img

fastboot flash recovery lineage-19.1-20220617-UNOFFICIAL-cupid-recovery.img

and finally

fastboot reboot recovery or

reboot to recovery by holding volume up and power buttons until you see Mi logo on your screen (on device).

In LOS recovery:

do a factory reset first

go to "Factory reset" and perform "Format data / Factory reset"

all data will be erased. Then....

go to "Apply update", followed by "Apply from ADB"

Now sideload the ROM:

type in Windows Terminal


adb sideload lineage-19.1-20220617-UNOFFICIAL-cupid.zip

You can also drag ROM zip file into your terminal window, instead of typing the full name/path to file.

When finished, reboot simply your device.
Is there a list of what's not working? That's be helpful for people who wants to know if the rom is suitable for daily drive.
Thank you!
 

ydd0ras

Senior Member
Dec 28, 2014
1,825
903
Xiaomi Mi 11 Lite 5G
Actually SMS don't come in. And D2W doesn't work. Maybe LOS needs to be polished a little. But I am using it for more than a week as daily driver. Put my Mi 11 lite 5G in the drawer.
 

ectoplasma22

Senior Member
Jun 8, 2013
1,025
1,949
France
OnePlus 10 Pro
Hi ! Do you have an idea of how I could contact the Dev of lineage for Xiaomi 12 ? I'd like to develop for Oneplus 10 pro and since they share the same soc he could be really useful :)
 

Top Liked Posts