Skip to content

Commit 64eafa4

Browse files
committed
Minor updates to readme and logging
1 parent 31341e2 commit 64eafa4

2 files changed

Lines changed: 25 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ Vendor | Device Name | CodeName | Models | Status
3838
---|---|---|---|---
3939
Samsung | Galaxy J7 2015 | j7elte | | tested
4040
Samsung | Galaxy A3 2017 | a3y17lte | SM-A320FL | tested
41-
Samsung | Galaxy A5 2016 | a5xelte | SM-A510F | tested
41+
Samsung | Galaxy A5 2016 | [a5xelte](https://wiki.lineageos.org/devices/a5xelte/) | SM-A510F | tested
4242
Samsung | Galaxy A7 2016 | a7xelte | | tested
43-
Samsung | Galaxy S7 | herolte | SM-G930F | tested
44-
Samsung | Galaxy S9 | starlte | | tested
43+
Samsung | Galaxy S7 | [herolte](https://wiki.lineageos.org/devices/herolte/) | SM-G930F | tested
44+
Samsung | Galaxy S9 | [starlte](https://wiki.lineageos.org/devices/starlte/) | | tested
4545
Samsung | Galaxy S10 | beyond1lte | | tested
46-
Google | Pixel 3a | sargo | sargo | tested
46+
Google | Pixel 3a | [sargo](https://wiki.lineageos.org/devices/sargo/) | sargo | tested
4747
Google | Pixel 4 | flame | flame | tested
4848
Google | Pixel 4a | sunfish | sunfish | tested
4949
Google | Pixel 5 | redfin | redfin | tested
5050
Google | Pixel 5a | barbet | barbet | tested
51-
Sony | Xperia Z | yuga | C6603 | tested
52-
Sony | Xperia Z3 | z3 | | tested
51+
Sony | Xperia Z | [yuga](https://wiki.lineageos.org/devices/yuga/) | C6603 | tested
52+
Sony | Xperia Z3 | [z3](https://wiki.lineageos.org/devices/z3/) | | tested
5353
Sony | Xperia ZX | kagura | | planned
54-
Fairphone | Fairphone 2 | FP2 | | tested
55-
Fairphone | Fairphone 3 | FP3 | | tested
54+
Fairphone | Fairphone 2 | [FP2](https://wiki.lineageos.org/devices/FP2/) | | tested
55+
Fairphone | Fairphone 3 | [FP3](https://wiki.lineageos.org/devices/FP3/) | | tested
5656
Motorola | moto G5 | cedric | | planned
5757
Motorola | moto g7 power | ocean | | under development
5858
OnePlus | 6 | enchilada | | under development

openandroidinstaller/openandroidinstaller.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
)
4040
from loguru import logger
4141
from views import SelectFilesView, StepView, SuccessView, WelcomeView
42+
from tool_utils import run_command
4243

4344
# where to write the logs
4445
logger.add("openandroidinstaller.log")
@@ -119,8 +120,24 @@ def confirm(self, e):
119120
self.view.update()
120121

121122

123+
def log_version_infos(bin_path):
124+
"""Log the version infos of adb, fastboot and heimdall."""
125+
# adb
126+
adbversion = [line for line in run_command("adb", ["version"], bin_path)]
127+
adbversion = '\n'.join(adbversion[:1])
128+
logger.info(f"{adbversion}")
129+
# fastboot
130+
fbversion = [line for line in run_command("fastboot", ["--version"], bin_path)]
131+
logger.info(f"{fbversion[0]}")
132+
# heimdall
133+
hdversion = [line for line in run_command("heimdall", ["info"], bin_path)]
134+
logger.info(f"Heimdall version: {hdversion[0]}")
135+
136+
122137
def main(page: Page):
123138
logger.info(f"Running OpenAndroidInstaller on {PLATFORM}")
139+
log_version_infos(bin_path=BIN_PATH)
140+
logger.info(20*"-")
124141
# Configure the application base page
125142
page.title = "OpenAndroidInstaller"
126143
page.window_height = 780

0 commit comments

Comments
 (0)