OnePlus decided to halt the previous update for the OnePlus 7 Pro. Just as many suspected, this meant that a new version was going to be sent OTA in the near future. OxygenOS 9.5.10 for the smartphone is available to download right now, so if you need to restore your boot.img file then you can grab it right here.
Android used to keep things including the kernel and recovery separated via partitions. Sadly, that isn’t the case anymore which puts the recovery software directly into the device’s kernel. If you have installed TWRP or gained root access to the OnePlus 7 Pro then you have modified this boot.img file in order to do so.
This is great until you need to install a new OTA as it will detect the changes you have made.
So, if you are currently on OxygenOS 9.5.10 and are wanting to upgrade to the next version then you need to have an unmodified kernel file (aka the boot.img file). You can easily fix this by downloading the kernel for your version of Oxygen OS and then flashing it to the smartphone while it is in Fastboot Mode.
Download OxygenOS 9.5.10 Boot.img for the OnePlus 7 Pro
Once you have that downloaded, you’re going to want to rename it to something like “boot.img” (without quotation marks) for simplicity. From there, move or copy that file to the same folder as your ADB and Fastboot tools. Now you can boot the OnePlus 7 into Fastboot Mode and open a Command Prompt, Windows PowerShell, or a Terminal in that same folder.
fastboot flash boot boot.img
Connect the OnePlus 7 Pro to the PC and then execute the listed command above. That will overwrite your currently modified kernel (aka the boot image) and then replace it with the stock version. Now, presuming you haven’t made any other root modifications to the device, you can download that OTA update and install it.
If you have made other modifications (actual changes to the system, not apps that just need root access), then you’ll want to undo those changes before restoring the OxygenOS 9.5.10 kernel boot.img to the OnePlus 7 Pro.