This version was posted by BSG on a Russian Telegram group for the Xiaomi Mi8. I got his permission to share it here.
This should also work (with fewer issues) on devices like the Pocophone.
(Thanks to @fahmi182 for bringing this up to my attention.)
сделал.. этот вариант точно рабочий, без черного экрана и без чб фото при первом старте.
this version is exactly working, without a black screen and without a photo at the first start.