Page 1 of 1

Wifi tethering on Android Oreo not working

Posted: 27 May 2018 08:08
by freibeuter
Hi,

since Oreo Update on my LG G6 activating Wifi tethering does not work any more.
This is what I can see in the log;

Code: Select all

27.05.2018 10:03:57.968 [Auto_Wlan_an] Error:
ch.gridvision.ppam.androidautomagiclib.util.m: Could not enable wifi tethering
	at ch.gridvision.ppam.androidautomagic.model.a.gb.a(SourceFile:249)
	at ch.gridvision.ppam.androidautomagic.model.flow.e.a(SourceFile:1044)
	at ch.gridvision.ppam.androidautomagic.model.flow.e.b(SourceFile:1001)
	at ch.gridvision.ppam.androidautomagic.model.flow.k$b.a(SourceFile:58)
	at ch.gridvision.ppam.androidautomagic.model.flow.e.a(SourceFile:961)
	at ch.gridvision.ppam.androidautomagic.FlowListActivity$49.onMenuItemClick(SourceFile:1852)
	at android.widget.PopupMenu$1.onMenuItemSelected(PopupMenu.java:105)
	at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)
	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:167)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:908)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:898)
	at com.android.internal.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
	at android.widget.AdapterView.performItemClick(AdapterView.java:318)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1230)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3206)
	at android.widget.AbsListView$3.run(AbsListView.java:4303)
	at android.os.Handler.handleCallback(Handler.java:789)
	at android.os.Handler.dispatchMessage(Handler.java:98)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6710)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Caused by: java.lang.NoSuchFieldException: No field mService in class Landroid/net/ConnectivityManagerEx; (declaration of 'android.net.ConnectivityManagerEx' appears in /system/framework/framework.jar)
	at java.lang.Class.getDeclaredField(Native Method)
	at ch.gridvision.ppam.androidautomagic.model.a.gb.a(SourceFile:188)
	... 22 more
Does this mean I canĀ“t use this feature any more withour rooting my phone?

Thanks & BR,
freibeuter

Re: Wifi tethering on Android Oreo not working

Posted: 27 May 2018 11:03
by Desmanto
Automagic 1.35.0 should have fixed this. Check the playstore for update.

Re: Wifi tethering on Android Oreo not working

Posted: 27 May 2018 11:56
by freibeuter
Thanks for your answer! However I am already on Version 1.35.0 :(
After a bit of researching I tried using Tasker Plugin "Nougat+ Tasker Tethering Control" which seems to be working fine (https://github.com/matejdro/TaskerTetherControl). So it seems to be possible to enable wifi tethering on Oreo without root.

Re: Wifi tethering on Android Oreo not working

Posted: 27 May 2018 12:40
by Desmanto
Oh, probably you also need to grant Automagic the write secure permission in adb. Martin has integrated that app's method in this 1.35.0 : viewtopic.php?f=5&t=6943. So if Automagic can't do it, most likely that app can't either. Or maybe you need to grant root permission to Automagic, as that app also stated it probably requires root.

Last resort, you can try to use Control UI. You can find the tutorial at my Index, Control UI section. Autumn-Leigh also has the video tutorial on the Control UI, you can check out her channel's link at my index too.

Re: Wifi tethering on Android Oreo not working

Posted: 27 May 2018 14:30
by freibeuter
Tried granting "WRITE_SECURE_SETTINGS", rebooted phone - still not working. Tasker Plugin is working fine. My phone is not rooted, so I cannot grant root permission to Automagic.
Having a look at the AndroidManifest.xml of the Tasker plugin it seems to request some other permissions like "TETHER_PRIVILEGED" - maybe that's the trick(?)
I'd like to avoid using control UI as I'd have to unlock my phone manually to get it working (if I get it right).
So for now I'm gonna stick with the Tasker plugin which seems to do the job and hope wifi tethering will be fixed in Automagic soon :)

Re: Wifi tethering on Android Oreo not working

Posted: 27 May 2018 19:12
by Martin
I have an idea what the problem might be. Thanks for providing the exception! Could you please test the next EAP version of 1.36 once it becomes available. I hope to start the EAP soon.

Permission TETHER_PRIVILEGED is a signature|privileged permission so it should not be possible to grant this permission to a regular third party app. It's probably only relevant on a rooted device when the APK of the plugin is copied to the privileged app area.

Regards,
Martin

Re: Wifi tethering on Android Oreo not working

Posted: 28 May 2018 14:17
by freibeuter
Sure - gonna try next EAP when available and give feedback. Thanks for having a look at this issue!

Re: Wifi tethering on Android Oreo not working

Posted: 15 Apr 2019 17:57
by Moto1987
Hello,

i've got an LG G7 ThinQ with Android 8.0 and thetering doesn't work. On my oder phone (asus zenfone 3, also with Android 8.0) automagic was working fine also with tethering.

Is it an LG problem?

Only way til now is control ui but I don't want that, because my phone is always in my pocket.

I hope someone can help me.
Greetings from Germany
Moto1987

Re: Wifi tethering on Android Oreo not working

Posted: 15 Apr 2019 19:46
by Martin
Hi,

Unfortunately I don't have a G7 available for tests. Is there anything in the log of Automagic?
Did you try to install Workarounds for Automagic to see if this helps?

Regards,
Martin