-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Xiaomi (with OrangeFox) #188
Closed
Closed
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6f61999
Add support for Xiaomi with OrangeFox. For now, lavender, ginkgo and …
anon1892 a400b04
Some adjustments, and add of `notes` metadata
anon1892 caee8b8
Little changes, huge consequences (wrong codename for RN 8T)
anon1892 0fd5f35
Added garden & rosemary. Changes in handling recoveries
anon1892 09b002a
Added garden & rosemary. Changes in handling recoveries
anon1892 c303024
Added Mi439, flashing vbmeta, dtbo, super_empty, and some modificatio…
anon1892 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
metadata: | ||
maintainer: A non (anon) | ||
device_name: Xiaomi Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | ||
is_ab_device: false | ||
device_code: garden | ||
supported_recovery: | ||
- orangefox | ||
- twrp | ||
supported_device_codes: | ||
- dandelion | ||
- garden | ||
- blossom | ||
- angelican | ||
notes: > | ||
- If something goes wrong, you can reinstall MiUI here : https://xiaomifirmwareupdater.com | ||
|
||
- OAI don't support ROM that requires permissiver. | ||
|
||
- 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) | ||
requirements: | ||
firmware: MiUI 12.5 (Q) | ||
steps: | ||
unlock_bootloader: | ||
- type: confirm_button | ||
content: > | ||
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone. | ||
allow_skip: true | ||
- type: link_button_with_confirm | ||
content: > | ||
Please download official Xiaomi unlock tool, and follow instructions. | ||
https://en.miui.com/unlock/download_en.html | ||
You may have to wait 7 days before being able to unlock the bootloader. | ||
Do not attempt to bypass this limitation / use non officials tools, you may brick your phone. | ||
link: https://en.miui.com/unlock/download_en.html | ||
allow_skip: true | ||
- type: confirm_button | ||
content: > | ||
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue. | ||
boot_recovery: | ||
- type: confirm_button | ||
content: > | ||
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
- type: call_button | ||
content: > | ||
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: > | ||
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue. | ||
command: fastboot_flash_recovery | ||
- type: call_button | ||
img: ofox.png | ||
content: > | ||
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery. | ||
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed. | ||
Once it's done continue. | ||
command: fastboot_reboot_recovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
metadata: | ||
maintainer: A non (anon) | ||
device_name: Xiaomi Redmi Note 8 / 8T | ||
is_ab_device: false | ||
device_code: ginkgo | ||
supported_recovery: | ||
- orangefox | ||
- twrp | ||
supported_device_codes: | ||
- ginkgo | ||
- willow | ||
notes: > | ||
- If something goes wrong, you can reinstall MiUI here : https://xiaomifirmwareupdater.com | ||
|
||
- You should install Android 10 or newer ROM. | ||
|
||
- 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) | ||
requirements: | ||
android: 10 (Q) | ||
steps: | ||
unlock_bootloader: | ||
- type: confirm_button | ||
content: > | ||
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone. | ||
allow_skip: true | ||
- type: link_button_with_confirm | ||
content: > | ||
Please download official Xiaomi unlock tool, and follow instructions. | ||
https://en.miui.com/unlock/download_en.html | ||
You may have to wait 7 days before being able to unlock the bootloader. | ||
Do not attempt to bypass this limitation / use non officials tools, you may brick your phone. | ||
link: https://en.miui.com/unlock/download_en.html | ||
allow_skip: true | ||
- type: confirm_button | ||
content: > | ||
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue. | ||
boot_recovery: | ||
- type: confirm_button | ||
content: > | ||
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
- type: call_button | ||
content: > | ||
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: > | ||
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue. | ||
command: fastboot_flash_recovery | ||
- type: call_button | ||
img: ofox.png | ||
content: > | ||
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery. | ||
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed. | ||
Once it's done continue. | ||
command: fastboot_reboot_recovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
metadata: | ||
maintainer: A non (anon) | ||
device_name: Xiaomi Redmi Note 7 | ||
is_ab_device: false | ||
device_code: lavender | ||
supported_recovery: | ||
- orangefox | ||
- twrp | ||
supported_device_codes: | ||
- lavender | ||
notes: > | ||
- If something goes wrong, you can reinstall MiUI here : https://xiaomifirmwareupdater.com/miui/lavender/ | ||
|
||
- You should install Android 10 or newer ROM. | ||
|
||
- 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) | ||
requirements: | ||
android: 10 (Q) | ||
steps: | ||
unlock_bootloader: | ||
- type: confirm_button | ||
content: > | ||
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone. | ||
allow_skip: true | ||
- type: link_button_with_confirm | ||
content: > | ||
Please download official Xiaomi unlock tool, and follow instructions. | ||
https://en.miui.com/unlock/download_en.html | ||
You may have to wait 7 days before being able to unlock the bootloader. | ||
Do not attempt to bypass this limitation / use non officials tools, you may brick your phone. | ||
link: https://en.miui.com/unlock/download_en.html | ||
allow_skip: true | ||
- type: confirm_button | ||
content: > | ||
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue. | ||
boot_recovery: | ||
- type: confirm_button | ||
content: > | ||
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
- type: call_button | ||
content: > | ||
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: > | ||
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue. | ||
command: fastboot_flash_recovery | ||
- type: call_button | ||
img: ofox.png | ||
content: > | ||
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery. | ||
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed. | ||
Once it's done continue. | ||
command: fastboot_reboot_recovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
metadata: | ||
maintainer: A non (anon) | ||
device_name: Xiaomi Redmi Note 10S / 11SE / Poco M5S | ||
is_ab_device: false | ||
device_code: rosemary | ||
supported_recovery: | ||
- orangefox | ||
- twrp | ||
supported_device_codes: | ||
- rosemary | ||
- secret | ||
- maltose | ||
- rosemary_p | ||
notes: > | ||
- If something goes wrong, you can reinstall MiUI here : https://xiaomifirmwareupdater.com | ||
|
||
- Please respect the requested by the ROM developers version for MIUI and Android | ||
|
||
- 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) | ||
steps: | ||
unlock_bootloader: | ||
- type: confirm_button | ||
content: > | ||
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone. | ||
allow_skip: true | ||
- type: link_button_with_confirm | ||
content: > | ||
Please download official Xiaomi unlock tool, and follow instructions. | ||
https://en.miui.com/unlock/download_en.html | ||
You may have to wait 7 days before being able to unlock the bootloader. | ||
Do not attempt to bypass this limitation / use non officials tools, you may brick your phone. | ||
link: https://en.miui.com/unlock/download_en.html | ||
allow_skip: true | ||
- type: confirm_button | ||
content: > | ||
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue. | ||
boot_recovery: | ||
- type: confirm_button | ||
content: > | ||
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
- type: call_button | ||
content: > | ||
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: > | ||
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue. | ||
UNTESTED : Need to hold Vol+ or no ? | ||
command: fastboot_flash_boot |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This url does not exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups... Copy - paste !
garden
was never officially supported by Lineage. Which URL should I replace it with?EDIT : No link at all, like some others phones on the readme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also prefer, to have one config file per device code (if they are not very similar) and treat them as separate devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dandelion
andangelican
are official Xiaomi namecodes.garden
andblossom
are names of unified groups of codenames, given by ROM developers.A
garden
ROM will fit fordandelion
device, for example. So as far I understand, we cannot divide config files per device code, isn't it ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by that? - Do you mean having an extra device code for 2 configs or multiple device codes for one config? (Sorry, I am just a bit confused)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may forgot some (it's a mess), but globally :
Official Xiaomi codenames :
Community names :
So, a
garden
ROM will work ondandelion
andangelica
phones for exampleAnd I forgot some codenames...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, thats confusing 😀
Then it might be a good idea, to start displaying multiple device codes (or the actually found one) as well as multiple possible names for devices (or based on the code) to the user. I could see this causing confusion for users (we recently also saw this for Samsung devices :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is !
I agree, we could display device code + group name, it may be more clear?