How can I find out what it turning off my data? - Android Q&A, Help & Troubleshooting

Hi all,
I am looking for some way, either via an app or some kind of log, that will help me pinpoint what exactly is causing my data to keep turning off at random.
I'm guessing, rightly or wrongly, that this is an app playing silly buggers in the background, but I'd like some way of finding out. I imagine that there is some facility that can record what is happening to every aspect of the phone, and can tell me what is turning off the data and why.
Cheers.
Indecently, I posted this thread in this forum as I presume the answer will require some form of software. If this is in the wrong place I'd appreciate if the mods can move it.

Well take the following steps
1. check data sleep policy - one of the options keeps data active only when phone awake. Solution is to put to always on.
2. Check network signal. If it is low it may drop at random and it ain't your phone the guilty one. Solution is to get to an area with more data coverage.
3. Are you using a custom Rom, kernel or radio? They could be buggy and cause the issue. Solution is to get a stable software.
4. See installed apps and check permissions. You may try to remove all and install one by one to see if any is causing an issue. If you find the guilty app just delete and never install again. Or just modify its settings if any are available.
That should fix your issues.

Related

[Q] Downloading/Data problems

I have a problem with with connectivity of my phone. I will have full 3g service but at times will not be able to load anything on the web. To correct this I have to continuously refresh till it connects or reboot my phone. On average this happens 2-3 times a day (usually will start to connect after I refresh the page a few times) and requires a reboot to correct about 2-3 times a week. I have had this problem while completely stock and while running various custom roms. I have called "tech" support at T-Mobile and so far they have been no help. They gave me a new sim, reset my service twice, master reset my phone, and told me to switch to Edge every time it happens to see if that helps. So far nothing. My local store said they are fixing the towers around my area because we are not seeing the speeds we should, but this happens on any location I am in around the city.
Is anyone else having this problem? Any help to fix this would be awesome!
Another, maybe associated problem, is I am not able to download any files to my phone. When trying to do so from any download site, when I select download nothing happens. I have Astro and have it selected to allow. When it does randomly decide it will download the file it will only download about 180kb and say its finished when the file is 180mb. Any ideas on why this is happening again would be awesome. Right now I am using Bionix 9 and have no problems with anything else. This happens no matter what rom I am using just like the connection problems.
If this has been answered already I am sorry but I could not find it just direct me that way and close this thread. I usually find what I need without posting as you can see from the lack of posts lol. Thanks again all!
I have the same problem. For example I will have full bars on 3g and market will say something about no network connection
Sent from my SGH-T959 using XDA App
I've had the same problem as well. Tmobile said to get a new SIM card, which i did. It helped a little bit, but every once in a while it will lose its connection. They are sending me a new phone, since I threatened to cancel service. I'm really hoping froyo will fix this problem.

[Q] gpsd drain even while GPS off?

Hi!
I have been having an issue with my S III lately. For some time I have been trying to understand and configure my gps settings so that I could have gps always activated, without it draining the battery too heavily. I mainly tried manipulating my apps' location settings.
With no consistent results, I ultimately decided to try and turn gps off altogether in the pull down bar. Now, here's the issue; even with gps off, both the stock battery tool and GSam Battery Monitor report a 25% battery drain by "gpsd".
What am I doing wrong, and what can be done about it?
Thanks!
Stock S III, 4.1.2, unrooted.
Didn't wipe data when you upgraded?
Wipe the data of the service responsible.
Sent from my GT-I9300 using xda app-developers app
Thanks! If you are referring to the Android update, I simply installed it without wiping anything.
What exactly would wiping data entail?
Might be Google now working overtime
Questions go in the QA section, not general
slaphead20 said:
Might be Google now working overtime
Click to expand...
Click to collapse
I am pretty sure I disabled everything connected with Google and location...
Sorry for posting in the wrong place, will do next time!
it seems there is a bug in gpsd. sometime it hangs at 100% cpu (25% -> 1 of 4 cores) you can check this in shell with "top" cmd
if it hangs only a reboot help.
you will notice a bit lag when you switch your phone on and it gets a bit warm when this happens
for me it happens once every 1-4 days and i have allready disabled all google location settings and samsung security settings
any idea ? i dont find anything else on google.
btw. it looks like this started happen with XELLA but cant say it for sure
/inteks
That sounds exactly like the issue I have been having, especially it happening only one in every few days.
I can confirm that it seems to have had a definitive starting point, but not sure what changes I made at that point. What do you mean by XELLA? And are any other ways of telling when this happens?

[Fixed] WiFi Issue On Venom

I am having a peculiar issue. My Wi-Fi drops out and then reconnects every 30-45 minutes or so. I have the latest version of the ROM, flashed the boot.img in the thread, but it still doesn't fix my issue. It doesn't matter how far I am away from the signal, it just drops out temporarily, and then reconnects. I can't explain it. Other than that, it seems to be working great, but before I rooted and flashed, I never had any issues of any kind with the WiFi.
Also, it may be worth noting that I don't know for sure yet, but it may also turn on the WiFi automatically even though I have it set not to. Sometimes when I am out and about, I'll get a popup saying that WiFi networks were found nearby, do you want to connect etc...
Any help will be appreciated, I love this ROM and can't see myself going back on stock but this is a pretty cumbersome issue...
Re: WiFi Issue On Venom
Have you tried it out on other routers?
And fir the asking to join networks, there is a setting in wifi>advance for that.
Sent from my HTC6435LVW using xda app-developers app
About the only thing that I haven't tried is another router, but the other devices on the network don't seem to be having any issues. Then again, it is an Airport, so...Yeah, I won't fully know until I get a chance to test it elsewhere...
But I know about the advanced setting and have it disabled. That's why I'm wondering it its something in the ROM or something that I did wrong that it keeps trying to come come back. My guess is that it's disconnecting the mobile network and resetting it, just as it is doing on the WiFi...
Update
Just in case someone else runs into this issue, the problem was with an app that I used to change my host name. It would intermittently interrupt my connection trying to do that. I uninstalled it and edited my build.prop file the old fashioned way. The issue didn't have anything to do with Venom, just the fact that I had rooted and tried new things.
Thanks for your help!
This was the app that caused the issue: https://play.google.com/store/apps/details?id=com.tiranodroid.change.hostname
AYHJA said:
Just in case someone else runs into this issue, the problem was with an app that I used to change my host name. It would intermittently interrupt my connection trying to do that. I uninstalled it and edited my build.prop file the old fashioned way. The issue didn't have anything to do with Venom, just the fact that I had rooted and tried new things.
Thanks for your help!
Click to expand...
Click to collapse
Can you please go to the advanced editing options and change the name of your thread and place "Fixed" in there so people can reference it, if need, and what app it was. Thanks.

Wifi to mobile Internet switching problem

Hi Guys,
I have observed a strange behaviour.
Like after long duration of Wifi usage when I switch Wifi off, phone doesn't go back to mobile Internet automatically.
But after short duration like 5 min or so it has no problem switching automatically.
So I have to always go into flight mode n come back when it happens, which is kind of annoying sometimes.
I tried to find some settings in Wifi and searched through various threads but no success. I don't know this behaviour is due to some timeout feature or what.
Please share if someone experience anything similar or point me to right direction.
Cheers
GT-I9300
Using official I9300XXEMC3(rooted)
Modem issue? Try updating or reflashing to the latest for your country. If it only fails after a long period of wifi then it could be some kind of memory leak.
If that doesn't help then try wiping and reflash your rom.
To me its related to software rather than hardware issue. I flashed EMC2 still behaved same then back to EMC3 doing same thing.
Sent from my GT-I9300 using xda app-developers app
rauppal said:
To me its related to software rather than hardware issue. I flashed EMC2 still behaved same then back to EMC3 doing same thing.
Click to expand...
Click to collapse
By software then, you mean applications? It's certainly possible - but you'll need to isolate the application causing the problem. Start with a complete nandroid backup so you've a point to return to. Then do a clean reflash, and add the apps back in one at a time until the problem returns. Then you can restore the nandroid backup and remove the offending application.

[Q] Having some issues with aggressive wifi to cellular handover

My issue is that I am constantly stepping outside, out of reach of my modem, and I'll have to turn my Wi-Fi off or my phone will stay connected to the the incredibly weak wifi signal.
So, I tried turning the dev option for "aggressive wifi to cellular handover" on thinking this would help and allow me to just leave wifi turned on while stepping outside and have it switch over to data without my assistance. And it worked, for the most part (it still held on to wifi signals *I* would deem too slow, but not often), BUT whenever I reboot the option in dev settings un-ticks so I have to go back in and turn the setting back on.
My question is, is there a way to prevent the aggressive wifi to handover from turning off on reboots, or is there another option I could try that may even be more aggressive?
Thank you in advance!
Have you tried the setting to automatically disconnect from a poor WiFi signal? It's under WiFi>settings>advanced WiFi>avoid unstable connections
Juggernaut79 said:
Have you tried the setting to automatically disconnect from a poor WiFi signal? It's under WiFi>settings>advanced WiFi>avoid unstable connections
Click to expand...
Click to collapse
That says it'll automatically disconnect from no connection, but I still have an internet connection off the wifi, it's just like slow as all get out
6NomoN6 said:
That says it'll automatically disconnect from no connection, but I still have an internet connection off the wifi, it's just like slow as all get out
Click to expand...
Click to collapse
For me it disconnects from a weak signal.
I'll be back!
6NomoN6 said:
My question is, is there a way to prevent the aggressive wifi to handover from turning off on reboots, or is there another option I could try that may even be more aggressive?
Click to expand...
Click to collapse
I have the same problem, discovered the same solution, and have run into the same issue with no persistence after reboot! I'm googling now for a solution because going into developer options every reboot is incredibly damaging to the smoothness of the user experience I've worked so hard to customize.
Whether I find a solution or not I'll post in this thread again to let you know. If the latter is the result I will personally either write a tasker script, init.d script, or if nesseceary an Xposed module depending on factors I've yet to research. Can you Beta test for me if it comes to that? Maybe it's as simple as editing build.prop, I don't know yet, but I wanted to make this post ASAP so that you know you aren't alone on this and someone capable is working on the issue. For a developer like myself tapping menus every boot is unacceptable! Hopefully there is already a fix out there in the wild and I won't have to do any work.
P.S. Don't forget to also enable cellular radio always active for fast network switching at the price of some battery life. It's a few options below aggressive handover in Developer Options and thank jolly the setting is sticky unlike it's counterpart. Also, sorry for the poor turnout on your thread. I figured there'd be 100 posts by now, but at least you got my attention.
Edit 1: "setprop persist.{i-dont-know-yet}" in terminal emulator may do the trick. Checking for variables for the setting we want now. Hopefully they exist!
Edit 2: :laugh: I FOUND EVERYTHING I NEED FOR A FIX!!! However, an Xposed module will be required. I need some sleep but I should have something by tomorrow night. In case any other developers are reading this, here is the information required to make things work the way Iwe want them to:
http://android.stackexchange.com/qu...-cellular-handover-option-in-developer-settin
https://android.googlesource.com/pl...ndroid/settings/DevelopmentSettings.java#1061
Edit 3: Now that I know how this setting actually works together with wifi_watchdog (see source code WifiWatchdogService.java) I think I may have changed my mind regarding how to go about solving the root problem at hand (network switching) which this setting really does a "hack" job of taking care of. The developer that made it decided on a arbitrary, static number to be used for decreasing the connected WiFi AP's RSSI value (thereby making handover more "aggressive") instead of exposing any kind of grainular control to the user. So yes I could easily make the developer options setting stick but a much better approach would be to hook the method android.net.wifi.WifiManager with an Xposed module and implement additional logic to the network switching. The great thing about this method is there is the possibility for adding additional checks besides just periodically pinging the current primary dns server and monitoring the delay and timeout of the result. I also know for a fact modding the framework persists after reboot which is afterall all we originally wanted to have. The second or alternative route would be to edit the secure settings database using SQLite. The pro of this method is it is guranteed to be compatible with nearly ANY rom, won't break anything after an update, and doesn't use resources like an Xposed module. The con is that you are limited to the variables built into android, can't implement any new logic, and the worst is that I'm not even sure the modified tables would even persist after a reboot (or network state change for that matter) which if true would defeat the original purpose of this expedition. I'll make a fourth edit to this post after I've thought about and considered how to best proceede to reaching the goal of having a solution to our problem. :victory:
FoxysWorkplace said:
I have the same problem, discovered the same solution, and have run into the same issue with no persistence after reboot! (...)
Click to expand...
Click to collapse
First of all, thank you so very much for looking into this!
I'm sorry for not responding sooner, but I had honestly lost hope of finding a solution to this issue mainly because I am not a developer myself and haven't the foggiest how to get started with it on Android
But when I opened my notifications and saw a response to this post (!) I got *extremely* excited, and as I read through your post, my excitement intensified to great happiness!
I can't express my gratitude, but I would be more than happy to help with anything that I can!
Any news on this?
Has anyone found a solution?
Had anyone found a solution that doesn't require root access?
Can we expect that fourth update any time soon? Any solution without xposed?
I'm following this thread in the event that someone finds a non-rooted solution. The Galaxy S7 really cannot be rooted without a serious performance hit (and yes I've gone through the two or three best/popular lag-fix solutions) but it works best in stock :-/

Categories

Resources