Toggling Wi-Fi hotspot requires "TETHER_PRIVILEGED" permission

1,694 views
Skip to first unread message

ch...@thompson-web.org

unread,
Sep 1, 2016, 1:04:03 PM9/1/16
to Automate
I have a flow that uses the "Wi-Fi hotspot set state" block to turn off the hotspot when entering a certain location.

When the flow triggers, there is a SecurityException that the feature requires the TETHER_PRIVILEGED permission.  I have enabled all the permissions in Settings and still get the error.  I'm not sure how to give that permission to the application.

I'm running Android 7.0 on a Nexus 6P.

Henrik "The Developer" Lindqvist

unread,
Sep 2, 2016, 8:33:51 PM9/2/16
to Automate
Your carrier has likely disabled that feature.

Chris Thompson

unread,
Sep 2, 2016, 10:29:05 PM9/2/16
to Automate
I can enable it through Settings and Quick Settings.  Is there another block I could use to toggle it that way?

Henrik "The Developer" Lindqvist

unread,
Sep 3, 2016, 2:01:53 PM9/3/16
to Automate
No other block. I'll may have to add an option to use root.

Chris Thompson

unread,
Sep 3, 2016, 11:36:22 PM9/3/16
to Automate
As a workaround, since I only want to turn off the hotspot, I just used the block to enable WiFi which forces the hotspot to turn off.

a...@is-fabulo.us

unread,
Sep 12, 2016, 3:25:04 PM9/12/16
to Automate
I'm also having this issue--I'm trying to get my hotspot to automatically turn on and off when connected to my car bluetooth. any chance for a root version?

Henrik "The Developer" Lindqvist

unread,
Sep 12, 2016, 7:00:01 PM9/12/16
to Automate

matt...@goodwillaz.org

unread,
Nov 1, 2016, 2:21:57 PM11/1/16
to Automate
Why would root be needed for this? Wouldn't it be simple enough to create another app that adds this permission just like so many of the others that add permissions to Automate? (sorry for the ignorant question, just that this seems to be the obvious answer).

Henrik "The Developer" Lindqvist

unread,
Nov 1, 2016, 9:08:12 PM11/1/16
to Automate, matt...@goodwillaz.org
The TETHER_PRIVILEGED permission is only granted to system apps.
Most devices only require the CHANGE_WIFI_STATE permission which is grated to any app requesting it.

hens...@googlemail.com

unread,
Nov 6, 2016, 8:36:23 PM11/6/16
to Automate
Hi,
Is this issue the same as / similar to, receiving the following when trying to enable Bluetooth tethering when a specific device connects (my tablet):
"... java.lang.SecurityException: com.llamalab.automate.ext.location was not granted this permission: android.permission.WRITE_SETTINGS"
Thanks

Assad Niang

unread,
Sep 25, 2017, 12:28:30 PM9/25/17
to Automate
So I guess this cannot be done as of now for unrooted phone?

I have a samsung note 8 running android 7.1.1 and I get the same error message when trying to enable hotspot.

My old samsung note 4 which was running marshmallow was able to enable hotspot automatically.

Henrik "The Developer" Lindqvist

unread,
Sep 25, 2017, 12:44:33 PM9/25/17
to Automate
If the block fail with a SecurityException, TETHER_PRIVILEGED or other, then no.
On a rooted device, enable the "Wi-Fi hotspot rooted" option in Automate settings.

Assad Niang

unread,
Sep 25, 2017, 2:38:54 PM9/25/17
to Automate
Is there any block that can simulate a key press?

The reason I asked, is because I believe Tasker has that option.

Thank you

Henrik "The Developer" Lindqvist

unread,
Sep 26, 2017, 9:45:47 AM9/26/17
to Automate

Assad Niang

unread,
Sep 26, 2017, 10:39:31 AM9/26/17
to Automate
Thank you
Reply all
Reply to author
Forward
0 new messages