Skip to content

Commit

Permalink
Merge pull request #549 from mkropat/projid-detection
Browse files Browse the repository at this point in the history
Support hex digits in OnePlus projid
  • Loading branch information
bkerler authored May 23, 2024
2 parents 8573eba + 6e8f1cf commit 3e4e569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edlclient/Library/Modules/oneplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def __init__(self, fh, projid:str="18825", serial=123456, ATOBuild=0, Flash_Mode
data = self.fh.cmd_read_buffer(lun, rpartition.sector, 1, False)
value = data.data[24:24 + 5]
try:
test = int(value.decode('utf-8'))
test = int(value.decode('utf-8'), 16)
self.info("Oneplus protection with prjid %d detected" % test)
projid = value.decode('utf-8')
except:
Expand Down

0 comments on commit 3e4e569

Please sign in to comment.