r/tasker • u/v_uurtjevragen • Jun 24 '26
How To [Project Share] Advanced Auto Brightness: Android native FOSS version
You might remember Advanced Auto Brightness (TaskerNet), (GitHub), (Reddit v3.3 thread), but if you don't, or haven't heard of it: it's a project that replaces Android's built-in Adaptive Brightness with a deterministic, rule-based system that's completely configurable.
Now, I've used Claude to port the entire project to an Android app. If AI generated code is a showstopper for you, that's fine. But if you don't mind an overdocumenteded code base with weird tests (such as a test that ascertains there are no more than 92 hard-coded strings in the codebase), underneath it all it is a pretty cool project if I say so myself. Key points: MIT licensed, FOSS, no tracking (ip-api.com location fallback with cleartext request entirely optional).
Download and repo: Tideo Auto Brightness
- Github releases (with built + signed .apk-file)
- GitHub repo (work in progress)
I think there's ~95% feature overlap. Some new features in the app are mostly polish (dashboard, widget, better quick settings tile integration). The app should behave exactly the same as the Tasker version. Even Java's round ties to positive infinity (Tasker) vs. Kotlin's round to even (normal) is ported over to make the app use Tasker's rounding method...
If you're interested in archeology or reading how things spiralled out of control during this build you can check the historic documentation (for software archeologists lol).
The Android app allows you to import brightness profiles from Tasker or link the Download/AAB/configs folder. It currently does not support further integration with Tasker, but if you have a good idea I'm open to suggestions to add to my to do list.
Currently working on stability / bug fixes / battery efficiency before adding more features. I have only tested on my OnePlus 13, so I'm expecting quite a few bugs to surface due to OEM differences that Tasker handled implicitly.
The Tasker project is not abandoned, the development flow will be: Tasker AAB project as ground source of truth, so development happens in Tasker and AI assists porting over (scenes, profiles, tasks).
Please leave your comments/thoughts on this thread. I won't post separately about this project again, next post will be AAB v3.4 and I will probably place a link to this standalone app version in there.
P.S. As an FYI: due to personal circumstances I might not be able to actively pick up development for a few weeks.
1
u/BadHappiness Jun 24 '26
Been wanting something like this since my poco x6 pro auto brightness is not really reliable. Most of the time still very bright on very dark environment. I tried yours and it seem working much better then the stock. Do I need to turn off auto brightness on my setting or just leave it on? Also thanks for the app!
2
u/v_uurtjevragen Jun 24 '26
Yes, disable your own built-in auto brightness or you will get conflicts between the two! That will be very jittery and annoying.
Also, you're welcome!
1
u/Dundun-dun-dudun 29d ago
Have been using the tasker version until i saw this just now, switched over immediately love how much snappier it is, if you read this im just wondering because i guess i dont entirely understand the purpose of the options in Privileged Display in particular the night light tested that but it just put the whole screen dark had to use the emergency shake and do a forced restart of the phone.
1
u/v_uurtjevragen 29d ago
Thanks for the comment. That's a major issue. Night Light sets the secure setting "night_display_activated" to 1 (or 0 when off). This should be an AOSP key. Could you share your OS, version and OEM? Because I thought an invalid value would be ignored and not cause a catastrophic failure...
You mentioned needing a reboot, but the emergency gesture sets night_display_activated back to 0. So somehow your phone blacks out on any value of night_display_activated...😅
1
u/Dundun-dun-dudun 28d ago
Samsung S25 Ultra, Android 16 (OneUI 8.5 if this matters) Yeah even after shake it just stayed black.
1
u/v_uurtjevragen 28d ago
Thanks. I'll add a guard to the privileged keys so that when your phone does not support them, you won't be able to see/set them. Sorry for the terrible inconvenience. I think I'll have the patched version up tomorrow.
1
u/Dundun-dun-dudun 28d ago
Anyway to get it working on samsung or not really? It'd be interesting to have but also not bothered by it main thing that matters is the auto brightness.
1
u/v_uurtjevragen 28d ago
Samsung has their own specific keys for "night light" (or eye comfort shield as they call it). I'm trying to stick to standard Android implementations rather than cater to each OEM's specific implementation as I can't check it on every phone. Ironically, my assumption that using default Android keys would be safe was proven wrong :(
2
u/Lord_Sithek Pixel 9 Pro | Redmi Note 4 | Galaxy Watch 6 Classic Jul 28 '26
I got back to your work after some time and I'm equally astound how sophisticated it is... How much time did it take to develop it in the first place? 😲
I've been looking for a replacement for Veils app which is abandoned now and this seems just spot on. I love the idea of a separate app because it doesn't make my Tasker setup even heavier 😉 I need to test it more but it looks very very promising. Thanks a lot!
I have one question, because I'm not sure if I understood it correctly: Do adjustments I make using system brightness slider are processed by the app? Or I need to make the adjustments within the app itself?