diff --git a/README.md b/README.md index e596c7ff..c5341a9a 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,8 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin/) | | t Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- +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 OnePlus | 6T | [fajita](https://wiki.lineageos.org/devices/fajita/) | | tested OnePlus | 7 | [guacamoleb](https://wiki.lineageos.org/devices/guacamoleb/) | | tested diff --git a/openandroidinstaller/assets/configs/OnePlus5.yaml b/openandroidinstaller/assets/configs/OnePlus5.yaml new file mode 100644 index 00000000..f162ed98 --- /dev/null +++ b/openandroidinstaller/assets/configs/OnePlus5.yaml @@ -0,0 +1,42 @@ +metadata: + maintainer: SirRGB + devicename: OnePlus 5 + devicecode: cheeseburger +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 + install_os: + - type: call_button + content: > + In the next steps, 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 diff --git a/openandroidinstaller/assets/configs/OnePlus5T.yaml b/openandroidinstaller/assets/configs/OnePlus5T.yaml new file mode 100644 index 00000000..c52e87df --- /dev/null +++ b/openandroidinstaller/assets/configs/OnePlus5T.yaml @@ -0,0 +1,42 @@ +metadata: + maintainer: SirRGB + devicename: OnePlus 5T + devicecode: dumpling +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 + install_os: + - type: call_button + content: > + In the next steps, 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