Skip to content

Commit 674860f

Browse files
Add Lenovo M10 HD LTE (#285)
* Add amar_row_lte to the installer * Update boot.img with fixed bluetooth stack
1 parent 5f81526 commit 674860f

File tree

1 file changed

+188
-0
lines changed

1 file changed

+188
-0
lines changed

v2/devices/amar_row_lte.yml

+188
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
name: "Lenovo Tab M10 HD 2nd Gen LTE"
2+
codename: "amar_row_lte"
3+
formfactor: "tablet"
4+
aliases: [amar_row_lte, X306X]
5+
doppelgangers: []
6+
user_actions:
7+
confirm_model:
8+
title: "Confirm your model"
9+
description: "Please check that your device is a Lenovo Tab M10 HD LTE (X306X)."
10+
confirm_os:
11+
title: "Confirm OS version"
12+
description: "Your device must be running the Android 11 stock firmware before installing Ubuntu Touch. You can flash the device using spflash tools"
13+
link: "https://github.com/rubencarneiro/amar_row_lte/releases/tag/1.0Firmware.tar.xz"
14+
unlock_phone:
15+
title: "Unlock the bootloader"
16+
description: "Before installing Ubuntu Touch you must unlock the bootloader of your phone manually. Follow the steps in the linked page if you haven't already."
17+
link: "https://unlocktechy.com/lenovo-tab-m10-hd-gen-2-unlock-bootloader"
18+
bootloader:
19+
title: "Reboot to Bootloader"
20+
description: "With the device powered off, press and hold the VOLUME DOWN + POWER until you see the fastboot on screen and plug the device into your PC via USB."
21+
image: "phone_power_down"
22+
button: true
23+
bootloader_from_fastbootd:
24+
title: "Reboot to Bootloader"
25+
description: 'With the device still at the fastbootd screen, use the volume buttons to select "Reboot to bootloader".'
26+
image: "phone_power_down"
27+
button: true
28+
recovery:
29+
title: "Reboot to Recovery"
30+
description: 'With the device still at the "FastBoot Mode", use the Volume buttons to switch to "Recovery Mode" and push the power button to confirm your selection.'
31+
image: "phone_power_up"
32+
button: true
33+
fastbootd:
34+
title: "Reboot to fastbootd mode"
35+
description: 'With the device still at the "FastBoot Mode", use the Volume buttons to switch to "Recovery Mode" and push the power button to confirm your selection. Then select "Fastboot mode" from the list.'
36+
image: "phone_power_up"
37+
button: true
38+
unlock:
39+
- "confirm_model"
40+
- "confirm_os"
41+
- "unlock_phone"
42+
operating_systems:
43+
- name: "Ubuntu Touch"
44+
compatible_installer: ">=0.9.6-beta"
45+
options:
46+
- var: "channel"
47+
name: "Channel"
48+
tooltip: "The release channel"
49+
link: "https://docs.ubports.com/en/latest/about/process/release-schedule.html"
50+
type: "select"
51+
remote_values:
52+
systemimage:channels:
53+
- var: "wipe"
54+
name: "Wipe Userdata"
55+
tooltip: "Wipe personal data. This is necessary for first time installations."
56+
type: "checkbox"
57+
- var: "partition"
58+
name: "Partitioning"
59+
tooltip: "Changes partition sizes as required. Only necessary for first time installations."
60+
type: "checkbox"
61+
value: true
62+
- var: "bootstrap"
63+
name: "Bootstrap"
64+
tooltip: "Flash system partitions using fastboot"
65+
type: "checkbox"
66+
value: true
67+
prerequisites: []
68+
steps:
69+
### Ensure we always start in bootloader mode
70+
- actions:
71+
- adb:reboot:
72+
to_state: "bootloader"
73+
fallback:
74+
- core:user_action:
75+
action: "bootloader"
76+
### Ensure the bootloader has been unlocked already
77+
- actions:
78+
- fastboot:wait:
79+
- actions:
80+
- fastboot:assert_var:
81+
variable: "unlocked"
82+
value: "yes"
83+
fallback:
84+
- core:user_action:
85+
action: "unlock_phone"
86+
### Flash important partitions (if requested)
87+
- actions:
88+
- core:download:
89+
group: "firmware"
90+
files:
91+
- url: "https://github.com/rubencarneiro/amar_row_lte/releases/download/1.0/boot.img"
92+
checksum:
93+
sum: "4161f2f63c85fb462f555e3cf87e73ae2080d51d8d858359360151af372a9c7d"
94+
algorithm: "sha256"
95+
- url: "https://github.com/rubencarneiro/amar_row_lte/releases/download/1.0/recovery.img"
96+
checksum:
97+
sum: "6ef17f8fd03c558394d0c58b9187a6595d237d5bd599bcfbbbfe431e206a071a"
98+
algorithm: "sha256"
99+
- url: "https://github.com/rubencarneiro/amar_row_lte/releases/download/1.0/dtbo.img"
100+
checksum:
101+
sum: "41bef15140c81d701ea0ff0bf9e0cd293c2419d12606d930496ae551c1e8e716"
102+
algorithm: "sha256"
103+
- url: "https://github.com/rubencarneiro/amar_row_lte/releases/download/1.0/vbmeta.img"
104+
checksum:
105+
sum: "6d369e45f5ee06bcb3e76cddf96f8ef07136fd2c2e7e6746f177f3b0a7975fa9"
106+
algorithm: "sha256"
107+
condition:
108+
var: "bootstrap"
109+
value: true
110+
- actions:
111+
- fastboot:flash:
112+
partitions:
113+
- partition: "boot"
114+
file: "boot.img"
115+
group: "firmware"
116+
- partition: "recovery"
117+
file: "recovery.img"
118+
group: "firmware"
119+
- partition: "dtbo"
120+
file: "dtbo.img"
121+
group: "firmware"
122+
- partition: "vbmeta"
123+
file: "vbmeta.img"
124+
group: "firmware"
125+
flags:
126+
- "--disable-verity"
127+
- "--disable-verification"
128+
condition:
129+
var: "bootstrap"
130+
value: true
131+
### Set up logical partitions (if requested)
132+
- actions:
133+
- fastboot:reboot_fastboot:
134+
fallback:
135+
- core:user_action:
136+
action: "fastbootd"
137+
condition:
138+
var: "partition"
139+
value: true
140+
- actions:
141+
# Remove all unused logical partitions
142+
- fastboot:delete_logical_partition:
143+
partition: "product"
144+
# Increase space for system_a for UT installation
145+
- fastboot:resize_logical_partition:
146+
partition: "system"
147+
size: 3978565472
148+
condition:
149+
var: "partition"
150+
value: true
151+
- actions:
152+
- fastboot:reboot_bootloader:
153+
fallback:
154+
- core:user_action:
155+
action: "bootloader_from_fastbootd"
156+
condition:
157+
var: "partition"
158+
value: true
159+
### Wipe userdata (if requested)
160+
- actions:
161+
- fastboot:erase:
162+
partition: "userdata"
163+
condition:
164+
var: "wipe"
165+
value: true
166+
- actions:
167+
- fastboot:format:
168+
partition: "userdata"
169+
type: "ext4"
170+
condition:
171+
var: "wipe"
172+
value: true
173+
### Systemimage installation steps
174+
- actions:
175+
- fastboot:reboot_recovery:
176+
fallback:
177+
- core:user_action:
178+
action: "recovery"
179+
- actions:
180+
- systemimage:install:
181+
verify_recovery: true
182+
- actions:
183+
- adb:reboot:
184+
to_state: "recovery"
185+
fallback:
186+
- core:user_action:
187+
action: "recovery"
188+
slideshow: []

0 commit comments

Comments
 (0)