Foreign technology media Android Authority dug into the recently released Android 15 Developer Preview 2 code and discovered a hidden feature: detecting whether the user is using the phone and automatically turning off the screen if it is not in use.
There is a built-in timeout setting option in the Android system. By default, the phone automatically turns off the screen when it is not used for 30 seconds, and then automatically locks the screen after 5 seconds.
Users can make changes by opening Settings > Display > Screen Timeout, Settings > Security & Privacy > Device Unlock > Screen Lock Settings.
Google also introduced a “screen attention” feature on Pixel 4 phones that keeps the screen in use when the user is unable to interact.
The Android 15 DP2 update code as follows:
Code that references these strings belongs to classes under the com.google .* namespace. This indicates that the new adaptive timeout function is not one of the features of the open source version of Android (AOSP), but a new Android 15 feature developed by Google for Pixel devices.
In the code characters it reads: “Automatically turn off the screen early when you are not using the device.” However, the implementation method is not mentioned in the code. It may be to use the front camera to determine whether the user is currently using a phone.