Prefer trusted networks to untrusted

A network marked as untrusted is not used to provide internet,
so for network selection it should lose to any trusted candidates.

If the suggestion did not come from a carrier or privileged app,
rank it even lower.

Bug: 148167150
Test: atest com.android.server.wifi
Change-Id: Ifc80ff6e81657fb10d3823ccd59724e67fab60f4
6 files changed
tree: e9a7c26837f9c4def4f00500b6e09562a2312561
  1. apex/
  2. service/
  3. PREUPLOAD.cfg