Skip to content

Commit

Permalink
Merge branch 'dev' into config-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicLike committed Mar 27, 2023
2 parents b100366 + e27100e commit ab4130d
Show file tree
Hide file tree
Showing 76 changed files with 217 additions and 214 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Linux is currently the best supported platform (tested with Ubuntu 20.04/22.04 L

## Officially supported devices

Currently, the **we support 56 devices** by various vendors and working on adding more soon!
Currently, the **we support 57 devices** by various vendors and working on adding more soon!


Support for these devices is provided as best effort, but things might still go wrong.
Expand Down Expand Up @@ -198,6 +198,7 @@ A config file consists of two parts. The first part are some metadata about the
Every config file should have `metadata` with the following fields:
- `maintainer`: str; Maintainer and author of the config file.
- `device_name`: str; Name of the device.
- `is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
- `device_code`: str; The official device code.
- `supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
- `twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
Expand Down
1 change: 0 additions & 1 deletion openandroidinstaller/app_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(
self.config = None
self.image_path = None
self.recovery_path = None
self.is_ab = None

# store views
self.default_views: List = []
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/FP2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Fairphone 2
is_ab_device: false
device_code: FP2
supported_device_codes:
- FP2
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/FP3.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Fairphone 3
is_ab_device: true
device_code: FP3
supported_device_codes:
- FP3
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/FP4.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Fairphone 4
is_ab_device: true
device_code: FP4
supported_device_codes:
- FP4
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/a3y17lte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy A3 (2017)
is_ab_device: false
device_code: a3y17lte
supported_device_codes:
- a3y17lte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/a5xelte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy A5 (2016)
is_ab_device: false
device_code: a5xelte
supported_device_codes:
- a5xelte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/a72q.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy A72
is_ab_device: false
device_code: a72q
supported_device_codes:
- a72q
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/a7xelte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy A7 (2016)
is_ab_device: false
device_code: a7xelte
supported_device_codes:
- a7xelte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/akari.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Sony Xperia XZ2
is_ab_device: true
device_code: akari
supported_device_codes:
- akari
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/akatsuki.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Sony Xperia XZ3
is_ab_device: true
device_code: akatsuki
supported_device_codes:
- akatsuki
Expand Down
20 changes: 9 additions & 11 deletions openandroidinstaller/assets/configs/avicii.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: OnePlus Nord
is_ab_device: true
device_code: avicii
supported_device_codes:
- avicii
Expand All @@ -16,17 +17,13 @@ steps:
Press 'Confirm and run' to reboot into the bootloader.
command: adb_reboot_bootloader
- type: call_button
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: >
At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader.
Please take whatever actions the device asks you to to proceed.
- type: call_button
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
command: fastboot_reboot
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
content: >
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
boot_recovery:
- type: call_button
content: >
Expand All @@ -36,13 +33,14 @@ steps:
command: adb_reboot_bootloader
- type: call_button
img: twrp-start.jpeg
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
content: >
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_boot_recovery
- type: call_button
command: adb_twrp_copy_partitions
content: >
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick.
We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue.
command: adb_twrp_copy_partitions
- type: call_button
img: twrp-start.jpeg
content: >
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/bacon.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: MagicLike
device_name: OnePlus One
is_ab_device: false
device_code: bacon
supported_device_codes:
- bacon
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/barbet.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Pixel 5a
is_ab_device: true
device_code: barbet
supported_device_codes:
- barbet
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/beyond0lte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy S10e
is_ab_device: false
device_code: beyond0lte
supported_device_codes:
- beyond0lte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/beyond1lte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy S10
is_ab_device: false
device_code: beyond1lte
supported_device_codes:
- beyond1lte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/beyond2lte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy S10+
is_ab_device: false
device_code: beyond2lte
supported_device_codes:
- beyond2lte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/blueline.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Google Pixel 3
is_ab_device: true
device_code: blueline
supported_device_codes:
- blueline
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/bonito.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Google Pixel 3a XL
is_ab_device: true
device_code: bonito
supported_device_codes:
- bonito
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/cedric.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Motorola Moto G5
is_ab_device: false
device_code: cedric
supported_device_codes:
- cedric
Expand Down
15 changes: 6 additions & 9 deletions openandroidinstaller/assets/configs/cheeseburger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: SirRGB
device_name: OnePlus 5
is_ab_device: false
device_code: cheeseburger
supported_device_codes:
- cheeseburger
Expand All @@ -15,17 +16,13 @@ steps:
Press 'Confirm and run' to reboot into the bootloader.
command: adb_reboot_bootloader
- type: call_button
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: >
At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader.
Please take whatever actions the device asks you to to proceed.
- type: call_button
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
command: fastboot_reboot
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
content: >
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
boot_recovery:
- type: call_button
content: >
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/coral.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Google Pixel 4 XL
is_ab_device: true
device_code: coral
supported_device_codes:
- coral
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/crosshatch.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Google Pixel 3 XL
is_ab_device: true
device_code: crosshatch
supported_device_codes:
- crosshatch
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/crownlte.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy Note 9
is_ab_device: false
device_code: crownlte
supported_device_codes:
- crownlte
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/d1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy Note 10
is_ab_device: false
device_code: d1
supported_device_codes:
- d1
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/d2s.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: Samsung Galaxy Note 10+
is_ab_device: false
device_code: d2s
supported_device_codes:
- d2s
Expand Down
20 changes: 9 additions & 11 deletions openandroidinstaller/assets/configs/dre.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
device_name: OnePlus Nord N200
is_ab_device: true
device_code: dre
supported_device_codes:
- dre
Expand All @@ -16,17 +17,13 @@ steps:
Press 'Confirm and run' to reboot into the bootloader.
command: adb_reboot_bootloader
- type: call_button
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: >
At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader.
Please take whatever actions the device asks you to to proceed.
- type: call_button
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
command: fastboot_reboot
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
content: >
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
boot_recovery:
- type: call_button
content: >
Expand All @@ -36,13 +33,14 @@ steps:
command: adb_reboot_bootloader
- type: call_button
img: twrp-start.jpeg
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
content: >
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_boot_recovery
- type: call_button
command: adb_twrp_copy_partitions
content: >
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick.
We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue.
command: adb_twrp_copy_partitions
- type: call_button
img: twrp-start.jpeg
content: >
Expand Down
18 changes: 8 additions & 10 deletions openandroidinstaller/assets/configs/dumpling.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
metadata:
maintainer: SirRGB
device_name: OnePlus 5T
is_ab_device: false
device_code: dumpling
supported_device_codes:
- dumpling
Expand All @@ -15,17 +16,13 @@ steps:
Press 'Confirm and run' to reboot into the bootloader.
command: adb_reboot_bootloader
- type: call_button
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: >
At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader.
Please take whatever actions the device asks you to to proceed.
- type: call_button
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
command: fastboot_reboot
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
Once it's done, press continue here.
command: fastboot_oem_unlock
- type: confirm_button
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
content: >
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
boot_recovery:
- type: call_button
content: >
Expand All @@ -35,5 +32,6 @@ steps:
command: adb_reboot_bootloader
- type: call_button
img: twrp-start.jpeg
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
content: >
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_boot_recovery
Loading

0 comments on commit ab4130d

Please sign in to comment.