is a way to disable auto connect to wifi that don't need password?
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