Skip to content

Commit d9e66c7

Browse files
authored
Add support for violet (Redmi Note 7 Pro) (#517)
This PR adds support for `violet` (Xiaomi Redmi Note 7 Pro) Asked in issue #516 @harshangithub: This is not tested for now, but it should work (same config as #222 for instance) Can you test it please? We can help you if needed. EDIT: tested working!
2 parents 1bd389c + 1dda02c commit d9e66c7

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/device
216216
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
217217
Xiaomi | Redmi 9 / Poco M2 | [lancelot](https://wiki.lineageos.org/devices/lancelot) / galahad / shivan | | untested
218218
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
219+
Xiaomi | Redmi Note 7 Pro | [violet](https://wiki.lineageos.org/devices/violet) | | tested
219220
Xiaomi | Redmi Note 8 / 8T | [ginkgo](https://wiki.lineageos.org/devices/ginkgo) / willow | | untested
220221
Xiaomi | Redmi Note 8 Pro | begonia | | untested
221222
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
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
metadata:
2+
maintainer: A non (anon)
3+
brand: xiaomi
4+
device_name: Xiaomi Redmi Note 7 Pro
5+
is_ab_device: false
6+
device_code: violet
7+
supported_device_codes:
8+
- violet
9+
additional_steps:
10+
- super_empty
11+
notes:
12+
- You should install Android 10 or newer ROM.
13+
requirements:
14+
android: 10 (Q)
15+
steps:
16+
unlock_bootloader:
17+
- type: confirm_button
18+
content: >
19+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
20+
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone.
21+
- type: link_button_with_confirm
22+
content: >
23+
- Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
24+
25+
- Add a phone number to your Mi account, insert a SIM into your phone.
26+
27+
- Enable developer options in `Settings` > `About Phone` by repeatedly tapping MIUI Version.
28+
29+
- Link the device to your Mi account in `Settings` > `Additional settings` > `Developer options` > `Mi Unlock status`.
30+
31+
- 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!
32+
33+
- After device and Mi account are successfully verified, the bootloader should be unlocked.
34+
35+
- Since the device resets completely, you will need to re-enable USB debugging to continue : `Settings` > `Additional settings` > `Developer options` > `USB debugging`
36+
link: https://en.miui.com/unlock/download_en.html
37+
boot_recovery:
38+
- type: confirm_button
39+
content: >
40+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
41+
adapting and repairing of the operating system.
42+
- type: call_button
43+
content: >
44+
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
45+
command: adb_reboot_bootloader
46+
- type: call_button
47+
content: >
48+
Install additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.
49+
50+
Note : If you have not selected additional partitions it will do nothing and is save to continue.
51+
command: fastboot_flash_additional_partitions
52+
- type: call_button
53+
content: >
54+
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
55+
command: fastboot_flash_recovery
56+
- type: call_button
57+
img: twrp-start.jpeg
58+
content: >
59+
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
60+
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
61+
Once it's done continue.
62+
command: fastboot_reboot_recovery

0 commit comments

Comments
 (0)