Appium 1.20 can't unlock Android devices with EMUI and MIIUI

I’m launching tests on real devices

For locked Huawei PS 2021 with Android 10 and EMUI 10.1.1 session will start but screen will be unlocked not completely and additional swipe up is required to unlock it totally.

For locked Redmi Note 9 with Android 10 and MIUI 12.0.5 session won’t be launched at all with 500 error, see logs attached.

Logs.txt (5.1 KB)