Skip to content

Commit

Permalink
Support for OnePlus One (#98)
Browse files Browse the repository at this point in the history
Added a config for OnePlus One (`bacon`), based on the OnePlus 5 config
by @SirRGB. But it is still untested... (Hopefully I have the time to
test it in the next few days / week(s))
  • Loading branch information
tsterbak committed Mar 24, 2023
2 parents ecd5019 + 66d6cba commit a49cae3
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 39 additions & 0 deletions openandroidinstaller/assets/configs/A0001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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.
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.
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
content: >
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_boot_recovery
39 changes: 39 additions & 0 deletions openandroidinstaller/assets/configs/bacon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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.
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.
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
content: >
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_boot_recovery

0 comments on commit a49cae3

Please sign in to comment.