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:
Bjoern Kerler 2024-07-22 10:03:04 +02:00 committed by GitHub
commit c5bc57d2b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: