Move ONA back into the wifi framework.

- This is the minimum change to restore the "Open networks available"
feature from N and fulfill O requirements without causing regressions
- Post the "Open networks available" using the NETWORK_AVAILABLE
NotificationChannel. Note that the feature is still enabled/disabled by
toggling Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
- Before showing a notification, check if the current user has the
DISALLOW_CONFIG_WIFI restriction. See b/35996959 for details.
- Add tests for the UserManager check in WifiNotificationController

Bug: 37794067
Test: ./tests/wifitests/runtests.sh
Change-Id: I0266f63acafc56b995f71420af726933908ce8a0
2 files changed
tree: 5f5592f4254abb01102307b422b0c8d7623cebd6
  1. service/
  2. PREUPLOAD.cfg