This application will provide handling of K30 Ultra popup camera, whenever the xiaomi-motor command is available.
I use it with CAOS GSI (https://github.com/eremitein/treble-patches/wiki/CAOS-Project) and SELinux permissive mode. Probably it will work with other Xiaomi models compatible with xiaomi-motor, but with SELinux disabled.
Original idea: