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
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
Hello,
Is there anyway to get Autoremote to work directly with the Note 3 over bluetooth and not require internet? I'm sure I"m missing something? thanks.
You need internet first to register device in autoremote
After that, you only need standard Bluetooth connection to send commands
@Brendo my bluetooth autoremote seems to work fine.
However if I try to send a notification (not a quick message) via bluetooth it doesn't seem to get received on the gear
Please try and let me know if you can send and receive a NOTIFICATION thanks
Sent from my GT-N7100 using Tapatalk
kashortiexda said:
@Brendo my bluetooth autoremote seems to work fine.
However if I try to send a notification (not a quick message) via bluetooth it doesn't seem to get received on the gear
Please try and let me know if you can send and receive a NOTIFICATION thanks
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
Stock notifications aren't available on the gear. You can get the pull down bar in null rom, but even then I don't think it works with all apps. I've not tested though. If you mean the notifications like standard way that gear manager sends notifications, we really need an sdk to work out how to utilize that (there are workarounds where some apps used existing channels)
Brendo said:
Stock notifications aren't available on the gear. You can get the pull down bar in null rom, but even then I don't think it works with all apps. I've not tested though. If you mean the notifications like standard way that gear manager sends notifications, we really need an sdk to work out how to utilize that (there are workarounds where some apps used existing channels)
Click to expand...
Click to collapse
No, perhaps you misunderstood,
if you go into the autoremote app and select "devices" then there is a small envelope on the right as well as a triangle - these are used to send quick messages and notifications ( by autoremote app )
I can send the message, but not the notification by bluetooth..... however notificatio does work fine by wifi and it gets received by the gear no problem
kashortiexda said:
No, perhaps you misunderstood,
if you go into the autoremote app and select "devices" then there is a small envelope on the right as well as a triangle - these are used to send quick messages and notifications ( by autoremote app )
I can send the message, but not the notification by bluetooth..... however notificatio does work fine by wifi and it gets received by the gear no problem
Click to expand...
Click to collapse
I understand now. I had a look sending notification via plugin in tasker - which is the same, but didn't realise how notification was sent. Sounds like message uses direct Bluetooth where as notification routes through wifi. Sounds like you'll need to check with dev (may be a bug or unfinished since Bluetooth is recent addition to app?)
I ve got the same problème when i has was in theter i Can send command but without theter the command don t work.
Can you help me?
Sent from my HTC One using xda app-developers app
Thank you. I thought I was the only one not able to get this working. I've trying for a week now and everything I found made me feel like I was doing something wrong.
The one thing I've noticed is that when you click and hold the device, and the menu comes up, when I select "connect Bluetooth device, it will say it is connected. But, right after that, it says "not a valid QR code". So I've been wondering if that has anything to do with it.
Anybody else seen this?
Sent from my SPH-L720 using Tapatalk
triplerider said:
Thank you. I thought I was the only one not able to get this working. I've trying for a week now and everything I found made me feel like I was doing something wrong.
The one thing I've noticed is that when you click and hold the device, and the menu comes up, when I select "connect Bluetooth device, it will say it is connected. But, right after that, it says "not a valid QR code". So I've been wondering if that has anything to do with it.
Anybody else seen this?
Sent from my SPH-L720 using Tapatalk
Click to expand...
Click to collapse
It DOES work, you have to create a Tasker profile and task, search this or the other thread for it.
Everything works except notification by bluetooth (for me ) - I will let Joao know
kashortiexda said:
It DOES work, you have to create a Tasker profile and task, search this or the other thread for it.
Everything works except notification by bluetooth (for me ) - I will let Joao know
Click to expand...
Click to collapse
Quick message don t work for me if i am not tether.
How thread Are you talk?
Sent from my HTC One using xda app-developers app
kashortiexda said:
It DOES work, you have to create a Tasker profile and task, search this or the other thread for it.
Everything works except notification by bluetooth (for me ) - I will let Joao know
Click to expand...
Click to collapse
Ok, regarding the tasker task, does this need to be included in every task? What I mean is, I've already got some autoremote tasks that work when tethered. I want to be able to use them via BT when I'm not on Wifi (that's the only way my tether works).
triplerider said:
Ok, regarding the tasker task, does this need to be included in every task? What I mean is, I've already got some autoremote tasks that work when tethered. I want to be able to use them via BT when I'm not on Wifi (that's the only way my tether works).
Click to expand...
Click to collapse
No
Just add 1 profile on the phone state "connected to Gear" .... with associated task, plugins autoremote bluetooth "on"
Also on the gear in tasker
add 1 profile on the Gear ....state "connected to XXphone" .... with associated task , plugins autoremote bluetooth "on"
kashortiexda said:
No
Just add 1 profile on the phone state "connected to Gear" .... with associated task, plugins autoremote bluetooth "on"
Also on the gear in tasker
add 1 profile on the Gear ....state "connected to XXphone" .... with associated task , plugins autoremote bluetooth "on"
Click to expand...
Click to collapse
I've done this and it still doesn't work. Still getting "retrying 1/5" etc. I'm starting to think I must have some other BT connection issue because I've been trying to get the BT GPS sharing working again. It worked a few null roms back but seems to be broken now. I've searched all over the phone and the gear but can't find anything that would be blocking certain BT functions. Everything else works between the phone and the gear (notifications, weather, mini gallery, pedometer backup).
is bluetooth on in autoremote app
triplerider said:
I've done this and it still doesn't work. Still getting "retrying 1/5" etc. I'm starting to think I must have some other BT connection issue because I've been trying to get the BT GPS sharing working again. It worked a few null roms back but seems to be broken now. I've searched all over the phone and the gear but can't find anything that would be blocking certain BT functions. Everything else works between the phone and the gear (notifications, weather, mini gallery, pedometer backup).
Click to expand...
Click to collapse
I assume you have done the below, but repeating it for others too....
In Autoremote, on the devices tab, click on the bluetooth icon of each paired autoremote device to switch ON, and turn wifi off ( assume you have already long pressed and "add as Bluetooth device )
If ON, the icon is blue, if off grey
kashortiexda said:
I assume you have done the below, but repeating it for others too....
In Autoremote, on the devices tab, click on the bluetooth icon of each paired autoremote device to switch ON, and turn wifi off ( assume you have already long pressed and "add as Bluetooth device )
If ON, the icon is blue, if off grey
Click to expand...
Click to collapse
Yep, tried it multiple ways. Like I said, I think I've got some other connection issue. I even tried the Smart Remote app from the gear store and haven't ever been able to get it to connect either. At first I thought it was due to the null rom but others have said it works for them.
I just have no idea what would allow "selective" connections.
Edit: I just noticed that on the phone, in tasker, it shows as an active profile but in the gear it does not. I even set up a generic profile just to pop up a notification. If I test the action it works but the profile still shows as inactive and in the notification panel it still shows "no active profiles" yet all other functions continue to work. Can someone confirm if this is the same on their gear?
triplerider said:
Yep, tried it multiple ways. Like I said, I think I've got some other connection issue. I even tried the Smart Remote app from the gear store and haven't ever been able to get it to connect either. At first I thought it was due to the null rom but others have said it works for them.
I just have no idea what would allow "selective" connections.
Edit: I just noticed that on the phone, in tasker, it shows as an active profile but in the gear it does not. I even set up a generic profile just to pop up a notification. If I test the action it works but the profile still shows as inactive and in the notification panel it still shows "no active profiles" yet all other functions continue to work. Can someone confirm if this is the same on their gear?
Click to expand...
Click to collapse
I had the same, initially, it took some time on the Gera with Tasker.
Try switch profile off, then on, save reboot, reconnect and have patience.
Instead of connecting to a "named" connection, leave that bank and choose the optional "bluetooth address" in taker profile state
triplerider said:
Yep, tried it multiple ways. Like I said, I think I've got some other connection issue. I even tried the Smart Remote app from the gear store and haven't ever been able to get it to connect either. At first I thought it was due to the null rom but others have said it works for them.
I just have no idea what would allow "selective" connections.
Edit: I just noticed that on the phone, in tasker, it shows as an active profile but in the gear it does not. I even set up a generic profile just to pop up a notification. If I test the action it works but the profile still shows as inactive and in the notification panel it still shows "no active profiles" yet all other functions continue to work. Can someone confirm if this is the same on their gear?
Click to expand...
Click to collapse
Try to make a new task(for example when screen is on) ,action plugin autoremote Bluetooth connections and activate it.
On your phone and your gear.
It s work for me.
Sent from my HTC One using xda app-developers app
Connection Lost
I use autoremote on the gear over bluetooth and it work well with my note 3.
I have tasker which enable bluetooth in gear and note 3 when they connect them in bluetooth.
It work great until the watch goes in deep sleep. At this time the connection is broken until I reboot. I try to enable persistent notification on the gear when tasker enable autoremote bluetooth (to prevent the service to be killed) but at this time I have another problem, the gear and the phone are not able to go in deep sleep so I have a big battery drain.
If someone have ideas to help I'll be very glad.
silvermick27 said:
Try to make a new task(for example when screen is on) ,action plugin autoremote Bluetooth connections and activate it.
On your phone and your gear.
It s work for me.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
I rebooted both phone and gear and the first try was successful. Next attempt back to trying. One thing I noticed was that upon restart both taskers showed the Bluetooth profile as active. After the first test the tasker on my phone now shows inactive. Prior to restart it was the gear that showed inactive.
Either way, this is progress. Now to find out why they aren't staying active.
Sent from my SPH-L720 using Tapatalk
After series of reboots in various orders, this is finally working. Now that it is, I can even say it's much faster than while tethered.
Now I can't wait to get my home automation setup and working. To control it all from the watch is going to be awesome.
Thanks everybody for your support and ideas.
Sent from my SPH-L720 using Tapatalk
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