Skip to content

Commit 94ac72c

Browse files
committed
Add dialog box to explain the recovery and os image on select page
1 parent 605eec1 commit 94ac72c

3 files changed

Lines changed: 33 additions & 16 deletions

File tree

openandroidinstaller/views/select_view.py

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
FilePicker,
3131
FilePickerResultEvent,
3232
)
33+
from flet.buttons import CountinuosRectangleBorder
3334

3435
from views import BaseView
3536
from app_state import AppState
@@ -56,16 +57,30 @@ def build(self):
5657
title=Text("What is an OS image and recovery and why do I need it?"),
5758
content=Markdown(
5859
"""
59-
To do this, tap seven times on the build number in the 'System'- or 'About the phone'-Menu in Settings. You can also use the phones own search to look for `build number`.
60-
Then go back to the main menu and look for 'developer options'. You can also search for it in your phone.
61-
When you are in developer options, toggle OEM unlocking and USB-Debugging. If your phone is already connected to your PC, a pop-up might appear. Allow USB debugging in the pop-up on your phone.
62-
Now you are ready to continue.
63-
"""
60+
## OS image or ROM
61+
An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs.
62+
Popular, custom operating systems for mobile devices based on Android are
63+
- [LineageOS](https://lineageos.org/)
64+
- [/e/OS](https://e.foundation/e-os/) or
65+
- [LineageOS for microG](https://lineage.microg.org/)
66+
- and many others.
67+
68+
Often, the related OS images are called 'ROM'. 'ROM' stands for *R*ead-*o*nly *m*emory, which is a type of non-volatile memory used in computers
69+
for storing software that is rarely changed during the life of the system, also known as firmware.
70+
71+
# Recovery Image
72+
A custom recovery is used for installing custom software on your device.
73+
This custom software can include smaller modifications like rooting your device or even
74+
replacing the firmware of the device with a completely custom ROM. .
75+
76+
OpenAndroidInstaller works with the [TWRP recovery project](https://twrp.me/about/).
77+
""", on_tap_link=lambda e: self.page.launch_url(e.data)
6478
),
6579
actions=[
6680
TextButton("Close", on_click=self.close_developer_options_dlg),
6781
],
6882
actions_alignment="end",
83+
shape=CountinuosRectangleBorder(radius=0),
6984
)
7085

7186
# download link

openandroidinstaller/views/start_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
colors,
3131
icons,
3232
)
33+
from flet.buttons import CountinuosRectangleBorder
3334

3435
from views import BaseView
3536
from app_state import AppState
@@ -71,6 +72,7 @@ def build(self):
7172
TextButton("Close", on_click=self.close_developer_options_dlg),
7273
],
7374
actions_alignment="end",
75+
shape=CountinuosRectangleBorder(radius=0),
7476
)
7577
# toggleswitch to allow skipping unlocking the bootloader
7678
def check_bootloader_unlocked(e):

poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)