From aefcd8bf171be760e6c5d8e9ae34f35798569cde Mon Sep 17 00:00:00 2001 From: usernameComputer01 Date: Wed, 5 Apr 2023 02:06:51 +0300 Subject: [PATCH] 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. --- mtkclient/Library/mtk_da_cmd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mtkclient/Library/mtk_da_cmd.py b/mtkclient/Library/mtk_da_cmd.py index e0de717..6358841 100644 --- a/mtkclient/Library/mtk_da_cmd.py +++ b/mtkclient/Library/mtk_da_cmd.py @@ -109,6 +109,11 @@ class DA_handler(metaclass=LogBase): self.error("Failed to dump preloader from ram.") else: self.info("Device is in Preloader-Mode :(") + + + if preloader is not None: + mtk.config.preloader = preloader + if not mtk.daloader.upload_da(preloader=preloader): return None else: