Roshan Pius | da0704b | 2020-03-20 10:44:02 -0700 | [diff] [blame] | 1 | This folder contains sample files for each of the 4 XML Wi-Fi config store files in Android 11 AOSP. |
| 2 | OEMs can use these files as reference for converting their previous customized |
| 3 | formats into the AOSP format. The conversion logic needs to be written in |
| 4 | WifiMigration.java class, i.e each OEM needs to modify |
| 5 | WifiMigration.convertAndRetrieveSharedConfigStoreFile() and the |
| 6 | WifiMigration.convertAndRetrieveUserConfigStoreFile() methods. |
| 7 | |
| 8 | The 4 files are: |
| 9 | |
| 10 | Shared files |
| 11 | ============ |
| 12 | 1) WifiConfigStore.xml - General storage for shared configurations. Includes |
| 13 | user's saved Wi-Fi networks. |
| 14 | AOSP Path in Android 10: /data/misc/wifi/WifiConfigStore.xml |
| 15 | AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml |
| 16 | Sample File (in this folder): Shared_WifiConfigStore.xml |
| 17 | |
| 18 | 2) WifiConfigStoreSoftAp.xml - Storage for user's softap/tethering configuration. |
| 19 | AOSP Path in Android 10: /data/misc/wifi/softap.conf. |
| 20 | Note: Was key/value format in Android 10. Conversion to XML done in SoftApConfToXmlMigrationUtil.java. |
| 21 | AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml |
| 22 | Sample File (in this folder): Shared_WifiConfigStoreSoftAp.xml |
| 23 | |
| 24 | User specific files |
| 25 | ================== |
| 26 | 3) WifiConfigStore.xml - General storage for user specific configurations. Includes |
| 27 | user's saved passpoint networks, Wi-Fi network request approvals, etc. |
| 28 | AOSP Path in Android 10: /data/misc_ce/<userId>/wifi/WifiConfigStore.xml |
| 29 | AOSP Path in Android 11: /data/misc_ce/<userId>/apexdata/com.android/wifi/WifiConfigStore.xml |
| 30 | Sample File (in this folder): User_WifiConfigStore.xml |
| 31 | |
| 32 | 4) WifiConfigStoreNetworkSuggestions.xml - Storage for app installed network suggestions. |
| 33 | AOSP Path in Android 10: /data/misc_ce/<userId>/wifi/WifiConfigStoreNetworkSuggestions.xml |
| 34 | AOSP Path in Android 11: /data/misc_ce/<userId>/apexdata/com.android/wifi/WifiConfigStoreNetworkSuggestions.xml |
| 35 | Sample File (in this folder): User_WifiConfigStoreNetworkSuggestions.xml |