Skip to content

Commit

Permalink
Update amonet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler authored Oct 2, 2023
1 parent f1f4046 commit 0f4018a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mtkclient/Library/Exploit/amonet.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def da_read_write(self, address, length, data=None, check_result=True):
if self.chipconfig.blacklist:
self.hwcrypto.disable_range_blacklist("gcpu", self.mtk)
if data is None:
old = 0
data=bytearray()
for addr in range(address, address+length, 16):
prog = int(addr / length * 100)
Expand Down Expand Up @@ -138,4 +139,4 @@ def dump_brom(self, filename, dump_ptr=None, length=0x20000):
old = round(prog, 1)
wf.write(self.hwcrypto.gcpu.aes_read_cbc(addr))
print_progress(100, 100, prefix='Progress:', suffix='Complete', bar_length=50)
return True
return True

0 comments on commit 0f4018a

Please sign in to comment.