Android how to Kill TCP connection ? - Samsung Galaxy Nexus

Anyone know how to kill a TCP connection on android?
In linux is possible to use tcpkill command, but is not available on android..any solution?
I searched everywhere but didn't found nothing, thanks
Inviato dal mio Galaxy Nexus con Tapatalk 2

Anyone?

Use a shotgun.
-MBQ
Sent from my Galaxy Nexus using xda premium

What do you want to kill? I'm curious.
Sent from my i9250

R: Android how to Kill TCP connection ?
bk201doesntexist said:
What do you want to kill? I'm curious.
Sent from my i9250
Click to expand...
Click to collapse
I just want a way to close a TCP connection running on the phone...is that strange?
I want make an app for personal use or also to share that can close/kill the TCP connection on the port 5228 every x minutes, the one used for the push notifications, so that it get re-enstabilished immediately and get push notifications without delays
Long story short sometimes to receive push notifications I have to disable WiFi an re-enable to get notifications.. That only happen with WiFi...I discovered the problem is the router (I can't change the operator router) that close the unused idle connections after a short time, but the push framework (that need a long live TCP connection) doesn't notice that, or it only noticed after 15 minutes (the default time in which googke talk service monitor send the heart beat to keeps live the connection, already a broken connection killed by the router)..
Any other way that an app can stop the push connection and re new it every 5 minutes for example? Or any way to change the default 15 minutes gtalk heartbeat to a lower value?
I know my explanation is a s h i t , but that exactly what happens to millions of user in the world with crap routers or bad carries..do some reasearch about push notification (iOS or android doesn't matter) and TCP connections idle time
Inviato dal mio Galaxy Nexus con Tapatalk 2

finally, You got any Android alternatives to tcpkill?
andQlimax said:
I just want a way to close a TCP connection running on the phone...is that strange?
I want make an app for personal use or also to share that can close/kill the TCP connection on the port 5228 every x minutes, the one used for the push notifications, so that it get re-enstabilished immediately and get push notifications without delays
Long story short sometimes to receive push notifications I have to disable WiFi an re-enable to get notifications.. That only happen with WiFi...I discovered the problem is the router (I can't change the operator router) that close the unused idle connections after a short time, but the push framework (that need a long live TCP connection) doesn't notice that, or it only noticed after 15 minutes (the default time in which googke talk service monitor send the heart beat to keeps live the connection, already a broken connection killed by the router)..
Any other way that an app can stop the push connection and re new it every 5 minutes for example? Or any way to change the default 15 minutes gtalk heartbeat to a lower value?
I know my explanation is a s h i t , but that exactly what happens to millions of user in the world with crap routers or bad carries..do some reasearch about push notification (iOS or android doesn't matter) and TCP connections idle time
Inviato dal mio Galaxy Nexus con Tapatalk 2
Click to expand...
Click to collapse

annony_coward said:
finally, You got any Android alternatives to tcpkill?
Click to expand...
Click to collapse
not..you can actually only kill the process that generate the connection

Related

[Q] automatic WiFi, any good apps?

Folks,
Just wondering if anyone has any experience with automatic WiFi switching apps? Basically after something that works on the desire with froyo. What I want it to do is poll the available WiFi networks every so often (say hourly) to see if my home network is avaiable, and connect if it is.
What do the demon hordes of xda suggest to try, or avoid?
Sent from my HTC Desire using XDA App
Tasker is a app that can do that, and much more.
http://tasker.dinglisch.net
On there site you can download it, try it for a week and if you like it buy it. It's a rater expensive app but it has a lot of possibilities. There is also a market version but that has no trial.
TheGhost1233 said:
Tasker is a app that can do that, and much more.
http://tasker.dinglisch.net
On there site you can download it, try it for a week and if you like it buy it. It's a rater expensive app but it has a lot of possibilities. There is also a market version but that has no trial.
Click to expand...
Click to collapse
Thanks for the tip, I'll look into it. Do you use this? If so, what for? Looks like there's tonnes of ability that I don't think I'd use.
Any other auto WiFi experience out there?
Sent from my HTC Desire using XDA App
Yeah it's true that for only wifi on at home it's a expensive app but i don't know any other ones.
And yes I use it, for now i have:
Wifi at home
Flight mode on, auto sync off and low brightens at night
5 minutes before my alarm goes off i turn flight mode off, brightness to auto again, wifi on and autosync back on
GPS turns on when opening maps or navigation
When there is a appointment in my school calendar my phone goes on vibrate during that time
When i open my terminal emulator it prompts the keyboard input method
This is after two weeks of using the app and there are a lot more possibility, they also have a wiki with example apps and some tutorials you can look at.
Y5 battery will do it for your home network, on market.
My EVO
I thought the Desire automatically does this with no 3rd party apps? All the OP is saying that they want to connect to a WiFi connection when it's available (as opposed to performing some action).
Or did I miss something??
sh500 said:
I thought the Desire automatically does this with no 3rd party apps? All the OP is saying that they want to connect to a WiFi connection when it's available (as opposed to performing some action).
Or did I miss something??
Click to expand...
Click to collapse
I suspect that the OP wants an app that switches off WiFi, and only switches it on again when in range of a "known" WiFi network.
This is essentially what Y5 does - it only works if you have a cellular signal at that location, and basically when the WiFi network connection is lost it looks at the cell id and if it has changed turns WiFi off. When you get back into range of that cell again, it will switch WiFi back on again.
Regards,
Dave

Submitting things online takes ages to finish...

Hi
Got my One X yesterday and the sim card is not activated yet.
When i'm using e.g Tapatalk or are trying to replying to facebook comments it takes ages to finish.
I can't use my SMS Backup+ to restore my SMS's...
This can't be because of the non activated sim-card....
Very bad i think!
I'm beginning to think it's my router... does it have restrictions with wifi in some way?
How slow is slow? Could you give us specific times?
ArmedandDangerous said:
How slow is slow? Could you give us specific times?
Click to expand...
Click to collapse
Tapatalk for example kinda times out and never returns to screen. Just the small window on top saying working or something. I think something is wrong with tapatalk... I changed my WiFi channel yesterday and got a faster browsing experience, but tapa has problem here.
I've narrowed it down to my WiFi connection, because my device is faster on 3G data connection.
Someone else here who have a Netgear WNR2000 router? (longshot i know)
EDIT: Have now found out that this is a "known" issue and i have to wait for the fix!
Skickat från min HTC One X via Tapatalk 2

Wifi grayed out

This has been going on for some time now. I cannot actually pinpoint when it happened. But whenever I am at work, I can connect to the network and it's grayed out. I can still browse and use some app but I don't get notifications from my apps and cannot use Google Talk, for example. That entire app is grayed out.
It's an 802.1x EAP - PEAP - MSCHAPV2.
Anyone got any ideas or tricks to fix this? It used to work before and it doesn't. I do not believe anything changed on our end. And I also cannot just restart the router at work. Thanks in advance.
ddpacino said:
This has been going on for some time now. I cannot actually pinpoint when it happened. But whenever I am at work, I can connect to the network and it's grayed out. I can still browse and use some app but I don't get notifications from my apps and cannot use Google Talk, for example. That entire app is grayed out.
It's an 802.1x EAP - PEAP - MSCHAPV2.
Anyone got any ideas or tricks to fix this? It used to work before and it doesn't. I do not believe anything changed on our end. And I also cannot just restart the router at work. Thanks in advance.
Click to expand...
Click to collapse
Go to settings>app>all locate google services framework clear data,cache end reboot your phone...it should work... at least work for me...
vichimp said:
Go to settings>app>all locate google services framework clear data,cache end reboot your phone...it should work... at least work for me...
Click to expand...
Click to collapse
Didn't work
my work wifi is the exact same so i think they are just locking down ports.
I ve same problem..
But when I turn on the display the WiFi becomes blue...and when I turn off the display the icon becomes gray...
I don't know why.but I can't receive mail and gtalk..
Inviato dal mio Galaxy Nexus con Tapatalk 2
ddpacino said:
This has been going on for some time now. I cannot actually pinpoint when it happened. But whenever I am at work, I can connect to the network and it's grayed out. I can still browse and use some app but I don't get notifications from my apps and cannot use Google Talk, for example. That entire app is grayed out.
It's an 802.1x EAP - PEAP - MSCHAPV2.
Anyone got any ideas or tricks to fix this? It used to work before and it doesn't. I do not believe anything changed on our end. And I also cannot just restart the router at work. Thanks in advance.
Click to expand...
Click to collapse
Can you access gmail directly? Sounds like google services may be blocked by your network admin? Just a guess...
Im trying to understand what exactly is happening with you.
Are you getting a wifi signal and no notifications?
or are you not getting any wifi signal at all?
If you are getting a connection but notifications and google apps dont work, it could be that your work router those ports blocked or has a firewall infront of it.
If you are not getting any wifi signal at all, I would try and backup everything, and do a factory rest - update. basically a stock, unrooted wipe and reflash.
Don't know why our how to fix it. But I know that if your wifi is gray you still have data connection. And if it's blue your connected to Google services as well
Jellin' like a felon
Okay, thanks guys. The ports may be blocked. I get WiFi connection, but the indicator is grayed out. When that is so, I can still go into an app and use it with manual refreshes but I never get notifications automatically like I'm supposed to. They only start to pop in one I leave with and get back in the cellular network. And for an app like gtalk, I cannot use whatsoever as I'm signed out.
Sent from my Galaxy Nexus using Tapatalk 2
ddpacino said:
Okay, thanks guys. The ports may be blocked. I get WiFi connection, but the indicator is grayed out. When that is so, I can still go into an app and use it with manual refreshes but I never get notifications automatically like I'm supposed to. They only start to pop in one I leave with and get back in the cellular network. And for an app like gtalk, I cannot use whatsoever as I'm signed out.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
This happened to me before and basically it was how my IT guy setup our WiFi network in our office. I couldn't use any Google push services on my phone (gmail, gtalk, calender, etc...). Every thing would work fine when I was on data connection, but would stop on WiFi. I just stopped using my work WiFi when I was in the office. It definitely had something to do with the firewall/privileges of the WiFi network.
ddpacino said:
This has been going on for some time now. I cannot actually pinpoint when it happened. But whenever I am at work, I can connect to the network and it's grayed out. I can still browse and use some app but I don't get notifications from my apps and cannot use Google Talk, for example. That entire app is grayed out.
It's an 802.1x EAP - PEAP - MSCHAPV2.
Anyone got any ideas or tricks to fix this? It used to work before and it doesn't. I do not believe anything changed on our end. And I also cannot just restart the router at work. Thanks in advance.
Click to expand...
Click to collapse
port blocked..
google push notification and so gtalk need ports like 5222,5223,5228
usually in a work wifi only port 80 (http traffic) and 443 (httpS traffic) are open
VTENGR said:
This happened to me before and basically it was how my IT guy setup our WiFi network in our office. I couldn't use any Google push services on my phone (gmail, gtalk, calender, etc...). Every thing would work fine when I was on data connection, but would stop on WiFi. I just stopped using my work WiFi when I was in the office. It definitely had something to do with the firewall/privileges of the WiFi network.
Click to expand...
Click to collapse
Yea... but I'm on one of these tiered data plans from Verizon where I hit at or near the cap every month. I'm trying to use free WiFi as much as possible lol
Thanks again to all.
coloxim said:
I ve same problem..
But when I turn on the display the WiFi becomes blue...and when I turn off the display the icon becomes gray...
I don't know why.but I can't receive mail and gtalk..
Inviato dal mio Galaxy Nexus con Tapatalk 2
Click to expand...
Click to collapse
Do you have wifi set to turn off when the display turns off?
I came across this thread because I'm having the same problem with my GS3, the only thing that solved it was installing a WiFi manager app from the market.
Factory reset plus downgrading from 4.2.2 to 4.2.0 was the only thing that worked for me.
FIX FOR GREY WIFI/MOBILE DATA, and google account sync
HI THERE, sorry im new to e forum, anyways im using a SGS 3LTE with custom rom CM 10.2 android 4.3, CWM touch recovery. So many people are not able to connect to the play store and services over wifi, but only over mobile data. Another issue is that the cellular data and wifi tend to remain grey, unlike that of android 4.0 and back which remains blue. So to solve this heres what i did.
DID EVERY F**KING CRAP OUT THERE. DIDNT WORK.
What i did: use a file manager with root access, look for 'hosts' file in systempath 'system/etc/' and deleted it. So far so good, its permanently blue for both wifi and cellular data, and also i am able to access google apps and store without a hitch.
DO SHARE WITH ME UR FINDINGS/RESULTS AND SPREAD THE LOVE PEOPLE
On a side note: i used to flash and modify small roms for my old htc hd2, but the above fix was heard from a website from god knows where LOL, im singaporean, i speak singlish, and im proud of it so im not gonna apologise for the broken english
In case this helps anyone, the way I solved it at home with my Galaxy Nexus is by changing the setting of the router to Wireless G or N only. I have two routers, so I set one on 802.11g and the other on 802.11n only. By default my DLinks came with mixed wireless protocols. The problem with this is that it seems to confuse devices. That's why they also used to take long to connect to Wifi in general. Since I've made them only one standard now, they connect very quickly. Also, because I had mixed B, G and N on my best router, I never got to really use N. Turns out I had my authentication on WEP, and the only way you're getting N is by using WEP2 with AES.
Fix is here
Hello There, I tried to reset phone,clearing chache,Data but it wont work but now
I have a quick solution on this issue and grey wifi becomes blue in some minutes.
All you need is "Rooted Phone"
1.Install : Root Explorer
2. Grant SuperSU permission to Root Explorer
3. Mount Root Explorer into Read/Write (R/W).
4. Go To System > etc > locate "HOSTS" file in etc folder.
5. Edit Hosts file using root explorer
6. Insert the symbol # before the second set of IP address numbers then save the changes and exit.
7. Reboot your phone...
8. wifi icon will be blue as you start your phone back and some apps like Google play store,keep,etc will be start as normal.
Thanks.
vichimp said:
Go to settings>app>all locate google services framework clear data,cache end reboot your phone...it should work... at least work for me...
Click to expand...
Click to collapse
it works on me too.
Solution for all
Use Market Unlocker App for solution of this blue and grey wi fi problem
google it or search on black market

3g data and wi-fi problem

Hi guys! :victory:
I have got a problem with my samsung galaxy nexus stock version,
without root or unlocked bootloader.
The problem is about the 3g connection and wifi when I turn off the display.
3g: when I turn off the display, after a few minutes, the phone loses the data connection. It is like it goes in power saving mode because when I
turn on the display the signal icon turns grey and after a few instants blu. In fact mail, notifications, and whatsapp's messages are notified with
a 10-15 minutes delay.
wifi: same problem, when I turn off the display I lose the signal. When I turn on the display, the wifi icon disappear for an instant, become grey and then blue. Until it turns blue I don't get notifications.
I have already done several factory resets, disabled power saving settings
and I don't use any power management apps.
SMS and calls works fine.
help me please
Welcome to the club. I have the exact same issue and had a thread going about this. Nothing i've done has solved the problem. Even gone right to complete stock rom. Same problem. I noticed this started happening with 4.2. Before that i didn't have a problem. Mine only happens on Wi-Fi, no issue on mobile network connecitons. As well it happens no matter what router i'm connected to. This should be in the Q&A and troubleshooting section though...
With W-Fi make sure its set to always on in advanced Wi-Fi settings and that minimize power is unchecked as well as avoid poor connecitons. Might help for you.
M3drvr said:
Welcome to the club. I have the exact same issue and had a thread going about this. Nothing i've done has solved the problem. Even gone right to complete stock rom. Same problem. I noticed this started happening with 4.2. Before that i didn't have a problem. Mine only happens on Wi-Fi, no issue on mobile network connecitons. As well it happens no matter what router i'm connected to. This should be in the Q&A and troubleshooting section though...
With W-Fi make sure its set to always on in advanced Wi-Fi settings and that minimize power is unchecked as well as avoid poor connecitons. Might help for you.
Click to expand...
Click to collapse
I think the problem started happening with 4.1
And I've all the settings you said :crying:
I've dealt with the issue since updating to all the 4.2.x Roms. Not sure what it is, but its here to stay.
Sent from my Galaxy Nexus using XDA Premium HD app
R: 3g data and wi-fi problem
Same me..I think it started with 4.2
I have 2 WiFi routers and have disconnection problems while screem off with only one router ( I know this router is crap but it should not happen, android should handle it)
Inviato dal mio Galaxy Nexus con Tapatalk 2
alexdemonumber3 said:
I've dealt with the issue since updating to all the 4.2.x Roms. Not sure what it is, but its here to stay.
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
andQlimax said:
Same me..I think it started with 4.2
I have 2 WiFi routers and have disconnection problems while screem off with only one router ( I know this router is crap but it should not happen, android should handle it)
Inviato dal mio Galaxy Nexus con Tapatalk 2
Click to expand...
Click to collapse
do you have problem with the 3g also?
R: 3g data and wi-fi problem
diabolnik said:
do you have problem with the 3g also?
Click to expand...
Click to collapse
Nope..only with one WiFi router
Inviato dal mio Galaxy Nexus con Tapatalk 2
diabolnik said:
do you have problem with the 3g also?
Click to expand...
Click to collapse
No, fortunately. Only WiFi.
Sent from my Galaxy Nexus using XDA Premium HD app
Yeah my problems aren't on 3G. Rarely have I had that drop out. It's happened, but that's once a month tops.
I've gone to the point of buying a high end router to exchange my old router. No difference. I had a Cisco e4200 and now an e6500. Also had a D-link Dir655. Happened on all of those. Happens at Starbucks and at work too on their routers.
It's software problem for sure. And it can be fixed. And complaints have been put up on Google code site. There are at least 5-600 posts on that topic with people suffering the same problem. Why don't they fix it? No idea.
UPDATE
To let the wifi work, I have downloaded the app "wi-fi fixer" and using it I
fixed (just a workaround) the wifi issue!!:good:
But what can I do about the3G connection?:crying:
do you know if this problem is fixed with a custom rom??
diabolnik said:
do you know if this problem is fixed with a custom rom??
Click to expand...
Click to collapse
Not for me. It's a kernel issue though since the kernel is what takes care of the Wi-Fi. But no kernel or rom has ever fixed it for me. I'm trying that wifi fixer though now.
I have the same problem.. But mine is really bad.. My 3G drops for a long time or it just never comes back, I have to reboot several times.. Not sure wat the issue is..
Sent from my Galaxy Nexus using xda app-developers app

"Keep Wi-Fi on during sleep" settings gone?

I just can't find this in the Network Settings anymore. I’m used to set it to "while charging" to preserve battery life. Now it seems it is set to “always on” and there is no way to change this behavior. I have the LTE Version. See the screenshot from the Tab S3 as reference.
Can canfirm, I got the same
Gesendet von meinem Galaxy Tab S4 mit Tapatalk
Thankfully someone figured that out already and found a possible fix.
It seems this feature is still accessible through adb shell.
The parameter is „wifi_sleep_policy“. The current state can be checked with the command “adb shell settings list global”.
- Keep WiFi on during sleep: Always = 2
- Keep WiFi on during sleep: Only When Plugged In = 1
- Keep WiFi on during sleep: Never = 0
In my case I have to use “adb shell settings put global wifi_sleep_policy 1”
[Source: androidpolice.com]
Curious why google ditched that feature from the gui
Google or Samsung did?
Thanks, will test that later
Gesendet von meinem Galaxy Tab S4 mit Tapatalk
Unfortunately, after some testing (and device restarts) this solution is not working, at least in my case. Maybe some different setting is preventing the wifi from going to sleep?
Have you looked to see if it's been moved to development settings?
Thanks, I've checked an did not found it
Gesendet von meinem Galaxy Tab S4 mit Tapatalk
I couldn't find it in the dev menu either.
Hi, I bought the tab yesterday and was looking for the same option, but I had no luck. Now I have to put the tablet in airplane mode every time I stop using it, but it's really a shame, I have had the option to stop Wi-Fi during standby in every Samsung tablet or phone I had.
Inviato dal mio SM-T830 utilizzando Tapatalk
The_Madhatter said:
I just can't find this in the Network Settings anymore. I’m used to set it to "while charging" to preserve battery life. Now it seems it is set to “always on” and there is no way to change this behavior. I have the LTE Version. See the screenshot from the Tab S3 as reference.
Click to expand...
Click to collapse
Unfortunately it seems Google has dropped out the option in android 8.1.
The only solution I have found is this app:
https://play.google.com/store/apps/details?id=nl.devluuk.sleepywifi
It's not perfect and hasn't all the former options, but I hope the developer can make it better (it's the first release).
Inviato dal mio SM-T830 utilizzando Tapatalk
gabripranzo said:
Unfortunately it seems Google has dropped out the option in android 8.1.
The only solution I have found is this app:
https://play.google.com/store/apps/details?id=nl.devluuk.sleepywifi
It's not perfect and hasn't all the former options, but I hope the developer can make it better (it's the first release).
Inviato dal mio SM-T830 utilizzando Tapatalk
Click to expand...
Click to collapse
Ok, that's a bummer, but thanks for the info. I'll try that app.
The_Madhatter said:
Ok, that's a bummer, but thanks for the info. I'll try that app.
Click to expand...
Click to collapse
I'm sorry, imho the app didn't work well.
Probably Leandroid is the right solution, it works exactly as it should.
https://play.google.com/store/apps/details?id=com.teqtic.leandata&hl=en_US&referrer
Inviato dal mio SM-T830 utilizzando Tapatalk
I am looking for the option too, for the opposite operation - wifi on all the time.
The_Madhatter said:
I just can't find this in the Network Settings anymore. I’m used to set it to "while charging" to preserve battery life. Now it seems it is set to “always on” and there is no way to change this behavior. I have the LTE Version. See the screenshot from the Tab S3 as reference.
Click to expand...
Click to collapse
"always on"? Are you sure about this?
I am looking for the option as well, but I want to turn wifi on all the time, even during sleep. I found my S4 will lose wifi connection after it goes to sleep mode for several minutes(not sure about how long), and I can't get any notification. Mine is also LTE version, but I turned 4G off.
Thanks.
---------- Post added at 03:11 AM ---------- Previous post was at 02:57 AM ----------
The_Madhatter said:
Thankfully someone figured that out already and found a possible fix.
It seems this feature is still accessible through adb shell.
The parameter is „wifi_sleep_policy“. The current state can be checked with the command “adb shell settings list global”.
- Keep WiFi on during sleep: Always = 2
- Keep WiFi on during sleep: Only When Plugged In = 1
- Keep WiFi on during sleep: Never = 0
In my case I have to use “adb shell settings put global wifi_sleep_policy 1”
[Source: androidpolice.com]
Curious why google ditched that feature from the gui
Click to expand...
Click to collapse
I checked, wifi_sleep_policy is 2, but, still lose connection. ~~ I am totally confused.
xiangyou said:
"always on"? Are you sure about this?
I am looking for the option as well, but I want to turn wifi on all the time, even during sleep. I found my S4 will lose wifi connection after it goes to sleep mode for several minutes(not sure about how long), and I can't get any notification. Mine is also LTE version, but I turned 4G off.
Thanks.
---------- Post added at 03:11 AM ---------- Previous post was at 02:57 AM ----------
I checked, wifi_sleep_policy is 2, but, still lose connection. ~~ I am totally confused.
Click to expand...
Click to collapse
Have you simply tried just typing 'sleep' into the settings search field to see if it brings up the option?
Or download quick shortcut maker.
Type wifi in the search field, scroll down to settings and look for the activity then launch it.
ashyx said:
Have you simply tried just typing 'sleep' into the settings search field to see if it brings up the option?
Or download quick shortcut maker.
Type wifi in the search field, scroll down to settings and look for the activity then launch it.
Click to expand...
Click to collapse
Tried.
In settings search "sleep", no such options.
and search in activities in shortcutmaker, only "service mode -> wifi debug screen"
I'm on a Pie custom ROM and noticed the option missing. SleepyWifi didn't work for me. The Naptime app has a power-saving setting to disable wifi when in Doze. I'm using that, but of course you need to be rooted.
I think we're getting off track here. The problem is 1) Oreo 8.1.0 and Pie 9.0 does not have the option to "Keep Wifi on during sleep". And in fact turns off wifi during sleep automatically. So, turning off wifi during sleep is NOT what we're looking for. We want to KEEP WIFI ON DURING SLEEP.
The ADB SDK Option "seems to work" in theory, but I have not tested it myself.
The apps that were suggested in this thread are used to TURN OFF WIFI.... These apps DO NOT KEEP WIFI ON.
Why Google did this is beyond my comprehension. I for one, personally require my Wifi to stay on always because I have a Wifi cell plan. I DO NOT USE DATA. So, if my Wifi turns off during sleep.... how can I receive calls and text? I'm seriously pulling my hair out, because I've been on this fix hunt for months.
JJ5150 said:
I think we're getting off track here. The problem is 1) Oreo 8.1.0 and Pie 9.0 does not have the option to "Keep Wifi on during sleep". And in fact turns off wifi during sleep automatically. So, turning off wifi during sleep is NOT what we're looking for. We want to KEEP WIFI ON DURING SLEEP.
The ADB SDK Option "seems to work" in theory, but I have not tested it myself.
The apps that were suggested in this thread are used to TURN OFF WIFI.... These apps DO NOT KEEP WIFI ON.
Why Google did this is beyond my comprehension. I for one, personally require my Wifi to stay on always because I have a Wifi cell plan. I DO NOT USE DATA. So, if my Wifi turns off during sleep.... how can I receive calls and text? I'm seriously pulling my hair out, because I've been on this fix hunt for months.
Click to expand...
Click to collapse
Google or Samsung? My WiFi seems to stay on when my phone is inactive using Lineage based roms.
I'm fact I'm not sure WiFi truly switches off anyway even on my J3 running Samsung stock Oreo as I have received email in the middle of the night. Wifi may just drop down to a low power mode.
Will have to test this out to be sure.
How are you confirming wifi is totally off during sleep?
I have the same problem with my Samsung A7 after the upgrade to Pie. Messages in WhatsApp are not received with Wifi after a certain time when the screen is off. Messages are still not received if the phone is turned on. I must put WhatsApp to the foreground. If I connect with Mobile network all is ok. So there seems nothing wrong with my settings regarding messages and WhatApp. With ADB I have disabled light sleep and deep sleep. No result. I checked my router and the phone ist not disconnected from the router. I am totally lost
La_Tulipe said:
I have the same problem with my Samsung A7 after the upgrade to Pie. Messages in WhatsApp are not received with Wifi after a certain time when the screen is off. Messages are still not received if the phone is turned on. I must put WhatsApp to the foreground. If I connect with Mobile network all is ok. So there seems nothing wrong with my settings regarding messages and WhatApp. With ADB I have disabled light sleep and deep sleep. No result. I checked my router and the phone ist not disconnected from the router. I am totally lost
Click to expand...
Click to collapse
Have you tried removing WhatsApp from optimisation?

Categories

Resources