yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] velis74:
Sam, thanks for the suggestion. This has been researched, but I have so far not decided to implement it since my activity is using live data from the service. Not just SharedPreferences, also the brightness curve, cached settings and events. I'm afraid I tethered too many chains and this would mean a lot of work.
[Android Apps and Games] albug68:
Hi velis, I want inform you that on TAB4 wifi (sm-t530) your program don't work very well with lollipop 5.0.1.

With Kiktkat the camera work very well togheter your app but with lollipop if I try to use camera frontal or rear I get "camera failure" message when your app is running.

Regards
[Android Apps and Games] velis74:
Do you get this message consistently every time? Usually, this message would appear if you tried to run camera app exactly at the moment when VAB was taking a picture. So with 5 second intervals that should be around 20% of attempts to run camera app (depends on device how long it is grabbing a pic).
[Android Apps and Games] albug68:
With Lollipop every time. With KK sometimes.

Regards
[Android Apps and Games] velis74:
4.50.202 (04.9.2015)

VAB now works in lock screen on lollipop

Better superdim performance

Theming

A new release after a long time. Doesn't mean I'm not proud of it! :D

I managed to implement theming for my app. Right now it's rather crude, you cannot fine-tune the chosen colours. The colour palette offered is just that of what is listed in Google's Material design guidelines page. You can choose base colour, accent colour and whether your theme should be light or dark. I haven't implemented fine-tuning yet because I would like to test the base functionality first.

Unimportant sidenote: This was a total massacre - Google totally doesn't like a programmer to be able to control theming. I had to tear half the framework down in order to get what I wanted (and not simply design 19 x 19 x 2 theme variations packing them all into this HUUUUUUGE apk :p )

It also means I now have a custom Switch widget. I hope you guys like it. I tried to make it look similar to lollipop switch, but still with text displayed. Spent the entire last two days on that. Thanks to pellucide for his backport which I used as base. I have so little time right now so I don't know if I'll be able to test his demo app to see how it works with the modifications in order to properly publish the source code. Maybe I'll just generate a pull request and hope he's still willing to work on that widget. In the mean time, PM me for source if you want it. :)

I also stumbled upon a possible solution for lock screen brightness. So far it seems to be working. It forced a change in superdim implementation, which should be more performant and also less intrusive on the eyes. The only issue I encountered was with SuperSU tapjack protection (super user prompt dialog isn't responsive when tapjacking is enabled). I haven't researched yet whether I can disable VAB for the prompt though, so for now the only solution is to disable it.

I now publish two versions of the app: one for pre-ICS devices (using compatibility library, huge apk), one for ICS and later devices (using native libraries, apk size much smaller).

I joined the new variant of beta programme. That limits possible beta testers to those with ICS or newer Android version only (presumably all of you guys :) ) OP updated with relevant info on this.

Uploaded to play store beta only. XDA upload didn't work for me.
[Android Apps and Games] kantjer:
Sadly today's update FC for me Even tried a new install but still the same, can't open the app.

#whiteuimustdie
[Android Apps and Games] velis74:
Sorry, proguard got me here :p The last thing I thought would get me is the difference between debug and release build. Sorry again.

Uploaded a new build which should work.
[Android Apps and Games] Pkt_Lnt:
Ah! Sent you three reports via FC in app, "slocaus" user name in email. I just got my new computer to recognize my phone and generated a logcat, but sounds like you do not need it.
[Android Apps and Games] Pkt_Lnt:
Can you give us the build number on the fixed one? I keep upgrading the broken one not knowing when Google updates builds.
[Android Apps and Games] kantjer:
4.50.203 just installed and it's working fine again

#whiteuimustdie
[Android Apps and Games] velis74:
106 / 4.50.203
[Android Apps and Games] velis74:
I guess I shouldn't put that light / dark theme checkbox on the theme screen then ;)
[Android Apps and Games] Pkt_Lnt:
Thanks. It finally showed up after two open/close app in Play Store. Work fine now.
[Android Apps and Games] kantjer:
Lol

#whiteuimustdie
[Android Apps and Games] velis74:
4.55.204 (09.09.2015)

FIX: Excluded apps work on Android 5.1 and newer (requires special permission)

Ridiculous how Google tries to make API hard to get to :(

Anyway, published to production in Play Store. Again upload to XDA didn't work for me.
[Android Apps and Games] sunsero:
Best release ever! :cool:

Could it be the phone actually became noticeably faster because of the better performance of the superdimming?
[Android Apps and Games] velis74:
Thanks.

Though I'd like to think that my previous superdim implementation wasn't SO bad, I did receive quite a few complaints about its performance. I always thought it was device / ROM specific, but I guess that wasn't the case :p
[Android Apps and Games] velis74:
4.55.205 (14.09.2015)

Some minor tweaks and fixes

Published to Play Store. Just went through some crash reports and tried to fix them. Hopefully app will be more stable now.
[Android Apps and Games] albug68:
Hi velis...I install it on my LG G4 and it is perfect. The stock automatic regulation has problem when low lux but your app in G4 is perfect with lollipop 5.1. Only a bug now have your app...the slider "look & feel" in the notify area :o:o:o
[Android Apps and Games] vrwmiaris1:
Dunno why but on auto mode brightness is still at low level.

Ps, the third switch on settings works or it's just decorative as it says? What exactly does?

Στάλθηκε από το LG-D802 μου
[Android Apps and Games] danfill:
Good.
[Android Apps and Games] sпирт:
Excluded apps not work on Android 5.1. :(

Phone : Lenovo Vibe Shot
[Android Apps and Games] velis74:
What's wrong with slider look & feel in notification? Please be more specific.

What do you mean that brightness is low on auto mode? This just doesn't sound right.

Also, by third switch you mean "auto update system brightness"? It works last I tested. It updates the system setting which will take over when VAB deactivates. Otherwise there's no effect from this.

Latest version should work. Did you click excluded apps in settings? On first click it will redirect you to system settings dialog where you will be able to give VAB permission to get the recent apps list.
[Android Apps and Games] albug68:
Don't worry velis your app is great. I only made my consideration about style of your slider ;).

It is a bit difficult make precision light regulation like lollipop or kitkat slider.
[Android Apps and Games] velis74:
Well, It's impossible, really: Since I couldn't find a way to draw a slider without the dragging button, I just drew a standard progress bar and under it I detect 16 possible areas for brightness. Hence you can't "slide" to adjust nor precisely adjust brightness. Sorry about that, but so far I can't see how I can make RemoteViews work for me :)
[Android Apps and Games] sпирт:
I'm install v4.0 app, and update to 4.55.204 in market. I'm not have system dialog, but VAB receives all list app.

I'm del app, reboot phone, and install in market latest version again. But not have system request anyway.

And excluded apps not work.

Sorry for my bad english.
[Android Apps and Games] velis74:
Please see theattached screenshots: you have to touch "Excluded apps" setting. Then, if you are on Android 5.1 or later, you will be presented with a dialog explaining that you need permission. If you decide to click "apply" button, you will be directed to appropriate settings dialog. You can also go to this dialog manually. In my ROM, it's placed under Security, Apps with usage access (it's the last item in Security section).
[Android Apps and Games] sпирт:
I'm granted permission manually and it's work ! Senks.

Your app excellent !
[Android Apps and Games] bberryhill0:
Just discovered the Graph Editing Sensitivity setting. I'll have to play with it to see what I like. 10 looks about right.

* Bummer, my custom graph just got reset to stock. Why did that happen?

** Is there a way to edit an existing profile or do I have to create a new profile every time I edit?

*** Got it. Long press on the profile to save. This works for me:
[Android Apps and Games] velis74:
[MENTION=5184108]donjoe0[/MENTION]: Thanks for the thorough analysis. I will look into this as soon as possible. I haven't noticed anything strange myself but I only use superdimming on the tablet which doesn't turn around so much.

I can now also confirm that Android 5.x at any point decides that VAB "owns" the camera and will refuse to let Camera app grab it. I'l have to move the code to camera API 2.

It will take a bit though. The usual lame excuses include that I just went self-employed and also that I have this really big project taking almost all of my time right now.
[Android Apps and Games] sunsero:
[MENTION=2424510]velis74[/MENTION]: Just read an interesting article:

http://drippler.com/drip/get-good-night-s-sleep-filtering-your-phone-s-blue-light Via j.mp/drippler_app

What do you think about implementing a blue light filter into VAB? Maybe only as an option for superdimming which is technically seen probably the fastest way to get this implemented.
[Android Apps and Games] velis74:
I must admit that I've been on custom roms for too long :) Right now I have a ROM which has this feature called "Live Display". It automatically adjusts screen color temperature in the evening and that results in less blue. The filtering I could do with superdim overlay would be to add red colour, not to reduce blue colour. I don't think that would be helpful for eye strain since then I'd have to also dim the screen. That ultimately reduces amount of blue, but it makes the screen seem washed out since I'm messing with displayed colours. I would strongly recommend using a HW implementation which actually reduced blue. Pretty much all CM based ROMs have some or other solution for this. Also pretty much all custom kernels.
[Android Apps and Games] donjoe0:
1. If you don't also control the overall brightness of your environmental lighting wherever you're spending your time in the evening, whatever you do on your PC or phone will be next to useless.

2. It's not just blue wavelengths that affect sleepiness, green also does that: http://europepmc.org/abstract/MED/1896724

But then if you try to cut blue and green you're reducing the image to its red components and making the phone next to unusable. :P

Really the bottom line is if you're appropriately reducing the overall light intensity entering your eyes in the evening you've already done most of what you can do on this front. And if you're going to worry about the blue wavelength intensities, worry first about what types of room lights you're keeping on late at night, don't start with your phone.
[Android Apps and Games] sonic74:
A possible solution might be to enable OS auto brightness when a certain lux threshold is reached.
[Android Apps and Games] velis74:
Indeed. I have added this to TODO.
[Android Apps and Games] nyorbee:
Hi in notifications, the notification that allows you to change brigtness for X lux should be a slider, not a tap, because is hard to change value by 1 or 2 % by taping on it...

I'm talking about this:

https://www.dropbox.com/s/8zh0zihs9uws2cu/2015-10-14 17.53.33.png?dl=0

Also You could add option to change color of it, to user can change it to match for the collors of toggles etc.
[Android Apps and Games] nyorbee:
Also my "settings" wont stick after reboot, for example in notification bar when I have lux 0 and brightness 7%, than I'm tapping on to zero, and press check mark, so now my lux is 0 and brighntess 0%, and until reboot it sticks that way, but after reboot is back to lux 0 brightness 7%
[Android Apps and Games] albug68:
I try your last app version with my TAB4 wifi (sm-t530) with lollipop 5.0.1 but now I can't enable frontal or rear camera regulation on your app. With previous version I can enable frontal camera to measure lux but I get error from fotocamera every time when I try to use it to make a photo.

Regards
[Android Apps and Games] velis74:
Thanks for the heads up. Yes, accepting current brightness change doesn't automatically save to "disk". Will fix ASAP.

This is a known issue. I have a TODO to rewrite camera to API 2.
[Android Apps and Games] MyronAz:
Excluded Apps is still not working for me. (Yes, I have enabled usage access for VAB. FWIW, I never got any notification from VAB to do that, I just did it manually. Running latest version 4.55.204.)

Alcatel Idol 3, Android 5.0.2
[Android Apps and Games] sonic74:
Galaxy S6 OLED Brightness boost

It seems to already work when >13000 lux
[Android Apps and Games] velis74:
Perhaps some variants of 5.0 already don't allow what was allowed for a while. Please drop me a mail (it's on the play store page) so that I can prepare a special build for you to test.
[Android Apps and Games] Pkt_Lnt:
Something strange going on with the widget and IAP. I have not used if for awhile, but just installed it to make manually changing profiles easier, even though I have Tasker control it based on sunrise / sunset.

On a de-odexrd.de-bloated, rooted but otherwise stock TouchWiz ROM - Samsung Galaxy S4 Active i9295 GSM / Super WizCyan 5.01 Lollipop
[Android Apps and Games] velis74:
I will check it out ASAP. National holiday here, but I'll stick it somewhere into next week.
[Android Apps and Games] Pkt_Lnt:
It is not a big thing, the holiday and family are way more important. Everything just works in spite of the error message. I just wanted to alert you.

Happy Holidays.
[Android Apps and Games] oia12344321:
Greata app! I love it. Only thing that bother me is that "ugly-hard to set" notification :)
[Android Apps and Games] velis74:
This really doesn't tell me much. Can you please describe the exact thing that is at issue here and what you expected to find instead of it.
[Android Apps and Games] fizmixa:
doesn't work with my nexus 5x running 6.0.1. graph registers light changes, but screen never adjusts. not sure if this app is compatible or not, but i searched and didn't find anything.
[Android Apps and Games] velis74:
Hm, I have ~1K installs on 6.0 and there seem to be no reviews on play store mentioning that it doesn't work, so it must be your device or some setting that you changed. I'll try to find a 6.0 ROM for my G3 to test this myself if I can.
[Android Apps and Games] fizmixa:
I previously had a G3 running cm13 and that worked fine.

my nexus 5x is stock rooted 6.0.1. no different apps then what I was using on my g3. I am also using CF Lumen and thought maybe that was conflicting. I uninstalled CF Lumen but that didn't help. on my G3 I ran CF Lumen and Velis auto brightness together with no problems.
[Android Apps and Games] velis74:
4.55.207 (8.1.2016)

Fix for excluded apps in 5.0

Widget would report tasker content not purchased when it in fact was

Other minor fixes

Uploaded to play store and project downloads page.

I could only duplicate this on freshly rebooted phone. Please let me know if the fix also fixes your issue.
[Android Apps and Games] Pkt_Lnt:
Yes, no more error message, even though it still worked fine before with no loss of functionality.
[Android Apps and Games] donjoe0:
Welp, I've moved on to an HTC One (M7) with CyanogenMod 12.1 (based on Lollipop 5.1.1) and I don't have the superdimming problem anymore, but I think I've discovered a new bug:

When VAB is on I can't press the [Install] button in the APK installer (but the [Cancel] button, strangely enugh, does work). If I turn VAB off it works.

This has been reported before and most answers say it has something to do with overlays and compositing. I would've thought the superdimming overlay would be the most likely culprit, but then again I wasn't in the superdimming activation region of the graph when it happened to me.
[Android Apps and Games] Pkt_Lnt:
Add Package Installer to Excluded Apps in VAB Settings.
[Android Apps and Games] donjoe0:
OK, that would get the desired functionality working, which is more important than the short-term undesired screen brightness I'd have to accept in exchange, but IMO there's still a bug here, to which app exclusion is just a workaround. (Also, just noticed up-thread that the superdimming overlay is never destroyed, just resized, so that's why I ran into the problem even with superdimming "inactive".)
[Android Apps and Games] velis74:
This is not a bug anywhere: package installer has tapjacking protection built in, just like supersu. If it detects an overlay, it refuses to install, it's as simple as that.
[Android Apps and Games] Pkt_Lnt:
I just emailed you a crash report on this with the current version 4.55.207. The usage permission is granted, but I cannot get into Excluded apps without the popup and then a crash when I press "apply". Everything else is fine. I just discovered this with the current conversation about overlays and tapjacking.

Samsung Galaxy S4 Active i9295 GSM /// Super WizCyan 5.01 Lollipop link is in my sig. It is a stock TouchWiz, deodexed and debloated.
[Android Apps and Games] donjoe0:
Oh I'm pretty sure it's a bug, since I'm getting apps not behaving intuitively, control elements not working as displayed. But on further consideration I'd call it a Package Installer bug, since that's really the app that's not working properly just because it wants to be more secure. :)
[Android Apps and Games] rapttorx:
[MENTION=2424510]velis74[/MENTION] i made some updates for the romanian language :silly:
[Android Apps and Games] velis74:
I just published, then saw this :p

Will republish right now.

Edit: done
[Android Apps and Games] velis74:
4.56.210 (8.2.2016)

Fix crashes (wizard, theming)

Add support for Android Camera API v2 (might coexist with other camera apps better)

Updated Romanian language

Uploaded to Play store & thread downloads section.

I sure hope I didn't mess up the Camera API. In addition to supporting V2 I also tried to make it more robust. Might have messed up the whole thing too :p

I also fixed theming on Android 2.x, but users percentage using those Androids dropped to less than 3%. I'm a pleaser by nature, but this percentage is really pushing even my buttons. :silly:

Latest version should fix this? I received one crash report originating in my top app detection code. It seems there's a lollipop version (Samsung Galaxy S4 active) without support for usage access settings dialog. Now, instead of that crash I just run the original Lollipop detection code, unless I get a result without apps again (stupid Google interpretation of security). Then I again revert to the Marshmallow code. A glorious mess :)
[Android Apps and Games] Pkt_Lnt:
Well, it works now without crashing, but it just goes back to setting menu when pressing apply. Odd thing is that the usage access detection does work in my S4A, because I just added a function yesterday to Tasker that requites it and it pops up and take me to settings. I just went to Usage Access in Security and unchecked and rechecked VAB, and back in VAB setting, I can get into Excluded Apps without the dialog, so it all works. Shrug, I dunno. ;) Thanks for the fix.
[Android Apps and Games] velis74:
Might be that I have a wrong intent for this. Or that there are different intents for different OS versions (e.g. TouchWiz vs stock). If I read your reply correctly, my "fix" fixed nothing, sooooooo ..... you're welcome? :angel:
[Android Apps and Games] Pkt_Lnt:
Yes, your fix solved the crash. I could not get into excluded apps, or get past the usage access dialog, and now I can. I tried manually to uncheck and check the usage access permission in settings before and still had the crash, now I do not. So yes, you did solve it and thanks are in order.
[Android Apps and Games] gaich:
Russian language update: View attachment 3647997
[Android Apps and Games] xanthrax:
good observation ! i noticed also these kind of behaviour ... apps which i didn`t started but shown as active ...
[Android Apps and Games] kantjer:
How about this for twilight zone.

I uninstalled the app and reinstalled it.

Screen off for 4-5 minutes and look Velis AB isn't even listed anymore.
[Android Apps and Games] xanthrax:
take it easy ! you`ll figure it out one day !:cool:
[Android Apps and Games] lou2s:
Setting it to the lowest and if it's under the sun the increased lux reading will increase the screen brightness instantly, right? :D
[Android Apps and Games] THE RED BLUR:
But ur battery is only listing. As been 4 minutes on?

Is this even the same cycle as ur last post on battery or did you just change battery then of course velis won't be listed.

Whenever u put a battery that's at 100% charge the Dorimanx kernel will reset the stats automatically.

PHONE : SGSII

Sent via: Tapatalk 2

Main ROM: RR ics 2.7

2nd Rom RR JB 3.0.9 B4 (ONLINE )

KERNEL : Dorimanx 5.84

MODEM : LPS

ROOT APP : SuperSu
[Android Apps and Games] kantjer:
Just reinstalled the app and removed the phone from the charger (fresh battery monitor start), just a quick test.

When I did the same test yesterday (4-5 min on battery) the battery monitor showed that in that same timeframe Velis AB was responsible for 35% of the battery consumption. Now after a reinstall of the latest version it isn't even listed in the battery monitor.

When I have time later tonight I will do the 30 minute test, that should give a more trustworthy result but first quick test looks promising.
[Android Apps and Games] kroz:
i want to report a bug...

your app is missing from my battery graph now, hahaha, very good update dev, now it works fine on my s2 without worrying about battery life, will test for a couple of days more if it really doesn't drinks my juice, ;)

keep it up, now i am set... thanks for the hardwork,
[Android Apps and Games] Christiancs1969:
Still showing on mine boo:(

What settings you using mate

s2 RR 309 dori

309 doris2 RR 308 dori
[Android Apps and Games] velis74:
Yummy :D Me gusta!!

Well, it isn't exactly instantaneous. I have observed that screen_on event gets sent about 1 second after the lock screen appears. Or maybe that's just logcat + adb delay, but screen action seems to support that.

Anyway, since you want it dim, does that mean it flashes bright right now? That should only happen if you turned the screen off while still in sunlight and turned screen on in a shaded place.

I will see what can be done about this. A setting specifying screen_on brightness perhaps?

Your initial test would almost suggest that it was done on an earlier version of the apk. Though I think earlier versions sucked even more than that. Like I said: there must be something funny going on with updates, but I can't point my finger at it. I manage all settings centrally so there should be no mismatches - and even if there were - I don't even see how they could result in stuff folks reported to be happening. Seems smoe more time will have to pass for me to be truly happy wth what I've done.

Back to features and bug-squashing. :)
[Android Apps and Games] kroz:
i just ticked the auto brightness, thats all,

oh btw, i uninstalled first previous version then install new version from playstore, check if it helps, it has been installed on my phone for about 8 hours and even not showing on the bottom part,
[Android Apps and Games] lou2s:
That's exactly how it happens, lock screen in sunlight, and unlock in dim light:)
[Android Apps and Games] Christiancs1969:
Will try uninstall install:)

s2 RR 309 dori
[Android Apps and Games] xanthrax:
On settings/battery it isn't visible but gsam is not that blind
[Android Apps and Games] lou2s:
I think the battery consumption is not bad
[Android Apps and Games] Newuser_yt:
thanx fr dis wonderful app . . .working great as of now . . .