Tasker
Tasker ($3.49 one-time, by Pent) is the most capable Android automation app and can replicate ambient-light-based dark mode switching through a custom profile. Setting it up requires building a multi-step task: listen on the light sensor, compare the reading to a threshold, then conditionally invoke the dark mode toggle. Each Android update can break this profile, and edge cases (pocket coverage, Battery Saver mode) require additional logic.
Adaptive Theme provides the same outcome as a purpose-built free app. Sensor sampling, obstruction detection, Battery Saver integration, and lux threshold configuration are all included. Users who already maintain a large Tasker profile can add this feature there to consolidate their automations, but users who only need this one behavior get a simpler, zero-maintenance path with Adaptive Theme.
Android's Built-in Schedule
Every Android device running Android 10 or later includes a dark mode schedule: set it to flip at sunset/sunrise or at fixed times. Manufacturer skins (Samsung One UI, Xiaomi MIUI) also expose the same controls. This feature costs nothing and covers the common case well.
Adaptive Theme addresses the gap left by the schedule: when the ambient conditions differ from the clock, the schedule is wrong. The two approaches are compatible: Adaptive Theme's Night Lock option holds dark mode during a fixed time window, combining sensor-based detection with a schedule override.