Hi - I see this thread was originally written 2yrs ago, but I currently have this 'screen dimming in app' problem with my P10 Plus. It started in the last couple of months and may be related to a software update - I'm currently on EMUI 9.1.0.
The Developer option on this thread unfortunately...