Skip to content

Commit

Permalink
Make da version patch more universal
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler authored Jun 5, 2024
1 parent 54cd658 commit 4497ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/DA/xflash/extension/xflash.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def patch_da1(self, da1):
da1patched = self.mtk.patch_preloader_security_da1(da1patched)
# Patch security

da_version_check = find_binary(da1, b"\x1F\xB5\x00\x23\x01\xA8\x00\x93\x00\xF0\xDE\xFE")
da_version_check = find_binary(da1, b"\x1F\xB5\x00\x23\x01\xA8\x00\x93\x00\xF0")
if da_version_check is not None:
da1patched = bytearray(da1patched)
da1patched[da_version_check:da_version_check + 4] = b"\x00\x20\x70\x47"
Expand Down

0 comments on commit 4497ea0

Please sign in to comment.