Bug: Tether variable isn't set properly on nougat

403 views
Skip to first unread message

Achiya Elyasaf

unread,
Sep 11, 2016, 1:15:04 AM9/11/16
to Tasker
After upgrading to nougat, tether variable is constantly set to wifi.

Pent

unread,
Sep 11, 2016, 2:21:51 AM9/11/16
to Tasker

After upgrading to nougat, tether variable is constantly set to wifi.

OK, thanks, will look at it when I (finally) have a device for testing.

Pent

Pent

unread,
Nov 7, 2016, 2:30:01 AM11/7/16
to Tasker
I couldn't reproduce this on an N6 with 7.0.

Do you mean 'it's always wifi even if not tethered at all' or
'whatever form of tether I use, wifi is always reported'.

What's your device / OS version ? Custom ROM ?

Pent

Achiya Elyasaf

unread,
Nov 14, 2016, 8:22:22 AM11/14/16
to Tasker
Nexus 6p no custom ROM, rooted, Android 7.0, build number NBD91K (when I originally encountered the bug - the build version was an earlier one, don't remember the exact version, probably the first android 7.0 build for 6p).

Here is a video that shows the bug - https://goo.gl/photos/d9DLHFNkNh5zpUpm7

Sometimes %TETHER=wifi even without starting and turning off tethering .

thanks

Volta X

unread,
Dec 30, 2016, 11:57:38 AM12/30/16
to Tasker
I have the same issue on my Pixel XL (Verizon, NDE63X).  Even immediately after a reboot with no tethering active, %TETHER is set to wifi. Toggling wifi tethering on and off has no impact on this variable.  Tethering a device via bluetooth updates %TETHER to wifi,bt, so it seems this bug is just for wifi.

 -V 

Volta X

unread,
Dec 30, 2016, 2:07:49 PM12/30/16
to Tasker
For anyone else running into this issue a workaround that doesn't require root:

Action: Run Shell
Command: netstat -an | grep :53 | grep -q LISTEN && echo on || echo off
Store Output In: %TetherStatus

Run that action when you need to know tethering status, and check the %TetherStatus variable instead of %TETHER.  Doesn't distinguish between different types of tethering, just looks for an active DNS listener on the local device.  On mine that's only active if some form of tethering is enabled.

 - V
Message has been deleted

Elisoft

unread,
Mar 26, 2017, 4:22:57 PM3/26/17
to Tasker
The same is happening to me...

OnePlus 3T / Android 7.0 / ROM stock

With wifi = on / tether = off ...% TETHER = wifi
With wifi = off / tether = on ...% TETHER = wifi
With wifi = off / tether = off ...% TETHER = (unset)
With airplane mode = on ...% TETHER = (unset)

OnePlus 3T / Android 7.1.1 / ROM stock

With wifi = on / tether = off ...% TETHER = wifi
With wifi = off / tether = on ...% TETHER = wifi
With wifi = off / tether = off ...% TETHER = wifi
With airplane mode = on ...% TETHER = (unset)

Elisoft

unread,
Mar 27, 2017, 11:16:02 AM3/27/17
to Tasker
I have discovered something new about this. If the "WiFi / Advanced / Scan always available" option is disabled, the %TETHER variable will no longer have a "wifi" value with WiFi = off. It has no value = unset.


El domingo, 11 de septiembre de 2016, 7:15:04 (UTC+2), eggsterino escribió:

Hadco Metal

unread,
Apr 3, 2017, 11:13:22 AM4/3/17
to Tasker
Do we think has anything to do with the permission issue with Tethering with Tasker?

Elisoft

unread,
Apr 3, 2017, 11:21:08 AM4/3/17
to Tasker
If you mean this problem ...

https://groups.google.com/d/msg/tasker/Rf75hoZjDTo/qynz1JpzBQAJ

This issue does not appear to be related to permissions. Tasker activates the tether via undocumented functions and in Android 7.1.1 they have stopped working just like before.

Joe K

unread,
Jun 3, 2017, 2:46:07 PM6/3/17
to Tasker
It's always wifi even if not tethered at all. I get the same error with a Tmo Note 5 running Android 7.0. Posted same note to the 5.0 beta thread. This variable is useful and I sure wish it were working.
Tasker is my #1 app & I appreciate your work.

Pent

unread,
Jun 29, 2017, 6:44:51 AM6/29/17
to Tasker
I tested this without problem on an S7 with 7.0 vanilla.

Elisoft mentioned:


> WiFi / Advanced / Scan always available

Have people with tether problems tried disabling this ?

I looked at a log a while ago but can't remember the conclusion, could someone
please send me a fresh one ?

http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#x2

Please note the times when you turned the hotspot on/off and leave a couple
of minutes in-between.

Thanks,

Pent

Lockheed

unread,
Aug 9, 2017, 3:52:35 PM8/9/17
to Tasker
I can confirm this but is still present in latest Nougat 7.1.2 based Resurrection Remix roms. Volta X's workaround works but does not replace this functionality fully.

Elisoft

unread,
Aug 9, 2017, 5:00:18 PM8/9/17
to Tasker
I can also confirm that the problem is still present. Checked with Tasker 5u3 / OnePlus 3T / OxygenOS 4.1.6 stock (Android 7.1.1) / Google Play Services 11.5.05 (448-163818272) beta.

If the "WiFi / Advanced / Scan always available" option is disabled then ...

With wifi = off / tether = off ...%TETHER = (unset)
With wifi = on / tether = off ...%TETHER = wifi
With wifi = off / tether = on ...%TETHER = wifi

If the "WiFi / Advanced / Scan always available" option is enabled then %TETHER  is constantly set to "wifi".

Cptnodegard

unread,
Oct 12, 2017, 6:24:14 PM10/12/17
to Tasker
Still present. Needs fixing

Benedikt Zaki

unread,
Mar 31, 2018, 6:07:07 AM3/31/18
to Tasker
Ditto, still present in LineageOS 14.1 (7.1.2 NJH47F)

On Thursday, 12 October 2017 22:24:14 UTC, Cptnodegard wrote:
Still present. Needs fixing

Benedikt Zaki

unread,
Mar 31, 2018, 10:26:45 AM3/31/18
to Tasker
For the record, Tasker also does not correctly trace the usb tethering status in 7.1.2 either. I have not tested bt, but I would not be surprised if it is the case there as well.

joaomgcd

unread,
Apr 3, 2018, 7:37:12 AM4/3/18
to Tasker
So it's still always showing Wifi for you?

Benedikt Zaki

unread,
Apr 3, 2018, 7:57:01 AM4/3/18
to Tasker
It is indeed. Toggling the hotspot has no effect, nor does the toggling or enabling of bluetooth tethering. It also shows wifi even if the regular wifi connection is enabled and connected.

João Dias

unread,
Apr 5, 2018, 11:45:12 AM4/5/18
to tas...@googlegroups.com
Ok, I'll try fixing it, thanks for the info!

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Benedikt Zaki

unread,
Apr 5, 2018, 11:52:02 AM4/5/18
to Tasker
If there is any data I might provide that could be useful, please let me know


On Thursday, 5 April 2018 15:45:12 UTC, joaomgcd wrote:
Ok, I'll try fixing it, thanks for the info!
On Tue, Apr 3, 2018 at 12:57 PM, 'Benedikt Zaki' via Tasker <tas...@googlegroups.com> wrote:
It is indeed. Toggling the hotspot has no effect, nor does the toggling or enabling of bluetooth tethering. It also shows wifi even if the regular wifi connection is enabled and connected.

On Tuesday, 3 April 2018 11:37:12 UTC, joaomgcd wrote:
So it's still always showing Wifi for you?

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

João Dias

unread,
Apr 12, 2018, 9:36:55 AM4/12/18
to tas...@googlegroups.com
This is fixed for the next release :)

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+unsubscribe@googlegroups.com.

Basil O

unread,
Jun 12, 2018, 11:43:22 AM6/12/18
to Tasker
is this fixed? my %TETHER variable always says "wifi"

João Dias

unread,
Jun 12, 2018, 12:35:21 PM6/12/18
to tas...@googlegroups.com
Should be fixed in the latest beta version

Basil O

unread,
Jun 12, 2018, 3:44:15 PM6/12/18
to Tasker
it works! I love you!

João Dias

unread,
Jun 13, 2018, 4:30:23 AM6/13/18
to tas...@googlegroups.com
Great :D
Reply all
Reply to author
Forward
0 new messages