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
Related
I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks
RonH54 said:
I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks
Click to expand...
Click to collapse
which app, if you don't mind me asking.
RonH54 said:
I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks
Click to expand...
Click to collapse
Tasker actions are done sequentially. Use Tasker->wait to have the task wait a specified amount of time. In addition, you may want to use the goto action to loop until you have an ip address.
arabcamel said:
which app, if you don't mind me asking.
Click to expand...
Click to collapse
I have Tasker set to turn on WiFi for: Browser,ESPN,Twitter,Gmail and of course XDA Forums...
Guardian_Bob said:
Tasker actions are done sequentially. Use Tasker->wait to have the task wait a specified amount of time. In addition, you may want to use the goto action to loop until you have an ip address.
Click to expand...
Click to collapse
Thanks. Where is the best place to learn how to do these things you mentioned?
RonH54 said:
Thanks. Where is the best place to learn how to do these things you mentioned?
Click to expand...
Click to collapse
Tasker's Official Webpage: http://tasker.dinglisch.net/
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
So... I´m not a great fan of doing things manually if I don´t have to so the manual toggling of the BT Tether doesn´t do it for me...
So I worked myself to a automatic sollution based on Tasker and Bluetooth Auto Connect
Tasker is available as a free 7-day trial here if you wan´t to try it out before you buy, Bluetooth Auto Connect is all free.
Works like this: If Display is turned on, the Gear waits 20sec (longer than the regular Display timeout), if display is still on after thoose 20sec it turns the BT Tether On and sets the Display timeout to 1 min instead (Optional). When the display turns off again, it waits 1 min, if display is still off, it shuts the Tether Off aswell and returns the display timeout to 15sec again.
So here goes:
1. Download both apps and install on Gear (you should know how it´s made by now) You shouldnt need to do anything with BT Auto Connect, we will trigger it from within Tasker.
2.Start Tasker and select New Profile. Set name to "BT Tether On", choose Event, Display and finally Display On.
3. Create a Task to be triggered by the Profile and set it like this:
Code:
1. Wait 20 seconds
2. If %SCREEN ~ On
3. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Connect)
4. Display timeout 1min (optional)
5. Variable Set %BTtether To On
6. End If
3. Save the Task and back out to Tasker´s Main screen.
4. Create new profile. Set name to "BT Tether Off", choose Event, Display and finally Display Off.
5. Create a Task to be triggered by the Profile and set it like this:
Code:
1. If %BTtether ~On
2. Wait 1 Minute
3. If %SCREEN ~Off
4. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Disconnect)
5. Display Timeout 15 Seconds (optional)
6. Variable Set %BTtether To Off
7. End If
8. End If
That´s about it!
Have only tested this a couple of hours so there might be Bugs in the "code" but have it a try and report back to me if something feels weird.
Happy Tasking!
2013-12-18 - Adding files
Downlod premade profiles here:
BT Tether On
BT Tether Off
After importing, remember to enter the Task and click on Bluetooth Auto Connect and select your BT device in the list.
Cant wait to try on my gear
Sent from my SM-N900T
Nice and simple I like the screen on trigger
That reminds me, should update my thread that has Bluetooth auto tether. Been too busy with trying to get GM on my
nexus amongst other things.
st-tps said:
So... I´m not a great fan of doing things manually if I don´t have to so the manual toggling of the BT Tether doesn´t do it for me...
So I worked myself to a automatic sollution based on Tasker and Bluetooth Auto Connect
Tasker is available as a free 7-day trial here if you wan´t to try it out before you buy, Bluetooth Auto Connect is all free.
Works like this: If Display is turned on, the Gear waits 20sec (longer than the regular Display timeout), if display is still on after thoose 20sec it turns the BT Tether On and sets the Display timeout to 1 min instead (Optional). When the display turns off again, it waits 1 min, if display is still off, it shuts the Tether Off aswell and returns the display timeout to 15sec again.
So here goes:
1. Download both apps and install on Gear (you should know how it´s made by now) You shouldnt need to do anything with BT Auto Connect, we will trigger it from within Tasker.
2.Start Tasker and select New Profile. Set name to "BT Tether On", choose Event, Display and finally Display On.
3. Create a Task to be triggered by the Profile and set it like this:
Code:
1. Wait 20 seconds
2. If %SCREEN ~ On
3. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Connect)
4. Display timeout 1min (optional)
5. Variable Set %BTtether To On
6. End If
3. Save the Task and back out to Tasker´s Main screen.
4. Create new profile. Set name to "BT Tether Off", choose Event, Display and finally Display Off.
5. Create a Task to be triggered by the Profile and set it like this:
Code:
1. If %BTtether ~On
2. Wait 1 Minute
3. If %SCREEN ~Off
4. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Disconnect)
5. Display Timeout 15 Seconds (optional)
6. Variable Set %BTtether To Off
7. End If
8. End If
That´s about it!
Have only tested this a couple of hours so there might be Bugs in the "code" but have it a try and report back to me if something feels weird.
Happy Tasking!
Click to expand...
Click to collapse
Do I need to be rooted to do this? Thanks
Sent from my SM-N900T using XDA Premium 4 mobile app
jhobert said:
Do I need to be rooted to do this? Thanks
Sent from my SM-N900T using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It´s not necessary but as youre forced to have a null_ rom to achieve Bluetooth tether then you´we got root no mather what..
Ok got it. So I really need to root and flash null rom. Cannot use stock.
Sent from my SM-N900T using XDA Premium 4 mobile app
Personally I dont like screen on events.. I prefer to assign the task to a gesture.
Although the screen timeout modification & screen off events are excellent.
Good job on the write up..
fOmey said:
Personally I dont like screen on events.. I prefer to assign the task to a gesture.
Although the screen timeout modification & screen off events are excellent.
Good job on the write up..
Click to expand...
Click to collapse
I don´t really know yet if I like it either, but you have to try it to find out
I may assign the On feature to a button/widget by Tasker and let the Off feature be like above.
We´ll see...
thanks
nice job brother, and thanks for the pm
I've been battling with this for a while, and in the end it was so simple
thanks again
kashortiexda said:
nice job brother, and thanks for the pm
I've been battling with this for a while, and in the end it was so simple
thanks again
Click to expand...
Click to collapse
Sometimes the answer is right in front of your eyes but you don´t see it
Nice work
Sent from my GT-N7100 using Tapatalk
Im so stupid and cant even handle doing this task when all the directions are there...can someone upload it so I can restore it from tasker....for some reason I cant follow the steps. Thank u ro the OP I love the idea but cant get it to work.
Sent from my SPH-L720 using xda app-developers app
I kinda got it to work but without the "end ifs" at the end of the tasks...and theres 2 at the end of the second task....I dont get the reason for it and it wont let me save it like that....
Sent from my SPH-L720 using xda app-developers app
jbarresi19 said:
I kinda got it to work but without the "end ifs" at the end of the tasks...and theres 2 at the end of the second task....I dont get the reason for it and it wont let me save it like that....
Sent from my SPH-L720 using xda app-developers app
Click to expand...
Click to collapse
I´ll break the code down for you with comments:
Code:
1. If %BTtether ~On //Checks IF the Variable BTtether is set to on, If it is, the Tasks below continues, else task is aborted.
2. Wait 1 Minute //Pretty selfexplained.
3. If %SCREEN ~Off //IF Display is still Off after 1 min, the task below continues, else task is aborted
4. Bluetooth Auto Connect //Disconnects the BT Tether
5. Display Timeout 15 Seconds (optional) //Sets new Display Timeout
6. Variable Set %BTtether To Off //Sets BTtether to Off so Tasker knows the state of the BT Tether.
7. End If //Ends "If %SCREEN ~Off "
8. End If // Ends "If %BTtether ~On"
Since we got two If expressions in the code, we need to have two End If´s to decides where thoose IF´s ends.
Seem a little clearer?
In regular programming you have to specify all IF expressions with a start and an end, may look different from language to language though.
Maybe Tasker doesn´t need the End IF if it´s in the End of the code but I want the code to look clean and OK so I put it there to make it right.
Quick Note:
Premade profiles is now available for download in first post.
st-tps said:
Quick Note:
Premade profiles is now available for download in first post.
Click to expand...
Click to collapse
Im really really trying to learn this tasker thing and ur explanation was very good and detailed....thanks so much for the dl links......its so insane how creative people get with tasker and ive been an android user for almost 6 years now and its the first time ive really jumped into it....very cool
EDIT: Is it me or do the download links not work? Just brings me to a page of code.....maybe i just misunderstood i thought these would be able to be imported into tasker..
EDIT2: Nevermind nothing is broken it just me. ....just need to choose tasker and in auto puts it into my tasker profiles....THANKS!!!
Sent from my SPH-L720 using xda app-developers app
Thanks.
Sent from my SM-N9005 using Tapatalk
---------- Post added at 02:47 AM ---------- Previous post was at 02:42 AM ----------
st-tps said:
Quick Note:
Premade profiles is now available for download in first post.
Click to expand...
Click to collapse
Can you tell me plz how to download..
It open xml file when i press on it..
And how to import for Tasker too..
Iam totally noop on this.
Thanks..
Sent from my SM-N9005 using Tapatalk
firasusman said:
Can you tell me plz how to download..
It open xml file when i press on it..
And how to import for Tasker too..
Iam totally noop on this.
Thanks..
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
Rightclick -> Save as
You need to change pretences in tasker on gear to not be beginner mode
Then you can long press certain areas and select import (check tasker website for better details)
So far this is really my only tasker profile im using and it works great...just wanna thank you again...works so good
Edit: if you have anybother cool profiles for gear or phone please share...ive been trying to get the wifi on when home but I just cant the cell tower one to work. And dont wanna waste battery using gps.
Sent from my SPH-L720 using xda app-developers app
Im really trying to get my wifi to turn on using the cell tower method and I just cant get it to work.....I let it scan for 15 mins and after I turn my wifi off it wont turn back on. Could I be foing something wrong? Or is there a better way without killing battery?
Sent from my SPH-L720 using xda app-developers app
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.
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.