Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To activate the screen time off feature in Android using AOSP customization, follow these steps:

  1. Open the AOSP source code in your preferred IDE.

  2. Navigate to the device configuration file for the device you want to customize. This file can typically be found in /device/<manufacturer>/<device>/.

  3. Add the following line to the device configuration file:

    <bool name="config_supportAutoScreenOff">true</bool>
    
  4. Save the changes and close the file.

  5. Build and deploy the customized Android firmware to your device.

  6. Navigate to the Settings app on your device.

  7. Tap on the Display option.

  8. Look for an option labeled "Auto screen off" or "Screen timeout".

  9. Set the duration for the screen timeout as desired.

  10. Save the changes and exit the Settings app.

Now, the screen will automatically turn off after the specified duration of inactivity.