italorecife / OppoRealme-OFP-Flash

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

Can't flash global (export ) rom, only gdpr #6

Closed Hryniuk1 closed 2 years ago

Hryniuk1 commented 2 years ago

System: Arch Linux Version of android tools: 31.0.3-5 Version of Python: 3.10.5-1 Using Linux compiled .bin file My Device: Realme GT Master Edition RMX3363 My prebuilt firmware after buying and installing some OTA updates: Global rom C.06 region KE Tested flashing via OFP Flash Tool: EU C.07, EU C.06 - device boots after flashing. Global C.07, C.06, A.10 any region - device bootloops, сhanging slots doesn't help. Flasher output is identical for EU and Global. ( "Файлы идентичны" on screenshot - Files are identical ) EU.txt RU.txt Screenshot_20220608_222025 Also, I unpacked .ofp and compared checksums between gdpr and global firmware partitions. It was revealed that the difference between flashable partitions is only in super.img, vbmeta_system.img, vbmeta_vendor.img, userdata.img. Screenshot_20220608_215130 Screenshot_20220608_215159 Screenshot_20220608_215218 Screenshot_20220608_215238 I tried to flash the European firmware first, then flash the above partitions manually. The result is bootloop. I thought, perhaps in the global firmware, the super.img partition is broken. I downloaded the OTA update from the RU region, unpacked it, also unpacked super.img from the global firmware, compared all partition, but their checksums turned out to be identical. Screenshot_20220608_214837 So super.img is not broken. This is photo taken from twrp after flashing global rom. Seems super partition is broken after flashing photo_2022-06-08_22-05-51 Also, I am attaching the imjtool output with information about the super partitions from export and gdpr, if this is of course necessary. Screenshot_20220608_221132 Screenshot_20220608_221206 What else to try, I do not know, I hope for your help

italorecife commented 2 years ago

as the flash is not complete, you can see from the failures presented by the flash logs, the partitions that are not changed simply do not let the system start the super different, only the ones they allow, for a more accurate flash you would have to change the partitions that fail with flash, for that I would need a rollback package as a reference and twrp, if you have some kind of complete stock package as a rollback package for your device, I can develop a package for twrp that will flash the missing partitions, thus making a complete flash.

Hryniuk1 commented 2 years ago

"as the flash is not complete, you can see from the failures presented by the flash logs, the partitions that are not changed simply do not let the system start the super different" But after all, those partitions that are not flashed have the same checksum in gdpr and export, which means that these partitions will not change when flashing, because they are the same, so they should not affect the ability to boot. It is so? What about rollback. Our device has it (RUI 3 A.12 to RUI 2 A.11) only for Indian firmware (which is codenamed RMX3360, not RMX3363), and there were reports that after flashing this rollback via twrp on RMX3363, the user also could not boot the phone. Here is the link: https://download.c.realme.com/flash/Rollbackpack/realme_GT_Master_Edition/RMX3360_11_A_fullota_00011011.zip OTA C.07 (not rollback) with global firmware (RU region) may still be useful: here is the link - https://gauss-componentotacostmanual-eu.allawnofs.com/remove-944c1751113b4972398c2cef7e504287/component-ota/22/05/18/71331353f185492fa3efcf774f7e13a9.zip

italorecife commented 2 years ago

these partitions are not complete, they are just like the system part of each partition, the data part of the device is not changed, imagine if you flash the partition that contains the imei , and it was a complete partition, your device would go loses its imei, and network bands browsing configuration data, and stuff, so these partitions aren't complete and can't be, so when you check their hash they're the same, cuz it's just the partition system, no data from register. and it may be that this registry data, may indicate what is needed to be initialized, like if super is compatible, or something like that.

I'll try to create a package for your device for twrp, as I did for gt neo 2, thus having a more complete flash.

Hryniuk1 commented 2 years ago

Oh, I get it. Thanks, I'll appreciate it.

Hryniuk1 commented 2 years ago

What do you think about first flashing a 4gb ota package from the ru region, and then immediately, either flashing via fastboot super.img from ru, or just flashing the phone in ofp. Did it work on your Realme GT Neo 2, or is it impossible to do without specially created packages?

italorecife commented 2 years ago

try to flash the ota and then the .ofp package

but it would have to be the same version of rui and update

rahulkmr69 commented 2 years ago

Just came here to say that if you can't boot even after flashing OFP, then what finally worked for me was -

  1. ADB sideload the OTA package zip to BOTH SLOTS, i.e, flash it once, reboot recovery (it should automatically switch slots), flash it again.
  2. Now flash OFP of the same version. Eg, if you flashed zip of C.05, flash OFP of C.05 here too.
  3. Reboot to recovery -> Wipe data, reboot to system. At this point you either boot RealmeUI or bootloop back to bootloader.
  4. If it comes back to bootloader, switch slots using fastboot command and again reboot to recovery -> Wipe data.
  5. Now reboot to system, it will boot hopefully 🙏
Hryniuk1 commented 2 years ago

@rahulkmr69 YESSS Your guide is worked for me, I've successfully flashed RU region! Thank you very much!

LeoKesler commented 2 years ago

I'll try to create a package for your device for twrp, as I did for gt neo 2, thus having a more complete flash.

Hi, what package or where is the package for gt neo 2 ?

I bought the gt neo 2 and I received the EU version, with GDPR firmware, without call recording. I am searching for a way to flash the India version to get the call recording.

I want the Indian version because I think it is the most complete version.

italorecife commented 2 years ago

I'll try to create a package for your device for twrp, as I did for gt neo 2, thus having a more complete flash.

Hi, what package or where is the package for gt neo 2 ?

I bought the gt neo 2 and I received the EU version, with GDPR firmware, without call recording. I am searching for a way to flash the India version to get the call recording.

I want the Indian version because I think it is the most complete version.

https://forum.xda-developers.com/t/bitra-realme-ui-flashable-stock-firmware-packages-for-twrp-change-region.4426659/

LeoKesler commented 2 years ago

I'll try to create a package for your device for twrp, as I did for gt neo 2, thus having a more complete flash.

Hi, what package or where is the package for gt neo 2 ? I bought the gt neo 2 and I received the EU version, with GDPR firmware, without call recording. I am searching for a way to flash the India version to get the call recording. I want the Indian version because I think it is the most complete version.

https://forum.xda-developers.com/t/bitra-realme-ui-flashable-stock-firmware-packages-for-twrp-change-region.4426659/

For some reason, after some time, I able to use volume up and power to shutdown. After that, next power on, I able to use the bootloader and type the code to format the phone.

After some minutes, it worked.

Ignore.

HELP!

I did the procedure, first video and I got the chinese bootloader. Select English, next screen still in chinese. Select the second option to wipe ( looking the position using your video).
The screen show a code. But the touch do not work.

I am unable to shutdown the phone. Or reset the phone. It is freeze.

I tried to flash the Indian rom. Unlocked bootloader.


italorecife commented 2 years ago

I'll try to create a package for your device for twrp, as I did for gt neo 2, thus having a more complete flash.

Hi, what package or where is the package for gt neo 2 ? I bought the gt neo 2 and I received the EU version, with GDPR firmware, without call recording. I am searching for a way to flash the India version to get the call recording. I want the Indian version because I think it is the most complete version.

https://forum.xda-developers.com/t/bitra-realme-ui-flashable-stock-firmware-packages-for-twrp-change-region.4426659/

For some reason, after some time, I able to use volume up and power to shutdown. After that, next power on, I able to use the bootloader and type the code to format the phone.

After some minutes, it worked.

Ignore.

HELP!

I did the procedure, first video and I got the chinese bootloader. Select English, next screen still in chinese. Select the second option to wipe ( looking the position using your video). The screen show a code. But the touch do not work.

I am unable to shutdown the phone. Or reset the phone. It is freeze.

I tried to flash the Indian rom. Unlocked bootloader.

você tem telegram?

LeoKesler commented 2 years ago

você tem telegram?

Eu consegui resolver depois de um tempo. Depois de uns 15minutos de terror, ele aceitou o comando power + vol up e desligou. Liguei novamente e consegui digitar o codigo para autorizar o clear data.

Sobre meu telegram, eu tenho, mas o pouco que eu uso é via PC, então nem tenho link de contato... Só estou usando agora para pegar info sobre o phone. Eu estou no grupo Realme GT Neo 2 Br, usuario Lucas. Postei agora há pouco mensagem perguntando se há forma de melhorar a qualidade da gravação de conversas telefonicas.

Edit: O que eu tenho que fazer agora é criar coragem para dar um lock no bootloader, mas eu lí relatos de hard brick, então estou deixando pra lá. Com a minha sorte, já ví que vai dar problema.