mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Update amonet.py
This commit is contained in:
parent
f1f404660b
commit
0f4018aa83
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class Amonet(Exploitation, metaclass=LogBase):
|
|||
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)
|
||||
|
@ -138,4 +139,4 @@ class Amonet(Exploitation, metaclass=LogBase):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue