yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Javs2010:
For some reason my auto brightness stops working I always have it on and sometimes turn my brightness down to 0 manually from the persistent notification and after I reset it it doesn't work. I have to mess around with the notification. Sometimes turning it on or off fixes it
[Android Apps and Games] velis74:
Please use some punctuation. I can't discern whether you're talking about one issue or three.
[Android Apps and Games] Javs2010:
Nvm. I think I fixed it now by messing around with it.
[Android Apps and Games] adamhj:
Hello, this app runs perfect on my phone for days. But suddenly stopped work today, after I run a novel app which has internal brightness adjustment. After that, this app does not work any more, even after I reboot my device. It seems that the sensor, and the app brightness adjustment logic is still running, but the app has totally lost control of screen brightness. The screen brightness does not change at all, even when I'm dragging the brightness bar in the graph. Tried reinstall, not work. Is there anything I can do to fix this?

My device is of Android 6.01

Edit: I found that if I enable the "Optional update system brightness setting", the auto brightness adjustment works. But I'm sure it works without this option on before the problem comes out
[Android Apps and Games] velis74:
Are you sure you didn't revoke app's right for screen overlay during some other app's request for permissions dialog? This is a frequent cause of issues like yours on Android 6+. Though a reinstall usually clears that, so I'm not really sure what's happening there. Did you dirty flash maybe?
[Android Apps and Games] adamhj:
Wow, you are right. I did disable the permission for some apps that day, it seems that I have disabled VAB too. Re-enabling it fixed my problem. The uninstall/reinstall process is done via titanium backup, maybe it have kept the system setting, or I have made some mistake. Thank you for your help
[Android Apps and Games] Mario545:
Does this app really adjust screen brightness or does it just place an overlay so that the screen seems to be darker (but at the cost of reduced contrast)?

P.S. Does this work with CF.lumen? (adjusts color temperature)
[Android Apps and Games] velis74:
If does both. "Superdimming" functionality is the one you want for the "quasi" functionality. It's intended to make things darker when backlight cannot.

I think it should work OK with CF.lumen.
[Android Apps and Games] Mario545:
Nice, I didn't know apps can simply change the global brightness level.

Nice work! I really like the smooth transitions. Way better than Lollipop adaptive brightness.
[Android Apps and Games] balabu:
I noticed some misbehaviour of the notification panel with my setup (Note 4 / 6.0.1).

When

a) Velis id allowed to "draw over apps" and

b) Velis notification is hidden via Velis settings

c) no other notification is present

then the notification panel gets truncated. I.e. the panel is somehow not entirely expanded and only part of the notification panel is visible.

As soon as there is a notificaion present (either the one from Velis or any other notification from any other application) the notification dropdown is correctly rendered.

Also if I disable "draw over other apps" for Velis, the notification is rendered correctly in any case.
[Android Apps and Games] velis74:
I'm afraid theres not much I can do here: Android only allows setting screen brightness if you have a visible screen element. Either a full blown activity or an overlay which VAB uses. It seems that in your case the overlay causes some system malfunction or something which results in your observed glitch. Are you on a custom ROM and made a dirty flash?
[Android Apps and Games] balabu:
Thanks for your quick response. I am using the following custom SystemUI https://xdaforums.com/note-4/themes-apps/theme-customize-galaxy-note-4-n910f-t3017621 which is probably causing the notification dropdown glitch with Velis. For me it's OK as long as I have a notification everything looks good.

Excellent job by the way :good:
[Android Apps and Games] tcchuin:
Not sure if it's due to EMUI 5 or android nougat, but the word in the notification is not visible.(white on white)
[Android Apps and Games] velis74:
Probably my fault: I can't seem to figure out how to use system notification colours. Sometimes they work, sometimes they don't. I have a (very) long-standing bug open about this and I believe current implementation is third or fourth attempt :p
[Android Apps and Games] tcchuin:
not sure if this helps.

http://stackoverflow.com/questions/4867338/custom-notification-layouts-and-text-colors
[Android Apps and Games] Maeslin:
While a bit of an odd request, would it be possible to add the option of using an external (USB) camera or light sensor (the yocto-light seems like a possible candidate)? The Android unit I hope to use the software with has neither built-in light sensor nor camera but has a pair of USB HOST ports and supports external USB webcams without issue (as long as they support UVC, so afaik most of them these days).
[Android Apps and Games] velis74:
This is a very specific request. PM if you're serious about this.
[Android Apps and Games] krazekid7:
Any thoughts of updating the app to have a quick toggle in 7.0? Love the app, was just wondering!
[Android Apps and Games] velis74:
A "quick toggle" for what?
[Android Apps and Games] Nicknoxx:
Another odd request. I use Tasker to change from Amoled Dim at night to Amoled Bright in the day and due to the slightly complicated method I use in Tasker to decide when to switch, I sometimes get hopping from one profile to the other and back. Is it possible to make the profile change fade from one to another?

Thanks

Google Pixel 7.1.1
[Android Apps and Games] velis74:
I'd have to look. Not something that would be easy with current profiles implementation. No promises.
[Android Apps and Games] Nicknoxx:
Ok. Thanks.
[Android Apps and Games] Nippey:
Hello,

maybe I am blind, but I am desparately searching for a way to connect VAB with Llama.

In manual, I see references to control:

Automatic brightness / Brightness sensor / Proximity sensor / Change sensitivity / Smoothing time / Select profile (free)

But to do so, I need to send some intent from Llama.

I brought Tasker support hoping to unlock some help menu -- but no success.

I am only interested to switch profiles when getting into my car, so I have two profiles "dark" and "normal" two switch.

Thanks!
[Android Apps and Games] velis74:
I don't know how Llama works, but in my Locale, both conditions and settings are listed in their appropriate "add" menus. So just try to add a condition or a setting and choose it from "plugin" section.
[Android Apps and Games] sunsero:
In Llama you can select Locale Plugin as action. You'll be offered actions that are related to VAB.
[Android Apps and Games] Nippey:
Thanks for the hints!

I will buy locale and try it out.

BTW I expected to manually assemble an intent, e.g. something like:

com.velis.auto.brightness.ACTION_SET_PROFILE
value: "Dark"
[Android Apps and Games] velis74:
Not to promote any particular product, but I'd also look into Tasker. If I remember correctly, it had a huge number of built-in conditions and settings, much bigger than that of Locale.
[Android Apps and Games] sunsero:
It does work with Llama as described but you can check out the other options as well of course.
[Android Apps and Games] FlyingHorseGA:
[MENTION=2424510]velis74[/MENTION] I have a request about the slider control in the notification menu. The problem I face is that I have an additional brightness percentage added in settings, and the notification slider will not allow values below that percentage. There are times that I wish to turn the brightness down below the threshold. Is it possible to allow the slider to override these percentages without having to go into settings and disabling them? ;)
[Android Apps and Games] velis74:
Unfortunately that's not how Additional brightness settings work. Once you set them, they ALWAYS add the specified percentage. It's not that the notification slider won't allow it - it's that the setting adds the percentage on top of your chosen brightness.
[Android Apps and Games] FlyingHorseGA:
Oh I get what's going on and how it works and all, I'm just wondering if you could tweak the app to allow the notification slider to override the fixed percentages. Obviously not everyone would want that but for me and perhaps others it would be a nice feature, especially for those times where a quick but temporary adjustment is really called for. An example that happens to me all the time is when someone dims the lights for a presentation. Since my sight is shot all to hell I normally keep a fixed minimum of 25% which works well for me, but I don't work in the dark. When the lights go down I find myself scrambling to dim my tablet below that 25% so as not to be a disturbance to those around me. Besides isn't the whole purpose of the slider to allow us to make temporary adjustments for when the lighting situation doesn't quite fit the curve we set up? :confused:

In any event I hope you consider my request and I thank for taking the time to respond. :svetius:
[Android Apps and Games] popy2006:
Anyone have a suggestion for LG G4 (H815)?

Currently using "TFT bright" because "TFT dark" profile is to dark.

Would be nice i any H815 (LG G4) users can paster their settings.

thx

pOpY

---------- Post added at 10:53 AM ---------- Previous post was at 10:52 AM ----------

which settings/profile do you use?
[Android Apps and Games] popy2006:
Hey guys.

Is the overlay bug fixes, which some users are stating in the play store comments?

Thx pOpY

Gesendet von meinem LG-H815 mit Tapatalk
[Android Apps and Games] velis74:
Well, it's not a bug really. You have to add Package Manager to excluded apps list and then you don't experience "the bug".
[Android Apps and Games] popy2006:
Thx for the hint.

Can you please give me the German name for Package Manager.

Is it :

Packet-Installer

Or

Packetzugriff-Assistent

?

Thx

Gesendet von meinem LG-H815 mit Tapatalk
[Android Apps and Games] popy2006:
Another question:

How can ill check if i am facing the "bug"/behaviour?

When ill can install apps i have blacklisted the right package apps?

thx

pOpY
[Android Apps and Games] sunsero:
Yes, if you've excluded the package installer brightness will usually change when the dialog to confirm the apk installation appears and you'll be able to confirm the installation.
[Android Apps and Games] popy2006:
thx, i can hit install and the brightness changes :good:
[Android Apps and Games] Neejay:
[MENTION=2424510]velis74[/MENTION] how does this affect the app, if at all? http://www.androidpolice.com/2017/0...tlight-apps-can-no-longer-draw-top-system-ui/
[Android Apps and Games] Technical:
I'm curious too...

For what I've read, it will make the app completely unsupported... :crying:
[Android Apps and Games] velis74:
Well, with every Android version, they make it a bit more difficult for this app to work. However, as far as I've read about this, it will only affect the superdim functionality. It's only superdim that actually draws on top of other apps, "standard" brightness sets Android screen brightness only. It only needs the overlay so that it can tell Android about that at all.
[Android Apps and Games] Lexey77:
MIUI firmware 8.2.x.x - the attachment is added to the autorun, in the battery exceptions (work in the background), the lock is installed in recent ones. All the same constantly ceases to work. If done systemically - it works much better, but blocks the provision of permissions to applications. I ask you to suggest a solution to this problem.
[Android Apps and Games] BillTheCat:
I have an HTC10 and find the native auto brightness is too bright indoors when at full setting, and doesn't get bright enough in direct sunlight when set in the midrange. Since I previously purchased Lux, I tried that, but this new overlay permission process is a real PITA. It's hard to change settings if you can't see the screen. Can VAB help make life easier in this regard?
[Android Apps and Games] velis74:
I'm sorry, but I don't understand what is said here. Can you be more precise identifying the issue you're experiencing?

Why don't you try it and see for yourself?
[Android Apps and Games] BillTheCat:
Because I've been in IT long enough to know that installing stuff just to try it out is the first best way to make a mess of your system.

My question was really related to the overly issue. I own Lux, but the whole business of having to disable it to change permissions and then re-enable it was a real PITA. I was hoping to get some feedback to find out if VAB is easier in that regard.
[Android Apps and Games] velis74:
I'm not aware of any overlay-related issues. I'm running 7.1 myself and VAB works fine for me. You will probably have to check excluded apps to see if package installer is among them. Somehow it seems to get unset for many users. VAB is pretty safe to try out: Android sandboxes it anyway and unless you work specifically hard to mess up superdim settings, you can't really do anything that would mess up your phone.
[Android Apps and Games] BillTheCat:
Sounds good, thanks for your reply.

Downloaded the app (because Lux was a PITA with the overlay/permissions problem) and have been experimenting. I'm not entirely clear on how to use the graph. Two questions, please:

1) If I find that the brightness needs to be manually changed, which axis on the chart should I be adjusting?

2) Having made a change, will those settings be saved by the app or do I need to make a manual entry somewhere? IOW, does the app 'learn' my preference over time based on my changes?

3 Should I even be using the chart, or is the slider in the notification area the best way to manage my settings?

Thanks!
[Android Apps and Games] velis74:
1) Horizontal axis represents brightness as detected by light sensor / camera (whichever you're using). Vertical represents screen brightness at the given light conditions. You should observe immediate brightness change when dragging vertical handle up / down.

2) When adjustments are made in the graph on main app screen, they are automatically saved as "current" setting (well, you have to touch the "apply" button), but you can also save them as a profile or update them into existing profile (they will not be automatically saved into the currently selected profile)

3) The slider in the notification area is an added convenience to the "normal" adjustment described above. As is the manual graph edit option. It (slider in notification) does have an annoying bug though: it doesn't automatically save the setting, so a restart of the phone will forget any "confirmed" changes (the check which appears when you use the notification slider). Unfortunately I've been very busy lately gone self-employed and VAB has been somewhat neglected which also means this bug has been allowed to persist for far too long. Anyway, going to VAB main screen and making any adjustment to the graph will store the currently accepted graph including any changes made through notification slider.

Hope this helps. LP,

Jure
[Android Apps and Games] BillTheCat:
Yes, very much. That explains why my settings weren't persistent after reboot.

I did have that same screen overlay problem with VAB yesterday, though. I forgot which app it was, but a permission was requested, and I had to turn VAB off, make my changes and turn it back on again. I've seen others talking about Tasker settings to solve that problem but I've never used Tasker. Perhaps it might be possible to update the 1st post with whatever those settings are as a further guide to those of us who might also purchase it, along with VAB and the plugin, to make life easier?
[Android Apps and Games] GialanG:
You can try Install Button Unlocker from Play Store (with a little ad).
[Android Apps and Games] velis74:
Did you add "package installer" to excluded apps list & allowed VAB to track top app?
[Android Apps and Games] BillTheCat:
Can't seem to figure out how to do that. When I go from 'excluded apps' In VAB, I get to this screen, but here's no way to add any other apps to it, and clicking the 'back' arrow at the top left only sends me to the system settings page.

Sorry, I'm confused by this whole process. View attachment 4166230
[Android Apps and Games] velis74:
You're saying VAB still says it needs the "special system permission" and not showing you list of installed apps instead?

The system settings page from screen shot should only have to be displayed once. After that, if you touch "Excluded apps", you should immediately see list of all installed packages.
[Android Apps and Games] BillTheCat:
Sorry for the delay - had a family emergency that got in the way.

Yes, that's the message shown in the dialog box when I select 'excluded apps'. I should mention that I'm running Xposed and Xprivacy which manages permission with a great deal of granularity, but I granted VAB the overlay permission when asked.

Looking forward to getting this figured out.

Thanks!

ETA: Running an HTC 10, Maximus HD (MM), but had the same issue on stock HTC North America ROM.
[Android Apps and Games] velis74:
The permission here is to grant VAB "Usage access" permission, the "On" setting in your screen shot.

After that VAB should detect this permission as granted and display list of installed packages. If this is not working for you, I can only say that I once had a ROM installed on my phone that also exhibited this behaviour. Only changing the ROM solved the issue.
[Android Apps and Games] BillTheCat:
Yes, I can grant 'on', that's OK. The problem is when other apps request permissions. I have to turn VAB off, grant the necessary permission(s) and then turn VAB back on. I was hoping for a more elegant solution.

Since I have the ability to turn off permissions on a per-app basis via Xprivacy, do you think a work-around solution might be to disallow the package installer app to access the overly permission that way?
[Android Apps and Games] velis74:
Did you add "package installer" to excluded apps list?
[Android Apps and Games] BillTheCat:
We seem to be going in circles on this.

That's the problem. I open 'excluded apps' but I do not see 'package installer'. If you go to the screen shot I included on the previous page, you will see that there are only 4 apps, and selecting the 'show system' option does not do anything.
[Android Apps and Games] velis74:
No, the screen shot you included was of giving VAB permission to monitor process stats.

Now, when you tap "Excluded apps" in the menu, you should see a list looking like this, directly, no dialogs in between or something. If VAB still asks you for special permission and then shows you the screen you have included screenshot of, you have a faulty ROM. Please see attached image for what you should be seeing.
[Android Apps and Games] BillTheCat:
Ah. Ok, I'm not getting that. But I also had problems with the stock HTC ROM. Let me re-flash again and see if the problem persists.

Thanks for your help!
[Android Apps and Games] BillTheCat:
Just wanted to report that I figured out what was going on.

When opening 'excluded apps' the Android permissions screen is showed, and 'on' is selected by default. I had always just accepted that setting and closed the screen.

Turns out, what I had to do was to de-select and then re-enable (switch it off, then back on) after which the exclusion screen displays.

Hope this helps someone else with the same problem.

Thanks for all your help!
[Android Apps and Games] BillTheCat:
Another bug... can't select a profile to save my changes to. I added a new profile, but when I try to select it, the radio button doesn't work.
[Android Apps and Games] velis74:
Radio button?
[Android Apps and Games] BillTheCat:
Created a new profile with the intent of saving setting adjustments, but I can't select the profile via the widget. It pops up, but nothing happens when I touch it. View attachment 4188545
[Android Apps and Games] velis74:
Profiles remember brightness curve only. So when you select a profile, brightness curve should change. Does it not?
[Android Apps and Games] BillTheCat:
Here's what I'm trying to do.

I have an HTC 10. The native brightness is not adaptable enough because screen is too bright at night when I'm in bed just checking up on Facebook, and it's too dim in full sunlight. So I'm just trying to use the X/Y adjustments to save my edits so that the phone will be more suitable to my needs. How would you suggest I go about doing that?

BTW, I have both proximity and ambient light sensors on my phone (VAB reports capella microsystems) and I'm wondering which one you'd recommend, or if I should use both.
[Android Apps and Games] bieniu79:
I really love VAB and the way it lets me configure how screen brightness behaves. But I changed the phone and the new one (Xiaomi Redmi 3S) has problems working with VAB. I noticed that when the light sensor is exposed to direct sunlight, it starts returning negative values as lux readings. VAB seems to interpret it as zero, the screen gets darkened and becomes completely unreadable. I think the light sensor bug was even already reported to Xiaomi by someone (I found the bug report) but no fixes so far and I do not know if it will be fixed ever.

I had a chance to experiment for a while and it looks that the readings even if negative are okay despite the minus sign. I strongly believe that taking absolute value of the reading will make everything work fine. Would it be possible to add lux=Math.abs(lux) in VAB source code to make unlucky Xiaomi users happy? :)

Thanks a lot.

Wysłane z mojego Redmi 3S przy użyciu Tapatalka
[Android Apps and Games] velis74:
Sorry, but I can't really say. It's a matter of personal preference.

Yes it would :)

Expect an update to play store sometime this week. I'm already monstrously late with italian translations, so I guess it's really time for me to spend a couple of hours on VAB too.
[Android Apps and Games] bieniu79:
Thanks a lot! I will let you know after receiving the update if it works as expected.

Wysłane z mojego Redmi 3S przy użyciu Tapatalka
[Android Apps and Games] BillTheCat:
Ok, but I need to get the settings to persist after a reboot. The problem is that there's a bug where I can't select a different profile. That's OK, as long as I use the graph and save the changes to the default profile. So, if I click 'apply', my settings will persist after a reboot, correct?

BTW, I did purchase both the Tasker plugin and 'dev support' - even though I don't have tasker yet. ;)
[Android Apps and Games] velis74:
The settings DO persist after reboot (there's an open bug where they don't if you adjusted brightness through notification). I believe profiles should work, but you must realise that changes are not automatically saved to a profile. You have to long-press the profile button and update the profile to store the current curve into it.
[Android Apps and Games] bieniu79:
Don't take it as a pressure from my side, I just wanted to make sure if I might miss this update. I think I have not received any. If you need some more time, don't worry. :)

Wysłane z mojego Redmi 3S przy użyciu Tapatalka
[Android Apps and Games] velis74:
Yeah, sorry. Not used to post progress updates. I rather just deliver.

Anyway, the updates are going nicely. It's nice to work on this project again. I've done some major changes for the background tasks, introduced some new settings and mostly (hopefully) increased compatibility & operation for latest devices & Android versions.

The TODO list was LONG though and I'm still working through the items. I guess it's going to be a pretty big update. Deserved, no less, as the last one, as I found, was more than a year ago :D

However I currently also can't publish since I have detected that sometimes sensor reading simply doesn't start. I'm looking into the issue now and intend to publish as I find the fault responsible (and complete the most pressing TODO items).