From 45567806c1264a3d791b48efe2c7813bd9c65174 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Tue, 7 Mar 2023 22:28:17 +0100 Subject: [PATCH 1/9] Added config for bacon --- .../assets/configs/bacon.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 openandroidinstaller/assets/configs/bacon.yaml diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/bacon.yaml new file mode 100644 index 00000000..79cd9870 --- /dev/null +++ b/openandroidinstaller/assets/configs/bacon.yaml @@ -0,0 +1,37 @@ +metadata: + maintainer: MagicLike + devicename: OnePlus One + devicecode: bacon + twrp-link: bacon +requirements: + android: 6.0.1 +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 \ No newline at end of file From a5d34b101e90c76869760a1a20283261fffed947 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sat, 11 Mar 2023 18:36:04 +0100 Subject: [PATCH 2/9] Renamed config --- openandroidinstaller/assets/configs/{bacon.yaml => A0001.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openandroidinstaller/assets/configs/{bacon.yaml => A0001.yaml} (100%) diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/A0001.yaml similarity index 100% rename from openandroidinstaller/assets/configs/bacon.yaml rename to openandroidinstaller/assets/configs/A0001.yaml From 8da1b9023aa5e742aa42e5b2038274de63064242 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sat, 11 Mar 2023 21:04:39 +0100 Subject: [PATCH 3/9] Removing extra reboot step --- openandroidinstaller/assets/configs/A0001.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/openandroidinstaller/assets/configs/A0001.yaml b/openandroidinstaller/assets/configs/A0001.yaml index 79cd9870..eafc1dbb 100644 --- a/openandroidinstaller/assets/configs/A0001.yaml +++ b/openandroidinstaller/assets/configs/A0001.yaml @@ -14,17 +14,10 @@ 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. + 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: > - 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. + content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue. When you are done, press continue. flash_recovery: - type: call_button content: > From 754b7be17122566ff9211350173fbce3c14b75b9 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sat, 11 Mar 2023 21:17:56 +0100 Subject: [PATCH 4/9] Cosmetic changes to the text elements --- openandroidinstaller/assets/configs/A0001.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openandroidinstaller/assets/configs/A0001.yaml b/openandroidinstaller/assets/configs/A0001.yaml index eafc1dbb..b7c8be22 100644 --- a/openandroidinstaller/assets/configs/A0001.yaml +++ b/openandroidinstaller/assets/configs/A0001.yaml @@ -14,10 +14,14 @@ 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. The phone will automatically reboot and reformat. Once it's done, press continue here. + 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. When you are done, press 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. + When you are done, press continue. flash_recovery: - type: call_button content: > From 51f6c5d01903cc45122c643ec7d85cbd4d559266 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sat, 11 Mar 2023 21:22:54 +0100 Subject: [PATCH 5/9] Added OnePlus One to list Added OnePlus One to the list of officially supported devices --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 55ffa6db..929a5f65 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin/) | | t Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- +OnePlus | One | [bacon](https://wiki.lineageos.org/devices/bacon/) | A0001 | tested OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger/) | | tested OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling/) | | tested OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada/) | | tested From 4b616abd35badedab80638ca51da8222d80b5646 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sat, 11 Mar 2023 21:41:17 +0100 Subject: [PATCH 6/9] Added another config for device code "bacon" Another config is needed, because after installation of a custom ROM the device switches from device code "A0001" to "bacon". --- .../assets/configs/bacon.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 openandroidinstaller/assets/configs/bacon.yaml diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/bacon.yaml new file mode 100644 index 00000000..b7c8be22 --- /dev/null +++ b/openandroidinstaller/assets/configs/bacon.yaml @@ -0,0 +1,34 @@ +metadata: + maintainer: MagicLike + devicename: OnePlus One + devicecode: bacon + twrp-link: bacon +requirements: + android: 6.0.1 +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. + When you are done, press 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 \ No newline at end of file From 077ea03da7feb50ab5e969c60ae63d25fa8254bd Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 12 Mar 2023 14:00:05 +0100 Subject: [PATCH 7/9] Added notice for custom recoveries --- openandroidinstaller/assets/configs/A0001.yaml | 4 ++++ openandroidinstaller/assets/configs/bacon.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/openandroidinstaller/assets/configs/A0001.yaml b/openandroidinstaller/assets/configs/A0001.yaml index b7c8be22..302cfad8 100644 --- a/openandroidinstaller/assets/configs/A0001.yaml +++ b/openandroidinstaller/assets/configs/A0001.yaml @@ -17,10 +17,14 @@ steps: 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. + + Notice: If you don't have the stock OnePlus One recovery, your device might boot into your custom recovery, but don't do anything / throw an error. + If this appears, reboot you device through your bootloader and just continue normally. (Your bootloader will be unlocked.) 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. + You don't need to re-enable those options, if you have a custom recovery. (See last step.) When you are done, press continue. flash_recovery: - type: call_button diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/bacon.yaml index b7c8be22..9f145c1d 100644 --- a/openandroidinstaller/assets/configs/bacon.yaml +++ b/openandroidinstaller/assets/configs/bacon.yaml @@ -17,10 +17,14 @@ steps: 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. + + Notice: If you don't have the stock OnePlus One recovery, your device might boot into your custom recovery, but don't do anything / throw an error. + If this appears, reboot you device through your bootloader and just continue normally. (Your bootloader will be unlocked.) 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. + You don't need to re-enable those options, if you have a custom recovery. (See last step.) When you are done, press continue. flash_recovery: - type: call_button From ba97efed29060a23d8e265c1ee40650011f69c2a Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 12 Mar 2023 14:12:54 +0100 Subject: [PATCH 8/9] Added notice for launching recovery manually --- openandroidinstaller/assets/configs/A0001.yaml | 6 +++++- openandroidinstaller/assets/configs/bacon.yaml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/openandroidinstaller/assets/configs/A0001.yaml b/openandroidinstaller/assets/configs/A0001.yaml index 302cfad8..85c25d8e 100644 --- a/openandroidinstaller/assets/configs/A0001.yaml +++ b/openandroidinstaller/assets/configs/A0001.yaml @@ -34,5 +34,9 @@ steps: 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. + content: > + Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. + Notice: In some cases the bootloader won't boot into the flashed recovery automatically, but rather boot the normal system. + If this happens, please run the following command via adb and wait for a moment: `adb reboot recovery` + Now click 'Continue'. command: fastboot_flash_recovery \ No newline at end of file diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/bacon.yaml index 9f145c1d..4fe1c451 100644 --- a/openandroidinstaller/assets/configs/bacon.yaml +++ b/openandroidinstaller/assets/configs/bacon.yaml @@ -34,5 +34,9 @@ steps: 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. + content: > + Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. + Notice: In some cases the bootloader won't boot into the flashed recovery automatically, but rather boot the normal system. + If this happens, please run the following command via adb and wait for a moment: `adb reboot recovery` + Now click 'Continue'. command: fastboot_flash_recovery \ No newline at end of file From 66d6cbac71f56e36a35c718f7986af174451f203 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 12 Mar 2023 20:52:06 +0100 Subject: [PATCH 9/9] Updated bacon configs to new TWRP booting --- openandroidinstaller/assets/configs/A0001.yaml | 11 ++++------- openandroidinstaller/assets/configs/bacon.yaml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/openandroidinstaller/assets/configs/A0001.yaml b/openandroidinstaller/assets/configs/A0001.yaml index 85c25d8e..9f43951f 100644 --- a/openandroidinstaller/assets/configs/A0001.yaml +++ b/openandroidinstaller/assets/configs/A0001.yaml @@ -26,17 +26,14 @@ steps: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue. You don't need to re-enable those options, if you have a custom recovery. (See last step.) When you are done, press continue. - flash_recovery: + boot_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, + 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 content: > - Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. - Notice: In some cases the bootloader won't boot into the flashed recovery automatically, but rather boot the normal system. - If this happens, please run the following command via adb and wait for a moment: `adb reboot recovery` - Now click 'Continue'. - command: fastboot_flash_recovery \ No newline at end of file + Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. + command: fastboot_boot_recovery \ No newline at end of file diff --git a/openandroidinstaller/assets/configs/bacon.yaml b/openandroidinstaller/assets/configs/bacon.yaml index 4fe1c451..34b2e187 100644 --- a/openandroidinstaller/assets/configs/bacon.yaml +++ b/openandroidinstaller/assets/configs/bacon.yaml @@ -26,17 +26,14 @@ steps: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue. You don't need to re-enable those options, if you have a custom recovery. (See last step.) When you are done, press continue. - flash_recovery: + boot_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, + 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 content: > - Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. - Notice: In some cases the bootloader won't boot into the flashed recovery automatically, but rather boot the normal system. - If this happens, please run the following command via adb and wait for a moment: `adb reboot recovery` - Now click 'Continue'. - command: fastboot_flash_recovery \ No newline at end of file + Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. + command: fastboot_boot_recovery \ No newline at end of file