From 79804ba237ad4d2a3530a53cc5c827e0bb4d4daf Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 30 Jul 2023 23:25:02 +0200 Subject: [PATCH 1/3] Added support for `sofiar` --- .../assets/configs/sofiar.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 openandroidinstaller/assets/configs/sofiar.yaml diff --git a/openandroidinstaller/assets/configs/sofiar.yaml b/openandroidinstaller/assets/configs/sofiar.yaml new file mode 100644 index 00000000..3e8d2724 --- /dev/null +++ b/openandroidinstaller/assets/configs/sofiar.yaml @@ -0,0 +1,64 @@ +metadata: + maintainer: MagicLike + device_name: Motorola Moto G8 Power + is_ab_device: true + device_code: sofiar + supported_device_codes: + - sofiar +requirements: + android: 11 +steps: + unlock_bootloader: + - type: call_button + 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. + command: adb_reboot_bootloader + - type: call_button + 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. + command: fastboot_get_unlock_data + - 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 + - type: call_button + content: > + In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick. + We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue. + command: adb_twrp_copy_partitions + - type: call_button + img: twrp-start.jpeg + content: > + Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue. + command: fastboot_boot_recovery \ No newline at end of file From 812a0e6cb97e079bce1ac2d5b7e73a8ab53236b9 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 30 Jul 2023 23:28:18 +0200 Subject: [PATCH 2/3] Added Motorola Moto G8 Power to the list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a49b1a4a..1a65fed5 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/ Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | | tested Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | | tested Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | | tested +Motorola | Moto G8 Power | [sofiar](https://wiki.lineageos.org/devices/ocean) | XT2041-3 | untested
OnePlus From 227791c25cb8ff35020bb7d4d2ac602b1aaed2d2 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 30 Jul 2023 23:30:02 +0200 Subject: [PATCH 3/3] Removed LineageOS link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a65fed5..0a2d0c8d 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/ Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | | tested Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | | tested Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | | tested -Motorola | Moto G8 Power | [sofiar](https://wiki.lineageos.org/devices/ocean) | XT2041-3 | untested +Motorola | Moto G8 Power | sofiar | XT2041-3 | untested
OnePlus