Skip to content

Commit 0eca3ee

Browse files
authored
Merge branch 'dev' into main
2 parents 4442fdf + 367c71b commit 0eca3ee

File tree

114 files changed

+2799
-2817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2799
-2817
lines changed

.github/ISSUE_TEMPLATE/device-support-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ body:
8585
- type: textarea
8686
attributes:
8787
label: Additional context
88-
description: Please provide any additional context or information that might be helpful in adding support for this device.
88+
description: Please provide any additional context or information that might be helpful in adding support for this device.
8989
render: Markdown

.github/workflows/build-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- run: black .
2424
- run: ruff openandroidinstaller/ --ignore E501
2525
- run: PYTHONPATH=openandroidinstaller:$(PYTHONPATH) pytest --cov=openandroidinstaller tests/
26-
26+
2727
build:
2828
needs: ci
2929
runs-on: ${{ matrix.os }}
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
name: openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}
4545
path: dist/
46-
46+
4747
build-windows:
4848
needs: ci
4949
runs-on: 'windows-latest'
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
name: openandroidinstaller-${{ github.ref_name }}-windows-latest
6161
path: dist/
62-
62+
6363
create-release:
6464
needs:
6565
- build

.gitignore

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ __pycache__
55
*.py[cod]
66
*$py.class
77

8-
# Distribution / packaging
9-
.Python build/
10-
develop-eggs/
11-
dist/
12-
downloads/
13-
eggs/
14-
.eggs/
15-
lib/
16-
lib64/
17-
parts/
18-
sdist/
19-
var/
20-
wheels/
21-
*.egg-info/
22-
.installed.cfg
23-
*.egg
24-
*.manifest
25-
*.spec
8+
# Distribution / packaging
9+
.Python build/
10+
develop-eggs/
11+
dist/
12+
downloads/
13+
eggs/
14+
.eggs/
15+
lib/
16+
lib64/
17+
parts/
18+
sdist/
19+
var/
20+
wheels/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
*.manifest
25+
*.spec
2626
heimdall/
2727
libusb-windows/
2828
openandroidinstaller/bin/
@@ -33,17 +33,17 @@ pip-log.txt
3333
pip-delete-this-directory.txt
3434
*.log
3535

36-
# Unit test / coverage reports
37-
htmlcov/
38-
.tox/
39-
.coverage
40-
.coverage.*
41-
.cache
42-
.pytest_cache/
43-
nosetests.xml
44-
coverage.xml
45-
*.cover
46-
.hypothesis/
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
.pytest_cache/
43+
nosetests.xml
44+
coverage.xml
45+
*.cover
46+
.hypothesis/
4747

4848
# Translations
4949
*.mo
@@ -72,42 +72,42 @@ env/
7272
venv/
7373
ENV/
7474

75-
# If you are using PyCharm #
76-
.idea/**/workspace.xml
77-
.idea/**/tasks.xml
78-
.idea/dictionaries
79-
.idea/**/dataSources/
80-
.idea/**/dataSources.ids
81-
.idea/**/dataSources.xml
82-
.idea/**/dataSources.local.xml
83-
.idea/**/sqlDataSources.xml
84-
.idea/**/dynamic.xml
85-
.idea/**/uiDesigner.xml
86-
.idea/**/gradle.xml
87-
.idea/**/libraries
88-
*.iws /out/
75+
# If you are using PyCharm #
76+
.idea/**/workspace.xml
77+
.idea/**/tasks.xml
78+
.idea/dictionaries
79+
.idea/**/dataSources/
80+
.idea/**/dataSources.ids
81+
.idea/**/dataSources.xml
82+
.idea/**/dataSources.local.xml
83+
.idea/**/sqlDataSources.xml
84+
.idea/**/dynamic.xml
85+
.idea/**/uiDesigner.xml
86+
.idea/**/gradle.xml
87+
.idea/**/libraries
88+
*.iws /out/
8989

9090
# Sublime Text
91-
*.tmlanguage.cache
92-
*.tmPreferences.cache
93-
*.stTheme.cache
94-
*.sublime-workspace
95-
*.sublime-project
91+
*.tmlanguage.cache
92+
*.tmPreferences.cache
93+
*.stTheme.cache
94+
*.sublime-workspace
95+
*.sublime-project
9696

97-
# sftp configuration file
97+
# sftp configuration file
9898
sftp-config.json
9999

100-
# Package control specific files Package
101-
Control.last-run
102-
Control.ca-list
103-
Control.ca-bundle
104-
Control.system-ca-bundle
105-
GitHub.sublime-settings
100+
# Package control specific files Package
101+
Control.last-run
102+
Control.ca-list
103+
Control.ca-bundle
104+
Control.system-ca-bundle
105+
GitHub.sublime-settings
106106

107-
# Visual Studio Code #
108-
.vscode/*
109-
!.vscode/settings.json
110-
!.vscode/tasks.json
111-
!.vscode/launch.json
112-
!.vscode/extensions.json
107+
# Visual Studio Code #
108+
.vscode/*
109+
!.vscode/settings.json
110+
!.vscode/tasks.json
111+
!.vscode/launch.json
112+
!.vscode/extensions.json
113113
.history

.pre-commit-config.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
fail_fast: true
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v3.2.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-ast
10+
- id: check-merge-conflict
11+
- id: check-yaml
12+
- id: detect-private-key
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
15+
16+
- repo: https://github.com/psf/black
17+
rev: 22.10.0
18+
hooks:
19+
- id: black
20+
language_version: python3.10
21+
22+
- repo: https://github.com/astral-sh/ruff-pre-commit
23+
rev: v0.2.1
24+
hooks:
25+
# Run the linter.
26+
- id: ruff
27+
args: [ '--ignore', 'E501', '--fix' ]
28+
# Run the formatter.
29+
- id: ruff-format
30+
31+
- repo: https://github.com/python-poetry/poetry
32+
rev: 1.6.1
33+
hooks:
34+
- id: poetry-check
35+
#- id: poetry-lock
36+
- id: poetry-export
37+
#- id: poetry-install

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119119
version 2.0, available at
120120
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
121121

122-
Community Impact Guidelines were inspired by
122+
Community Impact Guidelines were inspired by
123123
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124124

125125
For answers to common questions about this code of conduct, see the FAQ at
126-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
127127
at [https://www.contributor-covenant.org/translations][translations].
128128

129129
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to the OpenAndroidInstaller project
1+
# Contributing to the OpenAndroidInstaller project
22

33
💖 First of all: thank you for contributing to the OpenAndroidInstaller! Great that you are here!
44

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
.phoney: install export format lint typing test app test-app build-app clean-build
2+
3+
help:
4+
@echo "install - install dependencies"
5+
@echo "export - export dependencies to requirements.txt"
6+
@echo "format - format code with black"
7+
@echo "lint - lint code with ruff"
8+
@echo "typing - type check code with mypy"
9+
@echo "test - run tests"
10+
@echo "app - run app"
11+
@echo "test-app - run app in test mode with test config for sargo"
12+
@echo "build-app - build app"
13+
@echo "clean-build - clean build"
14+
115
poetry:
216
curl -sSL https://install.python-poetry.org | python3 -
317

418
install:
5-
poetry install
19+
poetry install --with dev
620
poetry run python scripts/download-tools.py
21+
poetry run pre-commit install
722

823
export:
924
poetry export -f requirements.txt --output requirements.txt

README.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ Linux is currently the best supported platform (tested with Ubuntu 20.04/22.04 L
5757
- [MicroG](https://microg.org)
5858
- The recommended way to install MicroG is to use the zip file provided here: [https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI/releases](https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI/releases).
5959
- [F-Droid App-Store](https://f-droid.org/en/packages/org.fdroid.fdroid.privileged.ota).
60-
- or you can just search the web or the [xda-developers forum](https://xdaforums.com) for an appropriate version for your device.
60+
- or you can just search the web or the [xdaforums](https://xdaforums.com) for an appropriate version for your device.
6161
3. Start the desktop app and follow the instructions.
6262

6363
## Officially supported devices
6464

65-
Currently, the **we support 81 devices** by various vendors and working on adding more soon!
65+
Currently, the **we support 83 devices** by various vendors and working on adding more soon!
6666

6767
Support for these devices is provided as best effort, but things might still go wrong.
6868
Help to improve the tool by reporting any issues you might face.
@@ -111,9 +111,9 @@ Google | Pixel 3 | [blueline](https://wiki.lineageos.org/devices/blueline) | blu
111111
Google | Pixel 3 XL | [crosshatch](https://wiki.lineageos.org/devices/crosshatch) | crosshatch | tested
112112
Google | Pixel 3a | [sargo](https://wiki.lineageos.org/devices/sargo) | sargo | tested
113113
Google | Pixel 3a XL | [bonito](https://wiki.lineageos.org/devices/bonito) | bonito | tested
114-
Google | Pixel 4 | [flame](https://wiki.lineageos.org/devices/flame) | flame | tested
115-
Google | Pixel 4 XL | [coral](https://wiki.lineageos.org/devices/coral) | coral | tested
116-
Google | Pixel 4a | [sunfish](https://wiki.lineageos.org/devices/sunfish) | sunfish | tested
114+
Google | Pixel 4 | [flame](https://wiki.lineageos.org/devices/flame) | flame | tested
115+
Google | Pixel 4 XL | [coral](https://wiki.lineageos.org/devices/coral) | coral | tested
116+
Google | Pixel 4a | [sunfish](https://wiki.lineageos.org/devices/sunfish) | sunfish | tested
117117
Google | Pixel 5 | [redfin](https://wiki.lineageos.org/devices/redfin) | redfin | tested
118118
Google | Pixel 5a | [barbet](https://wiki.lineageos.org/devices/barbet) | barbet | tested
119119

@@ -148,13 +148,13 @@ Fairphone | Fairphone 4 | [FP4](https://wiki.lineageos.org/devices/FP4) | | test
148148

149149
Vendor | Device Name | CodeName | Models | Status
150150
---|---|---|---|---
151-
Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | | tested
152-
Motorola | moto g5 | [cedric](https://wiki.lineageos.org/devices/cedric) | | tested
153-
Motorola | moto g6 plus | [evert](https://wiki.lineageos.org/devices/evert) | | tested
154-
Motorola | moto g7 power | [ocean](https://wiki.lineageos.org/devices/ocean) | | tested
155-
Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/nairo) | | tested
156-
Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | | tested
157-
Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | | tested
151+
Motorola | edge | [racer](https://wiki.lineageos.org/devices/racer) | XT2063-2, XT2063-3 | tested
152+
Motorola | moto g5 | [cedric](https://wiki.lineageos.org/devices/cedric) | XT1670, XT1671, XT1672, XT1675, XT1676, XT1677 | tested
153+
Motorola | moto g6 plus | [evert](https://wiki.lineageos.org/devices/evert) | XT1926-2, XT1926-3, XT1926-5, XT1926-6, XT1926-7, XT1926-8, XT1926-9 | tested
154+
Motorola | moto g7 power | [ocean](https://wiki.lineageos.org/devices/ocean) | XT1955-1, XT1955-2, XT1955-4, XT1955-5, XT1955-7 | tested
155+
Motorola | moto g 5G plus / one 5G | [nairo](https://wiki.lineageos.org/devices/nairo) | XT2075-3, XT2075-5 | tested
156+
Motorola | moto g 5G / one 5G ace | [kiev](https://wiki.lineageos.org/devices/kiev) | XT2113-2, XT2113-3 | tested
157+
Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | XT1650-3, XT1650-05 | tested
158158

159159
</details>
160160

@@ -163,36 +163,38 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin) | | te
163163
Vendor | Device Name | CodeName | Models | Status
164164
---|---|---|---|---
165165
OnePlus | One | [bacon](https://wiki.lineageos.org/devices/bacon) | A0001 | tested
166-
OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger) | | tested
167-
OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling) | | tested
168-
OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada) | | tested
169-
OnePlus | 6T | [fajita](https://wiki.lineageos.org/devices/fajita) | | tested
170-
OnePlus | 7 | [guacamoleb](https://wiki.lineageos.org/devices/guacamoleb) | | tested
171-
OnePlus | 7 Pro | [guacamole](https://wiki.lineageos.org/devices/guacamole) | | tested
172-
OnePlus | 7T | [hotdogb](https://wiki.lineageos.org/devices/hotdogb) | | tested
173-
OnePlus | 7T Pro | [hotdog](https://wiki.lineageos.org/devices/hotdog) | | tested
174-
OnePlus | Nord | [avicii](https://wiki.lineageos.org/devices/avicii) | | tested
175-
OnePlus | Nord N200 | [dre](https://wiki.lineageos.org/devices/dre) | | tested
176-
OnePlus | 9 | lemonade | | under development
166+
OnePlus | 3/3T | [oneplus3](https://wiki.lineageos.org/devices/oneplus3) | A3003, A3000, A3010 | untested
167+
OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger) | A5000 | tested
168+
OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling) | A5010 | tested
169+
OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada) | A6000, A6003 | tested
170+
OnePlus | 6T | [fajita](https://wiki.lineageos.org/devices/fajita) | A6010, A6013 | tested
171+
OnePlus | 7 | [guacamoleb](https://wiki.lineageos.org/devices/guacamoleb) | GM1900, GM1901, GM1903, GM1905 | tested
172+
OnePlus | 7 Pro | [guacamole](https://wiki.lineageos.org/devices/guacamole) | GM1910, GM1911, GM1913, GM1917 | tested
173+
OnePlus | 7T | [hotdogb](https://wiki.lineageos.org/devices/hotdogb) | HD1900, HD1901, HD1903, HD1905 | tested
174+
OnePlus | 7T Pro | [hotdog](https://wiki.lineageos.org/devices/hotdog) | HD1910, HD1911, HD1913, HD1917 | tested
175+
OnePlus | Nord | [avicii](https://wiki.lineageos.org/devices/avicii) | AC2001, AC2003 | tested
176+
OnePlus | Nord N200 | [dre](https://wiki.lineageos.org/devices/dre) | DE2117 | tested
177+
OnePlus | 9 | lemonade | LE2110, LE2111, LE2113, LE2115 | under development
177178

178179
</details>
179180

180-
<details><summary><b>Xiaomi</b></summary>
181+
<details><summary><b>Xiaomi & Poco</b></summary>
181182

182183
Vendor | Device Name | CodeName | Models | Status
183184
---|---|---|---|---
184-
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
185185
Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/devices/Mi439) : pine / olive / olivelite / olivewood | | tested
186+
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
187+
Xiaomi | Redmi 9 / Poco M2 | [lancelot](https://wiki.lineageos.org/devices/lancelot) / galahad / shivan | | untested
188+
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
186189
Xiaomi | Redmi Note 8 / 8T | [ginkgo](https://wiki.lineageos.org/devices/ginkgo) / willow | | untested
187190
Xiaomi | Redmi Note 8 Pro | begonia | | untested
191+
Xiaomi | Redmi Note 9S / 9 Pro / 9 Pro Max / 10 Lite / Poco M2 pro | [miatoll](https://wiki.lineageos.org/devices/lavender) : gram / curtana / excalibur / joyeuse | | untested
192+
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
188193
Xiaomi | Mi 8 | [dipper](https://wiki.lineageos.org/devices/dipper) | | untested
189-
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
190194
Xiaomi | Mi 9T / Redmi K20 | [davinci](https://wiki.lineageos.org/devices/davinci) / davinciin | | untested
191195
Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | untested
192-
Xiaomi | Redmi Note 9S / 9 Pro / 9 Pro Max / 10 Lite / Poco M2 pro | [miatoll](https://wiki.lineageos.org/devices/lavender) : gram / curtana / excalibur / joyeuse | | untested
193-
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
194196
Xiaomi | Redmi Note 10 Pro | [sweet](https://wiki.lineageos.org/devices/sweet) | M2101K6G | tested
195-
Xiaomi | Redmi K40 / Mi 11X / Poco F3 | [alioth](https://wiki.lineageos.org/devices/alioth) / aliothin | | untested
197+
Xiaomi | Redmi K40 / Mi 11X / Poco F3 | [alioth](https://wiki.lineageos.org/devices/alioth) / aliothin | | untested
196198
Xiaomi | Poco X3 / X3 NFC | [surya](https://wiki.lineageos.org/devices/surya) / karna | | untested
197199
Xiaomi | Poco X3 Pro | [vayu](https://wiki.lineageos.org/devices/vayu) | | tested
198200
Xiaomi | 12 | cupid | | untested
@@ -225,7 +227,7 @@ A detailed list can be found [here](https://openandroidinstaller.org/#contribute
225227

226228
## Tools
227229

228-
- The [Android SDK Platform Tools](https://developer.android.com/studio/releases/platform-tools) (such as adb and fastboot) are [Apache](https://android.googlesource.com/platform/system/adb/+/refs/heads/master/NOTICE)-licensed universal Android utilities
230+
- The [Android SDK Platform Tools](https://developer.android.com/studio/releases/platform-tools) (such as adb and fastboot) are [Apache](https://android.googlesource.com/platform/system/adb/+/refs/heads/master/NOTICE)-licensed universal Android utilities.
229231
- [Heimdall](https://gitlab.com/BenjaminDobell/Heimdall) is an [MIT](https://gitlab.com/BenjaminDobell/Heimdall/-/blob/master/LICENSE)-licensed replacement for the leaked ODIN tool to flash Samsung devices.
230232
- [libusb-1.0](https://github.com/libusb/libusb) is a [LGPL-2.1](https://github.com/libusb/libusb/blob/master/COPYING)-licensed library for USB device access from Linux, macOS, Windows and others.
231233
- [copy-partitions-20220613-signed.zip](https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip) The copy-partitions script was created by LineageOS developer erfanoabdi and filipepferraz and released under LGPL. It is used when the partitions need to be copied before flashing.

0 commit comments

Comments
 (0)