Samsung S7, Wifi keeps disconnecting


Question

I've searched around, and so I can ensure that this is not a duplicate.




  • Smart Network Switch is off

  • Keep Wifi on during sleep

  • Wifi works excellent for other devices

  • Wifi disconnects randomly even while the screen is open and device is in use



I opened up the Developer options, and turned on "Wi-Fi verbose logging" and when it disconnected, I saw these messages:




  • NETWORK_SELECTION_PERMANENTLY_DISABLED

  • NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=2



Also in another occasion these:




  • NETWORK_SELECTION_DISABLED_BY_ASSOCIATION_REJECTION=1

  • NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=1



The issue seems to be since installing an application, but I've uninstalled all recent applications on my phone, and it hasn't gotten better.



Safemode seemed to fix it, so there must be some kind of application interference, but the Wifi Control History only lists applications that turned on the wifi.



My only solution so far has been to disable wifi and re-enable it, or open up the wifi network manager in android, and tap the wifi connection. (presumably to override the 'network selection disabled')






Some logcat details:



[ 08-14 13:44:35.460  1364: 2509 E/WifiStateMachine ]
Did not find remoteAddress { 10.100.5.1 } in /proc/net/arp


and



I WifiHs20Service: Message received 5014
E WifiHs20Service: received HS20_UTILITY_ACTION_TYPE_HS20_CONFIGURATION_CHANGED
D WifiStateMachine: DisconnectedState !CMD_GET_CONFIGURED_NETWORKS uid=10225 rt=2982499/2982499 10225 0 num=40
D WifiStateMachine: ConnectModeState !CMD_GET_CONFIGURED_NETWORKS uid=10225 rt=2982500/2982500 10225 0 num=40
D WifiStateMachine: DisconnectedState !CMD_GET_CONFIGURED_NETWORKS uid=10225 rt=2982511/2982511 10225 0 num=40
D WifiStateMachine: ConnectModeState !CMD_GET_CONFIGURED_NETWORKS uid=10225 rt=2982511/2982511 10225 0 num=40


When turnnig wifi back on, I sometimes see:



WifiStateMachine: There are no configured ssid


followed by many SSIDs of wifis I've already used. The SSID in range is not listed. Perhaps because the SSID in range is marked 'permanently disabled' (see above)






Additional Edit, more info:




  • I'm unable to reliably replicate this. It only disconnects when I'm assuming it'll work, and it doesn't seem to be crashing while I'm trying to use it.

  • I got a disconnect while doing a beyondpod (podcast app) update: https://pastebin.com/Edx7ADXZ Things to note:


    • I could not duplicate it with just the podcast app

    • If you search in the log for beyondpod, you'll see more information about where the disconnect happens. Sometime before: "08-23 12:53:46.600"







Update 3:



I wiped my phone, and it was fine for a while, but it came back. The same error codes: NETWORK_SELECTION_PERMANENTLY_DISABLED and NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=2



I guess wiping it was not sufficient.



Is there anything I can run to constantly reset my wifi (when the hardware switch is on) to effectively cancel out whatever is turning it off?


Answer

Android didn't indicate which applications where toggling the wifi status accurately, and the logs were unhelpful.



I later noticed that "MyCricket", an application that helps pay for my Phone Service, had a setting titled: Turning on Cricket Wi-Fi Manager



Turning off this setting fixed it. I wish the Android controls had been more helpful.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes