From 2807c4360bed84b7f72cac50e47a8dcd9749467f Mon Sep 17 00:00:00 2001 From: SirRGB Date: Mon, 20 Nov 2023 10:46:51 +0100 Subject: [PATCH 1/2] add motorola model names * taken from the lineage wiki and https://telegra.ph/G5-Variants--Code-Names-10-07 Signed-off-by: SirRGB --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b15b3c82..43569045 100644 --- a/README.md +++ b/README.md @@ -148,13 +148,13 @@ Fairphone | Fairphone 4 | [FP4](https://wiki.lineageos.org/devices/FP4) | | test Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- -Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | | tested -Motorola | moto g5 | [cedric](https://wiki.lineageos.org/devices/cedric) | | tested -Motorola | moto g6 plus | [evert](https://wiki.lineageos.org/devices/evert) | | tested -Motorola | moto g7 power | [ocean](https://wiki.lineageos.org/devices/ocean) | | tested -Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/nairo) | | tested -Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | | tested -Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | | tested +Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | XT2063-2, XT2063-3 | tested +Motorola | moto g5 | [cedric](https://wiki.lineageos.org/devices/cedric) | XT1670, XT1671, XT1672, XT1675, XT1676, XT1677 | tested +Motorola | moto g6 plus | [evert](https://wiki.lineageos.org/devices/evert) | XT1926-2, XT1926-3, XT1926-5, XT1926-6, XT1926-7, XT1926-8, XT1926-9 | tested +Motorola | moto g7 power | [ocean](https://wiki.lineageos.org/devices/ocean) | XT1955-1, XT1955-2, XT1955-4, XT1955-5, XT1955-7 | tested +Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/nairo) | XT2075-3, XT2075-5 | tested +Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | XT2113-2, XT2113-3 | tested +Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | XT1650-3, XT1650-05 | tested From 1df1dc50430b343189c5218fe08d64c47c78b252 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Sun, 19 Nov 2023 23:09:20 +0100 Subject: [PATCH 2/2] add oneplus3 support * asserts taken from https://github.com/LineageOS/android_device_oneplus_oneplus3/blob/e975bda0561217fae2a342c2e8c1848b3e3cf370/BoardConfig.mk#L35C29-L35C66 * copied config from cheeseburger Signed-off-by: SirRGB --- README.md | 1 + .../assets/configs/oneplus3.yaml | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 openandroidinstaller/assets/configs/oneplus3.yaml diff --git a/README.md b/README.md index 43569045..5ac3db04 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | XT16 Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- OnePlus | One | [bacon](https://wiki.lineageos.org/devices/bacon) | A0001 | tested +OnePlus | 3/3T | [oneplus3](https://wiki.lineageos.org/devices/oneplus3) | A3003, A3000, A3010 | untested OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger) | A5000 | tested OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling) | A5010 | tested OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada) | A6000, A6003 | tested diff --git a/openandroidinstaller/assets/configs/oneplus3.yaml b/openandroidinstaller/assets/configs/oneplus3.yaml new file mode 100644 index 00000000..5a2ce6d4 --- /dev/null +++ b/openandroidinstaller/assets/configs/oneplus3.yaml @@ -0,0 +1,41 @@ +metadata: + maintainer: SirRGB + device_name: OnePlus 3/3T + is_ab_device: false + device_code: oneplus3 + supported_device_codes: + - OnePlus3 + - oneplus3 + - OnePlus3T + - oneplus3t + untested: true +requirements: + android: 9 +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