WifiNetworkSuggestionManager: Store the uid/package name for suggestion
Associate each incoming suggestion to the package name/uid of the
calling app. This avoid explicitly stamping the uid/package name inside
individual suggestion objects. This is to avoid using an @hide API
inside WifiNetworkSuggestion to stamp the uid/package name of the app
using a retrieved context.
Note: This also requires some code to handle the migration of existing
config store data from the old WifiNetworkSuggestion object to the new
one. There is some code refactor in NetworkSuggestionStoreData to handle
both the store formats gracefully.
Bug: 144102365
Test: atest com.android.server.wifi
Change-Id: I9f48a34b5dd49842b2e134b0d1bb4eb49959a173
7 files changed