Skip to content

Commit

Permalink
Merge pull request #1026 from AgentFabulous/main
Browse files Browse the repository at this point in the history
mtk_class: Use serial_handshake if serialportname provided
  • Loading branch information
bkerler authored May 30, 2024
2 parents 31819b8 + 9e54803 commit b4e2ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mtkclient/Library/mtk_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ def bypass_security(self):
self.config.payloadfile = os.path.join(self.pathconfig.get_payloads_path(),
self.config.chipconfig.loader)
if plt.runpayload(filename=self.config.payloadfile):
mtk.port.run_handshake()
if mtk.serialportname:
mtk.port.serial_handshake()
else:
mtk.port.handshake()
return mtk
else:
self.error("Error on running kamakiri payload")
Expand Down

0 comments on commit b4e2ca1

Please sign in to comment.