mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-15 03:35:00 -05:00
Update mtk_gui
This commit is contained in:
parent
d326a3fa2e
commit
054dafacaa
10 changed files with 8 additions and 37 deletions
4
mtk_gui
4
mtk_gui
|
@ -504,13 +504,15 @@ class MainWindow(QMainWindow):
|
||||||
self.ui.connectInfo.setHidden(True)
|
self.ui.connectInfo.setHidden(True)
|
||||||
self.ui.partProgress.setHidden(False)
|
self.ui.partProgress.setHidden(False)
|
||||||
self.ui.fullProgress.setHidden(False)
|
self.ui.fullProgress.setHidden(False)
|
||||||
self.ui.tabWidget.setHidden(False)
|
|
||||||
self.initread()
|
self.initread()
|
||||||
self.initkeys()
|
self.initkeys()
|
||||||
self.initunlock()
|
self.initunlock()
|
||||||
self.initerase()
|
self.initerase()
|
||||||
self.initwrite()
|
self.initwrite()
|
||||||
self.getpartitions()
|
self.getpartitions()
|
||||||
|
self.ui.tabWidget.setCurrentIndex(0)
|
||||||
|
self.ui.tabWidget.update()
|
||||||
|
self.ui.tabWidget.setHidden(False)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if 'cantConnect' in phoneInfo:
|
if 'cantConnect' in phoneInfo:
|
||||||
|
|
|
@ -22,9 +22,6 @@ class Port(metaclass=LogBase):
|
||||||
|
|
||||||
def __init__(self, mtk, portconfig, serialportname:str=None, loglevel=logging.INFO):
|
def __init__(self, mtk, portconfig, serialportname:str=None, loglevel=logging.INFO):
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.debug = self.__logger.debug
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.config = mtk.config
|
self.config = mtk.config
|
||||||
self.mtk = mtk
|
self.mtk = mtk
|
||||||
self.serialportname = None
|
self.serialportname = None
|
||||||
|
|
|
@ -32,9 +32,6 @@ class crypto_setup:
|
||||||
class hwcrypto(metaclass=LogBase):
|
class hwcrypto(metaclass=LogBase):
|
||||||
def __init__(self, setup, loglevel=logging.INFO, gui: bool = False):
|
def __init__(self, setup, loglevel=logging.INFO, gui: bool = False):
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.dxcc = dxcc(setup, loglevel, gui)
|
self.dxcc = dxcc(setup, loglevel, gui)
|
||||||
self.gcpu = GCpu(setup, loglevel, gui)
|
self.gcpu = GCpu(setup, loglevel, gui)
|
||||||
self.sej = sej(setup, loglevel)
|
self.sej = sej(setup, loglevel)
|
||||||
|
|
|
@ -1076,10 +1076,6 @@ class dxcc(metaclass=LogBase):
|
||||||
self.writemem = setup.writemem
|
self.writemem = setup.writemem
|
||||||
self.da_payload_addr = setup.da_payload_addr
|
self.da_payload_addr = setup.da_payload_addr
|
||||||
|
|
||||||
self.__logger = self.__logger
|
|
||||||
self.info = self.__logger.info
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.reg = dxcc_reg(setup)
|
self.reg = dxcc_reg(setup)
|
||||||
|
|
||||||
def tzcc_clk(self, value):
|
def tzcc_clk(self, value):
|
||||||
|
|
|
@ -195,9 +195,6 @@ def xor_data(a: bytearray, b: bytearray, length=None):
|
||||||
class GCpu(metaclass=LogBase):
|
class GCpu(metaclass=LogBase):
|
||||||
def __init__(self, setup, loglevel=logging.INFO, gui: bool = False):
|
def __init__(self, setup, loglevel=logging.INFO, gui: bool = False):
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.read32 = setup.read32
|
self.read32 = setup.read32
|
||||||
self.write32 = setup.write32
|
self.write32 = setup.write32
|
||||||
self.reg = GCpuReg(setup)
|
self.reg = GCpuReg(setup)
|
||||||
|
|
|
@ -22,10 +22,6 @@ class legacyext(metaclass=LogBase):
|
||||||
def __init__(self, mtk, legacy, loglevel):
|
def __init__(self, mtk, legacy, loglevel):
|
||||||
self.pathconfig = pathconfig()
|
self.pathconfig = pathconfig()
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.debug = self.__logger.debug
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.mtk = mtk
|
self.mtk = mtk
|
||||||
self.loglevel = loglevel
|
self.loglevel = loglevel
|
||||||
self.__logger = self.__logger
|
self.__logger = self.__logger
|
||||||
|
|
|
@ -20,9 +20,6 @@ class META(metaclass=LogBase):
|
||||||
def __init__(self, mtk, loglevel=logging.INFO):
|
def __init__(self, mtk, loglevel=logging.INFO):
|
||||||
self.mtk = mtk
|
self.mtk = mtk
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.debug = self.__logger.debug
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.gcpu = None
|
self.gcpu = None
|
||||||
self.config = mtk.config
|
self.config = mtk.config
|
||||||
self.display = True
|
self.display = True
|
||||||
|
|
|
@ -836,9 +836,6 @@ class DALegacy(metaclass=LogBase):
|
||||||
|
|
||||||
def __init__(self, mtk, daconfig, loglevel=logging.INFO):
|
def __init__(self, mtk, daconfig, loglevel=logging.INFO):
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.debug = self.debug
|
|
||||||
self.error = self.error
|
|
||||||
self.info = self.info
|
|
||||||
self.emmc = None
|
self.emmc = None
|
||||||
self.nand = None
|
self.nand = None
|
||||||
self.nor = None
|
self.nor = None
|
||||||
|
|
|
@ -139,10 +139,6 @@ class DAXFlash(metaclass=LogBase):
|
||||||
|
|
||||||
def __init__(self, mtk, daconfig, loglevel=logging.INFO):
|
def __init__(self, mtk, daconfig, loglevel=logging.INFO):
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.debug = self.__logger.debug
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.mtk = mtk
|
self.mtk = mtk
|
||||||
self.loglevel = loglevel
|
self.loglevel = loglevel
|
||||||
self.daext = False
|
self.daext = False
|
||||||
|
@ -542,11 +538,11 @@ class DAXFlash(metaclass=LogBase):
|
||||||
data[:(5 * 2)])
|
data[:(5 * 2)])
|
||||||
status = self.status()
|
status = self.status()
|
||||||
if status == 0:
|
if status == 0:
|
||||||
self.info("HW-CODE : 0x%X", chipid.hw_code)
|
self.info("HW-CODE : 0x%X" % chipid.hw_code)
|
||||||
self.info("HWSUB-CODE : 0x%X", chipid.hw_sub_code)
|
self.info("HWSUB-CODE : 0x%X" % chipid.hw_sub_code)
|
||||||
self.info("HW-VERSION : 0x%X", chipid.hw_version)
|
self.info("HW-VERSION : 0x%X" % chipid.hw_version)
|
||||||
self.info("SW-VERSION : 0x%X", chipid.sw_version)
|
self.info("SW-VERSION : 0x%X" % chipid.sw_version)
|
||||||
self.info("CHIP-EVOLUTION : 0x%X", chipid.chip_evolution)
|
self.info("CHIP-EVOLUTION : 0x%X" % chipid.chip_evolution)
|
||||||
return chipid
|
return chipid
|
||||||
else:
|
else:
|
||||||
self.error(f"Error on getting chip id: {self.eh.status(status)}")
|
self.error(f"Error on getting chip id: {self.eh.status(status)}")
|
||||||
|
|
|
@ -43,10 +43,6 @@ class xflashext(metaclass=LogBase):
|
||||||
def __init__(self, mtk, xflash, loglevel):
|
def __init__(self, mtk, xflash, loglevel):
|
||||||
self.pathconfig = pathconfig()
|
self.pathconfig = pathconfig()
|
||||||
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
self.__logger = logsetup(self, self.__logger, loglevel, mtk.config.gui)
|
||||||
self.info = self.__logger.info
|
|
||||||
self.debug = self.__logger.debug
|
|
||||||
self.error = self.__logger.error
|
|
||||||
self.warning = self.__logger.warning
|
|
||||||
self.mtk = mtk
|
self.mtk = mtk
|
||||||
self.loglevel = loglevel
|
self.loglevel = loglevel
|
||||||
self.__logger = self.__logger
|
self.__logger = self.__logger
|
||||||
|
|
Loading…
Reference in a new issue