yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kantjer:
I finally installed GSam Battery Monitor :o

and I'm now seeing similar readings, I'm happy with the battery consumption now.
[Android Apps and Games] velis74:
Thread reopened per moderator decision. Some of you already know there's a dispute with Lux auto brightness author regarding app description text. I have removed it in entirety to remove any ambiguity. Text on play store is in its 3rd revision which was written entirely from scratch. In my opinion it bears absolutely no resemblance to lux description.

Please do not comment on this in your further posts. The thread should remain on-topic.

If you still feel you have to say something about it, please PM me or the mod about it.

In the mean time I have released v 1.10.32

No more of no sensor reading (found out why service was crashing)

I have however detected an issue when the device is in a constant light conditions (night). Although I have the sensor reading, the graph still drops to 0 and minimizes the brightness.

Direct solution is to attempt to modify the graph and then cancel the operation. This will restore the brightness to the graph setting.

Edit: fixed

Edit: TO DO list updated and rearranged. Top items have high priority.

Thanks for all the support so far, everyone. I never hoped for such a positive feedback.

Jure
[Android Apps and Games] jackattack:
I love this app but it's almost unusable since the last update with the screen going totally dark issue.
[Android Apps and Games] kantjer:
No problem here, everything is working great. Battery consumption is back to normal.
[Android Apps and Games] Christiancs1969:
Yep :D

s2 RR 309 dori
[Android Apps and Games] sunsero:
Hi velis,

I'm still happy with VAB ;)

Anyway some ideas for new features:

- export and import of settings including profiles. This would be helpful when reinstalling the device

- New behavior for proximity sensor: Reread sensor/camera values immediately when the proximity sensor is released (useful when taking mobile out of pocket or opening the cover in a more bright environment than where it had been closed)

What do you think?
[Android Apps and Games] velis74:
[MENTION=5221171]sunsero[/MENTION]: thanks for your suggestions. I still have your previous ones in my task list, but I've been so busy lately that i hardly squeeze a couple hours per month working on VAB.
[Android Apps and Games] GialanG:
Since the last update of Pie Controls (from GG Play), this app doesn't work when Pie is activated. Can you fix the compatibility? How do I get a log of VAB?
[Android Apps and Games] velis74:
Please be more specific in your bug report: What you were trying to do, the steps taken to do it, expected outcome, actual outcome.
[Android Apps and Games] GialanG:
I've been using both VAB and Pie Control for a very long time, the 2 apps run well together. Yesterday since updating Pie Control (https://play.google.com/store/apps/details?id=jun.ace.piecontrol) to the latest version, VAB doesn't work anymore; it's still running but can't affect the brightness while Pie control is activated, and only works when Pie is off.

Because I've found the culprit, now I want to make a log of how the 2 apps work, so you can check what caused the incompatibility and fix if possible.
[Android Apps and Games] velis74:
This looks like Pie Control is creating an overlay which it also uses to manage screen brightness. Since that overlay is latest, it takes precedence. I cannot do anything about this. Please look in Pie Control's settings if there is one that disables the brightness managing.
[Android Apps and Games] GialanG:
Thanks but no such option.

Update: Everything is normal again with today's update of Pie Control
[Android Apps and Games] velis74:
4.56.212 (21.02.2016)

Split settings to Basic, Advanced

Updated Russian language

Interesting how ratio of downloads is 7:1 for the .apk supporting Androids < 4, here on thread downloads page. Maybe folks instinctively choose the larger .apk?

Anyway, please let me know what you guys think of tne new Settings screen design. And the splitting of settings too. It was totally arbitrary, so ... :) :angel:
[Android Apps and Games] Adrianrff:
Sensor_ind wakelock possibly caused by VAB after phone call

[MENTION=2424510]velis74[/MENTION]

Hi. I've been using VAB for quite some time now and I've always been more than happy with it. But lately I've noticed that after a phone call a wakelock called SENSOR_IND is being held for long periods of time and draining my battery. I have the suspicion that this wakelock is caused by VAB some how. I uninstalled the app and haven't seen the wakelock since (I've installed it again today to see it if it comes back).

Is this a possibility? Im not 100% sure but it sure seems to be the case. If it turns out it is, what can be done to prevent it?

I'm on a Nexus 5 with stock marshmallow and EX Kernel

Thank In advance.
[Android Apps and Games] velis74:
VAB holds no wakelocks whatsoever. A quick google shows that this wakelock is held by Google Hangouts app.
[Android Apps and Games] Adrianrff:
Thanks, [MENTION=2424510]velis74[/MENTION]. I did the Google search. That's for Nexus 6 and I don't use Hangouts, so that's not it. It's triggered after a phone call, that part I'm 100% sure of. What I'm not sure of is why. Is it impossible for the wakelock Te be caused, instead of held, by VAB in addition to something else? I find it suggestive that it disappeared after I uninstalled VAB. I'm going to try to exclude the phone app in VAB and hibernate while I'm on a call to see of it helps.
[Android Apps and Games] velis74:
I really wouldn't know. VAB code contains nothing about wakelocks. I have no idea what in VAB might trigger a wakelock in system. I DO hope though that Android doesn't arbitrarily decide on that for an app matching some made-up criteria.
[Android Apps and Games] leSourCil:
Problem with excluded apps

Hello. I really like your app but lately excluded apps won't work for me anymore.

I'm on a lg g3 with Android 5.0.1. I've tried reinstalling your app, unchecking rechecking the app but still not working. Any idea?
[Android Apps and Games] velis74:
Sounds like VAB doesn't have the permission to get app statistics. Please go to settings / Security, Apps with usage access and check if VAB has the permission.
[Android Apps and Games] leSourCil:
​

You were right. But usage access is hidden on the lg g3 for whatever reason. I though I didn't have this option but there is a way to access it. For anyone looking for it here is the solution

You can access this setting by downloading Nova Launcher from the play store. Once installed hold down on any empty place until the add options coome up. Then click on activities and drag it to an empty place on screen. Now a list of activities will be displayed. Scroll down to settings and click on it. Now scroll down to apps with usage access. Hold it for a few seconds and the apps with usage access screen will open.

Thx again.
[Android Apps and Games] winesh:
[MENTION=2424510]velis74[/MENTION] Thank you for this amazing piece. I really like this app. It is the way auto brightness should be on android. I have a small bug or I used wrong settings. The auto brightness goes a bit to aggressive in downscaling. I have an amoled device and use amoled dim mode. If the phone is in shadow for a second (like shadow from my head), it immediately dimms the screen. You can literally see the light steps reducing. A second later out of shadow screen is bright up again. Is there a way to reduce this aggressiveness. I have seen several time out options but don't know which one to edit.
[Android Apps and Games] velis74:
Normally you would handle this by turning on "Screen touch - steady screen". This setting prevents lightness changes when you are interacting with the device.

You could also use proximity sensor.
[Android Apps and Games] winesh:
Thanks. Which methode is more prone to battery draining, screen touch disable for few seconds or enabling proximity sensor.
[Android Apps and Games] winesh:
From start app was really great. But it gets annoying after a while. It is hard to adjust the settings for your performance. Eventually when typing or scrolling screen blinks from bright to dim. Even if you play steady and proximity options. Perhaps it's just with me.
[Android Apps and Games] velis74:
Hm, it's hard to respond to a post like this. All I can add is that I myself am using settings directly out of wizard. Naturally without blinking.
[Android Apps and Games] Lasantha:
Thanks for the best app I've used for auto brightness after lollipop ruined mine z2. I found a small bug when call is coming this app swich back to system s manul brighten setting. So I find hard to see as my manual setting is low in daylight.

Thanks again
[Android Apps and Games] velis74:
If you have the phone app in excluded apps list, remove it from that list. Otherwise, why don't you set system manual brightness to a very bright value?
[Android Apps and Games] sunsero:
Hi velis, after it did not reboot anymore I had to do a factory reset of my Lenovo B6000 tablet....

Unfortunately VAB does not detect the cameras anymore now. With enabled camera support now it tells in settings that there was neither front nor back camera found. Could be the reason that there's actually no proximity sensor in the tablet and there was a code change that VAB now also does not detect the cameras?
[Android Apps and Games] velis74:
Hm, I did improve detection last time around, but it seems there are still cases when it fails. Can you go to developer options dialog (long-press proximity reading in main page), turn camera support off (confirm), then turn it back on (confirm) to see if it helps? Please note that it's important to confirm the dialog after changing the setting - the changes are only applied then.

If it still doesn't work, please set log level to 9 and send me a logcat output for when you enabled camera support in the developer options dialog. You need root for that I'm afraid.
[Android Apps and Games] sunsero:
Tried disabling, confirming, enabling, confirming several times but the cameras are no more recognized with this version. Regarding the log I'm sorry - no root on this device.
[Android Apps and Games] velis74:
It seems this camera API V2 is an even bigger crap than V1. Let me fix the defaults back to V1 and see if that helps. I'll let you know when I'm done.
[Android Apps and Games] velis74:
4.57.214 (21.04.2016)

Default camera API back to V1 (V2 gave too much trouble)

Navigation drawer always open on wide enough displays

Published to Play Store & thread downloads section.

Also moved to latest Gradle. It's still giving me hell about my SVG images, but if I ask it really nicely, ultimately it builds. Not sure I gained anything but pain though :)

Also I can't get emulators for anything below API 15 to work any more. Graphics is messed up when the device starts up. Any tips on fixing that most welcome.

[MENTION=5221171]sunsero[/MENTION]: This should work out of the box for you. I have made it so that camera API V1 is used by default except if requested otherwise in the developer options dialog. So just upgrading should be enough to have VAB working again I hope.
[Android Apps and Games] sunsero:
Thanks for this. Out of the box in settings the front camera is now detected. However it tells there's no back camera (I don't want to use it, but I think it had been available). Unfortunately the front camera does not update the system brightness (doesn't read lux values)... Update: Front Camera now suddenly started to work and updates brightness...
[Android Apps and Games] FlyingHorseGA:
Found a problem with the new menu always open. Running LP 5.0.2 on Galaxy Note Pro 12.2 SM-P900. Using CivZ_P900_Lollipop Rev 2.7.
[Android Apps and Games] velis74:
???

How is this possible? I explicitly set drawer width to 260sp and the main content margin to 260sp.

Let me just check again, maybe I entered dp somewhere... :angel:

Edit: nope, that's not it. It seems I have to find a better solution for this.
[Android Apps and Games] FlyingHorseGA:
Let me know if I can do anything to help.
[Android Apps and Games] velis74:
4.57.215 (24.04.2016)

Fix for menu overlapping content on scaled displays

Sorry, was getting the wrong display to calculate sp units off of. :angel::angel:
[Android Apps and Games] FlyingHorseGA:
Working great here! :victory:
[Android Apps and Games] gioxoid:
Any suggestion how to edit the default exponential curve by just subtracting some percent to the entire curve?
[Android Apps and Games] Pkt_Lnt:
Settings (Settings Mode - Advanced) > Permanent additional brightness. Use a negative number i.e., -2
[Android Apps and Games] pmhashir:
Is there someway to have auto brightness to only increase the brightness and not decrease it. I tried to achieve this by increasing the smoothing time downwards to a high value. But it doesn't work as intended.
[Android Apps and Games] velis74:
No, there's nothing that would make VAB only increase brightness. However, your workaround should help towards your goal. Can you be more specific about "doesn't work as intended" part?
[Android Apps and Games] pmhashir:
Ok, thanks. I think it didn't work as intended due to smoothing override. I have disabled it now. Will let you know if there is any further problem.
[Android Apps and Games] velis74:
4.57.215 (09.06.2016)

Minor fixes

Published to play store only. These really were just minor fixes, but long overdue nonetheless.
[Android Apps and Games] e154037:
My wife uses a Samsung Grand Prime, which does not have light censor. Your app works very nicely on her phone through its front camera. Good idea! Great work! Would like to ask two questions:

1. The phone has two cameras, but the app does not find the back camera.

2. Does the app's Tasker plug-in provide a way to get current brightness. I might be wrong, but Tasker's variable %BRIGHT does not change at all when the app adjust auto-brightness.
[Android Apps and Games] velis74:
1. Android camera API is a total crap, sorry to say. So Sometimes the camera doesn't produce an image when it should. If this happens while VAB is detecting cameras, the affected camera will not be detected. You can go to developer options dialog (long press proximity reading on main form), there disable camera support & confirm, enter the dialog again and enable camera support. Hopefully both cameras will be detected then.

Back camera has very little usability for detecting current brightness though. My experience shows that it's the front camera that you should use.

2. I don't know about Tasker's %BRIGHT variable. But you do have a VAB condition called "Current light reading" which is the currently detected brightness value.
[Android Apps and Games] e154037:
I tried to get VBA current light reading from Tasker without success.

In Action Plugin for VAB, I see:

Automatic brightness

Brightness change

Brightness sensor

Proximity sensor

Select profile

Smoothing time

None of these items provide a way to read VAB's current light reading.

Would you please show me how to get it.

I use the latest version of VAB and did a in-App purchase for Tasker support.

According to VAB's manual, Tasker plugin functionalities should cover:

Conditions supported

Current light reading

Current proximity reading

Calculated screen brightness

Screen on

Settings supported

Automatic brightness

Brightness sensor

Proximity sensor

Change sensitivity

Smoothing time

Select profile (free)

I see "Settings supported" in Tasker's "In Action Plugin", but can't find "Conditions supported". Would you please help.
[Android Apps and Games] velis74:
[MENTION=2752796]e154037[/MENTION]: Yes, you're seeing settings, where you can choose action to perform.

There is a flip side to this too: when you're choosing conditions at which the action is to be performed, you will see the, well, conditions. I myself have only bought Locale, so I can't tell you how to use Tasker, but Tasker does have quite extensive documentation.
[Android Apps and Games] TimD123:
Latest MM update causing a problem. With this app installed you cannot select "allow" when prompted to after installing a new app.

See https://www.reddit.com/r/Nexus6P/comments/4rab2r/why_cant_i_select_allow_in_android_permissions/
[Android Apps and Games] Pkt_Lnt:
Just slide down notifications and turn it off temporarily. It is a Google bug introduced in the June update and it has been reported to Google for a fix. In the meantime, the notifications toggle is a quick work around. You can also add apps to the "exceptions" tab in Velis to solve it.
[Android Apps and Games] TimD123:
Awesome! Thanks for the quick reply!
[Android Apps and Games] LGXX:
Hello!

Really like the app, works perfectly on my OP3.

Only thing that bothers me is the permanent notification.

I know that I can deactivate it in the app settings, but then the app could get killed by the system, right? Maybe you could implement a root function so the notification is not necessary anymore.

A small thing: Please set the dark theme to AMOLED black background :)
[Android Apps and Games] velis74:
Hm, I don't know of any root-based solution that would help keep service alive. The only way I can think of is installing another small app that would constantly ping VAB in the background. Seems a bit of an overkill though.

Can you explain "amoled black" for me? Currently there is a bit of value in background colour for dark schemes, but VAB isn't really something you have running in foreground anyway...
[Android Apps and Games] masithe:
How can your App Solve the bug in CM13 of Oneplus 2's manual brightness adjustments?

Dear Developer,

My CyanogenMod 13 of Oneplus-two has no manual brightness control by factory settings. However, your application puts everything back to normal, even the manual configuration works again. You mention that there are some limitations in Android's API itself. Can you please describe how your application can work better with the manual brightness adjustments than the default system in some devices?
[Android Apps and Games] velis74:
As I said in the android enthusiasts question: I'm not sure what you mean with this. VAB adjusts screen brightness based on sensor reading and the graph you define (which translates sensor reading to screen brightness). It DEFINITELY has no way of influencing system behaviour. The only thing that comes close to that is automatic updating of system brightness, but even that doesn't even work on vast majority of the phones because stock Android code does not directly respond to such updates. It only adjusts screen brightness to thusly adjusted value once screen overlays go away - VAB has to use a screen overlay because Android as such does not support adjusting screen brightness in any other way.

This all makes your claim of VAB fixing manual brightness adjustment in the OS somewhat questionable. But OTOH you really didn't specify exactly what you did nor what was fixed by doing that.
[Android Apps and Games] Adrianrff:
Hey, [MENTION=2424510]velis74[/MENTION]

I'm having nasty sensor_ind wakelocks caused by this app being installed. I had my suspicions before, but I wasn't sure what triggered the wakelock. I am now 100% sure that the presence of this app is a condition.

Would you have a look at it please? If there's something I can do help, let me know.

I'm on a Nexus 5 running stock 6.0
[Android Apps and Games] Pkt_Lnt:
I do not see that wakelock in BetterBatteryStats or Wakelock Detector, with a Nexus 6 on Pure Nexus MM 6.0.1. Odd. How much time does the wakelock show over how much phone uptime? What analytic tool are you using to identify that wakelock?
[Android Apps and Games] velis74:
Without further information I can only say that VAB doesn't have any wakelock code. It also releases all sensors when screen turns off (it relies on being notified of screen turning on). There should not be any wakelock conditions resulting from VAB being active.
[Android Apps and Games] Adrianrff:
I understand that, but the appearance of that wakelock definitely has Velis being installed and working as a condition. I've being installing, greenifying and uninstalling Velis for quite a while now (several months) and I see this wakelock if and only if Velis is installed and working. There must be some interaction between the kernel and the app that triggers this wakelock and holds it. Maybe the app is not releasing it, but it must be involved.

What additional information would you need?
[Android Apps and Games] velis74:
Hm, for starters, I'll join [MENTION=4403217]Pkt_Lnt[/MENTION] in repeating his question about the tool and your findings. I need to be able to repeat your findings to hopefully see what's going on.
[Android Apps and Games] Daemos:
I'm wondering how to select the front camera as an option. I have an issue where I have a (2013) nexus 7 in a fixed install location, however, the ambient light sensor is blocked, but the front camera is not. However, there is no option for me to select the front camera. I'm running latest stable Pure Nexus rom and Elemental X kernel.
[Android Apps and Games] velis74:
Sometimes cameras are not detected properly. You can trigger redetection in two ways:

1. In developer options dialog, turn off camera support, confirm, turn it back on, confirm. Rinse & repeat until both cameras are listed in settings under sensors section.

2. (only if you don't have a light sensor) Clear app data & go through wizard. At the end you'll be asked about turning on camera support. Rinse & repeat until both cameras are in settings.
[Android Apps and Games] Daemos:
I assume you are talking about developer settings under android settings, as I do not see that in the app, there is no way to turn off camera support under the developer options under android settings.

Lux detects the front camera correctly, however, I prefer to use your app.

EDIT: NVM finally got the developer options to work :) *edit again* it's very difficult to hit the target box, I need to attempt many times before being able to enter the options...but the camera is now detected but it doesn't work. I'll try entering developer options and trying again.

unfortunately I cannot get it to autobrightness. I can turn on camera support, but it doesn't adjust brightness to ambient light conditions.
[Android Apps and Games] velis74:
Did you enable the front camera in settings? It must be enabled, preferably as the single source of ambient light detection (disable back camera & light sensor).
[Android Apps and Games] Javs2010:
Hello! I've been a long time user of this app but I'm having a weird bug when I type. Any help or tips for sometimes I'm typing and as I'm pressing keys the brightness changes from dim to bright it only happens when pressing keys have Googled ways to try and fix it and can't seem to find a fix.
[Android Apps and Games] velis74:
VAB settings, Advanced mode, Sensors section, Steady screen update brightness: increase the number of touches required to update screen brightness, you're typing too fast :)
[Android Apps and Games] Icetea:
[MENTION=2424510]velis74[/MENTION]

THX for this great app! I’m using it on Lollipop and everything seems to work as expected.

But why you did not update this tread to file version 4.57.216?
[Android Apps and Games] velis74:
Oops :angel::angel::angel:
[Android Apps and Games] Javs2010:
Thank you for that information I will try that now! ??
[Android Apps and Games] Adrianrff:
[MENTION=2424510]velis74[/MENTION] For the past few days, Android seems to be killing Velis AB very frequently, even when more than sufficient RAM memory is available. I don't have the persistent notification enabled, never have, but Velis was very rarely killed by the system before, and for some reason it's happening 10 times a day. I recently wiped my phone and reinstalled everything, that's the only change I've made.

Is there a way to reduce the number of times the OS kills Velis' services without having the persistent notification?
[Android Apps and Games] Javs2010:
Hello! So I tried your fix you told me of the screen changing brightness while typing and it still does it ? I even have it set to 100 and it still happens don't know what's going on
[Android Apps and Games] lampard464:
Thank you.good job.my z5 work perfect

Sony Z5 cihazımdan gönderildi