Skip to content

Commit

Permalink
Merge pull request #1116 from perillamint/dev/skip-exploitation-prelo…
Browse files Browse the repository at this point in the history
…ader

Skip BROM exploitation when preloader is given through commandline argument
  • Loading branch information
bkerler authored Jul 22, 2024
2 parents 554b963 + 140fefe commit c5bc57d
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 c5bc57d

Please sign in to comment.