From b7428536205c02e1234c83f45cd025bde48cbd3c Mon Sep 17 00:00:00 2001 From: Tobias Sterbak Date: Wed, 19 Feb 2025 09:22:10 +0000 Subject: [PATCH 1/4] Bump version to v0.5.5-beta --- openandroidinstaller/openandroidinstaller.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openandroidinstaller/openandroidinstaller.py b/openandroidinstaller/openandroidinstaller.py index f7536659..3372e8fa 100644 --- a/openandroidinstaller/openandroidinstaller.py +++ b/openandroidinstaller/openandroidinstaller.py @@ -49,7 +49,7 @@ ) # VERSION number -VERSION = "0.5.4-beta.1" +VERSION = "0.5.5-beta" # detect platform PLATFORM = sys.platform diff --git a/pyproject.toml b/pyproject.toml index 68c2c9aa..b36da402 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openandroidinstaller" -version = "0.5.4-beta.1" +version = "0.5.5-beta" description = "Install lineage OS in a nice and easy way." authors = ["Tobias Sterbak "] license = "GPLv3" From 176251825f9e1600a77c9ca59b6ec6bfffaed580 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Thu, 13 Feb 2025 21:42:39 +0100 Subject: [PATCH 2/4] configs: add montana support * asserts taken from https://github.com/LineageOS/android_device_motorola_montana/blob/a81d12348be7d262fc3f390cc561214313fafeea/BoardConfig.mk#L17 * config taken from cedric * fixes https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/563 --- README.md | 4 +- .../assets/configs/montana.yaml | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 openandroidinstaller/assets/configs/montana.yaml diff --git a/README.md b/README.md index 348d8e99..843f2cae 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- 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 g5s | [montana](https://wiki.lineageos.org/devices/montana) | XT1790, XT1791, XT1792, XT1793, XT1794, XT1795, XT1797, XT1799-2 | untested Motorola | moto g6 | ali | XT1925-1, XT1925-3, XT1925-4, XT1925-5, XT1925-6, XT1925-7, XT1925-13 | 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 @@ -190,8 +191,7 @@ Samsung | Galaxy Note 10+ | [d2s](https://wiki.lineageos.org/devices/d2s) | | te -
- Sony +
Sony Vendor | Device Name | CodeName | Models | Status ---|---|---|---|--- diff --git a/openandroidinstaller/assets/configs/montana.yaml b/openandroidinstaller/assets/configs/montana.yaml new file mode 100644 index 00000000..b6d834f6 --- /dev/null +++ b/openandroidinstaller/assets/configs/montana.yaml @@ -0,0 +1,53 @@ +metadata: + maintainer: SirRGB + device_name: Motorola Moto G5S + is_ab_device: false + device_code: montana + supported_device_codes: + - montana + untested: true +steps: + unlock_bootloader: + - type: call_button + command: adb_reboot_bootloader + content: > + As a first step, you need to unlock the bootloader of your device. A bootloader is the piece of software, that tells your phone + how to start and run an operating system (like Android). You need to boot into fastboot mode by pressing the 'Confirm and run' button. Then continue. + - type: call_button + command: fastboot_get_unlock_data + content: > + Now you need to get your device ID to get an unlock code from Motorola. Press 'Confirm and run' to get the ID. (You need to toggle 'Advanced Output' here to see it.) + Copy it to a separate file to use it in the next step. + - type: link_button_with_confirm + content: > + Click on the button to open the instructions on Motorola's official unlocking website to generate an unlock code for your bootloader. + Copy the code from the last step to the website and follow the instructions there. Then continue here. + link: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a + - type: confirm_button + content: > + Connect the device to your PC via USB. And confirm to continue. + - type: call_button_with_input + content: > + Use your code to unlock the bootloader of your device. Type in the full 21 character code you received by email (Example: 5RTSQCYL7ZJKL4NN35MY). Then confirm an run. Afterwards you can continue. + command: fastboot_unlock_with_code + - type: call_button_with_input + content: > + You need to perform the last command again, so reenter the code and run again. Afterwards you can continue. + command: fastboot_unlock_with_code + - type: call_button + content: > + Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue. + Connect your device to your PC via USB. Then confirm here to continue. + command: fastboot_reboot + 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 From 05f08c0fba76f82ca0d5be3f55b2928f317712d7 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Thu, 13 Feb 2025 21:44:17 +0100 Subject: [PATCH 3/4] configs: mark ali as tested * follow up on 75ed1ed17c5e355304b1de3cc4f7551a1c651ab1 Signed-off-by: SirRGB --- openandroidinstaller/assets/configs/ali.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/openandroidinstaller/assets/configs/ali.yaml b/openandroidinstaller/assets/configs/ali.yaml index 05e5e53c..e3ba0c96 100644 --- a/openandroidinstaller/assets/configs/ali.yaml +++ b/openandroidinstaller/assets/configs/ali.yaml @@ -5,7 +5,6 @@ metadata: device_code: ali supported_device_codes: - ali - untested: true steps: unlock_bootloader: - type: call_button From 9b029c6eac002f53751f92e6e390e361c27bf8c0 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Thu, 13 Feb 2025 22:00:01 +0100 Subject: [PATCH 4/4] configs: add potter support * asserts taken from https://github.com/crdroidandroid/android_device_motorola_potter/blob/ae7313b62c8de1120365731702cf79d575dcde35/BoardConfig.mk#L61 * fixes https://github.com/openandroidinstaller-dev/openandroidinstaller/issues/602 Signed-off-by: SirRGB --- README.md | 1 + .../assets/configs/potter.yaml | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 openandroidinstaller/assets/configs/potter.yaml diff --git a/README.md b/README.md index 843f2cae..134a6a13 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Vendor | Device Name | CodeName | Models | Status 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 g5s | [montana](https://wiki.lineageos.org/devices/montana) | XT1790, XT1791, XT1792, XT1793, XT1794, XT1795, XT1797, XT1799-2 | untested +Motorola | moto g5 plus | potter | XT1680, XT1681, XT1683, XT1684, XT1685, XT1686, XT1687 | untested Motorola | moto g6 | ali | XT1925-1, XT1925-3, XT1925-4, XT1925-5, XT1925-6, XT1925-7, XT1925-13 | 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 diff --git a/openandroidinstaller/assets/configs/potter.yaml b/openandroidinstaller/assets/configs/potter.yaml new file mode 100644 index 00000000..23ef087c --- /dev/null +++ b/openandroidinstaller/assets/configs/potter.yaml @@ -0,0 +1,54 @@ +metadata: + maintainer: SirRGB + device_name: Motorola Moto G5 Plus + is_ab_device: false + device_code: potter + supported_device_codes: + - potter + - potter_retail + untested: true +steps: + unlock_bootloader: + - type: call_button + command: adb_reboot_bootloader + content: > + As a first step, you need to unlock the bootloader of your device. A bootloader is the piece of software, that tells your phone + how to start and run an operating system (like Android). You need to boot into fastboot mode by pressing the 'Confirm and run' button. Then continue. + - type: call_button + command: fastboot_get_unlock_data + content: > + Now you need to get your device ID to get an unlock code from Motorola. Press 'Confirm and run' to get the ID. (You need to toggle 'Advanced Output' here to see it.) + Copy it to a separate file to use it in the next step. + - type: link_button_with_confirm + content: > + Click on the button to open the instructions on Motorola's official unlocking website to generate an unlock code for your bootloader. + Copy the code from the last step to the website and follow the instructions there. Then continue here. + link: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a + - type: confirm_button + content: > + Connect the device to your PC via USB. And confirm to continue. + - type: call_button_with_input + content: > + Use your code to unlock the bootloader of your device. Type in the full 21 character code you received by email (Example: 5RTSQCYL7ZJKL4NN35MY). Then confirm an run. Afterwards you can continue. + command: fastboot_unlock_with_code + - type: call_button_with_input + content: > + You need to perform the last command again, so reenter the code and run again. Afterwards you can continue. + command: fastboot_unlock_with_code + - type: call_button + content: > + Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue. + Connect your device to your PC via USB. Then confirm here to continue. + command: fastboot_reboot + 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