italorecife / OppoRealme-OFP-Flash

Oppo/Realme Flash .OFP File on Bootloader
GNU General Public License v3.0
142 stars 28 forks source link

not working #23

Open VaibhavNalawade opened 11 months ago

VaibhavNalawade commented 11 months ago

File found: RMX3241export_11_A.15_2022051311190273.ofp Traceback (most recent call last): File "/home/vaibhav/OppoRealme-OFP-Flash/flash.py", line 515, in main() File "/home/vaibhav/OppoRealme-OFP-Flash/flash.py", line 316, in main pagesize,key,iv,data=generatekey(ofpfile) ^^^^^^^^^^^^^^^^^^^^ File "/home/vaibhav/OppoRealme-OFP-Flash/flash.py", line 109, in generatekey pagesize,data=extract_xml(filename,key,iv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vaibhav/OppoRealme-OFP-Flash/flash.py", line 127, in extract_xml offset=unpack("<I",rf.read(4))[0]*pagesize ^^^^^^^^^^^^^^^^^^^^^^^ struct.error: unpack requires a buffer of 4 bytes

Muzammil011 commented 9 months ago

same