Skip to content

Commit

Permalink
Update oneplus.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler authored Oct 2, 2023
1 parent cd29906 commit 64c3ff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edlclient/Library/Modules/oneplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 64c3ff2

Please sign in to comment.