Skip to content

Commit 09c1b93

Browse files
authored
Add support for cupid (Xiaomi 12) (#287)
Asked here : #285 This device configuration file is not tested. (but should be working, LineageOS installation process is the same as #226, and so the device configuration file is) Maybe @RedAuburn want to test it?
2 parents 18050ba + 90f3f45 commit 09c1b93

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | untested
184184
Xiaomi | Redmi Note 9S / 9 Pro / 9 Pro Max / 10 Lite / Poco M2 pro | [miatoll](https://wiki.lineageos.org/devices/lavender) : gram / curtana / excalibur / joyeuse | | untested
185185
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
186186
Xiaomi | Poco X3 Pro | [vayu](https://wiki.lineageos.org/devices/vayu) | | untested
187+
Xiaomi | 12 | cupid | | untested
187188
</details>
188189

189190

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
metadata:
2+
maintainer: A non (anon)
3+
brand: xiaomi
4+
device_name: Xiaomi 12
5+
is_ab_device: false
6+
device_code: cupid
7+
supported_recovery:
8+
- orangefox
9+
- twrp
10+
additional_steps:
11+
- dtbo
12+
- vbmeta
13+
- super_empty
14+
supported_device_codes:
15+
- cupid
16+
requirements:
17+
android: 13
18+
steps:
19+
unlock_bootloader:
20+
- type: confirm_button
21+
content: >
22+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
23+
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone.
24+
- type: link_button_with_confirm
25+
content: >
26+
- Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
27+
28+
- Add a phone number to your Mi account, insert a SIM into your phone.
29+
30+
- Enable developer options in `Settings` > `About Phone` by repeatedly tapping MIUI Version.
31+
32+
- Link the device to your Mi account in `Settings` > `Additional settings` > `Developer options` > `Mi Unlock status`.
33+
34+
- Download the Mi Unlock app with the link bellow (Windows is required to run the app), and follow the instructions provided by the app. It may tell you that you have to wait, usually 7 days. If it does so, please wait the quoted amount of time before continuing to the next step!
35+
36+
- After device and Mi account are successfully verified, the bootloader should be unlocked.
37+
38+
- Since the device resets completely, you will need to re-enable USB debugging to continue : `Settings` > `Additional settings` > `Developer options` > `USB debugging`
39+
link: https://en.miui.com/unlock/download_en.html
40+
boot_recovery:
41+
- type: call_button
42+
content: >
43+
Now you need to install a custom recovery system on the phone. A recovery is a small subsystem on your phone,
44+
that manages updating, adapting and repairing of the operating system.
45+
46+
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
47+
command: adb_reboot_bootloader
48+
- type: call_button
49+
content: >
50+
Install additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.
51+
52+
Note : If you have not selected this partition, it will do nothing.
53+
command: fastboot_flash_additional_partitions
54+
- type: call_button
55+
content: >
56+
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
57+
command: fastboot_flash_recovery
58+
- type: call_button
59+
img: ofox.png
60+
content: >
61+
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
62+
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
63+
Once it's done continue.
64+
command: fastboot_reboot_recovery

0 commit comments

Comments
 (0)