Related
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
REQUIREMENTS?
TASKER
PHONE WITH PROXIMITY SENSOR
NO ROOT REQUIRED
COMMON SENSE
WHAT Does this do?
This will basically change your music tracks (previous and next) by waving your hand
HOW does it do it?
You hand activates the Proximity sensor (be sure to locate yours before trying this lol) Then it goes into the details by detecting if your hand is still hanging in there, if your hand is not there, it will change to the next track, if your hand is still holding up, it will Rewind the song, do it again and it will change to the previous song.
WHEN do you want to use this?
On Car, You are driving, want to change tracks while driving? well just wave your hand instead of even looking at your phone. (ok you look a bit but you get the idea) No more accidents, looks cool when you do it in front of your newbie friends, yeah go ahead and tell them to do it with their iPhones XD Just remember to paste your phone into a place you can reach or use one of those universal phone holders.
On some desktop for whatever reason you dont have a computer or cant play songs on your pc? Activate this with Bluetooth see magic with a wave of your hands
You want to see the magic and how futuristic it is when you wave and the machine speaks back to you
OK, Lets get Started
Create a Profile, (name it to Prox=1) Select State, Select Proximity Sensor
Task>Variable Set>Name: %Prox to covered
Create Another Profile, (name it to Prox=0)Select State, Select Proximity Sensor But This Time Check on Invert
Task>Variable>Set>Name: %Prox to uncovered
Create Another Profile(name it to Prev and Next), Select State, Select Proximity Sensor
wait (515MS) <---This is an Important Factor on this project, this determines how long your hand should stay in the proximity sensor, the shorter the wait, the faster it will trigger, change as required.
if %Prox ~ uncovered & %SCREEN ~ off
Say: "Next" (Customize the way you like it or just leave it as if)
Media Control Next on App Poweamp (The App "Poweramp" can be changed to the Music App you are using)
Else If %Prox ~ covered & %SCREEN ~ off
Say "Back" (Again, You can customize the voice etc. or.. just dont)
Media Control Previous App Poweramp ( Again, you choose the Music App or else it wont work)
End If
Now you will need to create a Task, Name it to Track Changer Yes.
The Task should contain
Profile Status>name Prox=1 Set On
Profile Status>name Prox=0 Set On
Profile Status>name Prev and Next Set On
Set Tasker Pref>Proximity Sensor Value Yes
What the Above does is to just Activate your Profiles, so that it just works.
If you want to Deactivate those Profiles do another Task, Name the Task to Track Changer No.
The Task should contain
Profile Status>name Prox=1 Set Off
Profile Status>name Prox=0 Set Off
Profile Status>name Prev and Next Set Off
Set Tasker Pref>Proximity Sensor Value when Power Connected
This will deactivate the task and you are back to 0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If I knew how to make Pictures Appear in the Post (I don't) This would have been easier for you but since life is tough and you need to experience this there you go.
If you need more details look at this Album http://imgur.com/a/eXcch
BTW: To Make this work you need to activate all 3 Profiles, Prox=0, Prox=1 and Prev Next. The Task "Track Changer Yes" will Activate it for you, useful if you activate this task via Bluetooth, Heaphones, etc. You can make a Scene pop when you connect headphones, etc your ideas are your limitation.
If you struggle in some place, look at the tasks and see if any of them has a triangle error in there. Make sure you change the music app on all 2 action tasks! (previous, next)
i did all steps and i am using musixmatch player
My proximity sensor is on but tracks do not change
lalitkhokhar said:
i did all steps and i am using musixmatch player
My proximity sensor is on but tracks do not change
Click to expand...
Click to collapse
Make sure on the Ifs tasks you have %SCREEN ~ off it means this can only work if your screen is off :3 (forgot to put % before SCREEN)
Followed the steps, everything works perfectly, thank you very much
SoloMid Hazard said:
Followed the steps, everything works perfectly, thank you very much
Click to expand...
Click to collapse
Glad it worked for you
That's pretty frikkin' cool!
Tried it and it works like a champ. It's like having the Force... This is not the song I'm looking for!
I have an OBDII device in my car connected to bluetooth. How do I use this feature only when I'm connected to the OBDII device?
brisseau said:
That's pretty frikkin' cool!
Tried it and it works like a champ. It's like having the Force... This is not the song I'm looking for!
I have an OBDII device in my car connected to bluetooth. How do I use this feature only when I'm connected to the OBDII device?
Click to expand...
Click to collapse
Well, If it uses Bluetooth, just use tasker to create a profile state on Bluetooth, select the current Bluetooth device. Then for the task of the profile link it to the the task (Track Changer Yes) that activates the 3 profiles, Prox 1, prox 0 and prev and next. As simple as that I recommend you set the exit profile to Track Changer No, So your music does not changes in your pocket or outside of Bluetooth.
**Remember that I set it to only work on screen off so it is not activated accidentally**
im not able to activate all profiles at once
either prox=0 is active or the other two
fenchai said:
Make sure on the Ifs tasks you have %SCREEN ~ off it means this can only work if your screen is off :3 (forgot to put % before SCREEN)
Click to expand...
Click to collapse
Still not working
I am using cm12.1 does it work in this rom
sajjadirn said:
im not able to activate all profiles at once
either prox=0 is active or the other two
Click to expand...
Click to collapse
Before trying this you need to know the basics of using Tasker, the switcher needs to be "ON" on all 3 profiles.
If by Active you mean the green color, it changes from Prox 0 to Prox 1 depending on your proximity sensor. That is supposed to happen.
To try this, just switch all 3 profiles to ON and turn off your screen have music playing, and move your hand to the proximity sensor.
lalitkhokhar said:
Still not working
I am using cm12.1 does it work in this rom
Click to expand...
Click to collapse
It should work on all roms, please check the requirements.
check if Prox 1 and 0 turns to green and grey, if it does, it should work, if it doesnt, you have something wrong on your side.
I am having a bit of trouble with this one to. I believe I have it set up right, but I am unable to change music with it. When I have tasker open and put my hand over the proximity sensor "Prox=1" and "Prev and Next" light up green, and when I remove it "Prox=0" lights up green, so that seems right but I still cant change music with it. Any ideas? Thanks
Edit: alright it is working for music now, I actually didn't need to change anything, it just started working lol. I just need some help understanding the tasks to turn it on and off. I don't have anything specific that I'm always doing (like Bluetooth etc) when listening to music to tie it to, I just want it so when I use my music player it turns on and when I'm not using it it turns off. Thoughts?
Works like a charm. Thanks!
can anyone upload the profile for this?
I am using PureNexus on my N6P and the next function works like a charm, but I cannot figure out how to get the previous function to work.
Does not work on miui 7 , i did all right, Prox0 is green on normal and Prox1 and Prev and Next becomes green(active) when i place my hand close to proximity sensor but the music does not change when i move my hand close to proximity sensor...
any help
g10drasingh said:
Does not work on miui 7 , i did all right, Prox0 is green on normal and Prox1 and Prev and Next becomes green(active) when i place my hand close to proximity sensor but the music does not change when i move my hand close to proximity sensor...
any help
Click to expand...
Click to collapse
try this https://drive.google.com/file/d/0BxvEtdn6VE2EUEdJcGxvVWstRVE/view?usp=drivesdk
I am not very active here so if you need more help, it would take a while to find me. just tweak the task a bit and get to know how it works.
Sent from my SM-G935F using XDA-Developers mobile app
knin said:
I am using PureNexus on my N6P and the next function works like a charm, but I cannot figure out how to get the previous function to work.
Click to expand...
Click to collapse
try this
https://drive.google.com/file/d/0BxvEtdn6VE2EUEdJcGxvVWstRVE/view?usp=drivesdk
Sent from my SM-G935F using XDA-Developers mobile app
fuzmik said:
can anyone upload the profile for this?
Click to expand...
Click to collapse
https://drive.google.com/file/d/0BxvEtdn6VE2EUEdJcGxvVWstRVE/view?usp=drivesdk
Sent from my SM-G935F using XDA-Developers mobile app
fanchai,
I know you're not on that often but....I had this working perfectly on my LG-G4.
However, I upgraded to a new phone and didn't have the profiles/tasks saved so I started over from square-one. I can't for the life of me get it working. I've re-traced my steps, followed along with the photo's you posted but can't get it working.
Can I upload my profile to you so that you can tell me what I'm missing?
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
So to be pretty blondes here I'm going through a divorce currently, and have a tendency to text and call by my wife when I'm getting really worked up. If you're divorced you can understand.
Trying to create a task that will upon attempting to send an SMS or call her will pop up and warn me next me if I really want to do this. It will either ask me to maybe fill out a captcha or something similar or give me stats on how many times I've texted or called her within the last hour or maybe something like that. I looked through intent they don't seem to be exactly what I need but I'm not sure.
Basically, I'm looking for something that if I try to call and text her will pop up before I do and asked me to confirm somehow. Any help would be really appreciated.
Probably, you could use something an app opened profile
Profile: App: Phone, Messages
Task:
1. Airplane Mode: On
2. Show Scene: Dude
Scene: Dude
Text Box: "Dude! Do you really want to do this???"
Text box on tap:
1. Destroy scene
2. Wait 7 seconds
3. Airplane mode: off
nijohnson said:
Probably, you could use something an app opened profile
Profile: App: Phone, Messages
Task:
1. Airplane Mode: On
2. Show Scene: Dude
Scene: Dude
Text Box: "Dude! Do you really want to do this???"
Text box on tap:
1. Destroy scene
2. Wait 7 seconds
3. Airplane mode: off
Click to expand...
Click to collapse
Excellent, I'll give this a try and report back
Hope it worked!
Thanks
Thanks
sorry, wrong post
So what? Did it work?