[Nothing Phone 2] RacerOttavio97:
Hi guys, sorry to bother you. I got some problems during OTA update.

Basically I was stuck on 2.0.1a with Magisk Root, all good and fine. Then I decided to upgrade the phone.

So I did a "Complete Uninstall" on Magisk, it rebooted, and then I tried to do the OTA update, but it failed as soon as it starts downloading.

Searching on forums, I found the mistake. I didn't do the "Restore images" part, before fully uninstall Magisk. So what I tried is to take 2.0.1a stock boot image, and flash it on both boot_a and boot_b, reboot and still nothing.

Analyzing the logcat, the "update_engine" says clearly that there is a mismatch with hash on boot images:

02-01 17:09:20.987 2036 2036 E update_engine: [ERROR:verified_source_fd.cc(50)] Unable to open ECC source partition /dev/block/bootdevice/by-name/boot_b: Success (0)
02-01 17:09:19.943 166 166 E BATTERY_CHG: handle_message: adsp_to_kernel_log:key_info:pump:97,pump_en:0,ovp:1,wpc:1,fcc:2500,fv:4500,icl:500,ibus_ma:500,usb_sus:0,wls_sus:0,BattInit:1,chg_type:2,soc:96,soc_time:5,soc_pre:96,real_cap:4183000,htemp_charge:4100,plug_in:1,plugGpio:0,usbTemp:0,battTemp:0,2646:01,2654:32,2606:83,2708:0a,2952:0a,2658:5a,2707:0a,2b09:a3,f243:3a,f245:00,f246:00,8a44:00,8b44:00,
02-01 17:09:21.011 2036 2036 E fec : <2036> error: parse_avb_image: failed to find avb hashtree descriptor
02-01 17:09:20.988 2036 2036 E update_engine: [ERROR:partition_writer.cc(317)] The hash of the source data on disk for this operation doesn't match the expected value. This could mean that the delta update payload was targeted for another version, or that the source partition was modified after it was installed, for example, by mounting a filesystem.
02-01 17:09:21.011 2036 2036 E fec : <2036> error: fec_open: failed to parse avb image.
02-01 17:09:20.989 2036 2036 E update_engine: [ERROR:partition_writer.cc(322)] Expected: sha256|hex = 7CFAFE05E2B74CE21C6E814864BC78F19962B5B9E68FA65BCEF5CCFC8D2790A0
02-01 17:09:20.990 2036 2036 E update_engine: [ERROR:partition_writer.cc(325)] Calculated: sha256|hex = 2AB5704283CD35C7BF819049A8274198D1DC6C4BA72D74744731398C38BB281D
02-01 17:09:20.991 2036 2036 E update_engine: [ERROR:partition_writer.cc(336)] Operation source (offset:size) in blocks: 3:14,6680:2,7705:5,11742:1
02-01 17:09:20.993 2036 2036 E update_engine: [ERROR:partition_writer.cc(261)] source_fd != nullptr failed.
02-01 17:09:20.994 2036 2036 E update_engine: [ERROR:delta_performer.cc(844)] partition_writer_->PerformDiffOperation( operation, error, buffer_.data(), buffer_.size()) failed.
02-01 17:09:20.995 2036 2036 E update_engine: [ERROR:delta_performer.cc(199)] Failed to perform BROTLI_BSDIFF operation 272, which is the operation 49 in partition "boot"
02-01 17:09:20.996 2036 2036 E update_engine: [ERROR:download_action.cc(227)] Error ErrorCode::kDownloadStateInitializationError (20) in DeltaPerformer's Write method when processing the received payload -- Terminating processing
02-01 17:09:21.120 2036 2036 I update_engine: [INFO:delta_performer.cc(215)] Discarding 202 unused downloaded bytes

Tried to run OTA from #*#*628*#*#, same error

Tried to sideload OTA from recovery, mismatch

Tried to switch slots, but A Slot is in bootloop, only B Slot let me use the phone right now

I'd prefer to not lose data.

How can I get out of this situation, and OTA update till last update?

Thanks in advance, greetings from Italy