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

Search This thread

aikattx

Senior Member
Oct 17, 2013
66
8
ASUS ZenFone 8
Xiaomi 12
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.
I have problem when rebooting to recovery. the installation of all the image went well but when i tried to rebooting to recovery, it will always comeback to fastboot. any solution ? thanks
 

Baggu2022

Member
Aug 2, 2022
5
0
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)
Hello team,
I'm using Xiaomi 12 in India with miui version V13.0.19.0.SLCEUXM. but I want miui dialer and messaging apps. can I install Indonesia rom on my phone?? is there any problem ill get with network and camera-related issue come. please help me with this.
 

Piotrekk

Senior Member
Sep 2, 2009
208
111
Guys, you're awesome!
Can't wait to test Lineage on my Xiaomi 12 as soon as the one week BL unlock period is over!
 
  • Like
Reactions: aikattx

mohsen8

Senior Member
Mar 3, 2014
72
22
check this for new build los
 

genan42

Member
May 22, 2009
15
2
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.
Works wonderfully for the Vanilla images. What are the steps for GMS (with Google play services) as a couple of the files are missing and unfortunately not interchangeable?

Thanks for your written guide!!!
 

Piotrekk

Senior Member
Sep 2, 2009
208
111
So is everything (including Fingerprint, all cameras, stereo speakers, BT, WiFi, Dual-SIM, VoLTE, VoWiFi, Fast charging) working?

The Google Play Services are only included in the GMS variant, right?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Salut les gars, j'ai réussi à démarrer la rom. Le problème est que je n'ai pas pu installer gapps. une idée comment résoudre ce problème?
    you take GMS (google mobile service) rom?
    1
    Guys, you're awesome!
    Can't wait to test Lineage on my Xiaomi 12 as soon as the one week BL unlock period is over!
  • 5
    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)
    2
    awsome!kuan brother niubi!
    2
    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.
    1
    Guys, you're awesome!
    Can't wait to test Lineage on my Xiaomi 12 as soon as the one week BL unlock period is over!