Hello,
I had the same problem on Mi 9T Pro (Redmi K20 Pro) - MIUI 12.5 (last stable : xiaomi.eu_multi_HMK20ProMI9TPro_V12.5.5.0.RFKCNXM_v12-11)
I wanted to duplicate Xiaomi Home app but this caused the restart of my phone and the cloned app didn't work.
Your tip solve the problem, thank you !