Actually, I had this bug by accident. Mi Mix 2S doesn't have AOD, I was just experimenting with it to make it work on my device, so I had an AOD system setting enabled, that's why this code was executing :) Gxzw sensor is an in-screen fingerprint sensor, this device also doesn't have that.