As far as I know, Android has an Extra Dim feature to set the screen brightness. Does any one know how set or enable/disable the Extra Dim feature programmatically in Android?
I use this code to set the normal brightness values (0-255), but I don't know how to manage the Extra Dim feature:
android.provider.Settings.System.putInt(MyContext.getContentResolver(), android.provider.Settings.System.SCREEN_BRIGHTNESS, Value);
As of now it seems impossible without first aquiring access to secure settings using ADB
The "reduce_bright_colors_activated" secure setting can then be changed.
I also had the idea to create an app that interacts with that setting however requiring (most) users to first use ADB is something that won't work. I don't think this should be a secure setting but unfortunately it is.
Source (Tasker)