italorecife / OppoRealme-OFP-Flash

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

Issue unpacking OFP #20

Open zedug opened 1 year ago

zedug commented 1 year ago

Hi tyring to flash RMX2001 with stock firmware on win11 but I get the error msg below in both the windows x64 and the python versions :

Searching for .ofp files
File found: RMX2001export_11_C.18_2022031723520000.ofp
Traceback (most recent call last):
  File "C:\Users\laure\AppData\Local\Temp\ONEFIL~1\flash.py", line 515, in <module>
  File "C:\Users\laure\AppData\Local\Temp\ONEFIL~1\flash.py", line 316, in main
  File "C:\Users\laure\AppData\Local\Temp\ONEFIL~1\flash.py", line 109, in generatekey
  File "C:\Users\laure\AppData\Local\Temp\ONEFIL~1\flash.py", line 127, in extract_xml
struct.error: unpack requires a buffer of 4 bytes

Any hint to debug this ? tia

ambroziewiczdaniel commented 1 year ago

I have the same error when trying to flash Realme 8i.

babai93 commented 1 year ago

I am also getting same issue.

OppoRealme-OFP-Flash_1.0.exe
Oppo/Realme Flash .OFP File on Bootloader | 1.0 (c) 2022 | Italo Almeida (@SirCDA) - GPL-3.0 License

Usage: Put the .ofp file in the same folder as the program,
then put your device in mode fastboot to start flash.

Note: if your device was not recognized in fastboot
mode by the computer, try to install the adb drivers.
=======================

Searching for .ofp files
File found: RMX2117export_11_C.12_2022041914110169.ofp
Traceback (most recent call last):
  File "C:\Users\babai\AppData\Local\Temp\ONEFIL~1\flash.py", line 515, in <module>
  File "C:\Users\babai\AppData\Local\Temp\ONEFIL~1\flash.py", line 316, in main
  File "C:\Users\babai\AppData\Local\Temp\ONEFIL~1\flash.py", line 109, in generatekey
  File "C:\Users\babai\AppData\Local\Temp\ONEFIL~1\flash.py", line 127, in extract_xml
struct.error: unpack requires a buffer of 4 bytes
rexsllemel commented 1 year ago

Did you managed to solve this? I am also facing this problem using RM2001

zedug commented 1 year ago

Unfortunately no

Jul 27, 2023 03:46:34 xPiLoYx @.***>:

DuckDuckGo removed 1 tracker. More →

[https://duckduckgo.com/-tTTkhB2-KTmc8lfMr-hQG0qg-FmH2_XFCgaVrI4rdgh_HNrV5-l8Sm4wXMLFydeb1ttw7TUexagF8xuE-tzECAojAJdO58XLFl5nUVxEA8vR-2R0RdA_2xo7V4J6qj69Ud7qfHTXa_ZXTFHc4OQaaNe2ji4OZeE2PHeqPstb0oci2ITLXJGQm90bSofFzrk03c68HqwDeKze4yo8fV5ELc7lNkTPnKbzfcDFOEyy0M0ifzWPUQKBzgYnCoOUo5P77g3daiENZSzK0M2DcC8693RPTO4koatNl5mDlwlXt1ND9hPlx5H1fZaPxp_5N0B5eh1kVgoHj4B5fgPkuVhQnKoTZ3uBsNgTbxReE5izkZeyv0ngJ-8v7xBTu8LUD] Did you managed to solve this? I am also facing this problem using RM2001

— Reply to this email directly, view it on GitHub[https://github.com/italorecife/OppoRealme-OFP-Flash/issues/20#issuecomment-1652792837], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ACLMH3XE7OVDZ3GBM22CVMLXSHB7RANCNFSM6AAAAAATXVSP3U]. You are receiving this because you authored the thread.

rabe33h commented 2 months ago

No solution for this?? How should i flash ofp then?