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:
usernameComputer01 2023-04-05 02:06:51 +03:00
parent 5bd3e74a1e
commit aefcd8bf17

View file

@ -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: