by Pete Glass
Dims the screen brightness below the minimum value allowed by android by enabling the "Screen Filter" app on screen on/off when the ambient light is less than or equal to 1 lux (value can be changed by modifying the "ambient light" object in the flow if desired). Flow also terminates the "Screen Filter" app if the ambient light is greater than 1 lux to save battery life and to free the notification area (requires root for this feature but the vlock can be removed if desired). For use in very dark environments. Flow can be used in conjunction with my "Auto Screen Brightness" flow. The filter transparency can also be changed by modifying the "plugin action" object in the flow after the "Screen Filter" app has been installed (it may also be necessary to set this value in the "Screen Filter" app to ensure the correct value is displayed in the notification area at all times). WARNING: Do not set the transparency value below 20 in the "plugin action" object or you may not see anything on your screen which will make it very difficult to disable the "Screen filter" or use your device afterwards. Also, when installing packages the "install" button may not work if the screen filter is enabled due to the "tapjacking protection" built into android that disables this function while the screen is obscured by any overlay so the night screen filter may need to be disabled in order to install and update packages.
The "Screen Filter" application must be installed separately and is available for free from the Google Play Store.
Flow can be used with a widget if desired. Custom icons for automate widgets are available at www.iconspedia.com assuming you are using an automate flow beginnings shortcut style widget and have a custom android launcher like GoLauncher or an app like Icon Changer from the app store that allows you to change shortcut icons.
Note: If you receive an error while running this flow, update the filter transparency percent value in the "plugin-action" block (the last block) to reset it.
* * * Created by Pete Glass * * *
*Credit to Automate community contributors "If Chen" and "Dhelonious Funk" for their screen filter flows that inspired this one.*
Rate and review within the app in the Community section.