Skip to content

Commit

Permalink
Skip BootROM exploitation when user supplied preloader through comman…
Browse files Browse the repository at this point in the history
…d line argument
  • Loading branch information
perillamint committed Jul 22, 2024
1 parent a789e6c commit 140fefe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mtkclient/Library/DA/mtk_da_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 140fefe

Please sign in to comment.