Skip to content

Commit a49cae3

Browse files
authored
Support for OnePlus One (#98)
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))
2 parents ecd5019 + 66d6cba commit a49cae3

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin/) | | t
149149

150150
Vendor | Device Name | CodeName | Models | Status
151151
---|---|---|---|---
152+
OnePlus | One | [bacon](https://wiki.lineageos.org/devices/bacon/) | A0001 | tested
152153
OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger/) | | tested
153154
OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling/) | | tested
154155
OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada/) | | tested
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
metadata:
2+
maintainer: MagicLike
3+
devicename: OnePlus One
4+
devicecode: bacon
5+
twrp-link: bacon
6+
requirements:
7+
android: 6.0.1
8+
steps:
9+
unlock_bootloader:
10+
- type: call_button
11+
content: >
12+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
13+
how to start and run an operating system (like Android). Your device should be turned on.
14+
Press 'Confirm and run' to reboot into the bootloader.
15+
command: adb_reboot_bootloader
16+
- type: call_button
17+
content: >
18+
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
19+
Once it's done, press continue here.
20+
21+
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.
22+
If this appears, reboot you device through your bootloader and just continue normally. (Your bootloader will be unlocked.)
23+
command: fastboot_oem_unlock
24+
- type: confirm_button
25+
content: >
26+
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
27+
You don't need to re-enable those options, if you have a custom recovery. (See last step.)
28+
When you are done, press continue.
29+
boot_recovery:
30+
- type: call_button
31+
content: >
32+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
33+
adapting and repairing of the operating system.
34+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button
37+
content: >
38+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
39+
command: fastboot_boot_recovery
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
metadata:
2+
maintainer: MagicLike
3+
devicename: OnePlus One
4+
devicecode: bacon
5+
twrp-link: bacon
6+
requirements:
7+
android: 6.0.1
8+
steps:
9+
unlock_bootloader:
10+
- type: call_button
11+
content: >
12+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
13+
how to start and run an operating system (like Android). Your device should be turned on.
14+
Press 'Confirm and run' to reboot into the bootloader.
15+
command: adb_reboot_bootloader
16+
- type: call_button
17+
content: >
18+
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
19+
Once it's done, press continue here.
20+
21+
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.
22+
If this appears, reboot you device through your bootloader and just continue normally. (Your bootloader will be unlocked.)
23+
command: fastboot_oem_unlock
24+
- type: confirm_button
25+
content: >
26+
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
27+
You don't need to re-enable those options, if you have a custom recovery. (See last step.)
28+
When you are done, press continue.
29+
boot_recovery:
30+
- type: call_button
31+
content: >
32+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
33+
adapting and repairing of the operating system.
34+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button
37+
content: >
38+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
39+
command: fastboot_boot_recovery

0 commit comments

Comments
 (0)