mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 11:14:56 -05:00
Merge pull request #1116 from perillamint/dev/skip-exploitation-preloader
Skip BROM exploitation when preloader is given through commandline argument
This commit is contained in:
commit
c5bc57d2b2
1 changed files with 7 additions and 1 deletions
|
@ -125,7 +125,13 @@ class DaHandler(metaclass=LogBase):
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue