Skip to content

Commit

Permalink
Add config for avicii (OnePLus Nord)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Jan 1, 2023
1 parent f629a72 commit 71dc4dc
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Linux is currently the best supported platform (tested with Ubuntu 20.04 LTS). W

## Officially supported devices

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


<details><summary><b>Samsung</b></summary>
Expand Down Expand Up @@ -128,6 +128,7 @@ OnePlus | 7 | [guacamoleb](https://wiki.lineageos.org/devices/guacamoleb/) | | t
OnePlus | 7 Pro | [guacamole](https://wiki.lineageos.org/devices/guacamole/) | | tested
OnePlus | 7T | [hotdogb](https://wiki.lineageos.org/devices/hotdogb/) | | tested
OnePlus | 7T Pro | [hotdog](https://wiki.lineageos.org/devices/hotdog/) | | tested
OnePlus | Nord | [avicii](https://wiki.lineageos.org/devices/avicii/) | | tested
OnePlus | Nord N200 | [dre](https://wiki.lineageos.org/devices/dre/) | | tested
OnePlus | 9 | lemonade | | under development
</details>
Expand Down
53 changes: 53 additions & 0 deletions openandroidinstaller/assets/configs/avicii.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
devicename: OnePlus Nord
devicecode: avicii
requirements:
android: 10
steps:
unlock_bootloader:
- type: call_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.
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
- 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.
flash_recovery:
- type: call_button
content: >
Now you need to flash 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.
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
command: adb_reboot_bootloader
- type: call_button
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_flash_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.
- type: call_button
command: fastboot_flash_recovery
content: >
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue.
install_os:
- type: call_button
content: >
In this last step, you finally flash the selected OS image.
Wait until the TWRP screen appears. Then run the command.
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS.
command: adb_twrp_wipe_and_install
2 changes: 1 addition & 1 deletion openandroidinstaller/assets/configs/coral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ metadata:
devicename: Google Pixel 4 XL
devicecode: coral
requirements:
android: 13.0
android: 13
steps:
unlock_bootloader:
- type: confirm_button
Expand Down
2 changes: 1 addition & 1 deletion openandroidinstaller/assets/configs/flame.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ metadata:
devicename: Pixel 4
devicecode: flame
requirements:
android: 13.0
android: 13
steps:
unlock_bootloader:
- type: confirm_button
Expand Down

0 comments on commit 71dc4dc

Please sign in to comment.