OS doesnt boot after changing TWRP

A couple of things to try, which have helped on Xperia XZ1 Compact;

  1. Follow the steps described in this post:
  1. If that doesn’t do the trick, maybe format the system partition too
  1. Last resort: when I was testing my custom L4M builds, I got into a state where neither the ROM not TWRP would boot. Eventually, after much swearing, I resolved it be reinstalling stock ROM: see here for details

https://codeberg.org/petefoths-projects/unofficial-l4m-builds/issues/28#issuecomment-616961

If none of that works, then I’m fresh out of ideas :frowning: