From 447c58a55288398091711df96ede70078f54ff63 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Sat, 6 Jan 2024 00:29:22 +0100 Subject: [PATCH] configs: add billie support * asserts taken from https://github.com/LineageOS/android_device_oneplus_billie/blob/794bc62a0b321a125819867f11443f426acb775f/BoardConfig.mk#L86 * copied config from dre * fixes https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/291 Signed-off-by: SirRGB --- README.md | 1 + .../assets/configs/billie.yaml | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 openandroidinstaller/assets/configs/billie.yaml diff --git a/README.md b/README.md index f4789d93..e61c3182 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ OnePlus | 7 Pro | [guacamole](https://wiki.lineageos.org/devices/guacamole) | GM OnePlus | 7T | [hotdogb](https://wiki.lineageos.org/devices/hotdogb) | HD1900, HD1901, HD1903, HD1905 | tested OnePlus | 7T Pro | [hotdog](https://wiki.lineageos.org/devices/hotdog) | HD1910, HD1911, HD1913, HD1917 | tested OnePlus | Nord | [avicii](https://wiki.lineageos.org/devices/avicii) | AC2001, AC2003 | tested +OnePlus | Nord N10 | [billie](https://wiki.lineageos.org/devices/billie) | BE2026, BE2029 | untested OnePlus | Nord N200 | [dre](https://wiki.lineageos.org/devices/dre) | DE2117 | tested OnePlus | 9 | lemonade | LE2110, LE2111, LE2113, LE2115 | under development diff --git a/openandroidinstaller/assets/configs/billie.yaml b/openandroidinstaller/assets/configs/billie.yaml new file mode 100644 index 00000000..504028ea --- /dev/null +++ b/openandroidinstaller/assets/configs/billie.yaml @@ -0,0 +1,53 @@ +metadata: + maintainer: SirRGB + device_name: OnePlus Nord N10 5G + is_ab_device: true + device_code: billie + supported_device_codes: + - billie + - OnePlusN10 + untested: true + additional_steps: + - dtbo + - vbmeta + - vendor_boot +requirements: + android: 11 +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. 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. + boot_recovery: + - type: call_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. + 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 + img: twrp-start.jpeg + content: > + Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. + command: fastboot_boot_recovery + - type: call_button + 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: > + Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue. + command: fastboot_boot_recovery