Skip to content

Commit 342369f

Browse files
authored
Update configs for additional partitions and flash vendor_boot.img (#317)
The PR adds: - updates for some OnePlus and Pixel configs with make use of the flashing of additional partitions if needed for Android 13 - Allow flashing of the vendor_boot partition - Add --disable-verity --disable-verification to flash vbmeta command - support for alioth (Redmi K40 / Mi 11X / Poco F3) (thanks to @anon1892) Resolves #303 and #304 .
2 parents 3e5f70d + a334957 commit 342369f

25 files changed

+201
-34
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Linux is currently the best supported platform (tested with Ubuntu 20.04/22.04 L
6262

6363
## Officially supported devices
6464

65-
Currently, the **we support 74 devices** by various vendors and working on adding more soon!
65+
Currently, the **we support 80 devices** by various vendors and working on adding more soon!
6666

6767
Support for these devices is provided as best effort, but things might still go wrong.
6868
Help to improve the tool by reporting any issues you might face.
@@ -185,12 +185,13 @@ Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender)
185185
Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/devices/Mi439) : pine / olive / olivelite / olivewood | | tested
186186
Xiaomi | Redmi Note 8 / 8T | [ginkgo](https://wiki.lineageos.org/devices/ginkgo) / willow | | untested
187187
Xiaomi | Redmi Note 8 Pro | begonia | | untested
188-
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
189188
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
190190
Xiaomi | Mi 9T / Redmi K20 | [davinci](https://wiki.lineageos.org/devices/davinci) / davinciin | | untested
191191
Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | untested
192192
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
193193
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
194+
Xiaomi | Redmi K40 / Mi 11X / Poco F3 | [alioth](https://wiki.lineageos.org/devices/alioth) / aliothin | | untested
194195
Xiaomi | Poco X3 / X3 NFC | [surya](https://wiki.lineageos.org/devices/surya) / karna | | untested
195196
Xiaomi | Poco X3 Pro | [vayu](https://wiki.lineageos.org/devices/vayu) | | tested
196197
Xiaomi | 12 | cupid | | untested

openandroidinstaller/app_state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(
5252
self.dtbo_path = None
5353
self.vbmeta_path = None
5454
self.super_empty_path = None
55+
self.vendor_boot_path = None
5556

5657
# store views
5758
self.default_views: List = []

openandroidinstaller/assets/configs/Mi439.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,12 @@ steps:
4949
5050
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
5151
command: adb_reboot_bootloader
52-
- type: call_button
53-
content: >
54-
Install additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.
55-
56-
Note : If you have not selected this partition, it will do nothing.
57-
command: fastboot_flash_additional_partitions
5852
- type: call_button
5953
content: >
6054
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
6155
command: fastboot_flash_recovery
6256
- type: call_button
63-
img: ofox.png
57+
img: twrp-start.jpeg
6458
content: >
6559
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
6660
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
metadata:
2+
maintainer: A non (anon)
3+
brand: xiaomi
4+
device_name: Xiaomi Redmi K40 / Mi 11X / POCO F3
5+
is_ab_device: false
6+
device_code: alioth
7+
untested: true
8+
additional_steps:
9+
- vbmeta
10+
supported_device_codes:
11+
- alioth
12+
- aliothin
13+
notes:
14+
- 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)
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: call_button
39+
content: >
40+
Now you need to install a custom recovery system on the phone. A recovery is a small subsystem on your phone,
41+
that manages updating, adapting and repairing of the operating system.
42+
43+
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
44+
command: adb_reboot_bootloader
45+
- type: call_button
46+
content: >
47+
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
48+
command: fastboot_flash_recovery
49+
- type: call_button
50+
img: twrp-start.jpeg
51+
content: >
52+
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
53+
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
54+
Once it's done continue.
55+
command: fastboot_reboot_recovery

openandroidinstaller/assets/configs/avicii.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
supported_device_codes:
77
- avicii
88
- Nord
9+
additional_steps:
10+
- dtbo
11+
- vbmeta
912
requirements:
1013
android: 12
1114
steps:
@@ -31,6 +34,12 @@ steps:
3134
adapting and repairing of the operating system.
3235
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
3336
command: adb_reboot_bootloader
37+
- type: call_button
38+
content: >
39+
Install additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.
40+
41+
Note : If you have not selected additional partitions it will do nothing and is save to continue.
42+
command: fastboot_flash_additional_partitions
3443
- type: call_button
3544
img: twrp-start.jpeg
3645
content: >

openandroidinstaller/assets/configs/begonia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ steps:
4848
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
4949
command: fastboot_flash_recovery
5050
- type: call_button
51-
img: ofox.png
51+
img: twrp-start.jpeg
5252
content: >
5353
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
5454
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.

openandroidinstaller/assets/configs/coral.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
device_code: coral
66
supported_device_codes:
77
- coral
8+
additional_steps:
9+
- dtbo
810
requirements:
911
android: 13
1012
steps:
@@ -48,6 +50,12 @@ steps:
4850
- type: confirm_button
4951
content: >
5052
Select 'Restart bootloader' on your smartphone screen. Then confirm to continue.
53+
- type: call_button
54+
content: >
55+
When you are in the bootloder, install additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.
56+
57+
Note : If you have not selected additional partitions it will do nothing and is save to continue.
58+
command: fastboot_flash_additional_partitions
5159
- type: call_button
5260
img: twrp-start.jpeg
5361
content: >

openandroidinstaller/assets/configs/cupid.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,12 @@ steps:
4343
4444
Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
4545
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 this partition, it will do nothing.
51-
command: fastboot_flash_additional_partitions
5246
- type: call_button
5347
content: >
5448
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
5549
command: fastboot_flash_recovery
5650
- type: call_button
57-
img: ofox.png
51+
img: twrp-start.jpeg
5852
content: >
5953
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
6054
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.

openandroidinstaller/assets/configs/davinci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ steps:
4444
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
4545
command: fastboot_flash_recovery
4646
- type: call_button
47-
img: ofox.png
47+
img: twrp-start.jpeg
4848
content: >
4949
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
5050
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.

openandroidinstaller/assets/configs/dre.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
supported_device_codes:
77
- dre
88
- NordN200
9+
additional_steps:
10+
- dtbo
11+
- vbmeta
12+
- vendor_boot
913
requirements:
1014
android: 11
1115
steps:

0 commit comments

Comments
 (0)