WifiNetworkSuggestionsManager: Store user approval
For the first connection attributed to a suggestor app, we should post a
notification letting the user optionally disable suggestor app. Store a
flag (needs to be persisted) for each app to track whether the user has
approved the app or not.
This also implies that we don't discard apps with no active suggestions
from the database. We still need to track whether we've already
sent notification to the user for the corresponding app (in-case the app
makes new suggestions afterwards). The app is removed from internal
database only on the app uninstall.
Note: The actual notification post will be done in a subsequent CL.
Bug: 120072329
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ie201b1f2b7de64fa8ad8a3d02575379db1f9dc4c
6 files changed