Files
frameworks_base/wifi/java/android/net/wifi/migration_samples
Roshan Pius da0704b275 WifiMigration: Add sample config store XML files
Also, added a readme to list the different sample files.

Bug: 152048434
Test: Compiles
Change-Id: If15ec11fd36b327ac4942f97a49ff04abc1cbd0f
2020-03-20 11:57:48 -07:00
..

This folder contains sample files for each of the 4 XML Wi-Fi config store files in Android 11 AOSP.
OEMs can use these files as reference for converting their previous customized
formats into the AOSP format. The conversion logic needs to be written in
WifiMigration.java class, i.e each OEM needs to modify
WifiMigration.convertAndRetrieveSharedConfigStoreFile() and the
WifiMigration.convertAndRetrieveUserConfigStoreFile() methods.

The 4 files are:

Shared files
============
1) WifiConfigStore.xml - General storage for shared configurations. Includes
user's saved Wi-Fi networks.
AOSP Path in Android 10: /data/misc/wifi/WifiConfigStore.xml
AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml
Sample File (in this folder): Shared_WifiConfigStore.xml

2) WifiConfigStoreSoftAp.xml - Storage for user's softap/tethering configuration.
AOSP Path in Android 10: /data/misc/wifi/softap.conf.
Note: Was key/value format in Android 10. Conversion to XML done in SoftApConfToXmlMigrationUtil.java.
AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml
Sample File (in this folder): Shared_WifiConfigStoreSoftAp.xml

User specific files
==================
3) WifiConfigStore.xml - General storage for user specific configurations. Includes
user's saved passpoint networks, Wi-Fi network request approvals, etc.
AOSP Path in Android 10: /data/misc_ce/<userId>/wifi/WifiConfigStore.xml
AOSP Path in Android 11: /data/misc_ce/<userId>/apexdata/com.android/wifi/WifiConfigStore.xml
Sample File (in this folder): User_WifiConfigStore.xml

4) WifiConfigStoreNetworkSuggestions.xml - Storage for app installed network suggestions.
AOSP Path in Android 10: /data/misc_ce/<userId>/wifi/WifiConfigStoreNetworkSuggestions.xml
AOSP Path in Android 11: /data/misc_ce/<userId>/apexdata/com.android/wifi/WifiConfigStoreNetworkSuggestions.xml
Sample File (in this folder): User_WifiConfigStoreNetworkSuggestions.xml