You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openandroidinstaller/views/select_view.py
+74-5Lines changed: 74 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,8 @@ def build(self):
154
154
]
155
155
)
156
156
157
-
# create help/info button to show the help dialog
158
-
info_button=OutlinedButton(
157
+
# create help/info button to show the help dialog for the image and recovery selection
158
+
explain_images_button=OutlinedButton(
159
159
"What is this?",
160
160
on_click=self.open_explain_images_dlg,
161
161
expand=True,
@@ -168,7 +168,7 @@ def build(self):
168
168
self.right_view_header.controls.append(
169
169
get_title(
170
170
"Now pick an OS image and a recovery file:",
171
-
info_button=info_button,
171
+
info_button=explain_images_button,
172
172
step_indicator_img="steps-header-select.png",
173
173
)
174
174
)
@@ -289,7 +289,10 @@ def build(self):
289
289
returnself.view
290
290
291
291
defget_notes(self) ->str:
292
-
"""Prepare and get notes for the specific device from config."""
292
+
"""Prepare and get notes for the specific device from config.
293
+
294
+
These notes should be displayed to the user.
295
+
"""
293
296
notes= []
294
297
295
298
brand=self.state.config.metadata.get("brand", "")
@@ -311,12 +314,67 @@ def get_notes(self) -> str:
311
314
312
315
deftoggle_additional_image_selection(self):
313
316
"""Toggle the visibility of the additional image selection controls."""
317
+
# dialogue box to explain additional required images
318
+
self.dlg_explain_additional_images=AlertDialog(
319
+
modal=True,
320
+
title=Text("Why do I need additional images and where do I get them?"),
321
+
content=Markdown(
322
+
f"""## About additional images
323
+
Some devices require additional images to be flashed before the recovery and OS image can be flashed.
324
+
Not all images explained below are required for all devices. The installer will tell you which images are required for your device.
325
+
326
+
### dtbo.img
327
+
The `dtbo.img` is a partition image that contains the device tree overlay.
328
+
329
+
### vbmeta.img
330
+
The `vbmeta.img` is a partition image that contains the verified boot metadata.
331
+
This is required to prevent issues with the verified boot process.
332
+
333
+
### super_empty.img
334
+
The `super_empty.img` is used to wipe the super partition. This is required to
335
+
prevent issues with the super partition when flashing a new ROM.
336
+
337
+
### vendor_boot.img
338
+
The `vendor_boot.img` is a partition image that contains the vendor boot image.
339
+
340
+
## Where do I get these images?
341
+
You can download the required images for your device from the [LineageOS downloads page](https://download.lineageos.org/devices/{self.state.config.device_code}/builds).
342
+
If this download page does not contain the required images, you can try to find them on the [XDA developers forum](https://forum.xda-developers.com/).
0 commit comments