Skip to content

Commit cceae91

Browse files
authored
[SPLIT] Add support for Mi439 (Redmi 7A & co.) (#226)
Work started and tested in #188 : working Requirements : - #218 for OrangeFox support (especially `fastboot_flash_recovery` and `fastboot_reboot_recovery`) - #220 for additional partitions support - #221 for device specific notes (optional)
2 parents 9ba8e21 + 48be05d commit cceae91

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ OnePlus | Nord N200 | [dre](https://wiki.lineageos.org/devices/dre) | | tested
169169
OnePlus | 9 | lemonade | | under development
170170
</details>
171171

172+
<details><summary><b>Xiaomi</b></summary>
173+
174+
Vendor | Device Name | CodeName | Models | Status
175+
---|---|---|---|---
176+
Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/devices/Mi439) : pine / olive / olivelite / olivewood | | tested
177+
</details>
178+
172179
And more to come!
173180

174181

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

0 commit comments

Comments
 (0)