mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Set "preloader"
At the first start from "seccfg", when calling "setotp()", it is necessary that the read "preloader" be assigned to "mtk.config.preloader". Or passed in the "--preloader" parameter at the second start.
This commit is contained in:
parent
5bd3e74a1e
commit
aefcd8bf17
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ class DA_handler(metaclass=LogBase):
|
||||||
self.error("Failed to dump preloader from ram.")
|
self.error("Failed to dump preloader from ram.")
|
||||||
else:
|
else:
|
||||||
self.info("Device is in Preloader-Mode :(")
|
self.info("Device is in Preloader-Mode :(")
|
||||||
|
|
||||||
|
|
||||||
|
if preloader is not None:
|
||||||
|
mtk.config.preloader = preloader
|
||||||
|
|
||||||
if not mtk.daloader.upload_da(preloader=preloader):
|
if not mtk.daloader.upload_da(preloader=preloader):
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue