Skip to content

Commit 1f96597

Browse files
authored
fix python 3.12 support (#642)
![grafik](https://github.com/user-attachments/assets/b2f4551f-1036-44b7-9813-f5e2d22a9659) Im kinda stuck here. Picking a correct or incorrect rom has no effect on this screen. ``` poetry run python openandroidinstaller/openandroidinstaller.py package:media_kit_libs_linux registered. 2024-11-23 17:16:53.319 | INFO | __main__:main:218 - Running OpenAndroidInstaller version '0.5.4-beta' on 'linux'. 2024-11-23 17:16:53.326 | INFO | __main__:log_version_infos:200 - Android Debug Bridge version 1.0.41 2024-11-23 17:16:53.331 | INFO | __main__:log_version_infos:206 - fastboot version 35.0.1-11580240 2024-11-23 17:16:53.335 | INFO | __main__:log_version_infos:212 - Heimdall version: Heimdall v1.4.2 2024-11-23 17:16:53.336 | INFO | __main__:main:220 - ---------------------------------------------------------------------------------------------------- /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:184: DeprecationWarning: window_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.height instead. page.window_height = 900 /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:185: DeprecationWarning: window_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.height instead. page.window_width = int(1.5 * page.window_height) /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:185: DeprecationWarning: window_width is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.width instead. page.window_width = int(1.5 * page.window_height) /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:186: DeprecationWarning: window_top is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.top instead. page.window_top = 100 /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:187: DeprecationWarning: window_left is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.left instead. page.window_left = 120 /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:190: DeprecationWarning: window_min_width is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.min_width instead. page.window_min_width = 1000 /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:191: DeprecationWarning: window_min_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.min_height instead. page.window_min_height = 600 /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:278: DeprecationWarning: banner is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.overlay.append(banner) instead. page.banner = Banner( /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:66: DeprecationWarning: UserControl is deprecated since version 0.21.0 and will be removed in version 0.26.0. UserControl is deprecated. See https://flet.dev/docs/getting-started/custom-controls. super().__init__() 2024-11-23 17:16:55.855 | INFO | __main__:to_next_view:175 - Confirmed and moved to next step. 2024-11-23 17:16:57.019 | INFO | tooling:search_device:598 - Search devices on linux with /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/bin... 2024-11-23 17:16:57.094 | INFO | tooling:search_device:635 - Found device code 'cedric' 2024-11-23 17:16:57.132 | INFO | installer_config:_find_config_file:108 - Device code 'cedric' is supported by config '/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/assets/configs/cedric.yaml'. 2024-11-23 17:16:57.139 | SUCCESS | installer_config:validate_config:190 - Config is valid. 2024-11-23 17:16:57.140 | INFO | installer_config:_load_config:136 - Loaded device config from /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/assets/configs/cedric.yaml. 2024-11-23 17:16:57.140 | INFO | installer_config:_load_config:138 - Config metadata: {'maintainer': 'Tobias Sterbak (tsterbak)', 'device_name': 'Motorola Moto G5', 'is_ab_device': False, 'device_code': 'cedric', 'supported_device_codes': ['cedric']}. 2024-11-23 17:16:58.025 | INFO | app_state:toggle_flash_unlock_bootloader:86 - Skipping bootloader unlocking. 2024-11-23 17:16:58.887 | INFO | app_state:toggle_flash_recovery:113 - Skipping flashing recovery. 2024-11-23 17:17:00.304 | INFO | __main__:to_next_view:175 - Confirmed and moved to next step. 2024-11-23 17:17:04.078 | INFO | views.requirements_view:enable_continue_button:306 - All requirements ticked. Allow to continue 2024-11-23 17:17:04.886 | INFO | __main__:to_next_view:175 - Confirmed and moved to next step. 2024-11-23 17:17:04.886 | INFO | utils:get_download_link:47 - Checking https://download.lineageos.org/api/v2/devices/cedric 2024-11-23 17:17:05.189 | INFO | utils:get_download_link:56 - https://download.lineageos.org/api/v2/devices/cedric doesn't exist, status_code: 400 ```
2 parents 33643a6 + 437a610 commit 1f96597

File tree

7 files changed

+70
-664
lines changed

7 files changed

+70
-664
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ repos:
1717
rev: 24.10.0
1818
hooks:
1919
- id: black
20-
language_version: python3.10
2120

2221
- repo: https://github.com/astral-sh/ruff-pre-commit
2322
rev: v0.8.1

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Here are the official links for:
6161
- some custom ROMs:
6262
- [BlissRoms](https://blissroms.org)
6363
- [CalyxOS](https://calyxos.org)
64-
- [DivestOS](https://divestos.org)
6564
- [/e/OS](https://doc.e.foundation/devices)
6665
- [GrapheneOS](https://grapheneos.org)
6766
- [LineageOS](https://wiki.lineageos.org/devices)
@@ -261,9 +260,15 @@ Make sure to check if your issue or PR has already been fixed or implemented **b
261260

262261
## Acknowledgements
263262

264-
* The project received financial support from the German Federal Ministry for Education and Research under the grant identifier 01IS22S26 from September 2022 until February 2023.
263+
The project is supported by the following organizations and companies:
265264

266-
![logos of the "Bundesministerium für Bildung und Forschung", Prodotype Fund and OKFN-Deutschland](resources/pf_funding_logos.svg)
265+
* We received financial support from the German Federal Ministry for Education and Research under the grant identifier 01IS22S26 from September 2022 until February 2023.
266+
267+
[![logos of the "Bundesministerium für Bildung und Forschung", Prodotype Fund and OKFN-Deutschland](resources/pf_funding_logos.svg)](https://prototypefund.de/project/open-android-installer/)
268+
269+
* The company [ekimia.fr](https://ekimia.fr) donated devices for testing and development purposes.
270+
271+
[![logo of ekimia.fr](resources/ekimia_logo.jpg)](https://ekimia.fr/)
267272

268273
## Credits
269274

poetry.lock

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

resources/ekimia_logo.jpg

15.5 KB
Loading

scripts/lineageos-on-galaxy-a3.py

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)