Skip to content

Commit 4059b75

Browse files
committed
Add proper licence head to every source file
1 parent 243d910 commit 4059b75

File tree

9 files changed

+130
-4
lines changed

9 files changed

+130
-4
lines changed

openandroidinstaller/installer_config.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Class to load config files for the install procedure."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
15+
216
from typing import List
317

418
import yaml

openandroidinstaller/openandroidinstaller.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
"""Main app code for openAndroidInstaller."""
1+
"""Main file of the OpenAndroidInstaller."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
215

3-
from ctypes import alignment
416
import webbrowser
517
from os import path
618
from subprocess import STDOUT, CalledProcessError, call, check_output
@@ -38,7 +50,7 @@
3850
from widgets import call_button, confirm_button, get_title
3951

4052
# Toggle to True for development purposes
41-
DEVELOPMENT = False
53+
DEVELOPMENT = False
4254
DEVELOPMENT_CONFIG = "Pixel 3a"
4355

4456

@@ -360,7 +372,9 @@ def confirm(self, e):
360372
self.view.controls = []
361373
# if a config is loaded, display a progress bar
362374
if self.config:
363-
self.progress_bar.value = (self.num_steps - 1) / (self.num_total_steps + 2) # don't show on the first step
375+
self.progress_bar.value = (self.num_steps - 1) / (
376+
self.num_total_steps + 2
377+
) # don't show on the first step
364378
self.num_steps += 1 # increase the step counter
365379
# if there are default views left, display them first
366380
if self.default_views:

openandroidinstaller/widgets.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Contains functions and classes to get different elements and widgets of the installer."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
15+
216
from functools import partial
317
from os import path
418
from typing import Callable

scripts/check-image-for-device.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Script to check if a given lineageOS image works for a connected device."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
15+
216
from os import device_encoding
317
from subprocess import STDOUT, check_output
418
from typing import Dict

scripts/check-install.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Check if adb works and print the version."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
15+
216
from subprocess import STDOUT, check_output
317

418

scripts/lineageos-on-galaxy-a3.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
Example usage:
66
poetry run python scripts/lineageos-on-galaxy-a3.py --recovery images/samsung-galaxy-a3/twrp-3.6.2_9-0-a3y17lte.img --image images/samsung-galaxy-a3/lineage-16.0-20190908-UNOFFICIAL-a3y17lte.zip
77
"""
8+
9+
# This file is part of OpenAndroidInstaller.
10+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
11+
# the GNU General Public License as published by the Free Software Foundation,
12+
# either version 3 of the License, or (at your option) any later version.
13+
14+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
15+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
16+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17+
18+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
19+
# If not, see <https://www.gnu.org/licenses/>."""
20+
# Author: Tobias Sterbak
21+
822
from subprocess import call
923
from time import sleep
1024

scripts/lineageos-on-pixel3a.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
Example usage:
44
poetry run python scripts/lineageos-on-pixel3a.py --recovery images/google-pixel3a/lineage-19.1-20220830-recovery-sargo.img --image images/google-pixel3a/lineage-19.1-20220830-nightly-sargo-signed.zip
55
"""
6+
7+
# This file is part of OpenAndroidInstaller.
8+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
9+
# the GNU General Public License as published by the Free Software Foundation,
10+
# either version 3 of the License, or (at your option) any later version.
11+
12+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
13+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
14+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15+
16+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
17+
# If not, see <https://www.gnu.org/licenses/>."""
18+
# Author: Tobias Sterbak
19+
620
from subprocess import call
721

822
import click

scripts/lineageos-on-sony-xperia-z.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
Example usage:
44
poetry run python scripts/lineageos-on-sony-xperia-z.py --recovery images/sony-xperia-z/twrp-3.6.2_9-0-yuga.img --image images/sony-xperia-z/lineage-18.1-20220214-UNOFFICIAL-yuga.zip
55
"""
6+
7+
# This file is part of OpenAndroidInstaller.
8+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
9+
# the GNU General Public License as published by the Free Software Foundation,
10+
# either version 3 of the License, or (at your option) any later version.
11+
12+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
13+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
14+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15+
16+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
17+
# If not, see <https://www.gnu.org/licenses/>."""
18+
# Author: Tobias Sterbak
19+
620
from subprocess import call
721

822
import click

scripts/utils.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Reusable functions for flashing."""
2+
3+
# This file is part of OpenAndroidInstaller.
4+
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
5+
# the GNU General Public License as published by the Free Software Foundation,
6+
# either version 3 of the License, or (at your option) any later version.
7+
8+
# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY
9+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11+
12+
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
13+
# If not, see <https://www.gnu.org/licenses/>."""
14+
# Author: Tobias Sterbak
15+
216
from subprocess import STDOUT, check_output
317
from typing import List
418

0 commit comments

Comments
 (0)