SimpleRT stops working after device reboot
fsobanski opened this issue · comments
Hi,
I am using SimpleRT for a Samsung Galaxy S7 with Android Version 7.0 connected to a Raspberry Pi 3 with Raspbian as the Host.
I have downloaded your provided apk and installed it via adb install
Reverse tethering is working fine until I restart the android device. After the restart, SimpleRT on the Pi is telling me that reverse tethering is working again but the android device is unable to get an internet connection.
This problem is resolved after I enable wifi on the android device, let the device connect to a wifi hotspot and then disable wifi again. Afterwards, reverse tethering can be used again.
This is the complete rt debug output.
pi@raspberrypi:~/SimpleRT/simple-rt-cli $ sudo ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.188.122 netmask 255.255.255.0 broadcast 192.168.188.255
inet6 fe80::b57:dbce:f3f2:2e64 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:c0:d0:02 txqueuelen 1000 (Ethernet)
RX packets 218114 bytes 57411473 (54.7 MiB)
RX errors 0 dropped 90543 overruns 0 frame 0
TX packets 77168 bytes 24134169 (23.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~/SimpleRT/simple-rt-cli $ ip route show
default via 192.168.188.1 dev eth0 src 192.168.188.122 metric 202
192.168.188.0/24 dev eth0 proto kernel scope link src 192.168.188.122 metric 202
Just a quick update:
It looks like the android device does have internet after a restart. It just doesn't know about it.
Because I can ping 8.8.8.8
from within the adb shell
. The Samsung Galaxy S7 probably doesn't even try to connect to a website in the browser. I assume it believes that it can't possibly have internet because it never connected to any network. For some reason, connecting to a network once and disconnecting afterwards solves this issue...
I can also ping www.google.de
from within the adb shell
. So it's not a dns problem.
I see that you write in your Readme.md
: "Issues: Some apps do not recognize the reverse tethered internet connection due to ConnectivityManager policy. Just leave WiFi or 3g connection active, connection will go through SimpleRT anyway."
So I guess you are already aware of this issue. Therefore, I am closing this issue.