WiFi tether error with Nexus 6 on Marshmallow

377 views
Skip to first unread message

ענדרעש טאנתאנעללא

unread,
Dec 7, 2015, 11:11:32 AM12/7/15
to Tasker
I recently went from my HTC one max to the nexus 6 and was a heavy user of tasker on the max. Particularly, I used the tether function. However, now with the nexus it throws an error when I use the tasker native tether option and says it works with secure settings but throws an error. Is there a fix for this?

Here's the error on both settings...

Native option:
11.08.14/Mirror android.net.ConnectivityManager.setMobileDataEnabled: unavailable
11.08.14/Mirror android.net.ConnectivityManager.setRadio: unavailable
11.08.14/E current state: 1
11.08.14/E WiFi Tether: cur: false new: true
11.08.14/M lastWifiDisableAgoMS: 1449504494782
11.08.14/E check AP state
11.08.14/E AP state: 1
11.08.14/M lastWifiDisableAgoMS: 1449504494783
11.08.14/E current state: 1
11.08.14/E curval: 1
11.08.14/E WiFi: cur: false new: false
11.08.14/E wait for 200ms
11.08.15/E wait finished
11.08.15/E WiFi Tether: setWifiEnabled()
11.08.15/Mirror setWifiApEnabled: InvocationTarget: java.lang.reflect.InvocationTargetException, java.lang.SecurityException: ConnectivityService: Neither user 10129 nor current process has android.permission.CONNECTIVITY_INTERNAL.
11.08.15/E WiFi Tether: enable failed
11.08.15/E Action WiFi Tether failed.

Error with secure settings:

"An error occurred while executing Action: WiFi tether"

ענדרעש טאנתאנעללא

unread,
Dec 7, 2015, 5:20:07 PM12/7/15
to Tasker
Ideas? Any are appreciated at this point.

Marta Hintz

unread,
Dec 7, 2015, 10:10:16 PM12/7/15
to Tasker
Did you try recreating the same task? I ask because sometimes when I upgrade to a new phone/rom, some of the tasks don't work until I remake it. Just a thought

Pent

unread,
Dec 8, 2015, 3:45:35 AM12/8/15
to Tasker
It's ROM dependent whether this will work or not now, try searching the forum for

android.permission.CONNECTIVITY_INTERNAL. There are some solutions for rooted

devices if it's not working on your ROM.


Pent

ענדרעש טאנתאנעללא

unread,
Dec 8, 2015, 11:04:24 AM12/8/15
to Tasker
Yes, I am rooted, unlocked and all. I tried deleting and importing, recreating the profiles- nothing worked due to this issue >>>>>

android.permission.CONNECTIVITY_INTERNAL<<<<<<


HOWEVER,

I have found a work that might just solve a lot of problems with Marshmallow users...

In short, I found that if I simulate screen taps, I still "manually" activate tethering and the device doesn't realize the action was automated. If you use the Shell command "input tap x y) for the position on the screen, it simulates the tap... I used the Display, Notification Expand and a two tap sequence to expand the Notification pulldown to reveal the Quick Settings and tap on the appropriate short cut position on the screen. Based up on the exit tasks, you can simulate the same thing to turn the option (in my case tethering) off when you you leave the trigger (event) area (for me my house and the pinged cell towers). Hopefully this helps someone.

 Below is the code for the activation of my wifi tethering based upon cell towers and the other tasks I have to run when I arrive home.

<TaskerData sr="" dvi="1" tv="4.8m">
	<Profile sr="prof6" ve="2">
		<cdate>1439089481286</cdate>
		<clp>true</clp>
		<edate>1449586810255</edate>
		<id>6</id>
		<mid0>22</mid0>
		<mid1>26</mid1>
		<nme>Home (CellTowers)</nme>
		<State sr="con0" ve="2">
			<cname>Hotspot Activate</cname>
			<code>7</code>
			<Str sr="arg0" ve="3">CDMA:434 / 0
CDMA:434 / 0
CDMA:434 / 0
CDMA:434 / 0
CDMA:761 / 4</Str>
			<Str sr="arg1" ve="3"/>
		</State>
	</Profile>
	<Task sr="task22">
		<cdate>1443547433653</cdate>
		<edate>1449588031049</edate>
		<id>22</id>
		<nme>Activate Hotspot</nme>
		<pri>100</pri>
		<Action sr="act0" ve="7">
			<code>425</code>
			<Int sr="arg0" val="0"/>
		</Action>
		<Action sr="act1" ve="7">
			<code>303</code>
			<Int sr="arg0" val="7"/>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="0"/>
		</Action>
		<Action sr="act10" ve="7">
			<code>11820</code>
			<Bundle sr="arg0">
				<Vals sr="val">
					<com.intangibleobject.securesettings.plugin.extra.BLURB>Clear Password/Wait For Unlock</com.intangibleobject.securesettings.plugin.extra.BLURB>
					<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
					<com.intangibleobject.securesettings.plugin.extra.SETTING>password_reset</com.intangibleobject.securesettings.plugin.extra.SETTING>
					<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
					<com.intangibleobject.securesettings.plugin.extra.WAIT_UNLOCK>true</com.intangibleobject.securesettings.plugin.extra.WAIT_UNLOCK>
					<com.intangibleobject.securesettings.plugin.extra.WAIT_UNLOCK-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.WAIT_UNLOCK-type>
					<com.twofortyfouram.locale.intent.extra.BLURB>Clear Password/Wait For Unlock</com.twofortyfouram.locale.intent.extra.BLURB>
					<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
					<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
					<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
				</Vals>
			</Bundle>
			<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
			<Str sr="arg2" ve="3">Secure Settings</Str>
			<Int sr="arg3" val="0"/>
		</Action>
		<Action sr="act11" ve="7">
			<code>11820</code>
			<Bundle sr="arg0">
				<Vals sr="val">
					<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Disabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
					<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
					<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
					<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
					<com.twofortyfouram.locale.intent.extra.BLURB>GPS Disabled</com.twofortyfouram.locale.intent.extra.BLURB>
					<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
					<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
					<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
				</Vals>
			</Bundle>
			<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
			<Str sr="arg2" ve="3">Secure Settings</Str>
			<Int sr="arg3" val="0"/>
		</Action>
		<Action sr="act2" ve="7">
			<code>304</code>
			<Int sr="arg0" val="4"/>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="0"/>
		</Action>
		<Action sr="act3" ve="7">
			<code>512</code>
			<Int sr="arg0" val="0"/>
		</Action>
		<Action sr="act4" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">input tap 700 163</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act5" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">input tap 1050 1800</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act6" ve="7">
			<code>512</code>
			<Int sr="arg0" val="1"/>
		</Action>
		<Action sr="act7" ve="7">
			<code>20</code>
			<App sr="arg0">
				<appClass>com.alarm.alarmmobile.android.activity.LoginActivity</appClass>
				<appPkg>com.alarm.alarmmobile.android</appPkg>
				<label>Alarm.com</label>
			</App>
			<Str sr="arg1" ve="3"/>
			<Int sr="arg2" val="0"/>
			<Int sr="arg3" val="0"/>
		</Action>
		<Action sr="act8" ve="7">
			<code>30</code>
			<Int sr="arg0" val="0"/>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="5"/>
			<Int sr="arg3" val="0"/>
			<Int sr="arg4" val="0"/>
		</Action>
		<Action sr="act9" ve="7">
			<code>294</code>
			<Int sr="arg0" val="0"/>
		</Action>
	</Task>
	<Task sr="task26">
		<cdate>1443547433653</cdate>
		<edate>1449586810255</edate>
		<id>26</id>
		<nme>De-Activate Hotspot</nme>
		<pri>100</pri>
		<Action sr="act0" ve="7">
			<code>294</code>
			<Int sr="arg0" val="1"/>
		</Action>
		<Action sr="act1" ve="7">
			<code>425</code>
			<Int sr="arg0" val="0"/>
		</Action>
		<Action sr="act2" ve="7">
			<code>304</code>
			<Int sr="arg0" val="7"/>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="0"/>
		</Action>
		<Action sr="act3" ve="7">
			<code>512</code>
			<Int sr="arg0" val="0"/>
		</Action>
		<Action sr="act4" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">input tap 700 163</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act5" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">input tap 1050 1800</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act6" ve="7">
			<code>512</code>
			<Int sr="arg0" val="1"/>
		</Action>
		<Action sr="act7" ve="7">
			<code>11820</code>
			<Bundle sr="arg0">
				<Vals sr="val">
					<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
					<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
					<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
					<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
					<com.twofortyfouram.locale.intent.extra.BLURB>GPS Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
					<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
					<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
					<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
				</Vals>
			</Bundle>
			<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
			<Str sr="arg2" ve="3">Secure Settings</Str>
			<Int sr="arg3" val="0"/>
		</Action>
		<Action sr="act8" ve="7">
			<code>11820</code>
			<Bundle sr="arg0">
				<Vals sr="val">
					<com.intangibleobject.securesettings.plugin.extra.BLURB>Set Pin</com.intangibleobject.securesettings.plugin.extra.BLURB>
					<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
					<com.intangibleobject.securesettings.plugin.extra.NEW_PASSWORD>u9+nLe4w53o=]djMjlSbtaT1VieEgcdrw1Q==]GQCa8l8he3gN+kc5J7PPLw==</com.intangibleobject.securesettings.plugin.extra.NEW_PASSWORD>
					<com.intangibleobject.securesettings.plugin.extra.NEW_PASSWORD-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.NEW_PASSWORD-type>
					<com.intangibleobject.securesettings.plugin.extra.PASSWORD_TYPE>pin</com.intangibleobject.securesettings.plugin.extra.PASSWORD_TYPE>
					<com.intangibleobject.securesettings.plugin.extra.PASSWORD_TYPE-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.PASSWORD_TYPE-type>
					<com.intangibleobject.securesettings.plugin.extra.SETTING>password_reset</com.intangibleobject.securesettings.plugin.extra.SETTING>
					<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
					<com.twofortyfouram.locale.intent.extra.BLURB>Set Pin</com.twofortyfouram.locale.intent.extra.BLURB>
					<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
					<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
					<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
				</Vals>
			</Bundle>
			<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
			<Str sr="arg2" ve="3">Secure Settings</Str>
			<Int sr="arg3" val="0"/>
		</Action>
	</Task>
</TaskerData>

Joel Blondy

unread,
Jun 13, 2016, 10:40:42 AM6/13/16
to Tasker
I found a solution for this that doesn't require emulating screen taps.  It does require the xposed framework though.  On a whim I decided to download the xposed module 'X Tether' which claims it enables tethering on the moto x line of phones.  After installing it I was able to create a hotspot with tasker!!  I realize that this is an old thread, but it is the top page on google when I searched for this error.  Best of luck

Bhargava Gangasani

unread,
Jun 28, 2016, 5:52:04 PM6/28/16
to Tasker
Hi Joel ,I have installed x tether module ,restarted but it's srill not shown under 3rd party in Tasker . Can u suggest
Reply all
Reply to author
Forward
0 new messages