yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sicHiRsch:
OK I found the problem. I have a battery monitor tool called battery mix running that draws a line on the side of the screen showing how full the battery is. That overlay seems to interfere with this tool. I had to reinstall without that battery tool (battery mix) running and now everything works fine.
[Android Apps and Games] velis74:
This I am most unhappy to see. I actually pool for screen off every 5 seconds and once detected, I turn the service off. It shouldn't use *any* juice, let alone more than Android OS :crying:

Glad you resolved it because I had no idea what was going on. :good:
[Android Apps and Games] kantjer:
I'm now trying to do the same via an other route. I programmed Tasker to freeze the app on "Screen" and unfreeze it again on "Screen on"

Just did that so give me 10 min and I will report back.
[Android Apps and Games] velis74:
I have determined the condition of "no sensor reading". All praise logcat :angel:

Before I issue a patch, this should help resolve the problem when it happens:

- rotate the phone

- restart the app

In the mean time my kubuntu crashed after applying todays security patches. Just hangs on boot screen :cowboy: This is the second time in a few weeks it did this and I don't have a clue on what might be wrong. A shame, really. I got used to it quite well. Back to windows, I guess :(
[Android Apps and Games] uzirox:
There's a silly bug (al least on latest build on play store): if you set "smoothing time" to "" (nothing) the app crashes and don't start anymore until you clear all the setting in "Applications" menu.

Really simple to fix for users and for dev ;)
[Android Apps and Games] Gary122:
It says on Google play store that my device is not compatible :(!

---------- Post added at 09:22 PM ---------- Previous post was at 09:21 PM ----------

It says on Google play store that my device is not compatible :(
[Android Apps and Games] velis74:
Does this only happen when the service is turned off and the sensor is turned on? Even in this case the battery saving code I did today should prevent this from happening, not to mention that I tried to replicate the problem and failed.

I must admit I don't quite understand this. You would like screen brightness to be set to 1 when unlocking? In the sun that would be quite dark :)
[Android Apps and Games] velis74:
Unfortunately that device does not have a lighting sensor.

TODO updated on first post + making good progress with tasker.
[Android Apps and Games] kantjer:
Something very strange is happening. I froze the app, screen off for 5 minutes and still the battery monitor is reporting Velis was responsable for 13% of the battery consumption :(

I will try a reinstall now
[Android Apps and Games] xanthrax:
i quote myself to let you know that now is working fine , no more maximun CPU frequency anymore .

but to answer your question , yes , that CPU issue happened on both situations with and without activated service
[Android Apps and Games] velis74:
Thanks for the heads up. Added to TODO

Edit: fixed. Will come with the next update

This is a very interesting result indeed. I wonder how these battery monitors actually work: I have also noticed in gsam monitor that it likes to list apps that haven't been started - by me at least, but I can't think of a reason "temple run" would like to periodically start and play itself...
[Android Apps and Games] velis74:
Darn!!! I have no idea why reinstaling the app would make things any different. This is such a twilight zone for me :(
[Android Apps and Games] wim69:
Thanks, fixing that makes Lollipop a lot more attractive!
[Android Apps and Games] wim69:
Please update your fine app. I switched to Lollipop again, but I want to use your app.

Thanks.
[Android Apps and Games] Adrianrff:
[MENTION=2424510]velis74[/MENTION]

Hi, I recently downloaded your app and I LOVE IT, but I'm having a couple of issues with it.

One is the black screen upon incoming calls, but i see you've already addressed this.

The other issue I'm having is with Textra's (SMS app) floating notifications. Once (and for as long as) the floating notification is visible, the autobrightness function is disabled and the brightness level is set to the current system brightness. After I dismiss the notification, Velis AB takes control again. I'm aware that his could be a problem with Textra, I've emailed them too about this issue, but I was hoping you could maybe identify what the problem is and help me find a workaround.

Thanks in advance
[Android Apps and Games] wim69:


Please check if textra is listed as excluded app in settings. Since I'm back on KitKat, could you please add telephone as excluded app and check if the screen still stays black at an incoming call?

Thanks
[Android Apps and Games] Adrianrff:
Textra is not listed as excluded app, and listing the phone app makes no difference.
[Android Apps and Games] velis74:
Activate "Optional update system brightness" in settings. If that doesn't help, textra sets its own brightness and nothing can be done about it.

I'm working on lollipop compatibility. Almost finished now. Hopefully before new year. :fingers-crossed::fingers-crossed:
[Android Apps and Games] Adrianrff:
Thank you.

Yes, I saw that option after I posted this, it does help, but I deactivated Textra's floating notification instead and used Heads Up, which I had been using anyway and it's pretty much the same thing. One observation though: Textra does not override the system brightness with its own, it just turns off Velis AB momentarily.
[Android Apps and Games] Adrianrff:
Hey, man, I'm having another issue with Velis: while the app is enabled, Whatsapp's quick reply window does not show on top of the lock screen. The screen turns on, but all I see is the notification. Disabling the app makes it all work normally. It's also force closing occasionally when browsing the web or playing a game. Sometimes it'll enable itself again.
[Android Apps and Games] velis74:
This is the same problem with all things on lollipop lock screen. Seems Google messes something up if there's an overlay.
[Android Apps and Games] Adrianrff:
Yes, there are a lot of issues wih Lollipop lockscreen. Some developers, though, have manage to fix their issues with the lockscreen. Swiftkey and Textra, for example, updated their apps in order to avoid the screen flickering when trying to write from a quick reply window. I'm not suggesting that this is your fault or anything, just that maybe there's a relatively easy fix from the app developer's end.
[Android Apps and Games] sunsero:
Hi, finally I've updated my S3 mini from stock to cyanogenmod 11. Unfortunately VAB seems not to work anymore. It takes pictures from the front camera (they are in the data folder). However it does not update the graph/brightness and always shows 1/0 lux except initially. Any ideas?

Best regards

sunsero
[Android Apps and Games] velis74:
Does the image contain EXIF info on ISO, Shutter and apperture?
[Android Apps and Games] sunsero:
Yes, it does. However it seems the info is only available in x-plore file manager after copying the picture from the root data/data folder to the sdcard.View attachment 3107786
[Android Apps and Games] sunsero:
P.S.: In the same folder there's also a png with 16x16 pixels.
[Android Apps and Games] velis74:
Yes, that's the image I use to analyze how bright things actually are. The total brightness is calculated using ISO, apperture, shutter speed and average brightness, which I calculate from that 16x16 image. Anyway, you'll have to send me one of the large images so that I can see if the mentioned three parameters are actually in the EXIF. I've had this issue before with another user and it turned out that his phone stored shutter speed in an unconventional way.

Anyway, I think I just fixed lollipop lock screen and I just need you guys to confirm something for me: does lollipop just display a small notification for incoming calls? I always get that, no matter if I'm on lock screen or using the phone. Perhaps this is only on my phone and some problem with liquidsmooth I just installed? My dialler is acting strange and unresponsive so I decided to rather ask about this before I publish some crap :)

Edit: hm, this doesn't seem to be the case. If I try enough many times I can see a full screen incoming call which is removed the same moment the overlay is established. Aarrrrgh. Another of Google's "security" features.

Edit2: It seems I have little choice but to disable VAB on lock screen for lollipop.

Edit3: final solution: if lock screen is among excluded apps, VAB will be disabled for it. If not, the user will only see notification about the event (alarm / incoming call), but screen will turn on in either case.

Edit4: I think I'll probably be able to publish tonight. Just need to test a couple more things to make sure the thing won't blow up upon install ;) + I need to draw me a pathetic lock-screen icon :)
[Android Apps and Games] sunsero:
Sent you the pic by mail now because attaching it here seems to convert the picture...

One idea: Maybe it would be possible to put up once a toast or notification message for the user if EXIF information is missing? Silently failing is no good I think.
[Android Apps and Games] velis74:
Another delay :( But not a serious one, I hope. Everything seems to be working fine, except the cameras. Hopefully I will find the problem soon.
[Android Apps and Games] velis74:
4.10.180 (18.1.2015)

Portugese by renatohm

Fix lollipop issues

Move to iab v3

Move to Android Studio

All images in app are now vector

Just realised that it's been more than half a year since last app update :p This move to Android Studio cost me more than I had hoped :silly:

Anyway, this is published to beta only. Don't know why, but I can't upload to XDA right now. Will try later.

Now I finally comleted the transition. This should now allow me to finally tackle the issues reported since last june. Had to drop 2.1 support though. Those 25 users won't be affected much since the base algorithm wasn't changed.

[MENTION=5221171]sunsero[/MENTION]: I ran your image through VAB analyser and it came up OK. Apperture wasn't recognised, but it didn't affect the brightness recognised. I fixed that and apperture will now be recognised, but that wasn't the culprit for your issues. A log at level 3 or more might help identify the issue. But first try the latest version just published please. Maybe it works better (or not at all :p) :fingers-crossed:

Edit: Promoted to production. Seems I let you guys wait for too long :D
[Android Apps and Games] sunsero:
Here's an extract of the log from the new version:

0,00000,00390,00390,49611002,80,111

0,00000,00390,00390,49611002,80,111

0,00000,45890,46670,47271002,80,062

0,00000,49100,49800,46091002,80,062

0,00000,45700,49410,33981002,80,062

If I interpret the 4589 value indicates bright light detected. However this is unfortunately not affecting the brightness level of the display. Still “1/0 lux“ all the time on VAB's main screen and “1lux“ in the notification.

P.S.: Seems during posting all spaces got lost from the log. I'll mail the file to you.
[Android Apps and Games] sampalmer:
Service seemed to stop on update

I noticed that this app was updated via the Google Play Store on my phone today. The screen brightness stopped changing. I had to open the app before it started working again. Maybe the logic to start the service on update is broken or missing?

---------- Post added at 06:08 PM ---------- Previous post was at 06:02 PM ----------

I've noticed that if I'm inside, when I go outside, when I turn the screen on, it takes about 6 seconds before the screen brightess even starts changing. The problem doesn't happen when I use normal system auto brightness instead of this app. Is this just Android taking a while before telling your app that the screen is on, or could it be something else? I've tried fiddling with the settings a bit.

I also noticed superdim intermittently turns off briefly while i use the phone. Once the overlay even turned blue! Maybe the service is crashing?

Lastly, congratulations for the upgrade to Android Studio! I've been much happier with Android Studio than Eclipse.
[Android Apps and Games] Adrianrff:
After this last update the issue with incoming calls and alarms is gone, but now I'm getting constant FC's whenever I open the app and the system seems to be killing it even with the interactive notification.

EDIT: I noticed that V-AB wasn't updating the brightness on lock screen. It seems that interactive notification made things worse: with it, Velis would not reactivate after unlocking, without it, it would.

EDIT2: I reinstalled the app and it seems to be working fine now, except for the fact that the screen now shows the current system brightness for a brief moment after turning the screen on. Velis takes control right after, but it's rather annoying, specially if the system brightness was high.
[Android Apps and Games] velis74:
This is now fixed and will be published with next update (hopefully today).
[Android Apps and Games] velis74:
The two top issues fixed and will be published with next update.

The intermittent deactivations are result of Android killing the service. I have also achieved some RAM savings in this latest version so that should be a bit less frequent (not noticeably so, unfortunately).
[Android Apps and Games] velis74:
This happened to me once, but I can't replicate so no fix yet. Hopefully someone will post a crash report to play store. Edit: reports in playstore and not just one :( Hopefully I managed to fix :)

Well, this is my "FIX" for lollipop issues. No other way around it that I know of. My understanding of the problem is that Android automatically removes any full-screen activity if it detects an overlay (which is necessary for VAB to set screen brightness).

This will be fixed in next update, but it actually means that you will no longer have full-screen incoming call notification. You would need to re-add lock screen to excluded apps list for that.
[Android Apps and Games] sampalmer:
Thanks!

Wow; I hadn't realised that Android kills services so readily! I had the notification setting turned off in Velis Auto Brightness. I just re-enabled it and told Android to hide notifications from the app. The problem hasn't happened again so far.

Regarding RAM, i just checked and saw that InAppBillingService is running under Velis Auto Brightness and using 12MB of RAM. Actually it just went up to 31MB, which is heaps! Does that really need to be running in the background?
[Android Apps and Games] sunsero:
Works now! VAB had falsely detected a light sensor which I had to turn off in the app's settings. Now Velis Auto Brightness works with this ROM :thumbup:

Thanks velis! :)
[Android Apps and Games] gelo9114:


Thanks. :)
[Android Apps and Games] velis74:
Darn, I forgot that Google is this greedy with Play services. I deallocate right after the initial check, but it seems Google does not :(

This should not be an issue during normal use though since I don't query Play services, I only do that when app main screen is started.

Edit: oops, turns out I didn't deallocate after all :angel:
[Android Apps and Games] velis74:
4.12.181 (20.1.2015)

Fix excluded apps in lollipop

Fix screen-on responsiveness when Lock screen is NOT among excluded apps

Fix screen-on override (sometimes didn't work)

Fix non-responsive auto-brightness in some situations

Fix crashes at app start

Uploaded to Google Play. Still no luck with XDA.
[Android Apps and Games] sunsero:
Same here: After the latest update I had to reopen VAB again to make auto brightness continue. But besides from that the latest version runs fine. :thumbup:
[Android Apps and Games] neograniceni:
Broken

Latest version is broken. Galaxy tab S and Note 4.
[Android Apps and Games] velis74:
Actually, I just found out that this has always been the case: there's a special event registered that tells an app that it was updated. I didn't register to that event.

Also: I found a setting where I can support lock screen. This is already working.

But when testing I discovered that "screen on override" wasn't working and not only that, the entire brightness updating failed to work. Back to drawing board then :p
[Android Apps and Games] velis74:
Despite this:

4.14.182 (23.1.2015)

Further fixes for lock screen

I tried all overlay types and just can't find one that would accept brightness parameter AND not mess up any full-screen notifications. I found 4 and all either work one way or the other, but none works both ways.

For now, I'm keeping one of those that at least don't mess up the functionality. Published to Play store.

Edit: this time I managed to upload to project downloads here on XDA as well.
[Android Apps and Games] bruceh:
This version always crashes on startup, Galaxy Note 3.

---------- Post added at 09:11 PM ---------- Previous post was at 09:02 PM ----------

A manual un-install and re-install fixed the crashing, Galaxy Note 3.
[Android Apps and Games] velis74:
Any chance you could get me a logcat? I see where in code that is, but it makes no sense and I can't replicate it no matter what I do :(

Oh, I see you can't replicate any more either :(
[Android Apps and Games] sampalmer:
Hiding Notification Icon & Start Service on Upgrade

By the way, I noticed that your Google Play store listing implies you don't know of any workarounds for preventing the service from being killed when the notification is disabled. I noticed that in AdBlock Plus for Android, it implies that if you let the service show its notification and then you go and disable notifications for the app in _Android's_ settings, the service will still behave as if its notification was showing. AdBlock plus automatically takes you to the appropriate screen so the user just has to uncheck the box. I've been doing this with Velis Auto Brightness, and I haven't noticed the service being killed, so I think it works.

In Android 4.3, to get to this screen, go to Settings -> Apps -> Velis Auto Brightness and uncheck "Show Notifications". I guess there is an intent you can use to navigate the user straight to this page.

Regarding starting the service on upgrade, I use this in my manifest, and it works perfectly:

<receiver android:name="YourServiceStartingReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data
android:scheme="package"
android:path="your.app.package" />
</intent-filter>
</receiver>

I hope that makes sense.
[Android Apps and Games] velis74:
Thanks, that's a good hint regarding the notification.:good:

I have already implemented the intent in latest version, the problem was that I simply didn't know it existed before :)
[Android Apps and Games] velis74:
4.15.183 (26.1.2015)

Fix flickering lock screen on some devices

Fix notification text color

Uploaded to Play store.
[Android Apps and Games] Adrianrff:
Velis has completely died. It doesn't respond to changes in ambient light. I have tried fiddling with settings but nothing happens.
[Android Apps and Games] karol1981:
Confirm, velis is not working

Wysłane z mojego Nexus 5
[Android Apps and Games] velis74:
Any chance for a tibu backup? I'm suspecting corrupt settings and i'd be glad if I could see what they look like on such stuck phone.
[Android Apps and Games] velis74:
What Android version?

Any chance you have screen touch enabled with a really long timeout? Or brightness change sensitivity set high? I can't replicate issue an any of my devices.
[Android Apps and Games] karol1981:
TB copy on your mail.

Wysłane z mojego Nexus 5
[Android Apps and Games] willowpc:
[MENTION=2424510]velis74[/MENTION] Hey brother, on Galaxy Note 4, when i go outside with a high sun light, the automatic mode put my brightness at something like 750 nits, and i can reach at this level just with automatic mode, it's impossible to get with manual mode (the max brightness with manual level its something between 430~450 nits) , so, this is a very useful tool and makes the screen very visible at sun light. it's possible to reach at this brightness level with your app ?

Sorry for bad english, thanks so much !
[Android Apps and Games] wim69:
Same here, after some time, Velis stops responding. Just upgraded and no settings changed.
[Android Apps and Games] Adrianrff:
I'm running 5.0.1. Screen timeout is set to 30 seconds and brightness change sensitivity was set to 5, I changed it to 10 but still no response.
[Android Apps and Games] kantjer:
Latest version is also non working on my OnePlusOne running SlimSaber (LP)

Velis doesn't give a sensor reading at all.

The sensor itself is working, both native AB and other AB apps are working.
[Android Apps and Games] velis74:
OK, I'll skip all the nasty words that come to mind right now :crying:

I would appreciate a logcat @ level 9 from screen on to the point when you discover that app isn't responding.

Also, does clearing app data help?

Edit: [MENTION=3625084]karol1981[/MENTION]: thanks for the tibu, but unfortunately it has shown nothing. The settings look perfectly fine.

No, unfortunately VAB doesn't know how to do that. If you find a thread where it's described how to achieve this, I could look into it.
[Android Apps and Games] kantjer:
This is very weird, I even tried a reinstall of the app yesterday and it didn't fix the issue.

Today I installed Velis again to make a logcat and everything is working again :confused:

I will monitor this, if it happens again I will make a log.
[Android Apps and Games] karol1981:
Strange things happen, after reinstalling app everything is working.

Wysłane z mojego Nexus 5

---------- Post added at 07:13 PM ---------- Previous post was at 07:02 PM ----------

Ok, now it's not working :/

Wysłane z mojego Nexus 5
[Android Apps and Games] fast_zorro:
Galaxy S5 with Lollipop 5.0:

Installed and everything working fine.

When just switched off the screen (Power Button) and switched on again, auto brightness working fine.

Switch off and lock screen, after unlock auto brightness has no response.

Check with "S5-Sensors" shows, that the sensor are workking fine.

Delete of auto brightness app cache and data in program manager bring back full response.

Auto brightness works fine, until next lockscreen was active.....:rolleyes:
[Android Apps and Games] urekeli:
Same problem.

Can you guys tell me simillar app?
[Android Apps and Games] fast_zorro:
..at the moment I don't use one and adjust manually when I drive at night.
[Android Apps and Games] velis74:
4.16.187 (5.2.2015)

Fix unresponsiveness in lollipop

Found it!!!! Thanks to chad via email for logcat.

Publish to Play store only. XDA DEVDB having issues again :(
[Android Apps and Games] fast_zorro:
....works !! Thank you !!!!
[Android Apps and Games] velis74:
4.17.188 (15.2.2015)

Fix colours

Uploaded to play store and downloads section.
[Android Apps and Games] sunsero:
Thanks, just noticed the issue today in settings, now the fix is already there :thumbup:
[Android Apps and Games] pnr2020:
In lock screen it always says contents hidden is there anyway to remove that on galaxy s5 it wasn't there before last update
[Android Apps and Games] velis74:
That's a ROM (lollipop) feature. VAB has no access to notifications, let alone controlling them.
[Android Apps and Games] atchok:
hi Velis, your app is fine and auto brightness work very well with no battery drain ,but i have some parasit noise on headphone when your service is active and screen is on, its like a fast tactactactactactac on low volume (near to zero), appears only when screen is on!

LG optimus G stock 4.1.2
[Android Apps and Games] velis74:
The only thing I can think of is that your phone has an interference issue: when CPU works, there's some background noise in the headphones. Since VAB only uses CPU for extremely short amounts of time (but in regular 75ms intervals, when there's been a brightness change), this could be the cause. Try setting smoothing to 0 (both directions) and see if that goes away.
[Android Apps and Games] atchok:
this is the proximity captor, unchecked and its ok now , 75ms is really what i heard thnx