diff --git a/mtkclient/Library/pltools.py b/mtkclient/Library/pltools.py index 5c27bd27..28cb39ff 100755 --- a/mtkclient/Library/pltools.py +++ b/mtkclient/Library/pltools.py @@ -75,12 +75,12 @@ def runpayload(self, filename, offset=0, ack=0xA1A2A3A4, addr=None, dontack=Fals self.info(f"Couldn't open {filename} for reading.") return False - ack = self.exploit.runpayload(payload, ack, addr, dontack) - if ack == ack: + response_ack = self.exploit.runpayload(payload, ack, addr, dontack) + if response_ack == ack: self.info(f"Successfully sent payload: {filename}") self.mtk.daloader.patch = True return True - elif ack == b"\xc1\xc2\xc3\xc4": + elif response_ack == b"\xc1\xc2\xc3\xc4": if "preloader" in rf.name: ack = self.mtk.port.usbread(4) if ack == b"\xC0\xC0\xC0\xC0":