I recently experienced an issue with my Xiaomi 13 after rooting it with Magisk and forgetting to install it to a non-active slot during a system update. After restarting my device in recovery mode and re-flashing the patch image, I noticed that every time I restarted my phone, it would not boot directly into the system, instead showing the message 'Your device is corrupt. It can't be trusted and may not work properly...' and requiring me to press the power button to enter the system. I tried re-flashing an image package, but the issue persisted. I'm wondering if there's a way to fix this error and regain a normal boot process without having to press the power button.