Wifi and mobile data issue after degoogling - LineageOS Questions & Answers

I recently considered completely degoogling lineageos and i succeeded partly.
1. Changed the system webview to bromite webview.
2. Changed the captive portals to
https://e.foundation/net_204/
http://204.ecloud.global
3. And finally changed the timeserver to pool.ntp.org
One of these steps happened to screw up things with the wifi and mobile data.
Wifi works just fine but has a "Limited connection" label on it.
And mobile data doesnt seem to work at all.
Has anyone experienced something similar or knows the solution?
Thanks in advance for your help.

When you are on wifi, are you connecting to a router that has a custom DNS server? I get the same thing, works just fine. Scroll through your router logs and device logs to see what is times out and adjust accordingly.
I lost mobile data on a previous device (LG v20) when I moved over to LOS and was messing around with APN. Given that mobile data runs through provider's server, it might be that the server it being blocked by a content filter or similar. Also, it might be that LOS's list of default APN are not updated with current information required by your provider.

My device uses nextdns through private dns.
I was using vanilla lineageos with microg and mobile data worked fine, after these steps something seemed to have messed up. I have tried resetting APNs too, didnt work.

DNS of wifi doesnt typically affect that of LTE, but might be different in your flavor of LOS.
Look at your logs on router and device.

Private dns is DNS over TLS implementation of android, it works on both wifi and mobile data. I havent changed anything related to dns for a long time. DNS doesnt seem to be the problem.
systool sntpc -sntpRequest
I can see simple ntp client requests like this, should i be looking for something else?

I'm curious as to how many requests you are seeing. I seem to recall android should only check every few days. Hmm.
Checked logs on a rooted v20 stock N7.1 that I keep around for tv and Roku and Plex control. I wasn't able to find a ntp or sntp entry in last 7 days, the length of my log. Firewall did not report any port 123 traffic either.
Incidentally, I am using 3.android.pool.ntp.org to sync with. Not sure where that came from, I don't remember it as being such as I prefer time.nist.gov.
I don't know what could be going sideways with data other than perhaps dns not working ( does ip# work on mobile?) on mobile and degraded showing on wifi.
This may be pointless, but if wifi is turned off, are you able to send/receive a mms? I ask because mms traffic to your phone is based on IP#, but mms traffic from phone has to (typically) resolve name of mms server.
I am just about out of ideas / suggestions.

Thank you for our help mate, i fixed the issue.
Everything is back to normal after changing the captive portal to
http://captiveportal.kuketz.de
https://captiveportal.kuketz.de
The one from e foundation seemed to be the problem. This one is from a security researcher Mike Kuketz.

The captive portal wrecked mobile data too? That is surprising and interesting.
Glad to see you are up and running.
Side note, do you still see same amount of sntp activity now?

deleted

Related

[Q] TOR?

Since I run TOR on my computer I figured I'd check into it for Android and wouldn't you know, it exists. In this age of tracking and privacy going out the door, it's nice to still be able to retain a bit of anonymity.
EDIT: I figured I'd add a small explanation for anyone that's interested in this and doesn't know what TOR is.
Without getting into great detail, some of which I'd have no clue what the hell I'm talking about, it's a way to be anonymous. If you do it correctly no longer will your IP address show up as you current IP which can be used to spy, hack, trace, ad target, and so on. Your IP will show up as something else. e.g. My current location is Overland Park, KS - my IP will reflect this, my ISP also knows my exact address from that IP. With TOR my IP shows up as being located in say, Russia. Problem solved, no more tacking and other bs.
This isn't a pass to do what you want online, you're still a human so act like it. It's just a take back a little bit of privacy and anonymity.
theSpam said:
To simplify things, TOR does onion routing which involves routing your traffic through a number of hosts to final host called the exit node. Exit nodes directly communicate with other hosts on the Internet. The use of exit nodes and encryption throughout this process provides anonymity. See this for more info: http://en.wikipedia.org/wiki/Tor_(anonymity_network)
Click to expand...
Click to collapse
Thanks theSpam
UPDATE: I fixed the issue of Orbot not connecting me to the TOR network. There are more in depth methods but I'll just give the quick and dirty version. After installing Orbot make sure everything is unchecked in setting except: start on boot, transparent proxying, tor everything.
Download ProxyDroid and in setting:
proxy host: 127.0.0.1
Port: 8118
Proxy type: HTTP
Auto connect: check
Global Proxy: check
don't mess with anything else unless you know what you're doing.
Now you can check your IP or use Orbot to check if you're on the TOR network. Enjoy.
Tor? I'm curious
dont send me pm's crying about how i hurt your feelings in a thread
So you know what Tor is then?
Well I installed it and so far it's working aside from not actually connecting me to the network. My IP stays the same so I guess I have to do a few things manually, oh well. When you first boot up and it's starting it eats the processor like a fat lady eats cake but that goes away after 15-20 seconds. On the plus side it doesn't start loading until after the system has finished loading completely so boot times aren't effected.
No sir I'm not sure what TOR is. Was hoping you might shed a lil light on the subject.
dont send me pm's crying about how i hurt your feelings in a thread
OK I updated the OP for you. Hopefully I got it right. I'm not a network genius so I may be a little off.
To simplify things, TOR does onion routing which involves routing your traffic through a number of hosts to final host called the exit node. Exit nodes directly communicate with other hosts on the Internet. The use of exit nodes and encryption throughout this process provides anonymity. See this for more info: http://en.wikipedia.org/wiki/Tor_(anonymity_network)
My main concern with this app is with how TOR works. Does anyone know if Orbot will turn your phone into node used for intermediary routing? (the desktop version does this)
theSpam said:
To simplify things, TOR does onion routing which involves routing your traffic through a number of hosts to final host called the exit node. Exit nodes directly communicate with other hosts on the Internet. The use of exit nodes and encryption throughout this process provides anonymity. See this for more info: http://en.wikipedia.org/wiki/Tor_(anonymity_network)
My main concern with this app is with how TOR works. Does anyone know if Orbot will turn your phone into node used for intermediary routing? (the desktop version does this)
Click to expand...
Click to collapse
There's an option in the settings for it but it's not activated by default. I couldn't imagine switching that option on while using 4G

[Q] Wrong ARP WiFi annoucements with JB ROMs

I've got a significant problem with my DHD when running any of the latest JB releases I've tested -- the problem appears with the JellyTime, codefireX, pipelinerard's CM and also the AOKP ROM's I've tested, even on a clean install (complete wipe of everything but the radio, install only the ROM; gapps not needed to cause the issue). The problem is however not manifest in IceColdSandwich, so I suspect something is broken in the way JB uses the WiFi network compared to how ICS did it. Maybe that triggers a bug somehow in the radio or misses some important radio settings?
To some/many people, it may not be immediately visible, but if you have this problem and use your phone on a large network, you might get banned/kicked off the network if they use rules similar to what e.g. Princeton recently implemented. You may also experience this as intermittent network problems with some hosts being unavailable from time to time.
Here is what happens:
Whenever the phone sleeps (i.e. the screen is off), it sends out bogus ARP message every 15.1 seconds (give and take 10mS or so). The message typically announces "IP x.y.z.v is at MAC ii:ii:ii:ii:ii:ii:ii" where the MAC address is the one of the phone and the IP addresses seems to come from some predetermined list and/or the routers IP -- or it might be 0.0.0.0.
On my network, when using one of the AP's, it will send out seemingly "real" IP addresses that will clog up the main router, trigger additional traffic to poll the ARP addresses and eventually cause misfunction and loss of connectivity also for other clients on the network -- it will however heal itself after some minutes, when the ARP cache times out, just to reappear again later randomly.
On the other AP it will always announce an IP of 0.0.0.0, which is obviously incorrect -- but doesn't cause any direct malfunction.
From time to time, I've also seen incorrectly formatted ARP packages.
I've debugged this with wireshark and pcap's on my network (as I started to wonder about more frequent network problems after using this phone).
I've also tried running tcpdump on the phone itself, and have inspected the pcap from the locally captured file. That pcap does NOT contain the ARP messages, so somehow somewhere deep down the kernel or in the radio, ARP messages are triggered to be sent out (i.e. below the capture interface).
To see if you have this problem, you need to run wireshark on another device and check for traffic from your phone's MAC address. It is easy to see if you know what to look for. You cannot know if you have this problem unless you check for it -- but you might suffer weird connectivity issues from time to time also on other devices/PC's, depending on the rest of your network components, that are not immediately discernable as related to the phone.
Technically this looks similar to ARP spoofing/flooding, with similar symptoms.
Does anyone have any ideas how to fix this? I think this requires someone with kernel/network knowledge, and it is likely related to how parts of the legacy parts (binaries) are being used.
I'm initialy trying to figuring out what runs every 15 seconds on the phone, and would then like to start tracing/bisect ICS vs JB code here.
Would also be nice if someone else could confirm this -- even though the specific symptoms apparently depend on certain WiFi related parameters.
Any ideas?
For reference, I'm using the latest radio 12.69.60.29_26.17.14.11_M. But as ICS does not have this problem, it might not be related to the radio version directly.

Can't change DNS at Android 5.0

Hey guys. I flashed android lollipop 2 nights ago with fastboot. I am very happy with it so far but there is one major annoyance about it. I can't change DNS.
When I try to modify network settings after I change from to "DHCP" to "Static IP" I can't click save button. I also tried a few applications and all of them gave error.
The only thing I can think about while I was flashing the image I got boot.sig and recovery.sig errors but the guide video was telling to ignore those errors.
I am wondering if rooting the device would help me. I am open to any kind of suggestions.
Thanks a lot.
Might be a dumb answer, but I had that issue as well. Make sure when you fill out the info for static you actually type in ALL information. After I filled out each section manually the save button was lit and I was able to save changes. Not sure though if it worked, ipleak is telling me I still have a bunch of google dns's from around the country. Settings were saved though.
If you want to use dhcp but change the DNS server, this seems to be an open problem.
Can you change the DNS on your router instead of the device? On my Netgear I changed it so all devices use Google DNS (8.8.8.8 and 8.8.4.4) instead of Comcast DNS. Works great, and covers everything connected to it either wired or wireless.
I know that isn't really a solution for the problem, but it might help in the meantime.
I did have to use a static IP. My router is set to use different DNS servers though.

Returned home from short trip, Wifi connects but does not function

As the title says, I didn't change anything about the phone's configuration when I was out, didn't download any new apps or change any settings that would interfere like this. No one else has changed my home network in my absence.
Nevertheless, most of my apps, such as Instagram, the Play Store, Twitter, Wikipedia, Chrome; almost all their requests time out. There seem to be short windows where data will load, and Instagram appears to load comments and post metadata, but no images. It's basically unusable. Occasionally an exclamation mark will pop up over my Wifi symbol in the notification center. Strangely, I can still reach my Steam and Battle.net authenticators, but the moment I try loading the Steam app, nothing comes up. It's like the device can only handle plaintext over Wifi.
All of the apps work fine over cellular data.
Also, there is a toast that appears whenever I restart my phone that says "Power On" that I've never noticed before. I was rooted using Xposed, the only modules I used were Snapprefs, Xinsta, Physical Button Music Control, and Greenify Experimental Features, all of which I uninstalled. The toast still appears with the latter two disabled. Only other rooted apps I had besides Xposed were Nova Launcher, Greenify, Busybox, and Root Checker Basic, all of which have been removed but Nova.
I am running 6.0.1 with the latest update.
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
AbanadonedFace said:
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
Click to expand...
Click to collapse
First, if you want to return your device because the 16gb model doesn't have enough space, go ahead.
If it is mostly because of this WiFi issue, I wouldn't return the device, it is almost certainly the case this is some configuration issue (possibly in concert with some Android bug) which can be resolved.
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
sfhub said:
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
Click to expand...
Click to collapse
I am 100% positive I am on my own home network and that I used the correct key. I'm not sure what you mean with regards to the rest of the 'config', I have always used the standard wifi configuration, just typed in my key and had it work.
sfhub said:
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Click to expand...
Click to collapse
I actually forget what it was called, it was under Settings>Wireless&Networks>More>VPN. There was one entry there with an icon. I forget the name of it, but the icon looked like a stock Google icon and I think it had google in the name. I am on Project Fi, not using any wifi assistant (at least not in Advanced Wi-Fi Settings), but when I tried to toggle that option on just now, something called "VpnDialogs" crashed, so I assume that VPN entry was that. But again, the assistant wasn't on.
sfhub said:
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Click to expand...
Click to collapse
I did, when I first googled this was one of the things I found, sadly it did not help.
sfhub said:
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
Click to expand...
Click to collapse
I don't use Bluetooth, and trying to toggle it off/on from the control center just gives me a repeated "unfortunately, Bluetooth Share has stopped" error message.
I have decided to get the 32GB 5X since I do want more storage, but since I would like to be able to root my phone again and use Xposed, I would still like to hear any other ideas you have for troubleshooting this problem in case it reoccurs.
I reflashed the latest update to see if that would fix it, no dice. When I send the 16GB model back I have to factory reset it anyway, so I suppose I'll know if that does it.
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
AbanadonedFace said:
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
Click to expand...
Click to collapse
It is easy to test if you have some network connection vs none.
In terminal or adb shell
ifconfig wlan0
ping www.google.com
1st command will tell you (among other things) if your wlan picked up an IP address.
2nd command will test whether you can send ping packets over your connection.
I'm sure there are millions of ways of doing the above, I just gave you one example.
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
AbanadonedFace said:
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
Click to expand...
Click to collapse
I've encountered something similar where the router runs out of NVRAM space because it has recorded too many DHCP clients, it won't hand out new IP addresses, but if you are existing or already have one, it is fine.

WiFi connected without internet

Dear All,
My note 10+ loosing internet randomly. While checking WiFi showing the message "WiFi connected without internet". after switching on and off it reconnects but lose connection after sometime. My other android phones are connected to the same WiFi but have no issue.
Please help me solve the issue.
Thank you
Arun
i have noticed its happening during whatsapp call duo calls
arunjyothisp said:
Dear All,
My note 10+ loosing internet randomly. While checking WiFi showing the message "WiFi connected without internet". after switching on and off it reconnects but lose connection after sometime. My other android phones are connected to the same WiFi but have no issue.
Please help me solve the issue.
Thank you
Arun
Click to expand...
Click to collapse
A similar thread was made on the subject - link here https://forum.xda-developers.com/galaxy-note-10+/help/android-10-5g-wifi-dropping-t4037661
For practical intents and purposes it's almost like when the issue happens the phone is not able to resolve a DNS query. I base this on 2 hypothesis - first being that the phone is still connected to the wifi access point and can still access LAN resources. The second being that the phone must either poll the internet (i.e ping a specific address) on a regular basis. If the poll was unsuccessful it flags the connection as "WiFi connected but no internet".
The things you can try are:
update the firmware on your phone (if not already)
factory data reset (read note 1 below)
reset network settings
try a different wireless router (read note 2 and 3 below)
disable private dns (read note 4 below)
If you use tasker create a routine to automate a temporary solution (read note 5)
Notes
The issue maybe a corrupted setting within the phone. I have had similar issues before (not with just this phone) and a factory data reset helped. One thing to take note of is that after the phone had completed it's factory data reset I did not attempt to restore a backup. This is important to keep in mind because any issues that were present (due to corrupted settings) would exist also in the pre-factory data reset backup you made.
With my previous router I had this issue but had since replaced it with a Wifi 6 capable router. After getting the new router I have not had any further issues what so ever. Also make sure your wireless router is up to date on it's firmware. It maybe possible that the wireless router you have is old enough (from when it was released, not from when you bought it) that a replacement might be the only way to resolve the issue.
To help rule out a wireless router issue try using a different one. You can borrow a friend's internet connection for a while, or a public cafe or what ever. Point is you are trying to see if the issue happens again when you are using a totally different wireless access point (by totally different I mean hardware/model and not just renaming the SSID).
I had the issue happen when using private DNS. For what ever reason the issue was with the DNS provider I had choosen. Turning the Private DNS setting off helped resolve the issue. After turning the setting off it may take a bit before the phone recognizes it was turned off, but you can hasten this process by toggling WiFi off and back on.
The Tasker option is one I did and it worked quite well. You may need to adjust the routine to suit your particular needs but it's basically what is at this link here. Best part of this option is that you can have it only activate when your connected to the problematic wifi access point and every X number of minutes (helps ensure that you use it only when needed). The routine (when setup correctly) should run every 10 minutes in where it attempts to access a website and assigns the results to a variable. The variable is then checked to see if it matches a specific result (in this case an error code), and if it does match it will toggle WiFi off and back on (after a brief pause/wait period between toggle off and toggle on) automatically. Granted it sounds like a lot of work, but it's really not that complex. Also I consider this is a temporary solution because you may find that on later firmware updates applied to the phone (or you may end up getting a new wireless router) the issue will have been resolved.
"WiFi connected without internet"
I was having the same issue until I uninstalled the app "WiFi Analyzer"
mike.aguailar said:
I was having the same issue until I uninstalled the app "WiFi Analyzer"
Click to expand...
Click to collapse
Interesting! Which one? The Play Store lists several apps by that name.
WiFi Analyzer
Gary02468 said:
Interesting! Which one? The Play Store lists several apps by that name.[/QUOTE
WiFi Analyzer by Zoltan Pallagi
Click to expand...
Click to collapse

Categories

Resources