UCC should not promote a network with no internet

With a specific user action pattern, a network without internet
access could get into a bad state and win network selection due to
user connect choice.

It's hard to fix the root cause because it requires redefining an API
between connectivity and wifi.
This CL tries to fix the problem on the wifi side by making
sure that networks that are confirmed to have no internet will not get
promoted by UCC.

Bug: 169621812
Test: Manual test
Step 1: Connected to network_1 which has no internet and
toggled wifi off before internet validation could finish.
Step 2: Toggled wifi on and verified we connect back to network_1 due to
user connect choice
Step 3: Waited until internet validation failed
Step 4: Toggled wifi off and then on again and verified that we auto
connected to network_2. (ie. network 2 is any network that has
higher network selection score than network_1)

Change-Id: Ia7d3c413c04308e053ac6b8dc845bc78c7c3c989
2 files changed
tree: 4b76e057c8674cd8534eb874c65544abfca8d9bf
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg