Skip to content

Commit 3aa7621

Browse files
authored
Hello moto again (#690)
Add support for * Motorola moto g5s (montana) * Motorola moto g5 plus (potter)
2 parents 9a51c4c + 9b029c6 commit 3aa7621

File tree

4 files changed

+110
-3
lines changed

4 files changed

+110
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ Vendor | Device Name | CodeName | Models | Status
125125
---|---|---|---|---
126126
Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | XT2063-2, XT2063-3 | tested
127127
Motorola | moto g5 | [cedric](https://wiki.lineageos.org/devices/cedric) | XT1670, XT1671, XT1672, XT1675, XT1676, XT1677 | tested
128+
Motorola | moto g5s | [montana](https://wiki.lineageos.org/devices/montana) | XT1790, XT1791, XT1792, XT1793, XT1794, XT1795, XT1797, XT1799-2 | untested
129+
Motorola | moto g5 plus | potter | XT1680, XT1681, XT1683, XT1684, XT1685, XT1686, XT1687 | untested
128130
Motorola | moto g6 | ali | XT1925-1, XT1925-3, XT1925-4, XT1925-5, XT1925-6, XT1925-7, XT1925-13 | tested
129131
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
130132
Motorola | moto g7 power | [ocean](https://wiki.lineageos.org/devices/ocean) | XT1955-1, XT1955-2, XT1955-4, XT1955-5, XT1955-7 | tested
@@ -190,8 +192,7 @@ Samsung | Galaxy Note 10+ | [d2s](https://wiki.lineageos.org/devices/d2s) | | te
190192

191193
</details>
192194

193-
<details>
194-
<summary><b>Sony</b></summary>
195+
<details><summary><b>Sony</b></summary>
195196

196197
Vendor | Device Name | CodeName | Models | Status
197198
---|---|---|---|---

openandroidinstaller/assets/configs/ali.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
device_code: ali
66
supported_device_codes:
77
- ali
8-
untested: true
98
steps:
109
unlock_bootloader:
1110
- type: call_button
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
metadata:
2+
maintainer: SirRGB
3+
device_name: Motorola Moto G5S
4+
is_ab_device: false
5+
device_code: montana
6+
supported_device_codes:
7+
- montana
8+
untested: true
9+
steps:
10+
unlock_bootloader:
11+
- type: call_button
12+
command: adb_reboot_bootloader
13+
content: >
14+
As a first step, you need to unlock the bootloader of your device. A bootloader is the piece of software, that tells your phone
15+
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.
16+
- type: call_button
17+
command: fastboot_get_unlock_data
18+
content: >
19+
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.)
20+
Copy it to a separate file to use it in the next step.
21+
- type: link_button_with_confirm
22+
content: >
23+
Click on the button to open the instructions on Motorola's official unlocking website to generate an unlock code for your bootloader.
24+
Copy the code from the last step to the website and follow the instructions there. Then continue here.
25+
link: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
26+
- type: confirm_button
27+
content: >
28+
Connect the device to your PC via USB. And confirm to continue.
29+
- type: call_button_with_input
30+
content: >
31+
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.
32+
command: fastboot_unlock_with_code
33+
- type: call_button_with_input
34+
content: >
35+
You need to perform the last command again, so reenter the code and run again. Afterwards you can continue.
36+
command: fastboot_unlock_with_code
37+
- type: call_button
38+
content: >
39+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
40+
Connect your device to your PC via USB. Then confirm here to continue.
41+
command: fastboot_reboot
42+
boot_recovery:
43+
- type: call_button
44+
content: >
45+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
46+
adapting and repairing of the operating system.
47+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
48+
command: adb_reboot_bootloader
49+
- type: call_button
50+
img: twrp-start.jpeg
51+
content: >
52+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
53+
command: fastboot_boot_recovery
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
metadata:
2+
maintainer: SirRGB
3+
device_name: Motorola Moto G5 Plus
4+
is_ab_device: false
5+
device_code: potter
6+
supported_device_codes:
7+
- potter
8+
- potter_retail
9+
untested: true
10+
steps:
11+
unlock_bootloader:
12+
- type: call_button
13+
command: adb_reboot_bootloader
14+
content: >
15+
As a first step, you need to unlock the bootloader of your device. A bootloader is the piece of software, that tells your phone
16+
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.
17+
- type: call_button
18+
command: fastboot_get_unlock_data
19+
content: >
20+
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.)
21+
Copy it to a separate file to use it in the next step.
22+
- type: link_button_with_confirm
23+
content: >
24+
Click on the button to open the instructions on Motorola's official unlocking website to generate an unlock code for your bootloader.
25+
Copy the code from the last step to the website and follow the instructions there. Then continue here.
26+
link: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
27+
- type: confirm_button
28+
content: >
29+
Connect the device to your PC via USB. And confirm to continue.
30+
- type: call_button_with_input
31+
content: >
32+
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.
33+
command: fastboot_unlock_with_code
34+
- type: call_button_with_input
35+
content: >
36+
You need to perform the last command again, so reenter the code and run again. Afterwards you can continue.
37+
command: fastboot_unlock_with_code
38+
- type: call_button
39+
content: >
40+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
41+
Connect your device to your PC via USB. Then confirm here to continue.
42+
command: fastboot_reboot
43+
boot_recovery:
44+
- type: call_button
45+
content: >
46+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
47+
adapting and repairing of the operating system.
48+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
49+
command: adb_reboot_bootloader
50+
- type: call_button
51+
img: twrp-start.jpeg
52+
content: >
53+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
54+
command: fastboot_boot_recovery

0 commit comments

Comments
 (0)