mirror of
https://github.com/bkerler/mtkclient.git
synced 2025-06-16 06:30:31 -04:00
parent
f8272a402e
commit
8fff2aba85
3 changed files with 4 additions and 4 deletions
mtkclient/Library/DA
|
@ -195,7 +195,7 @@ class LegacyExt(metaclass=LogBase):
|
|||
return False, writedata
|
||||
if self.legacy.writeflash(addr=partition.sector * self.mtk.daloader.daconfig.pagesize,
|
||||
length=len(writedata),
|
||||
filename=None, wdata=writedata, parttype="user", display=True):
|
||||
filename="", wdata=writedata, parttype="user", display=True):
|
||||
return True, "Successfully wrote seccfg."
|
||||
return False, "Error on writing seccfg config to flash."
|
||||
|
||||
|
|
|
@ -540,7 +540,7 @@ class DaHandler(metaclass=LogBase):
|
|||
wsize = min(sectorsize, 0x200000)
|
||||
if self.mtk.daloader.writeflash(addr=sector * self.config.pagesize,
|
||||
length=wsize,
|
||||
filename=None,
|
||||
filename="",
|
||||
wdata=wipedata[:wsize],
|
||||
parttype="user"):
|
||||
print(
|
||||
|
@ -584,7 +584,7 @@ class DaHandler(metaclass=LogBase):
|
|||
wsize = min(sectorsize, 0x200000)
|
||||
if self.mtk.daloader.writeflash(addr=sector * self.config.pagesize,
|
||||
length=wsize,
|
||||
filename=None,
|
||||
filename="",
|
||||
wdata=wipedata[:wsize],
|
||||
parttype=parttype):
|
||||
print(
|
||||
|
|
|
@ -711,7 +711,7 @@ class XmlFlashExt(metaclass=LogBase):
|
|||
return False, writedata
|
||||
if self.xflash.writeflash(addr=partition.sector * self.mtk.daloader.daconfig.pagesize,
|
||||
length=len(writedata),
|
||||
filename=None, wdata=writedata, parttype="user", display=True):
|
||||
filename="", wdata=writedata, parttype="user", display=True):
|
||||
return True, "Successfully wrote seccfg."
|
||||
return False, "Error on writing seccfg config to flash."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue