it is really annoying that my mobile phone will auto connect to wifi that don't need password such as those ones in shopping center, most of time they need you to fill up a form to register first before access granted, and I have to turn off wifi for this reason. Then when I go home, sometimes I forget to turn wifi back on and waste my moble plan data usage, is a way to fix this issue? I can't believe that Android doesn't have a mechanism to only connect to wifi you have previously provide password?

  • 1
    AFAIK the behavior regarding unprotected Wifi had been changes in the evolution of Android. Which Android version do you use?
    – Robert
    Aug 24 '20 at 7:17

You can use ADB to disable it:

adb shell settings put global wifi_scan_always_enabled 0 
adb shell settings put global network_avoid_bad_wifi 1 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.