Skip to content

Commit 6393ff9

Browse files
committed
Google Pixel 3a works back and forth
1 parent e39e59e commit 6393ff9

File tree

2 files changed

+111
-4
lines changed

2 files changed

+111
-4
lines changed

.gitignore

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
__pycache__
2+
*.py[cod]
3+
*$py.class
4+
5+
# Distribution / packaging
6+
.Python build/
7+
develop-eggs/
8+
dist/
9+
downloads/
10+
eggs/
11+
.eggs/
12+
lib/
13+
lib64/
14+
parts/
15+
sdist/
16+
var/
17+
wheels/
18+
*.egg-info/
19+
.installed.cfg
20+
*.egg
21+
*.manifest
22+
*.spec
23+
24+
# Log files
25+
pip-log.txt
26+
pip-delete-this-directory.txt
27+
*.log
28+
29+
# Unit test / coverage reports
30+
htmlcov/
31+
.tox/
32+
.coverage
33+
.coverage.*
34+
.cache
35+
.pytest_cache/
36+
nosetests.xml
37+
coverage.xml
38+
*.cover
39+
.hypothesis/
40+
41+
# Translations
42+
*.mo
43+
*.pot
44+
45+
# PyBuilder
46+
target/
47+
48+
# Jupyter Notebook
49+
.ipynb_checkpoints
50+
51+
# IPython
52+
profile_default/
53+
ipython_config.py
54+
55+
# pyenv
56+
.python-version
57+
58+
# pyflow
59+
__pypackages__/
60+
61+
# Environment
62+
.env
63+
.venv
64+
env/
65+
venv/
66+
ENV/
67+
68+
# If you are using PyCharm #
69+
.idea/**/workspace.xml
70+
.idea/**/tasks.xml
71+
.idea/dictionaries
72+
.idea/**/dataSources/
73+
.idea/**/dataSources.ids
74+
.idea/**/dataSources.xml
75+
.idea/**/dataSources.local.xml
76+
.idea/**/sqlDataSources.xml
77+
.idea/**/dynamic.xml
78+
.idea/**/uiDesigner.xml
79+
.idea/**/gradle.xml
80+
.idea/**/libraries
81+
*.iws /out/
82+
83+
# Sublime Text
84+
*.tmlanguage.cache
85+
*.tmPreferences.cache
86+
*.stTheme.cache
87+
*.sublime-workspace
88+
*.sublime-project
89+
90+
# sftp configuration file
91+
sftp-config.json
92+
93+
# Package control specific files Package
94+
Control.last-run
95+
Control.ca-list
96+
Control.ca-bundle
97+
Control.system-ca-bundle
98+
GitHub.sublime-settings
99+
100+
# Visual Studio Code #
101+
.vscode/*
102+
!.vscode/settings.json
103+
!.vscode/tasks.json
104+
!.vscode/launch.json
105+
!.vscode/extensions.json
106+
.history

scripts/lineageos-on-pixel3a.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
@click.option('--image', help='Path to the lineage os image to flash.')
1515
def install_lineage_os(recovery: str, image: str):
1616
# Steps 1: Unlock the bootloader
17-
#unlock_result = unlocking_bootloader_result = unlock_bootloader()
18-
#if not unlock_result:
19-
# click.echo("Unlocking the bootloader failed. Exiting.")
20-
# return False
17+
unlock_result = unlocking_bootloader_result = unlock_bootloader()
18+
if not unlock_result:
19+
click.echo("Unlocking the bootloader failed. Exiting.")
20+
return False
2121

2222
# Step 2: Temporarily booting a custom recovery using fastboot
2323
boot_recovery_result = boot_recovery(recovery)
@@ -33,6 +33,7 @@ def install_lineage_os(recovery: str, image: str):
3333

3434
click.echo(
3535
"Installing lineageOS was successful! Have fun with your device! :)")
36+
return True
3637

3738

3839
def install_os(image: str):

0 commit comments

Comments
 (0)