[Q] How does android determine if it has internet connectivity - Android Q&A, Help & Troubleshooting

Question is as exactly as it is in the title; how does Android come to the conclusion that it has complete internet connectivity (or connection to google services), and consequently will turn the signal bars blue (on stock android devices).
I am trying to fix a problem at work where if I put my phone on the company wifi, my phone never seems to think it has internet connectivity, even though I do. The consequence is most apps don't attempt to pull new data, and therefor never notify me of new messages. This includes gmail, google voice, and hangouts.
I don't have direct control of the network infrastructure at the moment, so right now it is easier to know what address or IP it tries to get to, and how (ping?), so it can be unblocked by the firewall or web filter.

bump
Does really no one know? Perhaps a point in the right direction?

coreno said:
bump
Does really no one know? Perhaps a point in the right direction?
Click to expand...
Click to collapse
check your settings>wireless & Networks> WIFI>check Network notification this will inform you when there are other open wifi networks present > you need to connect to that network with password or scroll down to add WIFI network (you can add any network when you know its SSID and security used.
if you unchecked network notifications, you will " NOT" know or use of any new networks other than what you have used before.
Check this out!You , YES! you are an " Android ". Not your phone but U.
You Must watch this documentary concerning your privacy Terms & Conditions we had agreed to, by using a PC or Smartphone
How to say Thank you? If you find any post helpful on XDA, please click on the Thanks button
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you are using XDA App or Tapatalk, long press on the post and select :good: Thanks Its easier to give "Feedback" in this manner than make an additional post.​

xsenman said:
check your settings>wireless & Networks> WIFI>check Network notification this will inform you when there are other open wifi networks present > you need to connect to that network with password or scroll down to add WIFI network (you can add any network when you know its SSID and security used.
if you unchecked network notifications, you will " NOT" know or use of any new networks other than what you have used before.
Click to expand...
Click to collapse
I'm not having any issues finding or connecting to wifi, the problem is at my buisness when on wifi, android does not detect an internet connection; so it thinks I just have local network access, so most apps do not auto refresh in the background.

Related

Using 3G dongle on TF-201

Tablets powered with Android 4 supports a large number of 3G modems:
Huawei E156G
Huawei E173
Huawei E220
Huawei E1750
ZTE MF637U
These are modems that are tested. Other modems might work as well.
To setup your modem follow the instructions below:
Go to settings (press the status bar in the low right corner) and press <More...> and you will see the following:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Select <Mobile networks> and you will get this screen:
Select <Access Point Names>. when you come to the Access Point Page you click in the top right corner and select <New APN>.
This is the tricky part where you fill in the GSM operators settings. You can find settings for the most popular networks here. If your operator is not included you will have to ask the operator. The screenshot below shows the settings for Safaricom, Kenya:
When all settings are filled in press the arrow in the lower left corner and you are done.
original
Care to elaborate a bit? I tried and did not have much success, did you? If so can you please post some pictures of it working?
this message can be deleted
dime_veyron said:
manual for 3G-USB
Click to expand...
Click to collapse
That looks cool but may I ask are you using stock firmware or custom?
Because mind does not have Mobile Network whatever, mine says: Tethering & portable hotspot
Johnny0906 said:
That looks cool but may I ask are you using stock firmware or custom?
Because mind does not have Mobile Network whatever, mine says: Tethering & portable hotspot
Click to expand...
Click to collapse
can you make a screenshot where it says "Tethering & portable hotspot"
I have the same problem, on fw .15 (did not test before)
Tried with Huawei E1550 and E180 but nothing shows up
hxxp://img.tapatalk.com/50d84ac2-1b90-d003.jpg
Sent from my Transformer Prime TF201 using Tapatalk
dime_veyron said:
can you make a screenshot where it says "Tethering & portable hotspot"
Click to expand...
Click to collapse
running stock rom, rooted
9.4.2.15
also showing tethering & portable hotspot =/
Sorry 2all
Sorry to all this will not work. I take that manual from other site. It say Andtoid 4 3G Setup (original link in #1 post). I test it my self. No success.
Than i unpakced firmware to find out files like (gprs, pppd-ril.options, usb_wwan.ko, etc), some of them presents in firmware, others dissmised.
So the only way getting 3G via dongle, is custom firmware.
Thread may be deleted
Well if u have to use 3g/data connection outside wifi range just use your cellphone as a wifi hotspot. Most people carry a cell and most of todays phones can do this
McT1980 said:
Well if u have to use 3g/data connection outside wifi range just use your cellphone as a wifi hotspot. Most people carry a cell and most of todays phones can do this
Click to expand...
Click to collapse
thanks, i know how to go to web via phone by changing wpa_suplicant2 file. But i want to connect via dongle.
I dont know how real this is, I have rooted my TF201 and no where do I see the mobile network on a stock rom, I have it on my phone yet I dont have it here, and also there would have to be drivers for the USB modem to be entered, this isnt a simple task, the only one i have found is in the UMTS app from the market, and even then this doesnt work, I just want a USB modem installed, I dont want to use my phone as the WIFI defeats the purpose of having a USB modem, surely someone has done this on a stock rom

Mobile data is not getting connected in S3. Please Help!!!

Hi all,
Mobile data (2G) is not getting connected properly in my new Samsung galaxy S3 (ICS). I use Tata Docomo.
As soon as I restart my phone I am able to connect to mobile data for sometime and then if I disconnect it or if it automatically disconnects then I am not able to connect to mobile data after that. The "E" symbol does not appear on notification bar. Its like just one time using of mobile data per restart of the phone. So I need to restart the phone if i want to connect again
Even after selecting "Use Packet Data" in settings, the status of "Mobile network state" is "Disconnected" under the Settings -> About device -> Status. But WiFi works without any problem.
I have installed the internet setting which was sent through message by Tata Docomo.
Please help me what could be the problem here.
I am feeling so sad for not being able to use internet properly in my new phone :'(
Please find the screenshot below,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Wong thread dude. Q&A
If you have stock and your packet data is on without use 2g networks only, they may have given you some wrong settings..
Failing that do a factory reset to see if that works
Sent From The B*S*A*D Child Prime
tried restarting the device? it might solve this ocassionaly
Flash a different modem,
Sent from my GT-I9300 with a BIG
Your APN may be messed up, try restoring them from an old backup
Sent from my GT-I9100
If I helped you, please hit the thanks button!
Thread moved to Q & A section, post in the relevant section next time.
same problem here, using 3 Italy.
Did you manage to fix it? Im having exactly the same issue
Sent from my K00U
y300owner said:
Did you manage to fix it? Im having exactly the same issue
Sent from my K00U
Click to expand...
Click to collapse
You would never get an answer here coz thats a known issue with Tata Docomo and not your handset. Tata Docomo at regular intervals disable your Cellular Data which they says is to ensure your data pack does not get depleted due to your leaving ur data on by mistake. Silly huh? More interesting it does not get automatically connected to the network
However i have found fix for it. Just select Network Type as Automatic(2G+3G). Wheneve data gets disconnected, If your using 2G, select 3g Network of Docomo and then select 2G network of Docomo. And vice versa if your using 3G. It should start your data after 10-15 seconds of doing the above 2 steps.

Removing proxy

I am having issues removing proxy on my phone. Whenever I used the stock internet browser or firefox and go to whatismyip.com, it detects a proxy. I did not include any proxy address and stuff in WiFi settings but I did install Tigervpns VPN, Vpn one click and Orbot recently and used them all. I however, uninstalled them as I found them of no use to me. I would really like to get rid of the proxy and I know that its not a setting on my network as when I go to whatismyip.com on my computer it doesn't detect any proxy. I suspect it might be the VPN changer apps I installed though, if anyone has any idea how to remove it, please help me. Thanks in advance.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AndroidNewbiee said:
I am having issues removing proxy on my phone. Whenever I used the stock internet browser or firefox and go to whatismyip.com, it detects a proxy. I did not include any proxy address and stuff in WiFi settings but I did install Tigervpns VPN, Vpn one click and Orbot recently and used them all. I however, uninstalled them as I found them of no use to me. I would really like to get rid of the proxy and I know that its not a setting on my network as when I go to whatismyip.com on my computer it doesn't detect any proxy. I suspect it might be the VPN changer apps I installed though, if anyone has any idea how to remove it, please help me. Thanks in advance.
Click to expand...
Click to collapse
It would probably help if you post the name or IP address of the proxy
Im not sure what the name is but the ip
Sent from my GT-I9100 using xda app-developers app
That IP belongs to your carrier.
Edit - And if you'd done an nslookup, you would have found that out for yourself.
So theres no way to get rid of it?
Sent from my GT-I9100 using xda app-developers app
Your carrier is obviously routing traffic through that proxy. Talk to them; ask them if there's a way you can get connectivity on your phone without going thru the proxy. If they say no, there's nothing you can do about it (other than change carriers).
Or...Find out if there's other APN settings for your carrier. There may be another APN that doesn't use the proxy (like Vodafone in Australia).

Huawei G700 keeps asking permission to use mobile data after WiFi disconnects

I recently bought a Huawei G700. It's a fairly new and uncommon device. It runs Android 4.2.1 in combination with Huawei's own Emotion UI
When I have WiFi enabled and for some reason my Wifi disconnects (for example I go out of reach), my phone keeps asking me, each and every time, if it's allowed to use Mobile Data. if I don't answer, my mobile data does not connect thus I can't recieve any mails etc which is highly annoying.
This is the exact error/popup message that I get:
Data connection change
WLAN is unavailable, try to connect to mobile network?
I've googled this exact phrase, but I get 0 results.
How can I prevent my phone from asking if it's allowed to use mobile data?
Freekers1337 said:
When I have WiFi enabled and for some reason my Wifi disconnects (for example I go out of reach), my phone keeps asking me, each and every time, if it's allowed to use Mobile Data. if I don't answer, my mobile data does not connect thus I can't recieve any mails etc which is highly annoying.
Click to expand...
Click to collapse
Did you find out yet how to disable this?
_mfm_ said:
Did you find out yet how to disable this?
Click to expand...
Click to collapse
It seems that this behavior is present in all recent Chinese ROMs from Huawei and there is no way to disable it. However, I found a workaround for it; The message only popsup if you have WiFi and Data Enabled and you lose WiFi connectivity. Then your phone will ask if it's allowed to switch from WiFi to Data. So, if you make sure WiFi is disabled before switching to Data, it will not ask this question. To do so manually, takes a lot of time. Luckily there is an app that can automate this task for you. Here's how:
Install the app 'Llama' from the Market (Free) and create these two events:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The 1 second delay is necessary, else it does not work properly.
What it does: Switch off WiFi as soon WiFi disconnects from your WiFi network and then enables Data. This way, it does not show the popup and 'automatically' switch to Data. Don't forget to manually enable WiFi again if you are in reach again of your WiFi network.
If you want Llama to automatically turn back WiFi on as soon you get home/in reach of your WiFi, you have to let it learn your location. Read the help/documentention on how to do so. It's pretty easy to do
This 'fix' works for me 9 out 10 times. Give it a try, I hope it helps you.
Kind regards.
Freekers1337 said:
It seems that this behavior is present in all recent Chinese ROMs from Huawei and there is no way to disable it. However, I found a workaround for it; The message only popsup if you have WiFi and Data Enabled and you lose WiFi connectivity. Then your phone will ask if it's allowed to switch from WiFi to Data. So, if you make sure WiFi is disabled before switching to Data, it will not ask this question. To do so manually, takes a lot of time. Luckily there is an app that can automate this task for you. Here's how:
Install the app 'Llama' from the Market (Free) and create these two events:
The 1 second delay is necessary, else it does not work properly.
What it does: Switch off WiFi as soon WiFi disconnects from your WiFi network and then enables Data. This way, it does not show the popup and 'automatically' switch to Data. Don't forget to manually enable WiFi again if you are in reach again of your WiFi network.
If you want Llama to automatically turn back WiFi on as soon you get home/in reach of your WiFi, you have to let it learn your location. Read the help/documentention on how to do so. It's pretty easy to do
This 'fix' works for me 9 out 10 times. Give it a try, I hope it helps you.
Kind regards.
Click to expand...
Click to collapse
What happens if you use Gravity box and pop up notification blocker?

Question Mobile/Cellular Data turns off when on USB Debbuging Mode and connected to scrcpy

Hello Everybody,
today I tried to use scrcpy to remote control my Pixel 6 (Android 12, Build Number SP2A.220405.004) via USB.
USB Debugging has been activated.
However, as soon as I establish a connection from scrcpy to my phone, the cellular data symbol switches to this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As soon as I disconnect the usb cable it will have a data connection again.
Does anybody have an idea where this could come from?
Did I miss some settings?
Thanks in advance
cbytime said:
Hello Everybody,
today I tried to use scrcpy to remote control my Pixel 6 (Android 12, Build Number SP2A.220405.004) via USB.
USB Debugging has been activated.
However, as soon as I establish a connection from scrcpy to my phone, the cellular data symbol switches to this View attachment 5611891
As soon as I disconnect the usb cable it will have a data connection again.
Does anybody have an idea where this could come from?
Did I miss some settings?
Thanks in advance
Click to expand...
Click to collapse
Im not familiar with the phone, but there are some settings that could be causing the issue. Here are a few:
In 'developer options', the switch 'Verify Apps over USB' could prevent the program from running...switch that to 'off'. Check Google Play Protect, turn off to test. Those may not be allowing the 'scrcpy' to function.
Also, the phone may think its in a wifi network, so it kills the data connection. In 'dev options' there should be a switch called 'Mobile data always active', when wifi is active, turn that on.
In Settings, under 'Hotspot & Tethering', there is a switch 'USB Tethering' ->share phone's internet connection via USB ->set to on.
In 'Wi-Fi Preferences', the switch 'Auto switch to mobile data', set to on.
Test also the 'Tethering hardware acceleration' option in 'dev options', it may be interfering with the program.
It could just be a tethering issue.
On a final note, if you have root or command line access, you can set the local routing tables to function with wifi & data like this:
1. "ip rule" //shows routing tables
2. "ip rule add from all lookup main pref 1" //adds table as 2nd in line.
The latter rule allows data & wifi to function in same routing network. May or may not be necessary to resolve your issue.
Wow - I didn't expect a reply that fast
I'll check the settings later when I'm back at a PC and post my results. Thanks a lot @Xpltr
Simply disabling wifi solves the problem.
Thank you for all the tips, maybe I'll find some time in the future to check the other points and find the root cause.

Categories

Resources