WifiApConfigStore: Store the shutdown enabled flag in config store

Changes:
a) Don't use the Settings.Global value to store the feature toggle.
Store the info in config store file along with other softap
configuration.
b) Use the new WifiOemMigrationHook class to migrate the data out of the
existing Settings value (for both backup/restore & config store).

Also, fixed a bug in the
ApConfigUtil.checkConfigurationChangeNeedToRestart() (was checking for
object instance equality)

Bug: 147779354
Bug: 148514485
Test: atest com.android.server.wifi
Test: Manually verified the toggle from Settings.
Change-Id: I84dd00ae112223b271e5fdbe4b25ea4ba8b1c9be
8 files changed
tree: 89680ccd8cb4e83947f5a259b2048e0979903430
  1. apex/
  2. service/
  3. PREUPLOAD.cfg