yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] velis74:
Before I implement the accessibility service, there's a good chance you have a device that doesn't like adjusting brightness on lock screen. Try activating the "Optional update system brightness" - that one is becoming the preferred method of updating screen brightness on the newer devices. But if that one doesn't work, you're SOL for now.
[Android Apps and Games] noone100:
I do not have a lock screen enabled. Right after the system has been started, the launcher is shown and there is no auto brightness entry in the notification area. The setting "Optional update system brightness" was already enabled. After turning the screen off and on again, the notification area shows the current brightness settings. May I work around this issue by using auto brightness' tasker functionality?
[Android Apps and Games] kam333:
I use the tasker plugin for a similar reason, here's how the profile looks (ignore the the 1st 4 tasks).

I use face id, so as soon as I lift the phone Velis kicks in to my preferred brightnessView attachment 4962379
[Android Apps and Games] velis74:
It seems that [MENTION=807267]kam333[/MENTION] has the solution for you.

Explain: VAB already tries to register itself as a start-on-boot service. Why your device won't start it, I don't know. The only reason I have seen Android do that for was if the app kept crashing. You mention no such thing. TBH, Tasker should not be any different to VAB in this respect. Except maybe that VAB by now supports a few Android versions too little. So maybe that is the culprit on your device. I really should start working on that crashing wizard.
[Android Apps and Games] _mysiak_:
Accessibility service first please. :D
[Android Apps and Games] velis74:
It matters not: I can't release a new version before I get the app working. I call a crashing first-time wizard a pretty important part of definition of a working app... :angel:
[Android Apps and Games] _mysiak_:
Ok ok, you're the boss. [emoji16]

Just teasing of course, obviously you know the best what needs to be done and in which order.
[Android Apps and Games] noone100:
Velis, how can the background service be crashed, if turning off and on triggers automatic brightness? Another service?

Does the service write some log output, which could viewed using ADB?
[Android Apps and Games] velis74:
Well, it does. There's even a setting specifying how much should be logged, accessible from the developer options dialog.
[Android Apps and Games] noone100:
The service does not crash as I can see in the log files, it just takes a very long time to start after the system has been startet. After that it works like a charm. So false alarm. Thanks für your support!
[Android Apps and Games] :
:eek:
[Android Apps and Games] lucfig:
Hi,

I just found this app. I was a user of lux auto brightness but it is not working anymore not being developed.

So far, I'm impressed, congratulations. Everything working in OnePlus 7T running Android 10.

I have one question, if you don't mind. Is it possible to, instead of creating a notification with a slider, monitoring for changes in the system built in brightness slider?

System updates the following system settings when changing the slider:

screen_auto_brightness_adj
screen_brightness

Velis could read the new brightness set and adjust the curve accordingly.

What do you think?

Best regards,

Enviado de meu HD1903 usando o Tapatalk
[Android Apps and Games] :
Don't think VAB will ever get updated again
[Android Apps and Games] toshiuser:
Problem with new Poco F2 Pro

I am using Velis Auto Brightness on all of my phones since 2014 and this is the best auto brightness solution by far.

However, with my new Poco F2 Pro there is a problem. The brightness range managed by Velis Auto Brightness does not match the phone's range, i.e. 100% on VAB only corresponds to around 35% on the phone. The automatic control works fine, but because of the problem the brightness is always too dim. I tried every setting combination (VAB & phone) without success.

Is there maybe a workaround to "enlarge the range" controlled by VAB? I already tried to use numbers greater than 255 in the config, but this makes no difference.

Thank you very much, Gregor

Edit: Using another app, I found that when I turn the phone to max brightness, the screen brightness is actually 2047 digits. However, the App only controls up to 255 digits. That's why it's always too dim.

Poco obviously implemented something non-standard. An App update to cope with that could be possible, though. It would be absolutely fantastic to have such a workaround.
[Android Apps and Games] vleutmans:
Hi there,

I notice a side effect on my Umidigi X phone.

As soon as I charge the phone, it interferes with Velis auto brightness in that the screen lights up to 50% in sync with charging indicator lighting up. I notice at low light condition. If I manually block the charging indicator light, that has no effect.

Anybody else have this issue?

Br. Michel
[Android Apps and Games] lucfig:
Thanks.

I ended up using tasker to fix my auto brightness issues. Based on velis AMOLED preset.

Enviado de meu HD1903 usando o Tapatalk
[Android Apps and Games] velis74:
I while ago I posted an update with solution to your problem. The file is downloadable from google drive.

Edit: you will find a few new settings, among them also the setting for maximum brightness levels.
[Android Apps and Games] velis74:
This issue popped up a long time ago with a different phone too. Not sure which one it was any more, I think I even had it :)

Anyway, the victims ended up turning off the charging led in android settings in order to eliminate the issue.
[Android Apps and Games] toshiuser:
Thank you very much. I was so happy and tried the linked app right away.

There are some weird things happening, though.

1. Using the provided alpha version:

This does not work correctly on my new Poco F2 Pro. The light sensor reading doesn't update. It's stuck at a random value and doesn't change. I set all permissions, deactivated all energy saving functions, used my usual App settings (and since it was not working, tried all different combinations).

What's working though, is the new max brightness setting (I set it to 2047). I can manually set the brightness via the graph screen by swiping up and down the y axis and the brightness is changed correctly by the App.

2. Using the Play Store version after de-installing the alpha version:

I remembered that the Play Store version worked fine reading the light sensor and I wanted to try that again. So, I de-installed alpha and installed the Play Store version.

And here it becomes weird: Now, the Play Store version was able to control the brightness from Zero to Max just fine. It was no longer too dim. To me it seems that the changes to the max brightness setting made by alpha somehow "survived" the de-install. And I can confirm that the Play Store version correctly updates the light sensor reading.

I got rid off the annoying screen overlay notification by using the App called "Auto Notification".

I thought, wow, now everything seems to work. Well, to some degree, but not entirely.

3. Lockscreen and some pages within Android's system settings menu are too dim:

Turning on the display without unlocking, shows the lockscreen with incorrect brightness. It changes the brightness somehow when I change the surrounding light, but it is always too dim. To me it seems that the lockscreen still uses the incorrect max brightness setting.

And another very weird observation:

Going into Android settings, everything seems fine. However, selecting a sub-menu (e.g. Apps), again dims the screen brightness in that sub-menu. Going back to the main menu changes the brightness back to the correct value. This can be repeated back and forth. This is true for many sub-menus but weirdly enough there are some sub-menus that show the correct brightness.

Conclusion:

I don't know if 3 is because of a weird state after installing the alpha version, removing it (probably not entirely) and installing the Play Store version. Or whether it is because of Xiaomi's implementation of their MIUI-Skin.

To find out, it would be great to have the working light sensor reading algorithm from the Play Store Version incorporated into the alpha version.

I do not know, if you are willing to do that, but it would be very much appreciated. And I would do my best as a tester.

Thank you again,

Gregor
[Android Apps and Games] yule dee:
installed this and got the auto brightness back,thanks to the developer.
[Android Apps and Games] velis74:
Errrr

That's some serious mess you got there. I must say I find it REALLY strange that uninstall should not remove the entire app since the app only uses standard settings API for storage of its operating parameters. An uninstall should clear it completely.

This sounds like a dirty ROM upgrade. Also, did you try rebooting your phone?
[Android Apps and Games] toshiuser:
Yes, I did a reboot, but things remain as described before. Very strange.

Also cleared cache and data with no effect.
[Android Apps and Games] redride:
My little report:

* Redmi K20 Pro with Chinese MIUI 12 (stable) rom

* VAB from PlayStore: work fine, but display brightness is limited to 255 gradations (the only strange behavior - I have to select "update system brightness" for AB to work)

* Alpha version of VAB from this thread: automatic brightness does not work and strangely there is no taskbar interactive notification.

Xiaomi/Redmi native automatic brightness is trash, so Velis74 - thank you for your efforts and I will be waiting patiently for new versions of you app.
[Android Apps and Games] velis74:
I am thinking I have been leaving the app gathering dust for a bit too long. With fear that it may turn out same as end of last year I say that maybe, just maybe, I will go at it again in the next month. Hopefully it's not going to take too much effort to get it workable again so as to leave it in unusable state again.
[Android Apps and Games] :
I really don't think it needs one as well people are lazy gits when it comes to reading. A few indicators and the option to save presets to sdcard would be nice with import feature.
[Android Apps and Games] lou2s:
My curve has been always like this since the first release, only start increasing brightness when it is under the sun. With 10% threshold and 500ms smoothness. Edited from Amoled dim Preset. Thanks man I hv been using it since your first release and I love it. I used lux and custom auto brightness b4 so I know what I m expecting. Sincerely the previous version was a dream to me...
[Android Apps and Games] siggey:
Italian translation send.
[Android Apps and Games] Christiancs1969:
:D

s2 RR 309 dori
[Android Apps and Games] velis74:
Choosing a preset or profile doesn't refresh graph bug confirmed. Will fix asap.
[Android Apps and Games] qiguai:
"System handler" setting confused me. E.g. you turn it on and the description says it's off.

Took me a while to understand that you are referring to two different handlers as "system handler".
[Android Apps and Games] velis74:
OK, log analyzed:

You have something installed that kills all processes when you disconnect power.

This results in the following actions for VAB:

1. Service is restarted shortly after that

2. Service enables the sensors and keeps them for a bit over 30 seconds

You must have one hell of an optimized custom ROM + kernel for one service startup and 30 seconds of sensor activation (btw, not one sample gets to the service) to waste >50% of juice for the 8 hours during which phone is not used.

Anyway, I will add some more code to prevent sensors start when that's not necessary + I found a fix for night-time service restarts and minimum sensor radings in such cases. Both + italian support will be uploaded later. Need to get some computer time... Kids playing games all the time :)
[Android Apps and Games] Christiancs1969:
A few tweaks:D

s2 RR 309 dori
[Android Apps and Games] velis74:
1.10.35 (7.10.2012) Uploaded

StartSensors checks for screen off - eliminates sensor time when screen is off

Save current sensor value in case of service shutdown - load it when service restarts

Change System handler text to "Disable system handler". Previous meaning was just the opposite

Choosing a preset or profile now refreshes graph again

Supported language: italiano

Edit: Aarrggghhhh! Jut had a service restart with minimum brightness even though everything looks ok. Seems like that issue isn't fixed :( Debugging again since it's quite repeatable.

Edit 2: Fixed, 1.10.36 uploaded - sorry about that, I got overconfident. Will test more in the future.
[Android Apps and Games] Christiancs1969:
Looking good:D:D:D:D

s2 RR 309 dori
[Android Apps and Games] :
Found the brightness sensitivaty percentage in setting got it working beautifully now. I really must remember to go into setting every now and then...
[Android Apps and Games] cukierkas:
Hello dear developer. Thanks for your nice creation.

Some questions if you allow me:

1. How it works on LCD screen? Will it use smaller brightness values than stock 20 or just add some dim filter?

2. What about brightness leveling before turning off the screen? I mean situation like this: you got 30 seconds of screen time before its turns off. When 10 seconds left till turning off - system dims the screen. When using 3rd app like CUSTOM AUTOBRIGHTNESS or others in lower light situation system is not dimming the current brightness level, but dims its own brightness level, so in reality we get brighter screen at this situation :mad:

Hope you did understand my thoughts. Thanks your answers. If it was already discussed- please guide me to the answer.

Good luck

Sent from my GT-I9003
[Android Apps and Games] velis74:
Wrote a stupid manual. Probably full of typos too :D
[Android Apps and Games] velis74:
It should work just fine. The app sets backlight and it uses full brightness range your phone provides. No screen filters or some such (there's no code for that). It's best if you just install and test how it does.

The dimming before screen off is still left to system. The app doesn't try to counter that so you should be fine. Again, try it out and please let me know if it works as you wish or not. Feedback is very important in this stage of app development, especially for a different phone.
[Android Apps and Games] :
Can confirm that the dimming before screen off issue also apears on my phone as it just turns straight off without warning.
[Android Apps and Games] velis74:
On 1.10.36?
[Android Apps and Games] Christiancs1969:
All working good here:D

s2 RR 309 dori
[Android Apps and Games] :
Yes.
[Android Apps and Games] cukierkas:
The app works fine, i like the way of making levels. But screen dimming before screen off I'd left for system, not for app. That's pity. Hope you'll sort it out in future. Juice defender ultimate works at this point better. Good luck in developing.

Sent from my GT-I9003
[Android Apps and Games] velis74:
? That IS handled by the system...
[Android Apps and Games] _mysiak_:
Hi velis74, hope you're doing fine in these challenging times. Is there any chance for a test build to try on our phones, which would help you with debugging for example? I still haven't given up hope for a fullscreen overlay (to use DC dimming on OLED displays) with your wonderful app. :)
[Android Apps and Games] velis74:
I have actually started work on the app again. It's going to take me some time. I do have to migrate it to Android X, then the accessibility dimming, so I guess your wish is going to be one of the first catered for. But the list is long and this week has seen some insane moon phase or something: I have been in meetings / issue solving all week, having done ZERO work :p

I hope the following weeks bring more time to cater to development. It sure is time this app sees some love, especially with all the encouragement you guys give me even after so many years of no-publish.
[Android Apps and Games] _mysiak_:
Oh, please do not consider my feature suggestion as an attempt to get higher in the list, it was meant purely as a "kind reminder", just in case you forgot. [emoji846] Whenever it gets implemented, I'll be happy.

In each case, thank you that you took the time to reply, it's always nice to see developers which stay in contact with their users/customers.

All the best.
[Android Apps and Games] ivanvi:
Thank you velis74 for the efforts you put into this app, it's nice to hear that it might be updated too. I tried it on my Redmi Note 8 and it works very well while I'm in a house and lux readings are low. The problem I have with the app is when I'm outside, the screen is not readable because brightness is too low. I have set the app to use system brightness boost when light is more than 150 lux, since that's what I basically need, I'm fine with system's auto brightness on higher values. I can see that VAB switched to system's auto brightness (the A letter is enabled), but it does not really work and behaves like it's still disabled. When I go back to the house, the A letter is disabled again and it works well. So my problem is only when I try to use my phone outside. Maybe this is related somehow to MIUI. I tried to disable MIUI optimizations and some other things in settings but it's still the same.

Does anyone know if there is something that I missed in the settings, or the app is just too outdated to support this phone?
[Android Apps and Games] velis74:
You could also disable "use device's boost brightness". Then VAB would not turn off for bright outside.
[Android Apps and Games] ivanvi:
Thank you for your answer. After you answered I have installed VAB again to give it another try but now it behaves completely different than before :confused: .

When I tried to use it before, VAB was not able to increase brightness enough, for the higher lux values. For example, brightness=255 (100%) reached maybe 1/5 of possible screen brightness on my phone and could not go over that, so that's why I tried to use "boost" option in the first place - and as I reported previously, it didn't work.

Now I have installed it again, cleared app's data (which I also did many times before) and it seems like now it works on the sunlight and without "boost" option. It seems like max brightness=255 now represents real device's maximum which I guess should be intended behavior. :confused:

I will try to set and test VAB again for some time on my device and will write an update if I find some meaningful explanation. There is also a chance that I will be able to test is on another phone (also Redmi Note 8) and to compare its behavior.
[Android Apps and Games] velis74:
I have received numerous reports of such behaviour for the pre-alpha in the google drive.

As a result of my recent development I now have the app ported to Android X and almost working, so I'm hoping that using the latest APIs is going to get rid of issues like this. I will soon be able to upload the next preview of the app for you to test.
[Android Apps and Games] ivanvi:
That would be great. Should I join some group in order to be able to test it?
[Android Apps and Games] jmh2002:
[MENTION=2424510]velis74[/MENTION]

Hi and thank you for contuining to support your fantastic app. It works so well that normally I don't find it necessary to keep the brightness slider displayed in the notification drawer at all.

I realise that I can choose not to display this in the settings and that's normally what I do. But, for those occasions when it is needed it would also be nice if the brightness slider could be be toggled by an android shortcut - either to toggle on/off the notification, or to show/hide a floating brightness slider, whichever you feel is most appropriate.

Do you think this would be possible to add please?

THANKS :)
[Android Apps and Games] velis74:
I don't think so, just join the beta group in the play store. Edit: until I'm suire it's a viable product, I will be "publishing" via a download anyway. But hold your horses, please: I've just begun work and I'm not expecting to get it working for a bit yet.

The widget would certainly be easier to do, but it's quite a rare request. Perhaps if I ever develop something to stuff any setting into widgets...
[Android Apps and Games] velis74:
Update: WOW, seems I'm committed this time :angel: Only one more task before I can publish the first preview. Should be some time next week. :good:
[Android Apps and Games] wonsky21:
Is there any newer version, than from september 2017?
[Android Apps and Games] velis74:
Update: My phone won't work with any of the "old" methods, so I need to implement the Accessibility service thingy too. Struggling a bit, but will get there.

Edit: WOW, minutes later, I got it working for the first time. Now to wrap it up, shouldn't be long now :)
[Android Apps and Games] :
looking forward :)
[Android Apps and Games] velis74:
Just a bit more patience: I'm figuring out how to do the UX for accessibility service. I'd hate to release something in alpha that didn't provide a way of activating the service that's at least somewhat palatable. Right now the app opens the service settings screen about 5 times without any prior warning :)

Sorry for the delays, my day job is getting the better of me constantly. We're having a particularly nasty support volume spell lately.

But there's some joyful news too: my phone has killed VAB only one time since I made the accessibility service. It seems that's the "proper" way of making an "undying" service in Android. So there's going to be a huge side-benefit of this ;)
[Android Apps and Games] :
Thanks Velis, I'm sure your app will be a big hit when it's released. Because my current auto brightness is crap and I always use your app in all my phones ?
[Android Apps and Games] THRUSTer:
I've been using it for years, but after the Android 11 update something in it is causing the entire phone to hang sometimes.

Obviously a third party app shouldn't be able to bring down the entire OS, so there's some issues with Android 11, but I have to force reboot sometimes and there's likely a workaround. I've tried looking at the logcat (sometimes it'll recover after a few seconds), but I couldn't find any useful information.

The freezes are triggered mostly randomly. But a pattern I noticed is that sometimes when you toggle it off (which I do sometimes from the notification shade to temporarily change brightness), that can trigger a freeze. The entire phone screen freezes and, if it lasts for more than a few seconds, any audio playing starts to stutter and then die, so it's like the entire kernel is frozen.

It's definitely Velis because it never occurs if I've killed the app.
[Android Apps and Games] velis74:
And so, here it (finally) is

OK, I think I finally have something presentable. Any testing / feedback very much appreciated. And thanks to all for continued support to this admittedly very niche app ;)

4.70.249 (8.11.2020)

Fix some reported crashes

Android 6 permissions

Android up to 11 compatibility

Accessibility service (much more stable operation & compatibility)

Updated Japanese translations thanks to Masaki

Removed custom sensors (SGS 2)

The app link on Google drive.
[Android Apps and Games] jmh2002:
THANKS! for your continued work on this project.

Before I start testing v4.70.249 (8.11.2020) I just wanted to add some small general feedback.

On my Samsung Galaxy S5 Duos with LineageOS 17.1 / Android 10 / Magisk Root the previous Google Drive version posted earlier in the thread seemed buggy for me.

I reinstalled v4.65.234 from the play store and it seems to be working perfectly without any issues.

Such a great app.

THANKS again :)
[Android Apps and Games] wonsky21:
I have this popup, when browsing with Brave browser (I assume it appears when browsing with any browser).
[Android Apps and Games] velis74:
Add it to excluded apps list?
[Android Apps and Games] wonsky21:
Yeah, I tried that, but it doesn't remember excluded apps...
[Android Apps and Games] kam333:
Good to see an update, I've found a bug, the app crashes if I long press a profile tile.

Using a Mate 20 Pro, EMUI/ Android 10

If you need more info let me know ??