The "Change brightness" action doesn't work correctly because the minimum brightness or maximum brightness is not enough
The root cause
According to Android documentation, the "screen_brightness" Android setting must be an integer value between 0 - 255
This can be tested using ADB:
adb shell settings put system screen_brightness 0
adb shell settings put system screen_brightness 1
adb shell settings put system screen_brightness 25
adb shell settings put system screen_brightness 150
adb shell settings put system screen_brightness 255
The Android documentation is pretty easy and clear, but the documentation is not respected, and in reality, the screen_brightness range is different between Android versions and different manufacturers.
And after some feedback from users and debug, there are some exceptions and complications that are not specified anywhere:
a popup to calibrate min/max value by manually changing the brightness from notification bar to lowest value, then to highest value. or enter the min/max manually
Issue description
The "Change brightness" action doesn't work correctly because the minimum brightness or maximum brightness is not enough
The root cause
According to Android documentation, the "screen_brightness" Android setting must be an integer value between 0 - 255
This can be tested using ADB:
The Android documentation is pretty easy and clear, but the documentation is not respected, and in reality, the screen_brightness range is different between Android versions and different manufacturers.
And after some feedback from users and debug, there are some exceptions and complications that are not specified anywhere: