italorecife / OppoRealme-OFP-Flash

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

Add ability to switch to fastbootd. #22

Open joey-mcadams opened 1 year ago

joey-mcadams commented 1 year ago

At line 484 in main I suggest adding this:

    # Need to switch from fastboot to fastbootd here:
    printc("\n\nWould you like to switch to fastbootd?")
    printc("WARNING: Flashing critical can permanently brick your device!!!")
    printc("1 - Reboot device to fastbootd")
    printc("0 - continue")
    fastbootd_choice = input("Choice: ")
    fastbootd_choice = int("".join(filter(str.isdigit, fastbootd_choice)))

    if fastbootd_choice == 1:
        subprocess.check_output(["fastboot", "reboot", "fastboot"], stderr=subprocess.STDOUT)
        printc("\n\nfastbootd should now be active.")

That will switch the phone to fastbootd. In fastbootd the phone will flash critical partitions. That helped me fix the radios on my phone.

NOTE!!!!!!! - You'll also need to update fastboot.exe in this repo to the latest one.