General [OnePlus Nord CE][ROM][OTA][Oxygen OS] Repo of Oxygen OS Builds

Search This thread
Is there any comprehensive guide on how to flash the downgrade images using fastboot?
I have successfully extracted the payload.bin using payload_dumper, and I was able to repair a broken recovery with the latest firmware, but I can't figure out how to get the system partition working again.
Completely wipe your device:

fastboot -w

Once that is done, you may start off by flashing the Fastboot ROM files via the below commands:

fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash modem modem.img
fastboot flash recovery recovery.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img

One-half of the commands have been flashed in the Fastboot Mode, the other half will now be flashed in the FastbootD Mode. So use the below command to boot your device to FastbootD Mode

fastboot reboot fastboot

Your device will now boot to FastbootD, you may now flash the rest of the commands:

fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash devcfg devcfg.img
fastboot flash dsp dsp.img
fastboot flash featenabler featenabler.img
fastboot flash hyp hyp.img
fastboot flash imagefv imagefv.img
fastboot flash keymaster keymaster.img
fastboot flash oplusstanvbk oplusstanvbk.img
fastboot flash odm odm.img
fastboot flash qupfw qupfw.img
fastboot flash tz tz.img
fastboot flash uefisecapp uefisecapp.img
fastboot flash xbl xbl.img
fastboot flash xbl_config xbl_config.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash product product.img

Once that is done, you could now reboot the device back to Fastboot Mode from the current FastbootD Mode. Use the below command for that:

fastboot reboot bootloader

Finally, you may now reboot the device to the OS via the following command:

fastboot reboot


Or you can do it in a more comfortable way with the application of this thread:
 
Sep 24, 2021
12
6
OnePlus Nord CE 5G
Completely wipe your device:

fastboot -w

Once that is done, you may start off by flashing the Fastboot ROM files via the below commands:

fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash modem modem.img
fastboot flash recovery recovery.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img

One-half of the commands have been flashed in the Fastboot Mode, the other half will now be flashed in the FastbootD Mode. So use the below command to boot your device to FastbootD Mode

fastboot reboot fastboot

Your device will now boot to FastbootD, you may now flash the rest of the commands:

fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash devcfg devcfg.img
fastboot flash dsp dsp.img
fastboot flash featenabler featenabler.img
fastboot flash hyp hyp.img
fastboot flash imagefv imagefv.img
fastboot flash keymaster keymaster.img
fastboot flash oplusstanvbk oplusstanvbk.img
fastboot flash odm odm.img
fastboot flash qupfw qupfw.img
fastboot flash tz tz.img
fastboot flash uefisecapp uefisecapp.img
fastboot flash xbl xbl.img
fastboot flash xbl_config xbl_config.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash product product.img

Once that is done, you could now reboot the device back to Fastboot Mode from the current FastbootD Mode. Use the below command for that:

fastboot reboot bootloader

Finally, you may now reboot the device to the OS via the following command:

fastboot reboot


Or you can do it in a more comfortable way with the application of this thread:
Thanks so much, that puts me on the right track.

Unfortunately that kicks the ball only one step further...
I can't seem to get into fastbootd mode.

step by step:

`fastboot -w` returns:
Code:
Erasing 'userdata'                                 OKAY [  0.368s]

    F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy
Info: Debug level = 1
Info: Trim is disabled
Info: Set conf for android
    Error: Sparse mode is only supported for android
/usr/lib/android-sdk/platform-tools/make_f2fs failed with status 255
fastboot: error: Cannot generate image for userdata

I'm not sure if that's an actual issue but it might be related to the fastbootd issue.
EDIT: This error seems to be resolved by using the latest version of fastboot (rather than the apt package) but that does not affect the fastbootd error.

All the ROM flash commands works without any errors or warnings.

`fastboot reboot fastboot` returns:
Code:
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

I don't know how I would have corrupted this partition but I guess it is.

I have found some people with the same issue (on different phones) but the only solution I have found is to use a windows unbrick tool (which is fine but I won't have access to a windows computer until this weekend..)

I don't expect you would have another solution but maybe you could identify the issue better than I can.

EDIT:
I have done a bit more research and found out:
  • Using the latest version of fastboot makes a difference for the `fastboot -w` command.
  • I can get into fastbootd mode if I use the images from the latest update but not if I use the downgrade images.
  • most images have a corresponding partition by name (found using `fastboot getvar all`), but not all
    Exceptions:
    [ system my_manifest my_company my_heytap my_engineering odm my_bigball my_preload my_carrier vendor system_ext my_product bootloader_vars product my_stock my_region ]

  • Conversely, there are a also partitions without a corresponding image name:
    [ ALIGN_TO_128K_1 storsec opluslog fsg persist vbmeta_vendor catecontentfv uefivarstore sdc mdtp cdt cateloader kernel_log frp spunvm config limits misc sdb mdtpsecapp param userdata super oplusreserve4 oplusreserve1 carrier logdump oplusreserve5 dinfo modemst1 toolsfv fsc core_nhlos android_log sde DRIVER oplus_sec questdatafv keystore ALIGN_TO_128K_2 rawdump oplusdycnvbk sdd oplusreserve3 modemst2 ocdt engineering_cdt ssd ddr secdata oplusreserve2 devinfo abl_log apdp catefv metadata dip logfs ]

I believe the super partition is a new shared partition for system, vendor, and some others but I'm not sure which ones. I'm also not sure of the proper way to flash multiple images to the same partition.

I guess most of the other extra partitions can simply be left alone, but I'm not sure what to do with the images that are left over.

Any help is appreciated.
 
Last edited:

Top Liked Posts