The task was fairly simple - profile triggered every dialog, and would use Autoinput to click OK if %WIN ~ *high volume*
I finally figured out that when the screen is off the dialog pops OVER the lock screen, and %WIN is = Lock screen.
So it's not reading the dialog contents over lock screen. I tried using Autoinput UI query instead which seems to read the dialog (plus everything else, like notifications) but doesn't seem to fire when the lock screen is on.
Any pointers? This is driving me nuts.
You just need to add a couple of profiles to run that task - one each night, and the other on Tasker monitor start.
I'm not sure what I could be doing wrong. I could be connected to adb, query the variable, turn up the volume and still got the prompt.
Yeah, that's the same as I have. Did you set it after 30 seconds? It prevents ever seeing it when connected to bluetooth?
I'm not sure what I could be doing wrong. I could be connected to adb, query the variable, turn up the volume and still got the prompt.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/GQLfhDUQEpA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Yes. Would I see the value change if that went wrong somehow?
1. Restart phone (so prompt gets reset)
2. Run Tasker task to set the audio_safe_volume_state to 2
3. Connect phone to PC via adb
4. Run command from PC: adb shell settings list global
Result (excluding other settings): audio_safe_volume_state=2
5. Connect phone to BT headset
6. Turn up volume
Result: Prompt still received!
7. Click OK on prompt
8. Run command from PC: adb shell settings list global
Result (excluding other settings): audio_safe_volume_state=2
I can repeat the same with 0, 1, or 3 and get the same result. No errors, I see the value change but still get the prompt. Also note that clicking OK on the prompt doesn't change it from where I set it.
Also, isn't it you in that thread in the comments of the xda article? If so, you mention this Secure Settings plugin...do you mean AutoTools? If so, how did you get it to show up under Device Administrators? I have a very limited amount of choices of apps there and no way to add others. I am still running the trial version of AutoTools but don't mind buying...if I was sure it was going to eliminate this warning, and I'm not. Or are you using a slightly different automation scheme than in the xda article?
In any case, I think I've found an acceptable workaround, in case others are struggling: I already had a profile for connecting to my car (the main thing I want the BT volume adjusted for). So I adjusted it to:
1. Use AutoInput to unlock the phone
2. Set the media volume to max
3. AutoInput click OK if %WIN ~ *high volume*
4. Set the media volume to max
5. Lock the phone
The unlocking gets around the %WIN not set issue, and this handles whether the prompt appears or not (in which case it skips step 3).