Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boottodownload
10 changes: 5 additions & 5 deletions edl
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ from edlclient.Library.utils import is_windows

args = docopt(__doc__, version='3')

print("Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2025.")


class main(metaclass=LogBase):
def __init__(self, args, imported: str = ''):
self.serial = None
Expand Down Expand Up @@ -403,7 +400,10 @@ class main(metaclass=LogBase):
else:
return self.exit(1)


if __name__ == '__main__':
def run():
print("Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2025.")
base = main(args, __name__)
base.run()

if __name__ == '__main__':
run()
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions edlclient/Tools/enableadb → edlclient/Tools/enableadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# !!!!! If you use this code in commercial products, your product is automatically
# GPLv3 and has to be open sourced under GPLv3 as well. !!!!!
import argparse
import copy
import hashlib
import time
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def is_duplicate(loaderdb, sign_info):
return False


def main(argv):
def main(argv=sys.argv):
file_list = []
path = ""
if len(argv) < 3:
Expand Down Expand Up @@ -497,4 +497,5 @@ class loaderinfo:
rt.close()


main(sys.argv)
if __name__ == "__main__":
main(sys.argv)
4 changes: 2 additions & 2 deletions edlclient/Tools/sierrakeygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(cls, *args):
C6 = 3 1 7 0 3 0 1
C5 = 0 2 5 3 0 3 2
C8 = 1 3 3 1 5 7 3
C4 = 5 4 1 4 1 1 4
C4 = 5 4 1 4 1 1 4
'''
prodtable = {
"MDM8200": dict(openlock=0, openmep=1, opencnd=0, clen=8, init=[1, 3, 5, 7, 0],
Expand Down Expand Up @@ -584,7 +584,7 @@ def openlock(self):
return False


def main(args):
def main(args=sys.argv):
version = "1.5"
info = 'Sierra Wireless Generator ' + version + ' (c) B. Kerler 2019-2021'
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, description=info)
Expand Down
2 changes: 1 addition & 1 deletion enableadb
2 changes: 1 addition & 1 deletion fhloaderparse
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
version='3.62',
packages=find_packages(),
long_description=open("README.md").read(),
scripts=['edl','edlclient/Tools/qc_diag.py','edlclient/Tools/sierrakeygen.py','edlclient/Tools/boottodwnload','edlclient/Tools/enableadb','edlclient/Tools/fhloaderparse','edlclient/Tools/beagle_to_loader'],
entry_points={
'console_scripts': [
'edl=edlclient.edl:run',
'qc_diag=edlclient.Tools.qc_diag:main',
'sierrakeygen=edlclient.Tools.sierrekeygen:main',
'boottodownload=edlclient.Tools.boottodownload:main',
'enableadb=edlclient.Tools.enableadb:main',
'fhloaderparse=edlclient.Tools.fhloaderparse:main',
'beagle_to_loader=edlclient.Tools.beagle_to_loader:main',
],
},
data_files = ['LICENSE','README.md'],
long_description_content_type="text/markdown",
url='https://github.com/bkerler/edl',
Expand Down