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.py
+64-27Lines changed: 64 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -234,13 +234,8 @@ def build(self):
234
234
disabled=True,
235
235
expand=True,
236
236
)
237
-
self.device_name=Text("")
238
-
self.config_found_box=Checkbox(
239
-
label="Device config found:",
240
-
value=False,
241
-
disabled=True,
242
-
label_position="left",
243
-
)
237
+
238
+
# dialog box to help with developer options
244
239
self.dlg_help_developer_options=AlertDialog(
245
240
modal=True,
246
241
title=Text("How to enable developer options and OEM unlocking"),
@@ -297,6 +292,12 @@ def check_advanced_box(e):
297
292
disabled=False,
298
293
)
299
294
295
+
# inform the user about the device detection
296
+
self.device_name=Text("", weight="bold")
297
+
self.device_detection_infobox=Row(
298
+
[Text("Detected device:"), self.device_name]
299
+
)
300
+
300
301
# build up the main view
301
302
self.right_view.controls.extend(
302
303
[
@@ -305,32 +306,48 @@ def check_advanced_box(e):
305
306
"We will walk you through the installation process nice and easy."
306
307
),
307
308
Divider(),
308
-
Text(
309
-
"Before you continue, make sure your devices is on the latest system update. Also make sure you have a backup of all your important data, since this procedure will erase all data from the phone. Please store the backup not on the phone! Note, that vendor specific back-ups might not work on LineageOS!"
309
+
Markdown(
310
+
"""
311
+
Before you continue, make sure
312
+
- your devices is on the latest system update.
313
+
- you have a backup of all your important data, since this procedure will **erase all data from the phone**.
314
+
- to not store the backup not the phone!
315
+
316
+
Please note, that vendor specific back-ups will most likely not work on LineageOS!
317
+
"""
310
318
),
311
319
Divider(),
312
-
Text(
313
-
"Enable USB debugging and OEM unlocking on your device by enabling developer options."
320
+
Markdown(
321
+
"""
322
+
To get started you need to
323
+
- **enable developer options** on your device
324
+
- and then **enable USB debugging** and **OEM unlocking** in the developer options.
325
+
"""
314
326
),
315
327
Row(
316
328
[
317
329
ElevatedButton(
318
-
"How do I enable developer mode?",
330
+
"How do I enable developer options?",
319
331
on_click=self.open_developer_options_dlg,
320
332
expand=True,
321
333
tooltip="Get help to enable developer options and OEM unlocking.",
322
334
)
323
335
]
324
336
),
325
337
Divider(),
326
-
Text(
327
-
"Now connect your device to this computer via USB and allow USB debugging in the pop-up on your phone. Then press 'Search device'. When everything works correctly you should see your device name here."
338
+
Markdown(
339
+
"""
340
+
Now
341
+
- **connect your device to this computer via USB** and
342
+
- **allow USB debugging in the pop-up on your phone**.
343
+
- Then **press the button 'Search device'**.
344
+
When everything works correctly you should see your device name here and you can continue.
0 commit comments