From 140fefe5f05dfc9508e00148c355b381e0f85ceb Mon Sep 17 00:00:00 2001 From: perillamint Date: Mon, 22 Jul 2024 13:30:22 +0900 Subject: [PATCH] Skip BootROM exploitation when user supplied preloader through command line argument --- mtkclient/Library/DA/mtk_da_handler.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mtkclient/Library/DA/mtk_da_handler.py b/mtkclient/Library/DA/mtk_da_handler.py index 8b1389f8..dfcce127 100755 --- a/mtkclient/Library/DA/mtk_da_handler.py +++ b/mtkclient/Library/DA/mtk_da_handler.py @@ -125,7 +125,13 @@ def configure_da(self, mtk, preloader): or self.mtk.config.target_config["sbc"]) if not hassecurity: mtk.daloader.patch = True - mtk = mtk.bypass_security() # Needed for dumping preloader + + if preloader is None: + self.info("Preloader is not supplied. Acquiring it through BROM exploit.") + mtk = mtk.bypass_security() # Needed for dumping preloader + else: + self.info("Using supplied preloader. Skipping exploitation!") + if mtk is not None: self.mtk = mtk if preloader is None: