wifi stay on with airplane mode on - Tasker Tips & Tricks

Want profile so that when airplane mode is on, I want wifi to stay on. Any ideas? Want it set for a certain time.

Wifi cannot be on when airplane mode is on. I have tried automating it with tasker, and manually doing it. I get errors. I think this is just the way airplane mode works.
Why use wifi with airplane mode anyways?

There is a way of doing it there are some secure setting which you can toggle to prevent certain radio to switch off when activating aeroplane mode,
There is also a guide that I quickly found, which allow you to do it another way via a pc >

Snowby123 said:
Wifi cannot be on when airplane mode is on. I have tried automating it with tasker, and manually doing it. I get errors. I think this is just the way airplane mode works.
Why use wifi with airplane mode anyways?
Click to expand...
Click to collapse
Um...yeah u can have WiFi on with airplane on. Done it tons of times.

Snowby123 said:
Wifi cannot be on when airplane mode is on. I have tried automating it with tasker, and manually doing it. I get errors. I think this is just the way airplane mode works.
Why use wifi with airplane mode anyways?
Click to expand...
Click to collapse
I want airplane on and WiFi on while I'm sleeping.

jerryspring said:
I want airplane on and WiFi on while I'm sleeping.
Click to expand...
Click to collapse
Just create a Task:
1. Turn Airplane Mode On via Tasker Autoinput (or if you're rooted via plugin Secure Setttings)
2. Turn WIFi On
The above Task will be triggered by a Profile based on your desired time of day.

GrippingSphere said:
Just create a Task:
1. Turn Airplane Mode On via Tasker Autoinput
2. Turn WIFi On
The above Task will be triggered with a Profile based on your desired time of day.
Click to expand...
Click to collapse
Where is option to turn AP on with autoinput?

jerryspring said:
Where is option to turn AP on with autoinput?
Click to expand...
Click to collapse
In Autoinput, a series of Autoinput actions must be created , i.e.:
Autoinput Global Action 'Quick Settings'
Autoinput Action short click point (x, y axis where the icon Airplane Mode is located)
Autoinput Action short click to confirm the AP

GrippingSphere said:
In Autoinput, a series of Autoinput actions must be created , i.e.:
Autoinput Global Action 'Quick Settings'
Autoinput Action short click point (x, y axis where the icon Airplane Mode is located)
Autoinput Action short click to confirm the AP
Click to expand...
Click to collapse
Thank you. But no thanks. Lol

Here's mine, it does what your asking
https://taskernet.com/shares/?user=...SOy/dBP01BrT44gcC6k4E=&id=Profile:Sleep+Cycle
It turns on airplane mode then every interval turns WiFi on to allow notifications then goes dark again. No add-ons needed just root. It uses shell commands for both WiFi and airplane mode with waits in-between.
Edit: There is also a shell command that allows you to pick what radios go off when airplane mode is turned on. So essentially you can omit WiFi so that when you turn ap mode on WiFi stays on. But in my profile I chose to turn it off manually by code so WiFi isn't on the whole time.

There's an option within Tasker to turn WiFi On or Off, but of course will only work when rooted.

https://www.xda-developers.com/customize-radios-airplane-mode-android/
Works for me in OxygenOS OB33 pie!
Sent with much love & Android. OnePlus 5T OB33

n0j0e said:
https://www.xda-developers.com/customize-radios-airplane-mode-android/
Works for me in OxygenOS OB33 pie!
Sent with much love & Android. OnePlus 5T OB33
Click to expand...
Click to collapse
Thank you for link that is the code I was talking about. And just to add, if you don't want to use adb from PC to run code you can do it through Android terminal with root.

Related

Is there a widget to turn on/off the 3g?

I always hate going into the settings to enable/disable data. Is there a widget in the market that does that?
Good question.
How would a 3G switch function differently than enabling Airplane mode?
Curious as well...
bishop72 said:
I always hate going into the settings to enable/disable data. Is there a widget in the market that does that?
Click to expand...
Click to collapse
Kinda but no. Switchpro widget has both airplane and 3g on/off switches. As of right now only the airplane part works.
http://www.androlib.com/android.application.alei-switchpro-CFBF.aspx
bishop72 said:
I always hate going into the settings to enable/disable data. Is there a widget in the market that does that?
Click to expand...
Click to collapse
Yes! Theres an app for free called Widgetsoid in the Market. I just found out about it today in the 'post your homescreens' thread. Works great!
SV
So what is the difference between Airplane mode and turning off 3G?
I am pretty sure airplane mode kills wifi and bluetooth as well, thou you can turn wifi back on.
Sent from my Xoom using XDA App
I use Widgetoid (think thats it). Turn on Airplane mode and you're all good. Just need to switch back on WiFi.
Lars1967 said:
So what is the difference between Airplane mode and turning off 3G?
Click to expand...
Click to collapse
There is no officially supported way to disable 3G besides Airplane Mode. Airplane Mode disables the 3G radio, while widgets just change the APN to something that doesn't work.
nindoja said:
There is no officially supported way to disable 3G besides Airplane Mode. Airplane Mode disables the 3G radio, while widgets just change the APN to something that doesn't work.
Click to expand...
Click to collapse
You can disable 3G from mobile network settings. Just uncheck data enabled.
sangreal06 said:
You can disable 3G from mobile network settings. Just uncheck data enabled.
Click to expand...
Click to collapse
Sangreal, What benefit (or not) would this have over engaging Airplane mode?
Lars1967 said:
Sangreal, What benefit (or not) would this have over engaging Airplane mode?
Click to expand...
Click to collapse
Airplane mode disables all of the radios, and you have to re-enable them each time you power the device on.
sangreal06 said:
Airplane mode disables all of the radios, and you have to re-enable them each time you power the device on.
Click to expand...
Click to collapse
I've noticed that unchecking that doesn't actually power down the 3G radio. It will still show up in the power monitor under settings. I'm aslo curious if there is a way without using airplane mode to have the tablet not bug about activation every time it starts up.
Thank you!
sangreal06 said:
You can disable 3G from mobile network settings. Just uncheck data enabled.
Click to expand...
Click to collapse
True, but I meant from a programming standpoint, so a widget could do it. Maybe it's been added in the 3.0 SDK but I haven't heard about it. I know google took out the ability to turn on and off the 3G with a program because it can cost users money.

Tasker Profiles Help

I've started playing with Tasker to do a few basic things but the kind of profiles i want to achieve, i'm really struggling to create. If anyone could help me with the following or direct me to a thread that explains how to achieve this, that would be great!
- Disable WiFi/Go into Airplane mode when screen is off and if App 1,2,3 and services are not running, turn WiFi back on/exit Airplane mode when screen comes back on
- Enter Airplane mode at certain times (i've done this) but then at different times on weekends
- Keep WiFi on at home based on cell tower location, and turned off the rest of the time (i've seen someone talking about this previously but can't find it now)
- Enable 3G every 30 minutes and then turn off
- Enable GPS when Maps opens and turn it off when closed
The last part is how to make certain profile supersed others. For example, if i have my phone going into airplane mode at night, how do i then make this ignore the 3G enable/disable profile during the time the Airplane profile is active?
Any help with this would be appreciated!
farquea said:
I've started playing with Tasker to do a few basic things but the kind of profiles i want to achieve, i'm really struggling to create. If anyone could help me with the following or direct me to a thread that explains how to achieve this, that would be great!
#1- Disable WiFi/Go into Airplane mode when screen is off and if App 1,2,3 and services are not running, turn WiFi back on/exit Airplane mode when screen comes back on
#2- Enter Airplane mode at certain times (i've done this) but then at different times on weekends
#3- Keep WiFi on at home based on cell tower location, and turned off the rest of the time (i've seen someone talking about this previously but can't find it now)
#4- Enable 3G every 30 minutes and then turn off
#5- Enable GPS when Maps opens and turn it off when closed
The last part is how to make certain profile supersed others. For example, if i have my phone going into airplane mode at night, how do i then make this ignore the 3G enable/disable profile during the time the Airplane profile is active?
Any help with this would be appreciated!
Click to expand...
Click to collapse
For #2 - Create a task that will be triggered by a Time context. Turning Airplane mode On or Off at specific times and days
For #3 - Create a task that will automatically turn off WiFi if not successfully connected to a WiFi network after say 1 minute
For #4 - From Lollipop onward, android has blocked third party apps to control 3G.
For #5 - Create a task that will be triggered by an event (i.e. starting of an app). Enable GPS upon starting a Navigation app like Google Maps. Add an exit task to turn off GPS when Navigation app was stopped.
During the state that the phone is on airplane mode, you cannot turn On the 3g.
You can see some profile and task examples in tasker settings/browse examples.
farquea said:
I've started playing with Tasker to do a few basic things but the kind of profiles i want to achieve, i'm really struggling to create. If anyone could help me with the following or direct me to a thread that explains how to achieve this, that would be great!
- Disable WiFi/Go into Airplane mode when screen is off and if App 1,2,3 and services are not running, turn WiFi back on/exit Airplane mode when screen comes back on
- Enter Airplane mode at certain times (i've done this) but then at different times on weekends
- Keep WiFi on at home based on cell tower location, and turned off the rest of the time (i've seen someone talking about this previously but can't find it now)
- Enable 3G every 30 minutes and then turn off
- Enable GPS when Maps opens and turn it off when closed
The last part is how to make certain profile supersed others. For example, if i have my phone going into airplane mode at night, how do i then make this ignore the 3G enable/disable profile during the time the Airplane profile is active?
Any help with this would be appreciated!
Click to expand...
Click to collapse
You will need root access to toggle Airplane mode, GPS and Mobile data. It can be done without root though with help of a plugin to Tasker named AutoInput. But if you are new to Tasker this plugin can be a little bit tricky.. Before I rooted my phone I used it myself to toggle GPS to high accuracy when opening Maps and back to Power saving when Maps was closed, also Mobile data ON/OFF when disconnected/connected to Wifi. AutoInput works good but is a ``workaround´´ to access settings that are not allowed by third party applications to use, it opens the menus and do clicks like it would be done by yourself. Not so easy to explain, I would recommend you to visit THIS page to learn more.
If you are are rooted its more easy, you need another Tasker plugin named Secure Settings but its far more easy to use since you only select ``Airplane mode ON´´ or ``GPS high accuracy ON´´ etc. No workarounds needed like with AutoInput.

Anyway to make it auto disable wifi when I leave the house?

My old LG phone had this option but I can't find it in this. On the Bixby routines app it allows me to have it enable wifi when I get home but won't let me set it up to disable it when I leave the house.
Mudig said:
My old LG phone had this option but I can't find it in this. On the Bixby routines app it allows me to have it enable wifi when I get home but won't let me set it up to disable it when I leave the house.
Click to expand...
Click to collapse
this : https://forum.xda-developers.com/showpost.php?p=79082143&postcount=4
Not exactly what you want, but turn on developer mode and enable Wi-Fi power saving mode may help.
Get IFTTT app - you can do that & tons of other cool automatic tasks. Even turning it on when you get home.
Lock-N-Load said:
Get IFTTT app - you can do that & tons of other cool automatic tasks. Even turning it on when you get home.
Click to expand...
Click to collapse
.
.
Hi, is this a safe app,ifttt?
Hope it doesn't have any adverse effect on the battery.
Thanks
Actually you can turn off Wi-Fi in Bixby routines.
Go to a routine, edit, in "then" select add or plus, Wi-Fi, select "on" or "off".
You can set it up upon leaving "X" location, turn off Wi-Fi or you can do it by a specific time to turn it off
jdanielsantiago25 said:
Actually you can turn off Wi-Fi in Bixby routines.
Go to a routine, edit, in "then" select add or plus, Wi-Fi, select "on" or "off".
You can set it up upon leaving "X" location, turn off Wi-Fi or you can do it by a specific time to turn it off
Click to expand...
Click to collapse
I don't see the option to set it up for leaving X location?
Mudig said:
I don't see the option to set it up for leaving X location?
Click to expand...
Click to collapse
If you set a routine to activate wifi in a location, leaving that location will disable wifi

WIFI on data turn off

Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
orlans21 said:
Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
Click to expand...
Click to collapse
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
manan9999 said:
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
Click to expand...
Click to collapse
So just use auto input?
orlans21 said:
So just use auto input?
Click to expand...
Click to collapse
Buy auto input and set it up according to your need using Tasker
Post If help needed .
manan9999 said:
Buy auto input and set it up according to your need using Tasker
Post If help needed .
Click to expand...
Click to collapse
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
orlans21 said:
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
Click to expand...
Click to collapse
I don't experience the same.
It works just perfect for me.
Are you sure you are not doing something wrong?
Try mailing the developer
It could just be my router. It's in the basement and I'm 2 floors above
As for determining your proximity to your location, one good idea is to use two different sized or two location geo fences that you can cross reference against each other

Turn off Wi-fi when disconnected on Airplane

Hello,
I have a task that works like a charm: If wi-fi connection disconnected, it disables wi-fi option after one minute. So far so good, but what I want to create is that I generally use airplane mode at home and manually turn on wi-fi. If wi-fi disconnected anyhow (e.g. I decide to go out), this task does not work and let wi-fi option enabled. I have been working for hours to overcome this problem with no success. Is there a way to turn off wi-fi option after disconnected and one minute later, regardless on Airplane mode or not? (I do not use a rooted phone).
Hey,
I've tested this with my phone (Pixel 3 on Android 11) and it works as expected. Wifi get disabled as soon as it lost the connection to the access point, regardless if airplane mode is on or not.
According to the description of the action "Wifi" the behaviour you mentioned is expected prior to Android 2.0 (see https://tasker.joaoapps.com/userguide/en/help/ah_index.html). But I don't think that you're using such an old version.
Maybe you can work around this "issue" by removing wifi from the airplane mode: create a new task, add the action "Airplane Radios" and select all radios except "Wifi". Execute the task once.
When wifi is enabled and you activate the airplane mode, wifi will not be disabled now. Not sure if this is OK for you, but it could cause that your disable-wifi-after-1-minute-disconnected-task will work when airplane mode is enabled.
Jas
I haven't flown since someone posted this, but this might work for what you want:
Execute the following command in the command prompt or terminal:
adb shell
Then run the following command to prevent Airplane Mode from turning off WiFi:
settings put global airplane_mode_radios cell,bluetooth,nfc,wimax
Alternatively, you could do this command to prevent Airplane Mode from turning off WiFi and Bluetooth:
adb shell
settings put global airplane_mode_radios cell,nfc,wimax
Each item we remove from the list tells Android to leave that radio on when Airplane Mode is toggled on.
If you ever want to return things back to how they were, you can execute the following command in an ADB shell prompt:
settings delete global airplane_mode_radios
JasMan78 said:
Hey,
I've tested this with my phone (Pixel 3 on Android 11) and it works as expected. Wifi get disabled as soon as it lost the connection to the access point, regardless if airplane mode is on or not.
According to the description of the action "Wifi" the behaviour you mentioned is expected prior to Android 2.0 (see https://tasker.joaoapps.com/userguide/en/help/ah_index.html). But I don't think that you're using such an old version.
Maybe you can work around this "issue" by removing wifi from the airplane mode: create a new task, add the action "Airplane Radios" and select all radios except "Wifi". Execute the task once.
When wifi is enabled and you activate the airplane mode, wifi will not be disabled now. Not sure if this is OK for you, but it could cause that your disable-wifi-after-1-minute-disconnected-task will work when airplane mode is enabled.
Jas
Click to expand...
Click to collapse
Thank you. ADB Airplane radios solution works like a charm.
JimSmith94 said:
I haven't flown since someone posted this, but this might work for what you want:
Execute the following command in the command prompt or terminal:
adb shell
Then run the following command to prevent Airplane Mode from turning off WiFi:
settings put global airplane_mode_radios cell,bluetooth,nfc,wimax
Alternatively, you could do this command to prevent Airplane Mode from turning off WiFi and Bluetooth:
adb shell
settings put global airplane_mode_radios cell,nfc,wimax
Each item we remove from the list tells Android to leave that radio on when Airplane Mode is toggled on.
If you ever want to return things back to how they were, you can execute the following command in an ADB shell prompt:
settings delete global airplane_mode_radios
Click to expand...
Click to collapse
Thank you very much. Removing WiFi via ADB command from Airplane radios solution worked like charm!

Categories

Resources