Is it possible to use tasker to switch on lastpass accessibility toggle? My OnePlus 3t (not rooted, OOS 9.0.4) deactivates it almost on a daily basis. I have switched off battery optimisation for lastpass but the phone turns the toggle off.
Use auto input
Ta. I'll check that out
Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps!
joaomgcd said:
Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps!
Click to expand...
Click to collapse
I found that by googling but I can't figure out how to make it toggle the switch. The tasker forum talks about reading the accessibility setting but gives no more details than 'brilliant that works'
Eggstones said:
I found that by googling but I can't figure out how to make it toggle the switch. The tasker forum talks about reading the accessibility setting but gives no more details than 'brilliant that works'
Click to expand...
Click to collapse
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Ta I'll test that
joaomgcd said:
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Click to expand...
Click to collapse
I must be missing something here. Autoapps seems to only control a subscription service. Can't see anything called secure settings when I download it.
Eggstones said:
I must be missing something here. Autoapps seems to only control a subscription service. Can't see anything called secure settings when I download it.
Click to expand...
Click to collapse
I mentioned AutoTools, not AutoApps
joaomgcd said:
I mentioned AutoTools, not AutoApps
Click to expand...
Click to collapse
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Deleted
joaomgcd said:
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Click to expand...
Click to collapse
I can now get the profile to switch on but I cannot figure out how to get the secure setting to change the toggle.
Both profile and task shows up as green but nothing seems to happen.
Eggstones said:
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Click to expand...
Click to collapse
No problem at all Let me know how it goes!
joaomgcd said:
No problem at all Let me know how it goes!
Click to expand...
Click to collapse
Not well at all. The profile activates but nothing is actually changed.
Eggstones said:
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Click to expand...
Click to collapse
Eggstones said:
Not well at all. The profile activates but nothing is actually changed.
Click to expand...
Click to collapse
Does it work if you run the task manually?
joaomgcd said:
Does it work if you run the task manually?
Click to expand...
Click to collapse
No. If I click on the task I don't get an error or the green dot. Instead I get a grey play arrow Infront of the task.
In the profile window both the profile and task shows up as green.
Eggstones said:
No. If I click on the task I don't get an error or the green dot. Instead I get a grey play arrow Infront of the task.
In the profile window both the profile and task shows up as green.
Click to expand...
Click to collapse
That means that Tasker doesn't seem to be able to communicate with AutoTools. Do other AutoTools actions work?
To make sure Tasker and the AutoApps run in the foreground please check here: https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
joaomgcd said:
That means that Tasker doesn't seem to be able to communicate with AutoTools. Do other AutoTools actions work?
To make sure Tasker and the AutoApps run in the foreground please check here: https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
Click to expand...
Click to collapse
Sorry to be a pain but I cannot find the run in foreground setting on my OnePlus 3t.
Eggstones said:
Sorry to be a pain but I cannot find the run in foreground setting on my OnePlus 3t.
Click to expand...
Click to collapse
Did you check here?
joaomgcd said:
Did you check here?
Click to expand...
Click to collapse
Yep. All those seeking are correctly set. It's the tasker foreground setting I cannot find. Tried googling it but the links I found doesn't match what I see in tasker.
Related
Can Tasker automate the abling and disabling of a security PIN for unlocking the phone? For example, while at home I would like to have no screen lock, but while out I would like more security and so would like a PIN to be required for accessing the phone. Thanks in advance.
Yes it can
Sent from my Nexus S using xda premium
NicholasQ said:
Yes it can
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
Awesome, thanks.
gimiento said:
Can Tasker automate the abling and disabling of a security PIN for unlocking the phone? For example, while at home I would like to have no screen lock, but while out I would like more security and so would like a PIN to be required for accessing the phone. Thanks in advance.
Click to expand...
Click to collapse
That's what I have mine doing. You'll need this also https://market.android.com/details?id=com.intangibleobject.securesettings.plugin
I've tried playing around but couldnt figure out how to do it. Can you tell me how to? Thanks
kjaved373 said:
I've tried playing around but couldnt figure out how to do it. Can you tell me how to? Thanks
Click to expand...
Click to collapse
When I'm off work later tonight I can post step by step instructions. Do you have wifi at home? Because I have mine set so that it knows I'm at home when I'm connected to my home wifi.
thats exactly what I want! I would appreciate it very much!
1. Create new profile - name it whatever you want
2. Under First Context choose State > Net > Wifi Connected
3. Under SSID input your home wifi's network name or if connected to it then just hit the magnifying lens in the upper right and select your home network and hit the green checkmark at the bottom to save it
4. Choose New Task and name it whatever you want.
5. Hit the plus sign to add a new action and choose Plugin > Secure Settings
6. Now hit Edit under Configuration and change Keyguard to either password/pin or pattern lock (depending on what security you've choosen) and select Off (I also check the setting where I've got to enter in my pass code once before it will unlock but that's up to you) and then hit the disk icon in the bottom right to save it and again confirm that you want to save it.
7. Hit the green checkmark again and also on the next screen.
8. Then click on the action you created and choose Add Exit Task and repeat the steps starting at step 4 but this time under Password/Pin or Pattern Lock choose On.
9. Then just keep hitting the green checkmarks until you exit out of Tasker.
I typed this out on my phone on the bus ride home so let me know if it's not clear or I missed a step. And you will need to first install Secure Settings that I linked to earlier.
Awesome, thanks for posting that! I haven't used Tasker, or Locale or any other automating app, so I'm curious, why would one choose Tasker over Locale? I just have a few simple things i want to automate (though that list could grow once I get into it).
gimiento said:
Awesome, thanks for posting that! I haven't used Tasker, or Locale or any other automating app, so I'm curious, why would one choose Tasker over Locale? I just have a few simple things i want to automate (though that list could grow once I get into it).
Click to expand...
Click to collapse
I've never used Locale but before I bought Tasker I read a few reviews comparing the two and it seems that Locale is more user friendly but Tasker is more powerful. But for most everyday uses Locale will probably work fine.
jesusice said:
1. Create new profile - name it whatever you want
2. Under First Context choose State > Net > Wifi Connected
3. Under SSID input your home wifi's network name or if connected to it then just hit the magnifying lens in the upper right and select your home network and hit the green checkmark at the bottom to save it
4. Choose New Task and name it whatever you want.
5. Hit the plus sign to add a new action and choose Plugin > Secure Settings
6. Now hit Edit under Configuration and change Keyguard to either password/pin or pattern lock (depending on what security you've choosen) and select Off (I also check the setting where I've got to enter in my pass code once before it will unlock but that's up to you) and then hit the disk icon in the bottom right to save it and again confirm that you want to save it.
7. Hit the green checkmark again and also on the next screen.
8. Then click on the action you created and choose Add Exit Task and repeat the steps starting at step 4 but this time under Password/Pin or Pattern Lock choose On.
9. Then just keep hitting the green checkmarks until you exit out of Tasker.
I typed this out on my phone on the bus ride home so let me know if it's not clear or I missed a step. And you will need to first install Secure Settings that I linked to earlier.
Click to expand...
Click to collapse
I did exactly as you said and i can't get it to work. Did you clear the lock settings in security before doing this or keep that? Also what rom are you using, that may be the problem for me (elite ics).
I've tried setting a lock, and then connecting to wifi but lock doesn't go away. I also tried having no lock set and turning off wifi, but the lock doesn't show up on the screen.
kjaved373 said:
I did exactly as you said and i can't get it to work. Did you clear the lock settings in security before doing this or keep that? Also what rom are you using, that may be the problem for me (elite ics).
I've tried setting a lock, and then connecting to wifi but lock doesn't go away. I also tried having no lock set and turning off wifi, but the lock doesn't show up on the screen.
Click to expand...
Click to collapse
I didn't think to add that you've also gotta open Secure Settings and select the Helper tab and install the Helper. There's also an option there to download a flashable zip to install the helper (it's gotta be in system to work). I've just gotten so used to flashing the helper every time I flash a new ROM I didn't think of it.
jesusice said:
I didn't think to add that you've also gotta open Secure Settings and select the Helper tab and install the Helper. There's also an option there to download a flashable zip to install the helper (it's gotta be in system to work). I've just gotten so used to flashing the helper every time I flash a new ROM I didn't think of it.
Click to expand...
Click to collapse
Had Helper installed and still didn't work. Btw Helper is for pattern only, you don't need it for pin/password.
I'll try playing around some more tomorrow. Thanks for the help!
I'm very interested in this. If you get this working I may have to break down and buy tasker. Always been curious about it, but never really had a purpose of it til this came up.
Sent from my Nexus S 4G
kjaved373 said:
Had Helper installed and still didn't work. Btw Helper is for pattern only, you don't need it for pin/password.
I'll try playing around some more tomorrow. Thanks for the help!
Click to expand...
Click to collapse
Did you also enable Tasker as a device administrator? This can be found in your phone settings under Security.
jesusice said:
Did you also enable Tasker as a device administrator? This can be found in your phone settings under Security.
Click to expand...
Click to collapse
Didn't have it enabled, but still not working.
actually nothing in tasker is working for me, gonna try locale or the other program.
kjaved373 said:
actually nothing in tasker is working for me, gonna try locale or the other program.
Click to expand...
Click to collapse
/shrug
Sorry, don't know what to tell you. Tasker's working great for me.
tried llama and it kinda worked with built-in actions but not with the secure settings plugin.
Couldn't you also do it by location as well, instead of Wifi connection. Which is basically Locale.
Sent from my Nexus S 4G
Is there anyway I can change the setting to enable/disable Touchless Controls with Tasker? It would be useful to turn off Touchless Controls at bedtime or when I know I wouldn't be using them to begin with. No clue how to approach this.
but friend, is not necessary! and I couldn't find a way to do this. who will say ok google now during the night?
ramon20 said:
but friend, is not necessary! and I couldn't find a way to do this. who will say ok google now during the night?
Click to expand...
Click to collapse
What.....
I said I want to disable Touchless Controls at night. I'm not using it at night. I'm asleep. No sense in having it on and running if I'm not using it.
natezire71 said:
What.....
I said I want to disable Touchless Controls at night. I'm not using it at night. I'm asleep. No sense in having it on and running if I'm not using it.
Click to expand...
Click to collapse
i understood, the only way is going to the settings it, and disable the first option
You can do this with Secure Settings.
I forget what the action is called within Secure Settings, but it just does the Android 'disable' for you
Titanium backup can give you a widget to freeze it with a click.
But yeah....4 clicks can toggle it off in settings.
kj2112 said:
Titanium backup can give you a widget to freeze it with a click.
But yeah....4 clicks can toggle it off in settings.
Click to expand...
Click to collapse
I know that, lol. But Tasker is obviously a smarter choice.
piccit said:
You can do this with Secure Settings.
I forget what the action is called within Secure Settings, but it just does the Android 'disable' for you
Click to expand...
Click to collapse
But when you disable it, won't you have to re-enable it manually?
piccit said:
You can do this with Secure Settings.
I forget what the action is called within Secure Settings, but it just does the Android 'disable' for you
Click to expand...
Click to collapse
That takes care of disabling it... however, when you re-enable it, you still have to go to Settings to "Enable" it again. :|
natezire71 said:
That takes care of disabling it... however, when you re-enable it, you still have to go to Settings to "Enable" it again. :|
Click to expand...
Click to collapse
Secure settings -> root actions -> package state. When you use "disable" do NOT use "user disable."
As long as touchless controls was on before you use secure settings to disable it, it will be on still when you use secure settings to re-enable it
piccit said:
Secure settings -> root actions -> package state. When you use "disable" do NOT use "user disable."
As long as touchless controls was on before you use secure settings to disable it, it will be on still when you use secure settings to re-enable it
Click to expand...
Click to collapse
You've gotten that to work? I tried it with both and neither one worked
Has anyone got any other ideas? It's been a while, maybe there is something newer?
did you figure out how to do that? I am also interested.
natezire71 said:
Has anyone got any other ideas? It's been a while, maybe there is something newer?
Click to expand...
Click to collapse
Why would you disable it while you sleep? It hardly drains the battery as is. Are you saying OK Google Now in your sleep?
If you're like me you're bummed that we have no root and are missing the abilities of root. Namely having the ability to use Xposed to turn off the annoying high volume warning. The following information aims to restore that functionality without root but requires some work but when you're done it's "set it and forget it.". You will never have to do it again. (Unless you wipe your phone)
I have this running on my phone and it works perfectly. I've attached a screenshot showing that the high volume warning is disabled on my phone. Note there is no popup on my volume slider when it's at max, so it's working. This mod uses Tasker and AutoTools. If you're not familiar with them it's OK, the article I'm linking has a step by step process for creating events and tasks.
Once again this isn't my work. I'm just bringing the information to the masses.
All set? Click here to go to the article. Enjoy!
P.S. You will need to open AutoTools and activate the 30 day trial if you don't have the full version. Then grant it permission, If not this won't work. To get the full version just open AutoTools and clock "Get full version".
***********UPDATE 09/15***********
I have confirmed that you will have to manually "test" this procedure first before it survives a reboot.
To do this:
Open tasker.
Click on the Monitor Start event.
Click on the 30 second task.
Click the "play" button in the lower left corner.
The task will begin manually.
If all is well both of the actions will turn green.
If anything turns red something isn't configured correctly.
***********UPDATE 09/17***********
For those that either don't want to or are having difficulty setting up the profiles I have attached them to this post in XML form, Then all you have to do is give the apps permission in ADB as stated in the article and import the profiles.
To import them into Tasker:
Download the file called "Tasker Profiles.zip" from the link below.
Unzip it and save it anywhere on your internal storage. Open up Tasker and disable Beginner Mode in Preferences.
Then, go back to the main screen and long-press on the “Profile” tab up top. You should see a pop-up with one of the options being “Import.”
Tap on that and browse to where you saved the .prf.xml files and select that file to import.
Repeat for the second profile.
Screenshots for this are attached to this OP.
I have also attached a quick demo video to show that this process works perfectly. No popup.
Credit:
Mishaal Rahman
reboot and see if it still works.
I already tried this and after reboot it still prompts the first time.
I've rebooted several times. It works for me. There is a 30 second delay before the task is executed. That is by design.
Compusmurf said:
reboot and see if it still works.
I already tried this and after reboot it still prompts the first time.
Click to expand...
Click to collapse
Try this to see if everything is set up correctly:
Open tasker.
Click on the Monitor Start event.
Click on the 30 second task.
Click the "play" button in the lower left corner.
The task will begin manually.
If all is well both of the actions will turn green.
If anything turns red something isn't configured correctly.
I've attached screenshots of this procedure.
Also something to consider is that if you have any task killers installed or anything that kills tasks on startup you should add tasker to the ignore list of that app.
Hope this helps.
It's configured correctly. Here is the thing. If you pull the value before without using, then pull the value after clicking ok manually, it is NOT 2, it's 0. This was discussed on the s7 and s8 forums. Odd that yours works and dozens of other folks doesn't.
Sent from my SM-N950U using Tapatalk
I dont know what to tell you. It does work for me just fine as my screen shots show. Sorry it's not working for you.
Can you screenshot your configuration screen? Is the value your sending "int" for integer? It shouldn't matter but what Carrier are you using? I'm Sprint.
One other thing to check is under app permissions ensure that AutoTool has the ability to change system settings. Just running the adb shell pm command isn't enough.
Compusmurf said:
It's configured correctly. Here is the thing. If you pull the value before without using, then pull the value after clicking ok manually, it is NOT 2, it's 0. This was discussed on the s7 and s8 forums. Odd that yours works and dozens of other folks doesn't.
Sent from my SM-N950U using Tapatalk
Click to expand...
Click to collapse
According to the article 0 is 'not configured' 1 is 'disabled' which is what the value would be when you click ok. 2 is 'inactive'.(How this differs from 'not configured' or 'disabled' I do not know). and 3 is 'enabled'. All depending on your mobile country code. Perhaps changing it to 1 will work for you?
Specifically, we will be modifying the System.Global property audio_safe_volume_state both on boot and periodically so Android will always think you have consented to bypass the warning. This property is defined in AOSP, which we’re reproducing below. There are several states this property can take, ranging from 0-3. 30 seconds after boot or after every 20 hours of continuous music playback, the state is set to ‘0’ or ‘not configured.’ It is then set to ‘1’ for ‘disabled’ or ‘3’ for ‘enabled’ depending on your Mobile Country Code. If you live in the E.U., this property is set to ‘3’ by default but is changed to ‘2’ for ‘inactive’ whenever the user manually bypasses the volume warning. We will be changing the value of this property to the ‘inactive’ state (changing it to ‘disabled’ never worked for me, in case you’re wondering).
Click to expand...
Click to collapse
Hope this helps.
This is already built in...Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Namuh said:
This is already built in...Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
Confirmed.
Going to Settings -> Sound and Vibration -> Volume -> hit the 3 dot menu -> Media Volume Limiter -> Off works.
I came from a Note 4 with Android 5.1.1 that didn't have this feature. I had no idea Samsung finally caved and added it.
Thank you.
Or not. I rebooted again and it does NOT work anymore. I'm really not trusting Samsung with this. The tasker method works every time. Every reboot. See attached screenshots showing it's turned on (and set to max) and still showing this message. I rebooted several times just in case I had a weird reboot. I'm still getting the popup even with it turned on and the max adjusted to the maximum or even with it turned off completely.
I only wish I was wrong. Thanks for the try though.
Yeah will reset after a boot
https://forum.xda-developers.com/showpost.php?p=73802232&postcount=4
marctronixx said:
https://forum.xda-developers.com/showpost.php?p=73802232&postcount=4
Click to expand...
Click to collapse
Yup...so with tasker I don't have to do any of that. I never have to touch it again. It never comes back.
Thanks again though.
I did learn something from this process. When I re-enabled the tasker even it didn't work when I rebooted. So I hit the "play" button that I mentioned earlier to retest the task and once everything turned green I rebooted and it now works again...after every reboot. So I'll add this to the OP that the task must be "tested" after it's set up in order to get it to work.
Even more interesting is who posted it. Compusmurf was the guy who stated in this thread that this did not work for him. Interesting.
I did get it to work finally. I had another tasker/app that was stepping on it.
Compusmurf said:
I did get it to work finally. I had another tasker/app that was stepping on it.
Click to expand...
Click to collapse
Well I also confirmed that when I disabled it and allowed the popup to come back by rebooting simply re-enabling the tasker even then rebooting did not make it work again. I had to "test" it with the play button to get it to work again. So I'm updating the OP to reflect this.
rawintellect said:
Yup...so with tasker I don't have to do any of that. I never have to touch it again. It never comes back.
Thanks again though.
Click to expand...
Click to collapse
Yeah my point of my post was to show the reason why the built in way doesn't work long term. The tasker way is preferred for those who find the nanny thing an annoyance. :good:
System ui tuněr app should be able to do it
Techvir said:
System ui tuněr app should be able to do it
Click to expand...
Click to collapse
I looked at every single screenshot of System UI Tuner in the play store. I saw no option to disable the high volume warning. Only an option to remove the volume icon which isn't the same thing.
Can you show me a screenshot of it working?
I know this process I linked is a long one and I would really love to be shown a better way but until I am this works for non rooted devices every time.
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Edit: As of the current version (3.0.4), OpenVPN no longer remains in the foreground on disconnect.
Awesome... Thanks for the fix.
Sent from my Galaxy Note 8 using XDA Labs
Thanks
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
jvillasante said:
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
Click to expand...
Click to collapse
I tried this but it didn't seem to do anything.
mmotti said:
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
Thank you very much!!!
mmotti said:
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
mondohow said:
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
Click to expand...
Click to collapse
Could you explain in tasker how to do it?
Thanks
xhenon said:
Could you explain in tasker how to do it?
Thanks
Click to expand...
Click to collapse
You will need the AutoInput Tasker plugin for this to work. You can get it from here:
https://play.google.com/store/apps/details?id=com.joaomgcd.autoinput
1. Follow the above steps for the Disconnect task
2. Hit the + to add a new action
In the list that pops up, select Task -> Wait and change it to 1 second
3. Hit the + button to add a new action
In the list select Plugin -> AutoInput -> Global Action
Hit the pencil icon next to Configuration
Hit Action -> Select Back from the list
Hit the check mark on the top right, then hit the back button to return to the Actions list
4. Repeat #3
Your Actions list should look like the attached image.
I had to add the AutoInput 'Back' action twice since OpenVpn Connect backs out of the VPN Profile screen into the main app screen. The second Back action takes you to back into your last app/activity.
It's a lazy workaround so I'm sure someone will come up with something better in time.
Go Home tasker task
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Excellent - Thanks.
Thank you for this. BIG help.
I was wondering if anybody out there has a profile for disconnecting from OpenVPN but only after wifi has been in disconnected state for 30 seconds?
Thanks.
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Thanks to the OP and thanks to you,excellent info
Thanks for sharing, i was quite annoyed by that update.
Made my day
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
betahelix said:
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
Click to expand...
Click to collapse
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
mmotti said:
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
Click to expand...
Click to collapse
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Sent from my Pixel 2 using Tapatalk
rodak said:
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Click to expand...
Click to collapse
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
mmotti said:
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
Click to expand...
Click to collapse
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Sent from my Pixel 2 using Tapatalk
rodak said:
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Click to expand...
Click to collapse
I popped an edit in there
mmotti said:
I popped an edit in there
Click to expand...
Click to collapse
Hello,
I am using Automate its pretty much the same in terms of use like tasker.
But it's free and you Programm flows. But when I try this without using the back back option the disconnect interface didn't close it self.
Did you comment something new in the action blocks?
Gesendet von meinem G8341 mit Tapatalk
With the announcement of the new gestures feature for the Pixel 4 I thought: "I should try something similar with Tasker".
Here it is!
It's obviously less precise because you don't have all the extra sensors needed for accurate gestures, but on the other hand it's infinitely more customizable!
Depending on what situation you're in, you'll be able to do lots of different things!
Included are:
Music control gestures
Whatsapp gesture
These are just 2 examples. You can expand on these and do whatever you want with them!
Import the project here!
Enjoy!
Great job Joao!!!
If I can, I would like to share mine too from time ago. Hope this helps yours
https://www.youtube.com/watch?v=_Pfuk7jy4J8
https://drive.google.com/file/d/10pu5BlcN59xFcvZ9P1pav9YGchhaIDiz/view
I'm assuming one would need root for this, yes?
stanleyopar2000 said:
I'm assuming one would need root for this, yes?
Click to expand...
Click to collapse
No root needed at all!
joaomgcd said:
No root needed at all!
Click to expand...
Click to collapse
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
I have imported the profiles and can not get it to work neither. Galaxy S10.
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
mirrik said:
I have imported the profiles and can not get it to work neither. Galaxy S10.
Click to expand...
Click to collapse
What did you try it with? The music one or the Whatsapp one?
joaomgcd said:
What did you try it with? The music one or the Whatsapp one?
Click to expand...
Click to collapse
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
mirrik said:
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
Click to expand...
Click to collapse
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
joaomgcd said:
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
Click to expand...
Click to collapse
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
mirrik said:
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
Click to expand...
Click to collapse
Ah yes, that is possibly the issue! I've had reports from other people that the S10's sensor is not working as it should and only turns on during calls... Unfortunately I can't help with that one Check here for example.
I would love to hear some other ideas that people on this thread used when activating this. I'm not a WhatsApp user, so I'm only basing my experiences through GPM. Any additional apps where this could be advantageous?
Mate 20 lite not working i wasted 3 euros
---------- Post added at 10:13 PM ---------- Previous post was at 10:11 PM ----------
And yes latest version and autonotification enabled
Works for me. Thanks!
Is it posible to control Google Assistant with gestures? Just asking.
correcting my comment, it works perfectly now
great job
I'm new to tasker, and wanted to know if you can trigger the camera to take a photo with this air gesture?
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
phillymade said:
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
Click to expand...
Click to collapse
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
ktmom said:
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
Click to expand...
Click to collapse
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
phillymade said:
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
Click to expand...
Click to collapse
I actually installed this to see what was up. On the music version, the profile "Proximity With Music" has three contexts. The AutoNotification context is set to trigger the profile only on notifications from specific apps. You need to check and make sure your app is enabled there. Also, if you don't have AutoNotification installed, it won't work.
As far as taking a photo, that definitely can be done. Here is a Air Camera project. It builds on Joao's project and requires AutoInput to be installed.
It's possible that it won't work out of the "box" due to two things.
1) The "Camera" profile gets triggered based on the Google Camera app opening. This would need to be updated to whichever camera app is used.
2) In the "Handle Camera Gesture" profile entry task, the AutoInput action is expecting the Google Camera app. If that doesn't exist, that action can be updated to operate the shutter button in whatever camera app is installed.
NOTE: In the "Handle Camera Gesture" profile entry task, there is a paused action, "Take Photo". That is actually the Tasker action that will take a photo regardless whether the camera is open or not. It's a bit silly in this application but could be used instead of the AutoInput action.