MIUI

Device MIUI Android
K40 12.5.19 11

miflash unlock

http://www.miui.com/unlock/index.html

设置——更多设置——开发者选项——设备解锁状态

Down+Power:

fastboot oem edl
fastboot oem edl-reboot

Clear partions & /data: https://zhuanlan.zhihu.com/p/413293727
ROMs: https://xiaomirom.com/series/
Fix boot hang: https://topjohnwu.github.io/Magisk/install.html # .apk->.zip; twrp->install