Skip to content

Commit

Permalink
configs: add ali support
Browse files Browse the repository at this point in the history
* asserts taken from https://github.com/brunorolak/device_motorola_ali/blob/e15fe09c3aad2880c5c76d191e7b24f238efc553/BoardConfig.mk#L22
* config taken from griffin/cedric
* tested: recovery booting and rom install, untested: unlock

Signed-off-by: SirRGB <sirrgb@proton.me>
  • Loading branch information
SirRGB committed Feb 9, 2025
1 parent ddddd22 commit 75ed1ed
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/nairo) | XT2075-3, XT2075-5 | tested
Expand Down
53 changes: 53 additions & 0 deletions openandroidinstaller/assets/configs/ali.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
metadata:
maintainer: SirRGB
device_name: Motorola Moto G6
is_ab_device: false
device_code: ali
supported_device_codes:
- ali
untested: true
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

0 comments on commit 75ed1ed

Please sign in to comment.