What is a virtual light sensor?

How it works: Virtual light sensor uses the phone's front camera to obtain the current ambient brightness. The detection mechanism is to turn on the auto-brightness function, lock and then unlock it, acquire the brightness once and update the screen brightness. Switching the auto-brightness button also adjusts the screen brightness once, instead of adjusting the screen brightness in real time.

Detection method: turn on the auto-brightness function, block the front camera area, lock the screen and then unlock it to see if the screen will dim; then unblock the front camera area, lock the screen and then unlock it to see if the screen will brighten.