Skip to content

Commit 10641d1

Browse files
authored
Add support for lancelot (Redmi 9 Poco M2) (#392)
Related to #391 Can you test it please? Same as #222, should be working.
2 parents fe5644f + 0574179 commit 10641d1

File tree

2 files changed

+60
-5
lines changed

2 files changed

+60
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,22 @@ OnePlus | 9 | lemonade | | under development
177177

178178
</details>
179179

180-
<details><summary><b>Xiaomi</b></summary>
180+
<details><summary><b>Xiaomi & Poco</b></summary>
181181

182182
Vendor | Device Name | CodeName | Models | Status
183183
---|---|---|---|---
184-
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
184+
185185
Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/devices/Mi439) : pine / olive / olivelite / olivewood | | tested
186+
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
187+
Xiaomi | Redmi 9 / Poco M2 | [lancelot](https://wiki.lineageos.org/devices/lancelot) / galahad / shivan | | untested
188+
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
186189
Xiaomi | Redmi Note 8 / 8T | [ginkgo](https://wiki.lineageos.org/devices/ginkgo) / willow | | untested
187190
Xiaomi | Redmi Note 8 Pro | begonia | | untested
191+
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
192+
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
188193
Xiaomi | Mi 8 | [dipper](https://wiki.lineageos.org/devices/dipper) | | untested
189-
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
190194
Xiaomi | Mi 9T / Redmi K20 | [davinci](https://wiki.lineageos.org/devices/davinci) / davinciin | | untested
191195
Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | untested
192-
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
193-
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
194196
Xiaomi | Redmi K40 / Mi 11X / Poco F3 | [alioth](https://wiki.lineageos.org/devices/alioth) / aliothin | | untested
195197
Xiaomi | Poco X3 / X3 NFC | [surya](https://wiki.lineageos.org/devices/surya) / karna | | untested
196198
Xiaomi | Poco X3 Pro | [vayu](https://wiki.lineageos.org/devices/vayu) | | tested
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
metadata:
2+
maintainer: A non (anon)
3+
brand: xiaomi
4+
device_name: Xiaomi Redmi 9 / Poco M2
5+
is_ab_device: false
6+
device_code: lancelot
7+
supported_device_codes:
8+
- lancelot
9+
- galahad
10+
- shiva
11+
untested: true
12+
steps:
13+
unlock_bootloader:
14+
- type: confirm_button
15+
content: >
16+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
17+
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone.
18+
- type: link_button_with_confirm
19+
content: >
20+
- Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
21+
22+
- Add a phone number to your Mi account, insert a SIM into your phone.
23+
24+
- Enable developer options in `Settings` > `About Phone` by repeatedly tapping MIUI Version.
25+
26+
- Link the device to your Mi account in `Settings` > `Additional settings` > `Developer options` > `Mi Unlock status`.
27+
28+
- 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!
29+
30+
- After device and Mi account are successfully verified, the bootloader should be unlocked.
31+
32+
- Since the device resets completely, you will need to re-enable USB debugging to continue : `Settings` > `Additional settings` > `Developer options` > `USB debugging`
33+
link: https://en.miui.com/unlock/download_en.html
34+
boot_recovery:
35+
- type: confirm_button
36+
content: >
37+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
38+
adapting and repairing of the operating system.
39+
- type: call_button
40+
content: >
41+
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
42+
command: adb_reboot_bootloader
43+
- type: call_button
44+
content: >
45+
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
46+
command: fastboot_flash_recovery
47+
- type: call_button
48+
img: twrp-start.jpeg
49+
content: >
50+
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
51+
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
52+
Once it's done continue.
53+
command: fastboot_reboot_recovery

0 commit comments

Comments
 (0)