yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] :
Finally a very nice and promising update!!! Love it at first glance, and works like a charm on my Huawei Mate 30 Pro.

I can confirm this bug. When long press any profile it immediately closes the app.
[Android Apps and Games] Neejay:
Is anyone else having trouble installing the test version? Android 11, p4xl

I keep getting "Application not installed".
[Android Apps and Games] wonsky21:
Here's another glitch: VAB says that accessibility service is not enabled, when obviously it is enabled.
[Android Apps and Games] velis74:
This one's going to be interesting: I actually query the OS whether it's enabled or not...

Do you by chance have a possibility to send me a logcat?
[Android Apps and Games] wonsky21:
Sure, as soon as I'm at home
[Android Apps and Games] katamiaw:
Hello,

I have the same problem.
[Android Apps and Games] wonsky21:
There it is
[Android Apps and Games] _mysiak_:
Woo-hoo, new version :)

Mi A3, stock rooted Android 10:

- no crashes observed, either during usage (although limited to few hours only) or while creating or long pressing the profile

- I had to re-run the initial wizard to enable new permissions (I just reinstalled over previous version of VAB), but after that they're recognized and used properly

- excluded apps are not working

- I can't "support the developer" from within the app, connection to Play store payment system can't be established

- I am not sure if auto brightness should be working on lock/AOD screen, but it seems that it's stuck to one (and quite bright) value

- I am sorry if I missed this option, but it would be helpful to set some minimum "safe" brightness - with VAB I can lower the brightness to practically pitch black screen and it was only my luck that I was able to restore it to visible levels. This can be quite dangerous. :)

In each case, thanks a lot for this update, I can use VAB with my AMOLED display to remove PWM brightness control.
[Android Apps and Games] dirtyreturn:
I'm personally unable to install the app.
[Android Apps and Games] velis74:
You guys have "Allow install from unknown sources", etc. checked, right? I need more info if I'm do do anything about this. [MENTION=1927832]Neejay[/MENTION]: I will test with the pixel 2 we have here in the office, maybe it's going to tell me something.

As for the rest: I'm making progress, eliminating issue by issue. Also: I just knew those profile button menus would be trouble the moment I obeyed lint and "fixed" their defs... :D
[Android Apps and Games] velis74:
[MENTION=807267]kam333[/MENTION] [MENTION=2086469]truemagic[/MENTION] Guys, I cannot duplicate the problem with app crash when profile button is long-pressed. It works for me and I tried on Android 4.2, 9 and 11. I have one more phone readily available (android 8 I think), but I don't think it's going to be any different.

Any chance one of you has a rooted phone and can get me a logcat of the crash?
[Android Apps and Games] dirtyreturn:
I don't know what logs you needed

I'll try another download.
[Android Apps and Games] _mysiak_:
How to collect logcat: https://support.citrix.com/article/CTX232375

Edit: that's probably for others, you provided logcat as far as I see :)
[Android Apps and Games] kam333:
I'm not rooted but I've got a logcat i can send.

I don't want to attach here, I'll pm you the link if that's ok?
[Android Apps and Games] dirtyreturn:
Try syslog from the playstore.

---------- Post added at 06:28 PM ---------- Previous post was at 06:25 PM ----------

Yes, sir!

Sometimes I'm way too vague .... Sorry. what I should have typed was _'im not sure what type of log the dev would need. So, I'm pretty sure I ticked every possible log minus the kernel log I think. And downloaded velis and tried to install it.
[Android Apps and Games] kam333:
I use logcat extreme
[Android Apps and Games] Rushikesh787:
It works perfectly as my phone does not have the auto brightness feature.
[Android Apps and Games] THRUSTer:
I have this problem on my Pixel 4 with Android 11 as well. Is the apk signed correctly?
[Android Apps and Games] Rodimus8402:
I also have the same issue, with a Pixel 4 XL on Android 11.
[Android Apps and Games] velis74:
Yep, this one got me thinking. I selected "V1 signature" to be sure, but in doing so I created the problem for all you Android 11 guys. The only reason my Pixel did not complain is because I installed that particular one via Android studio. DUH. I'm a certified idiot...

Lemme just fix the excluded apps so that it renders decently and then I publish another version. Hate to falsely advertise, but I will work to do it today.
[Android Apps and Games] velis74:
Next iteration:

4.70.253 (12.11.2020)

Fix app crash on screen rotate

Fix app crash on showing last wizard page

Fix excluded apps list

Fix Android 4 compatibility

Fix crash for late service activation (updating on non-UI thread)

Relaxed accessibility service active check (some phones report active services differently than expected)

Link to the app.

[MENTION=807267]kam333[/MENTION], [MENTION=2086469]truemagic[/MENTION] et all: I have done some research & fixing related to the profile button long-press crash. Hopefully it should be fixed, but it's probably not.
[MENTION=3673848]wonsky21[/MENTION]: I think all your reported issues should be fixed
[MENTION=1677632]_mysiak_[/MENTION]: I did some of yours, as for the rest:

new permissions: yeah, got a task for that. There's going to be a snackbar for all of them ultimately

purchases not working: possibly because it's not installed from play store. Should be fixed the moment we go to beta

doesn't work on lock screen: it does for me, but I haven't tested extensively (multiple phones) yet. Will see if that can be made better. There's a setting governing lock screen initial brightness though, you might want to look for it in app settings. Not that it would suddenly make it work, but at least you can adjust to lower brightness.

minimum safe brightness: VAB never goes below 1/255, but I agree, it's quite possible to set brightness to absurdly low levels. I made some detection algorithm for the superdim functionality, but not for regular. Not even sure how I should approach this one since it would probably have to be set at first and then ask whether it should go lower ...

Also, the user experience when running the wizard for the first time on fresh install is quite abysmal, IMHO. I just don't know how to fix it since VAB requires so many of EXTRA SUPER DUPER protected permissions. Eh... I suspect the list of these will keep increasing, hopefully not with EVERY new Android version.
[Android Apps and Games] :
Still forced close on long pressing profile. Probably only happened to Huawei phones (kam333 mentioned he is using Huawei as well). Not sure how I can provide you logcat because I'm not rooted. So right now I can't rename or save over an existing profile :)
[Android Apps and Games] wonghyf:
The excluded apps' behavior is erratic.

At first, it doesn't revert to auto brightness after exiting excluded apps.

But after re-enabling auto brightness in VAB, it's stuck with auto brightness in excluded apps.
[Android Apps and Games] _mysiak_:
[MENTION=2424510]velis74[/MENTION] - thanks a lot for the new version, a few quick comments:

- I'm sorry but I can't find setting for changing the lock screen brightness - I have advanced view enabled, but still can't see (maybe I'm just "blind", I don't rule out this option :) ). Lock screen is stuck to the brightness set on system slider before I turn off the screen (doesn't matter if I configure VAB to move the system slider or not). I can define desired brightness manually or with Tasker, but VAB doesn't seem to do anything with locked screen.

- this is probably related to how I use VAB (superdimming below 82% to remove PWM flicker of AMOLED display), but moving VAB slider below 20% is almost totally black screen. I can't see a thing when I set it to about 10% or below. :)

- VAB doesn't seem to kick in again after I exit an excluded app

- not sure if this is by design, but opening system settings automatically disables VAB, exiting from system menu enables it again (resulting in brightness change whenever I enter/exit system settings)
[Android Apps and Games] velis74:
The setting is called "Screen-on sensor value override". Damn, I've had complaints in the past about complexity of the settings, but I just don't know how to make it easier :(

Yeah, superdimming isn't called superdimming in vain ;)

Got it: more testing exluded apps!

I haven't noticed the one with system settings. Will check.

I have a P30 Pro as my daily driver. Doesn't crash.

Seems a side-effect of moving to accessibility service. Will take a look.
[Android Apps and Games] _mysiak_:
I will have a look on that setting. Not sure if it's possible to make advanced settings less complicated, they are advanced after all.. :)

I get the idea of superdimming, but because of it's "power" I would prefer to have a safety net - you know, when the kids play with the phone and they accidentally (or deliberately, mischievous little things!:D) set brightness to 0%, it would be quite a fun to solve without a PC. :) But of course that's just my use case, maybe others don't find it required.

I have completely uninstalled and reinstalled the app and behavior with system settings isn't there anymore. Not sure what caused it before, but I will report back should it appear again.
[Android Apps and Games] kam333:
Still force closing for me too, I did pm [MENTION=2424510]velis74[/MENTION] a logcat whilst it crashed, not sure if it was useful though.
[Android Apps and Games] _mysiak_:
[MENTION=2424510]velis74[/MENTION] - no matter what I set to "Screen-on sensor value override", brightness doesn't change on lock screen. Not sure if I missed something else, but VAB starts working only once I unlock my screen.

Anyway, I do confirm that automatic brightness, or better said superdimming/overlay gets always disabled in these situations:

1. lock screen

2. always on display

3. any submenu in system settings (e.g. battery, display, etc.), but strangely not the system settings themselves

4. when system shows dialogs for app installation (I suspect that any system dialog will do the same thing)

As I use overlay pretty much exclusively (below 82% when PWM kicks in with stock brightness control), I might be hitting some "corner" cases. If logcat would help, just let me know and I'll send it to you. Thanks!
[Android Apps and Games] velis74:
Ha! I just found out that my P30 had a buggy software update app. After a few clear data runs, I'm now on android 10 which is crashing for me as well. Hopefully it's going to make diagnosing the issue so much easier!
[Android Apps and Games] THRUSTer:
So it says that Accessibility service is required to work, but it used to and still works fine without me enabling it.
[Android Apps and Games] ivanvi:
This is what I found in the latest version:

- Screen-on sensor value override option doesn't affect lock screen brightness on my phone, but it affects brightness after the phone is unlocked, that's the first value of brightness that will be set. It seems like lock screen brightness will be set to the one that is set on the slider, but I also saw the case when it stopped working that way.

- VAB somehow affects volume control on the screen. When I try to increase/decrease volume, control stays on the screen for too long if I don't tap on the screen to dismiss it. It can disappear by itself too, but only after 20-30 seconds or so. Is it related to accessibility?

I use Redmi Note 8 with MIUI 11 and Android 9.
[Android Apps and Games] sctanf:
New update is working fine for me! I have a few questions though. Is there a way to adjust the behavior of the proximity sensor? Can Vab work on the always on display?
[Android Apps and Games] _mysiak_:
Explanation for the volume panel timeout https://www.xda-developers.com/why-android-phone-volume-dialog/

This has been fixed in Android 10 source code. Developer might be able to modify accessibility service type to FEEDBACK_GENERIC to fix the behaviour for older Android versions (not sure if possible for the overlay though). But in the worst case you'll get used to it, no worries. [emoji846]
[Android Apps and Games] velis74:
Got the profile button long-press thingy: works now. Sorry for having trouble reading that logcat...

Yes, I noticed that on my phones with not-so-recent Android versions. Basically I didn't modify the service all that much: it still tries to do everything "the old way", so sometimes it may even work, especially if you're using system brightness updating.

I have a task open for proximity sensor where it would support the following: not used, ignore light changes (current), only allow brightening, only allow dimming, turn screen off)

As for always-on display, you will have to be more specific.

Thanks for the info, I will take a look.

Edit: fixed too.

I'd like to fix the excluded apps too before I make the next publish. I think we're just about ready to go beta (again) after three years!
[Android Apps and Games] dirtyreturn:
Hey, [MENTION=2424510]velis74[/MENTION] . Is the latest update, is it connected to the google services stuff? Like, well, I'm near almost completely positive I had purchased the widget option from the in app purchases before.

What will happen to that, if anything? Thanks.
[Android Apps and Games] THRUSTer:
[MENTION=2424510]velis74[/MENTION] There is also the weird thing with Android 11 where it will randomly cause the entire OS to freeze, sometimes for a few seconds and sometimes for over a minute (and I have to force reboot).

Usually happens when it's activated/deactivated (but only sometimes).
[Android Apps and Games] velis74:
Only got to work just now. So I publish what's already done first.

4.70.255 (13.11.2020)

Fix crashing on profile button long-press

Fix volume dial sticking too long

Fix changelog Display

Link same as before.

Now for the excluded apps list and the rest of things.
[Android Apps and Games] velis74:
It should be connected, but it's possible your link is inactive because we're sideloading it right now. Will definitely be fixed when we go to beta / play store.

I won't be able to test 11 today, but I will definitely take a look. You say when you enable / disable the accessibility service? Please be precise on which button you're toggling: VAB has a plethora of "enable" buttons :D
[Android Apps and Games] THRUSTer:
It would be the service itself (for example, the button in the notification shade or the On/Off switch on the main activity of the app).

It'll happen when the app deactivates itself for permissions dialogs too. Sometimes it seems random too, not sure exactly what circumstances cause it.
[Android Apps and Games] :
Confirmed long pressing profile is now working on my device, perfect ???
[Android Apps and Games] velis74:
Initial report on the excluded apps functionality: This is going to be fun!

I have added android settings to excluded apps.

Now I go from VAB to settings and about half of the time, phone will say that top process is com.android.launcher (I have Evie for my launcher...). Well, at least SOMETIMES it says it's settings. But then, usually VAB will be suspended really shortly after that. No wonder this functionality doesn't work :(

It seems I'll have to tackle this one from multiple angles :p
[Android Apps and Games] velis74:
Wow, stumbled upon this :(
[Android Apps and Games] ivanvi:
I have just checked volume control, it's fixed in this version ? ?
[Android Apps and Games] _mysiak_:
This has been around for quite a long time, but there are still many apps with active accessibility service and available on Play store (some even with similar purpose as VAB). I don't know if Google changed their policy or developers just must explain why they use this service, but it doesn't seem to be such a threat in real life. If they come to you, I'd suggest using "preserving healthy eyesight and prevention of eye strain and headaches" (PWM removal for AMOLED displays and general ability to achieve very low brightness) as justification. :)

Edit: now I see that you want to use Accessibility service also to detect running apps - Tasker does this as well, so it should be possible and not a reason for deletion from Play store :)
[Android Apps and Games] THRUSTer:
Google changed their minds on that.
[Android Apps and Games] katamiaw:
Hello,

Thanks velis74 for this good app and the update !

With the last version, on the lock screen the brightness is automaticly on minimum value.

When i unlock the Pixel 5, the brightness is ok.

I have the same problem when i use bitwarden for auto-complet login/password with Chrome. When the bitwarden option appear , the brightness turn to minimum value, and after complete login/password it's ok for normal value.

It's an option or a bug ?
[Android Apps and Games] THRUSTer:
It's not updating the system brightness correctly, so it's reverting to previous values when the overlay is temporarily disabled.

If you set your phone's main brightness to max, then it will go to max brightness every time you use secure dialogs (like password manager or permissions). That's why in the old version I'd have "Optional update system brightness" turned on.

Also I use Bitwarden too, it's great!
[Android Apps and Games] velis74:
4.80.258 (14.11.2020)

Fix excluded activities

Link to download

I will "now" skim through previous posts, but IIRC, there remains the lock screen issue and sporadic phone locking in android 11?

"now" as in: in the next few days. Right now I'm off to the airfield: we're moving planes & trailers indoors for winter.
[Android Apps and Games] _mysiak_:
Thanks, you really caught a second breath with app. [emoji846] Yes, overlay doesn't work in lock screen, always on display (not sure that it's possible to display it here though) and also gets disabled in system dialogs and settings.
[Android Apps and Games] _mysiak_:
+ another small issue, overlay (?) disables automatic detection of screen color, so system uses always bright status/navigation bar (please see attached screenshots, one with VAB inactive, second active). I haven't noticed it before, it probably started with the last or previous version (I don't have backup of installation files so can't return to an older version). View attachment 5135177View attachment 5135179
[Android Apps and Games] velis74:
Not sure what I'm looking at here: the images are full bright, half-dimmed? Can you please be more specific what I should be paying attention to?
[Android Apps and Games] _mysiak_:
Sorry, my bad. [emoji846] Text, icons and nav bar buttons are always white, even if the background is white as well. Without VAB, system automatically switches between white and dark/black text, depending on the background.

On the second screenshot it's visible, that status bar and navbar are invisible. [emoji846] First one has visible icons and text.
[Android Apps and Games] Neejay:
I can install this one, thanks.
[Android Apps and Games] Astoria:
Thank you for the long-awaited update! I use this app for many years :)

Do you accept feature requests now?

If Yes, could you please add "actions for app" support for selecting the profiles?

I mean the actions that appear when you long-tap on the app shortcut, as described here:

developer.android.com/guide/topics/ui/shortcuts (sorry, I can't post active links yet)

If it's not difficult... Thank you!

ps. sorry for my poor English
[Android Apps and Games] velis74:
This is actually already done in the widget, so just place a widget in your launcher?
[Android Apps and Games] THRUSTer:
I've discovered that the intermittent locking up of the OS only happens when using the overlay. If I turn on "only use system brightness," the issue goes away.
[Android Apps and Games] velis74:
What's your phone again?
[Android Apps and Games] velis74:
OK, I went through all the replies, thanks guys.

The most issues remaining open are ones reported by [MENTION=1677632]_mysiak_[/MENTION].

So, right now we have the following:

VAB deactivated in system settings & lock screen

too dark screen no way to recover - do we introduce a five-tap to wake the screen?

VAB messing up dark/light mode (status bar rendered white font on white back)

in-app purchases not working (should be fixed once we're back on play store)

Not all permissions are in the snackbar yet, so the user needs to know how to enable them

I need to get my hands on a Redmi, and I have my mother owning one (Realme 5), but I can't get to her with these Corona measures in place. Will take a few days before I can do anything about that.

I think I'll try going to beta sometime soon to hopefully get more feedback. And I definitely need to devise a way to thank you guys for giving me such great feedback every time. I think I have just the thing, but I need to test how google actually handles those promo codes. Will be done by the time I publish in beta.
[Android Apps and Games] ivanvi:
I'm using the latest VAB version (4.80.258) on my Redmi Note 8 (Android 9) and it works very well. I'm also pleasantly surprised by its battery consumption since phone reports that it uses only ~0.6% of battery most of the time. If I remember correctly, battery usage was higher with the latest stable version on the Play Store.

There might be one new problem that hasn't been reported here and it's related to "Proximity sensor" option. I was just curious about it so I tried to enable, but it makes VAB to stop working - it doesn't control brightness anymore. Proximity reading shows always 5 cm, app looks like it's tracking light on the graph, but doesn't control brightness. When I try to disable this option, service still doesn't control brightness and the only way to fix the app is to clean its all data and set it again. To me, it looks like "Proximity sensor" option makes VAB to lose permissions, although it doesn't make much sense.

I had an issue with screen flickering while typing and that's why I played with "Brightness change sensitivity", "Smoothing time" and "Proximity sensor" settings, but it's really not easy to find compromise there :) When sensitivity is set to higher percentage (lower sensitivity which removes flickering), there might be the case when brightness stays on 3-4% instead on desired 2% in complete dark. I found that setting sensitivity to 15-16% might work the best for my needs, but I'm still testing and trying to find the best settings.
[Android Apps and Games] dirtyreturn:
OT.

I'm personally unable to restore purchases.

Anything you'd recommend?

PS I'm told the item isn't available.

View attachment 5141993
[Android Apps and Games] THRUSTer:
I'm currently using a Pixel 5, but that issue is also present on my Pixel 4, which means it's an Android 11 thing.
[Android Apps and Games] THRUSTer:
The Settings app blocks all overlays.

You can get around this by enabling "Allow screen overlays on Settings" in Developer Options.View attachment 5142011
[Android Apps and Games] THRUSTer:
Turn on "optional update system brightness."
[Android Apps and Games] iamlaybhari:
It is a very functional and featureful app for devices without auto brightness sensors :good:
[Android Apps and Games] ivanvi:
I'm not sure if this is already mentioned under this point, but there is also a problem with profiles screen. In the light theme names of the profiles are unreadable - at least on my phone. Button background and button title are both dark.

(picture attached)
[Android Apps and Games] nathanadams4429:
The app works very well, but unfortunately it does not work on the lock screen so the lockscreen will either be unreadable in sunlight or very bright indoors
[Android Apps and Games] velis74:
[MENTION=1677632]_mysiak_[/MENTION]: about VAB messing up dark/light mode (status bar rendered white font on white back)

I just checked this on my mother's phone and it didn't cause any issues. However her phone (Realme 5) had a transparent status bar, not a clearly defined and painted one.

Anyway, text colour was not affected by VAB.

So right now I have no way of replicating this issue.
[Android Apps and Games] velis74:
Error 502 double post removed