No Wifi and no data, phone will hang? - Android Software/Hacking General [Developers Only]

Hi,
This is a newbie question. I don't have a data plan. If I turn off Wifi (and background data sync is off too), the phone will hang randomly in 4 or 5 hours (till the battery is dead, or I remove and reinsert the battery). I am assuming it's some app (maybe a weather widget or something else) that keeps trying to connect to some server and hangs the phone. Do I have this right? It doesn't happen if Wifi is on. Is this a common issue with android?
If that is it, is there a simple solution? I would like a simple solution such as no app/widget can attempt internet connection once I turn off wifi.
thanks

Rooting it a d installing Droidwall (firewall) fixed my issues.

Related

Wifi connection connected but won't load pages

It said connected in the wifi setting and it shows bars but it just won't load any website in the browser .. anyone got a fix for this?
I have the same issue. Tried different combinations of restarting wifi, turning on/off cell data, on/off wifi calling, etc... all with no result. I've also tried on different networks (both public and private)-- it'd start working for a while and then all of a sudden stop and never work again.
Seems similar to the problem here: forums. t-mobile.c om/t5/T-Mobile-G2x/G2x-WiFi-DNS-issue-not-the-4G-switching-one/m-p/831439 (sorry there's a new user no link restriction)
Does anyone have any suggestions?
Thanks
coldest~~~ said:
It said connected in the wifi setting and it shows bars but it just won't load any website in the browser .. anyone got a fix for this?
Click to expand...
Click to collapse
is it specific to the browser or can you not move any data?
Idk, whenever I have had problems connecting to the tmo network, which is a separate issue.. it was always that wifi calling was still on even tho wifi was turned off. Every time I had probs w/ data on tmo network, it's been wifi calling.. Your case seems to be diff tho.
Is it specific to just your network or all other networks? Try shutting off wifi, reboot... then turn it on again? Idk.. just tossing out ideas.
Some found the root cause and I am posting his finding as I do have the same issue and can reproduce the error:
I think I have discovered a new WiFi-related bug in the G2x's software. I have witnessed this occurring on my phone, and have also reproduced it on a store demo unit. I believe it is unrelated to the switching-to-4G problem people are having with the My Account app, since it occurs even if I have set up the Google account on first boot after a factory reset.
The details of the problem are:
- Every so often, the phone randomly gets stuck in a state where it is not able to initiate any new connections that are made using a DNS name. Attempting to navigate to a web site, h**p://w*w.google.c*m for example, will result in a generic failure message.
- However, attempting to connect directly to an IP address instead of a DNS name works perfectly. For example, navigating to 74.125.225.16 will work fine and will load the Google home page.
- When the phone is in this state, using a DNS lookup tool such as "DNS Lookup" from the Marketplace *will* work, even when using the default DNS server address that the DHCP server is giving the phone.
- The problem has occurred for me when data is off and WiFi is on. I do not know if data being off is a requirement, since this is the way I usually run the phone, so this may be coincidental.
- Switching WiFi off and back on again will *sometimes* work to solve the problem, but sometimes will not. When this doesn't work, switching WiFi off, then switching data on, then back off again, and then finally switching WiFi back on again will occasionally correct the problem. However, I have seen situations where none of these things worked, and the only way to get DNS working again was to factory reset the phone.
- I haven't figured out the exact pattern yet, but this issue seems to occur when the phone has been inactive for a certain period of time. I have often discovered that the phone is in this state upon waking up in the morning after leaving the phone on the charger overnight.
- I have, however, found a method to reproduce the problem that seems to work fairly consistently:
1. Turn WiFi on, and data off.
2. Power cycle the phone.
3. When the phone starts up, start the browser and attempt to browse to w*w.google.c*m. It should fail.
4. Try to browse to 74.125.225.16. It should work.
Just wanted to get this issue in the forums to see how many others have been noticing the same thing.
I know that once the device has less than 10% battery it automatically turns the WiFi off to save battery power. Were the devices this was happening on have a low battery?
Fully charged. It even happens when pluged in with the charger.
My Wifi wouldn't even work if I froze it with Bloat Freezer. It has to run in the background for wifi to work. I found that Wifi can get really inconsistent with it disabled.
smartloom said:
Som
- I haven't figured out the exact pattern yet, but this issue seems to occur when the phone has been inactive for a certain period of time. I have often discovered that the phone is in this state upon waking up in the morning after leaving the phone on the charger .
Click to expand...
Click to collapse
Same problem here. After about 30 minutes of being idle, as soon as I pick up the phone it tries to connect 2g/4g. The log are saying theres no connection, so it appears that wifi its going to sleep and not waking up so android is trying to connect 2g/4g
Really starting to be a pain
I have frozen the bloat, and I think the problem is getting worse.
Toggle airplane mode is a quick workaround to get wifi to wake up
Sent from my LG-P999 using XDA App
Same thing happened to me, I did 2 factory resets, and it seems it has been fixed, don't really know what causes it.
Sent from my LG-P999 using XDA App
This may or may not be related, but...
It looks like I found a hacky fix for the dns/wifi/4g bug: install "Set DNS" from the market.
Now when I go into market, and display my downloaded apps, it jumps from wifi to 4g then back to wifi as it should, fast.
Whether or not it should even do go to 4g is debatable, all I can say is my 2 Galaxy Tabs had the same behavior.
If everyones connectivity issues are really due to the DNS settings getting wiped out, then this will work around the problem until I/we find the location of the actual bug.
Would you guys having this problem also post it here?
http://www.lgforum.com/forum/boards/general/lg/topics/g2x-wifi-problems
Thanks.
I figure the more people that post there, the more the chances are of LG fixing it quickly.
Work around:
enable airplane mode
reboot
enable wifi
wait a few seconds after the wifi connects, background crap stops
disable airplane mode.
The set dns app looks like a winner. Haven't tried it but that's what's
wrong.
The freezing and other suggestions are all useless crap.
Updates...
I did a factory reset and installed JuiceDefender (I don't know which one worked) but it seems to be all fine now... will update if things become problematic again
I've been having this problem as well. I've always been able to fix it by toggling WiFi off and back on again. I downloaded SetDNS and when it happened again last night I tried that and it worked great.
Glad to see it's a software problem and not a hardware problem.
same problem here. hopefully it won't happen in cyanogen mod
boylan said:
Work around:
enable airplane mode
reboot
enable wifi
wait a few seconds after the wifi connects, background crap stops
disable airplane mode.
The set dns app looks like a winner. Haven't tried it but that's what's
wrong.
The freezing and other suggestions are all useless crap.
Click to expand...
Click to collapse
This fixed the problem, at least until the next time I reboot my phone
How do you use SetDNS? This software bug in G2X reboots my router (DGL-4500) sometimes.
Question bout SetDNS app
Does the phone have to be rooted to use the setdns app? I try to use it but it says "Cannot get root. App will not function."

[Q] Connection unavailable. Tasker?

Hi,
interesting thing during my test of battery tonight (although it happend only once yet). I woke up (sync off for the night) and I saw I had no data connection (2G). Trying to manually sync didnt help, RestartConnections app didnt help, manually turning mobile data off and on didnt help, even restart didnt help. Then, after few minutes after the restart, I enabled autosync and it did successfully "push thru", E icon appeared near the signal bar and connection was there. Weird. I had Nexus S for few months now and it never happened.
Also, I was using Tasker to manually enable autosync for 2 minutes every 15 minutes and check for wifi every 15+3 minutes (so it wont interefere with the sync). But syncs went ok and no profile of mine has to do anything with mobile data. So I dont believe its relevant.
I woulndt be probably speaking about this but I use the same nandroid backup rom for all my testing (I restore it during the evening so the battery tests would all begin with the same software combination) and this never happened.

[Q] [AT&T] Wifi from hell, help?

So, before rooting, my One X had great Wifi connection. No issues. Now that I'm rooted, I can't connect to wifi to save my life. I tried the wifi fix (not the ROM, but the 3 files instead) and still nothing.
I've tried turning off Mobile Network while wifi was on, turning mobile network on while wifi was on, tried restarting the wifi....
I cannot get a connection to the Store, browsers won't open webpages, it's essentially done for. Yet every other device in my house can access the router just fine (and it's not just here, it's elsewhere.)
Anyone have any ideas how to fix this short of flashing the new ROM (which I can't do from my house since the HTC drivers always fail to install.)
Have you tried running fix permissions to see if there's some sort of error holding things up? The only other thing I could think to do is to do a factory restore of the phone, unfortunately...

Notifications coming in at the same time.

So I just got the phone a few days ago and I've started to notice some strange happenings. Whenever I get notifications for my apps or messages they always come at the same time. Say I have a text message come in, it will then push facebook or something like that and show messages that I have from the messenger app. Is this normal behavior?
@Demonlinx This has been happening since the first day for me too. I've noticed this only happens when I'm on WiFi, if I'm on data I get my push notifications the moment they happen (all except Google hangouts for some odd reason). I don't have the Facebook app installed but this is a constant annoyance I've been dealing with for a while now, it seems as if when the screen is off its not pulling in data when connected to WiFi, but as soon as I get a text message or turn the screen on my notifications come rushing in all at the same time. Are you on WiFi too when you notice this happening? Or is it all the time?
@elpindian Ok, so I noticed that this happens only when I'm on WiFi as well.. Although it seems intermittent because I've been getting other notifications via a wifi connection, i.e Twitter, Snapchat, etc.. So I'm not sure what is causing this issue. I'll keep trying to mess around with it and see what I come up with.. Are you stock? Do you have connection optimizer turned on? Mine is off. Tl;Dr I only notice this happening sometimes and it only happens (so far) on WiFi.
edit: I found that if I enable WiFi and Mobile Data at the same time it seems to eliminate this issue, I'm trying to test using just WiFi and seeing if the problem still exists.
elpindian said:
@Demonlinx This has been happening since the first day for me too. I've noticed this only happens when I'm on WiFi, if I'm on data I get my push notifications the moment they happen (all except Google hangouts for some odd reason). I don't have the Facebook app installed but this is a constant annoyance I've been dealing with for a while now, it seems as if when the screen is off its not pulling in data when connected to WiFi, but as soon as I get a text message or turn the screen on my notifications come rushing in all at the same time. Are you on WiFi too when you notice this happening? Or is it all the time?
Click to expand...
Click to collapse
Demonlinx said:
@elpindian Ok, so I noticed that this happens only when I'm on WiFi as well.. Although it seems intermittent because I've been getting other notifications via a wifi connection, i.e Twitter, Snapchat, etc.. So I'm not sure what is causing this issue. I'll keep trying to mess around with it and see what I come up with.. Are you stock? Do you have connection optimizer turned on? Mine is off. Tl;Dr I only notice this happening sometimes and it only happens (so far) on WiFi.
edit: I found that if I enable WiFi and Mobile Data at the same time it seems to eliminate this issue, I'm trying to test using just WiFi and seeing if the problem still exists.
Click to expand...
Click to collapse
Try a data reset by dialing ##72786#
@Demonlinx I am stock with no plans on rooting until there is a fully functional AOSP rom out there for our device. I have disabled connection optimizer as well, but haven't turned data off even while on WiFi. Is there a specific setting to do this besides the disabling data option? I never turn my data off since I have unlimited, does connecting to WiFi automatically turn off data? Because I know if I did turn it off I wouldn't be able to receive MMS and I definitely still get all my MMS with no problems.. Snapchat and twitter have delayed notifications when I'm on WiFi but work flawlessly when I'm only on data.
@Soooperstar thanks man but I've been told by a Sprint and Samsung rep before to try that and still I have these issues... Could it maybe be a problem on our router's end? I've noticed that this doesn't happen with every WiFi connection I have; i.e if I'm at my gfs house who has her at&t router vs my Comcast router.. I've also noticed that if my screen is off for more than a couple minutes while connected to WiFi my android wear watch will give me the offline message if I try and interact with it. It's as if the phone stops any internet connection while it's sleeping, somewhat annoying because I can't just walk around the house and expect to receive notifications on my wearable without waking up the phone (phone calls and texts excluded).
elpindian said:
@Demonlinx I am stock with no plans on rooting until there is a fully functional AOSP rom out there for our device. I have disabled connection optimizer as well, but haven't turned data off even while on WiFi. Is there a specific setting to do this besides the disabling data option? I never turn my data off since I have unlimited, does connecting to WiFi automatically turn off data? Because I know if I did turn it off I wouldn't be able to receive MMS and I definitely still get all my MMS with no problems.. Snapchat and twitter have delayed notifications when I'm on WiFi but work flawlessly when I'm only on data.
@Soooperstar thanks man but I've been told by a Sprint and Samsung rep before to try that and still I have these issues... Could it maybe be a problem on our router's end? I've noticed that this doesn't happen with every WiFi connection I have; i.e if I'm at my gfs house who has her at&t router vs my Comcast router.. I've also noticed that if my screen is off for more than a couple minutes while connected to WiFi my android wear watch will give me the offline message if I try and interact with it. It's as if the phone stops any internet connection while it's sleeping, somewhat annoying because I can't just walk around the house and expect to receive notifications on my wearable without waking up the phone (phone calls and texts excluded).
Click to expand...
Click to collapse
Could be..... Kinda hard to troubleshoot. The only one I have a problem with is Tapatalk and XDA app. I think that one may be related
@Soooperstar it's weird, I think it has something to do with the phones deep sleep issues and Sammy has yet to figure out all the bugs. I love the build of this phone but can't stand the software. I'm ready to move on to a Nexus device when the next one releases.

WLAN Hotspot doesn't work on Android, looking for competent help

Hi,
I'm using a Sony Xperia Z5 Dual Android 7.0 facing that issue making me unable to use my WLAN hotspot (which it pretty anoying cause it doesn't only dissallow me to share my internet connection but also I can't do other network stuff between devices I'd use that hotspot for).
So when I try to turn on my the hotspot it simply turns itself off again after small amount of seconds. When I got to WLAN hotspot in settings then I have the active button to switch the hotspot on while it shows me tbat it's of at the moment. Doing that it says "Activating hotspot..." (pretty exactly that) until it's going off again with a quick "Deactivating hotspot" and you could activate it again but it will do nothing again than say "activating" and go off again. While it is "activating" it already shows the active hotspot icon in the top bar of the phone and the hotspot settings are as well already active and no more inactive greyed out. But only for nk idea, 3 seconds probably. Within that short period of time my laptop didn't find my phones hotspot but that might just be down to an to high delay in scanning and finding so I don't know wether it would shortly pop up seeable for other devices.
Earlier that day I had my hotspot working actively (nobody actually joined) but it worked and would have if somebody joined because that issues is not new to me on my phone and when the hotspot activates, then it also works. But half of the time it seems when I want to use it, it doesn't work. I haven't changed any settings inbetween or restarted my phone. It was probably on for one week, but after then trying a restart it still didn't help.
I already changing some one-click stuff like just turning out WLAN, turning off or on data save mode (which stops background data for all apps in mobile internet and WLANs marked as hotspots), turning off or on mobile data. But well, I don't know anything else and earlier it worked with all the same settings so what could be the problem behind that?? Besides that my phone always just works completely normally without any issues, WLAN always works without problems, only Bluetooth sometimes doesn't want to activate and then I see it active after some minutes or hours later, but that can always be fixed with a restart if I needed it instantly. If you just wait and it is active then tough, it is kinda awoken and works instantly then again shutting it off and on.
Phone is not rooted btw.
Ok long text, but please if you have any ideas tell me..
Greetings, HelpsToMes

Categories

Resources