Rundown of how things work in the household: my fiancé (let's call him X here) and I are both on cricket wireless. Since I have a still-running discounted plan for my phone after working at GameStop (shh, don't work there anymore), I didn't want to change my plan. However, X had a regularly priced plan, so we decided to use his service to bump up to the $70 completely unlimited data plan. Since my plan isn't unlimited, and since we both have factory phones with custom ROMs enabling the usage of a hotspot, I piggyback on his data. I came up with a Tasker profile through AutoRemote so that if he's sleeping or out of the room, I can send a request to toggle his hotspot on from my own phone. The issue is, his battery life isn't exactly the greatest, so to save battery he tries to keep the hotspot off when not being used, but he can't read my mind for when I need to use it. Is there a way to automate something along the lines of, if nothing connected to hotspot ~ wait 5 minutes ~ turn off hotspot? Both of our phones are rooted, on CM based ROMs (no built-in option for hotspot time-out), both have Tasker, both have secure settings, and both have AutoRemote. I know I could send a message through autoremote to disable it, but we're looking for a more automatic option.
I don't know if Tasker can tell if devices are connected to your hotspot, but you can create a profile to automatically send an autoremote message to disable his hotspot five minutes after your phone disconnects from it.
Profile:
State: Wifi Connected
SSID: X's Hotspot Name
Entry Task:
Have the task do nothing basically, like set a temp variable.
Exit Task (when your phone is no longer connected to X's hotspot):
Action: wait 5 min
Action: Autoremote to disable X hotspot IF %WIFII [doesn't match] *x hotspot name*
(Include the asterisks)
Sent from my Nexus 5X using XDA-Developers mobile app
Related
i have a Verizon Note 3 Stock/Root Rom and Gear with NULL Rom but no Nova launcher. i install NULL for the extra features but like the stock look and feel. this should work with NULL installed period regardless of your setup.
i have used Network Spooker, PdaNet, etc etc etc trying all scenarios trying to get the best results with the least amount of work to set it up and having to reconnect etc...
i am posting this just 10 minutes into my testing and so far so good.
here is what i did and with others help perhaps we can figure out if this is the best way and how it may or may not work with Gear Connection Bridge etc...
1. on Gear i put it in airplane mode
2. on N3 i turned off wifi and BT
3. on N3 i went into settings > Wireless and Network > More Settings > Tethering > tick BT Tethering
4. on Gear leaving it in airplane mode i just turned on BT and connect to N3
5. on Gear Settings > Bluetooth > tap the settings icon next to your phone device name > scroll down and tick Internet Access
7. on Phone you should see in Taskbar "Tethering Active"
8. on Gear open Browser or whatever to test
6. DONE
i have no other items running like Spoofer etc.. and everything seems to work perfectly. i now wonder for location how Gear Connection Bridge will wok?
also wonder what a day or 2 of testing battery will look like?
please let me know if this works for others
Looks great
Sent from my SM-N900T using Tapatalk
I don't get it? That's how tethering is meant to work...
Brendo said:
I don't get it? That's how tethering is meant to work...
Click to expand...
Click to collapse
well at least for me on Verizon (not sure what carriers matter) i could only get internet access with Xposed Network Spoofer set to "Wifi" then PdaNet+ running on N3 and then PdaNet Tablet running on Gear and it was a lot of steps to get them all going. it did not work "out of the box" for me on Verizon as you were thinking.
if tethering wasnt an issue for you this will mean nothing but to me it was HUGE and very excited to figure it out.
lets see if others agree that may look at this and maybe im just nuts and this post was pointless
Some phones need wifi connection off before you can use Bluetooth tether, but other than that if you have the option on your phone to do Bluetooth tethering, then the profile will appear whenever your watch is connected
Brendo said:
Some phones need wifi connection off before you can use Bluetooth tether, but other than that if you have the option on your phone to do Bluetooth tethering, then the profile will appear whenever your watch is connected
Click to expand...
Click to collapse
well i would never get the profile to appear and when i simply selected BT Tether in phone settings it would just turn itself back off again shortly. it wasnt until i set Gear in Airplane mode and with BT on phone off and then selecting Tether on phone that the option ever worked. trust me i had hours testing this in every way posted here
anyway it works for me now and so maybe others will benefit if they were having issues like i had.
I used Tasker with BT auto connect on the gear. When the gear connects to the note 3 blue tooth with is automatic Tasker will signal BT auto connect. Now I have sprint so I used BT auto tether on my note 3. So in other words I can reboot either device and it will automatically tether the gear. I can turn blue tooth of as well then back on same result if you are running Tasker on the note 3 also. The only issue I have is if I turn tether off on the note 3 from the settings then back on. I would have to re-enable it manually on both. But I think there maybe a way to have Tasker on the note 3 send a blue tooth packet to the gear that Tasker there can see and respond to. Any thoughts or suggestions?
Sent from my SM-N900P using xda app-developers app
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.
Hi All,
I'm new to Tasker but reading around various forums, it seems it will do what I need, just not sure HOW and I'm hoping someone here can help?!
I have an Android car radio and a Nexus 6P. I want to be able to setup a task/profile so that when my phone pairs to the headunit via bluetooth at power on, it turns the phone WiFi off and the WiFi hotspot on. Then when the car is turned off and bluetooth disconnects, it will turn off my phone hotspot and turn my phone WiFi back on.
I'm sure it's fairly simple for someone who knows what they are doing, any assistance would be much appreciated!
I have this set up with a profile like so:
State=bluetooth connected, 'CAR KIT'
--->task 'CarTether' (WiFi Tether=Set On)
<---exit task 'CarTetherExit' (WiFi Set On)
I have another profile that turns off bluetooth after 1 minute if it's not connected, thats what triggers the exit task (since it's no longer connected to 'CAR KIT' when I turn off the car). AFAIK when you turn hotspot on your phone will turn off wifi on its own, but you need to turn it back on (hence the exit task), and when wifi turns back on the hotspot should turn off.
Andromeda_Station said:
I have this set up with a profile like so:
State=bluetooth connected, 'CAR KIT'
--->task 'CarTether' (WiFi Tether=Set On)
<---exit task 'CarTetherExit' (WiFi Set On)
I have another profile that turns off bluetooth after 1 minute if it's not connected, thats what triggers the exit task (since it's no longer connected to 'CAR KIT' when I turn off the car). AFAIK when you turn hotspot on your phone will turn off wifi on its own, but you need to turn it back on (hence the exit task), and when wifi turns back on the hotspot should turn off.
Click to expand...
Click to collapse
Thanks for the advice, I've managed to setup a tasker profile that turns on wifi hotspot when Bluetooth connects and turns on wifi when it disconnects. The task works well, except that when the hotspot turns on, the radio won't connect, it gets stuck on obtaining IP address and Los to connecting, obtaining IP address but never connects. If I manually turn hotspot off and on again with the quick menu toggle it connects straight away. Any thoughts?
Sent from my Nexus 6P using Tapatalk
glenb83 said:
The task works well, except that when the hotspot turns on, the radio won't connect, it gets stuck on obtaining IP address and Los to connecting, obtaining IP address but never connects
Click to expand...
Click to collapse
Hrmm...I've not come across that one. If I had to guess, maybe one is trying to do something before the other is totally ready? The only thing I can think to try is experiment with a 1 or 2 second delay in different places, like a 'wait 1 sec' in between the bluetooth connecting and the hotspot turning on
Andromeda_Station said:
Hrmm...I've not come across that one. If I had to guess, maybe one is trying to do something before the other is totally ready? The only thing I can think to try is experiment with a 1 or 2 second delay in different places, like a 'wait 1 sec' in between the bluetooth connecting and the hotspot turning on
Click to expand...
Click to collapse
That sounds like a good plan, I'm not sure how to add in a delay though? If I edit the task of turning on the hotspot I get the option of adding an if variable, but not sure how to put in a delay...
Sent from my Nexus 6P using Tapatalk
glenb83 said:
That sounds like a good plan, I'm not sure how to add in a delay though? If I edit the task of turning on the hotspot I get the option of adding an if variable, but not sure how to put in a delay...
Click to expand...
Click to collapse
Action > Task > Wait
What Vagelis said^
Once the 'wait' is in your task you can 'grab' it by the right edge of the screen and drag it up or down, wherever you need it.
i looks like tasker does something wierd in Android 10, this worked always in Android 8 or 9 but now it doesnt.
when i get connected with my radio tasker turns on Tether but never turns is off when i disconnect bluetooth from my car.
can someone help me out tho think about a sulotion?
Mark ter Grote said:
i looks like tasker does something wierd in Android 10, this worked always in Android 8 or 9 but now it doesnt.
when i get connected with my radio tasker turns on Tether but never turns is off when i disconnect bluetooth from my car.
can someone help me out tho think about a sulotion?
Click to expand...
Click to collapse
Is the exit task actually running? What does the run log show?
This could be a device issue on A10 as well. If tasker is getting killed, it can't run. Take a look at https://dontkillmyapp.com/ for what ever device you have.
It also helps to post the description of your profile when asking for help. There is a sticky post in this forum with instructions.
Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
copeppe said:
Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
Click to expand...
Click to collapse
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
mgdorbit said:
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
Click to expand...
Click to collapse
Maybe... but can you explain me better what alarms I must turn on?
copeppe said:
Maybe... but can you explain me better what alarms I must turn on?
Click to expand...
Click to collapse
Go to preferences > monitor > Use reliable alarms. I have mine set for screen off
Location is not a reliable trigger (never was for me).
Try using variables. These are better.
For example.
I'm using 2 variables to CONFIRM I'm at home and trigger my home profile.
First... I use Cell near to verify the proximity and enable my WiFi. So my variable is set to "1".
Then... After my phone connects to my network I set another variable to "1".
When both variables are equal to "1" my home profile kicks in.
This way I do not rely on Location (and my power consumption is lower).
Sent from my LG-D855 powered by Aosp Extended and Tapatalk.
So the way tasker works is when a profile activates, the entry task runs, then when the profile deactivates the exit task runs.
If something interferes with the entry task, or if you have profiles that overlap (changing the same settings for instance) the profile will be active, but the desired actions may not be able to run.
However, when it comes to wifi on/off actions, you have to do a few things to ensure the actions can run.
1. Make sure you give yourself enough time to enable wifi before continuing.
Eg: 1. Turn on wifi
2. If connected to my home ssid do the following
This will never work because tasker enables the wifi and immediately goes to the next action, but you need at least 5 seconds (really 15) to connect, so it will never be connected when if statement is checked
2. Or say you want to disable wifi every time The wifi is disconnected from any ssid and whenever you're in range of your homer ssid another profile turns on wifi.
The following WILL NEVER WORK but will take a long time to realize the simplicity of why if not careful
If wifi=on and wifi is not connected
Disable wifi and do these things
The reason is the home profile will always enable wifi and for 15 seconds the disable WiFi profile will trigger because the wifi is on but not connected...so it'll disable WiFi.. which will... you get the idea.
P.s. if the profile is active then reliable alarms has nothing to do with why the actions didn't run. Tasker correctly activated the profile... something interfered elsewhere
Hey..
I have setup a project to system lock phone (deactivate fingerprint login etc.) if it looses connection to mobile networks. This is extra safety for my in the event someone gets hold of it.
To accomplish this I've setup a profile with the state 'Mobile Network', selected all network modes and used the 'any' trigger and inverted to make trigger whenever the state have no mobile networks. This is tested and works but..
.. whenever WIFI is on it doesn't trigger. If you disable WIFI or it looses WIFI connection it triggers.
Is this bad behavior or am I missing something?
The project in whole still works since an active WIFI connection would give me access to my phone and therefore a system lock is only needed in the event I cant reach it, ie. no WIFI and mobile data.
Thank you.