From 64c3ff2b9b16944e3afb71c0184beb617ee7c09a Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Mon, 2 Oct 2023 11:28:36 +0200 Subject: [PATCH] Update oneplus.py --- edlclient/Library/Modules/oneplus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edlclient/Library/Modules/oneplus.py b/edlclient/Library/Modules/oneplus.py index b6c3bda..13e2695 100755 --- a/edlclient/Library/Modules/oneplus.py +++ b/edlclient/Library/Modules/oneplus.py @@ -493,7 +493,9 @@ def run(self, flag): print(res.decode('utf-8')) return False data = res.decode('utf-8') - device_timestamp = data[data.rfind("device_timestamp"):].split("\"")[1] + device_timestamp = data[ridx:].split("\"")[1] + print(data) + print(device_timestamp) pk, token = self.generatetoken(False, device_timestamp) res = self.fh.cmd_send(f"setswprojmodel token=\"{token}\" pk=\"{pk}\"") if not b"model_check=\"0\"" in res or not b"auth_token_verify=\"0\"" in res: