mnalis / android-wifi-upgrade

convert WiFi passwords from old Android wpa_supplicant.conf to newer (post-Oreo) WifiConfigStore.xml
Apache License 2.0
17 stars 8 forks source link

WifiConfigStore.xml resetting to default #8

Open whitedevil-tmp opened 1 month ago

whitedevil-tmp commented 1 month ago

I'm on android 10, my "WifiConfigStore.xml" located at "/data/misc/wifi" is resetting to default empty value I didn't have "WifiConfigStore.xml.encrypted-checksum" in that folder instead my WifiConfigStore contained

<Integrity>
<byte-array name="EncryptedData" num="48">8ccac92593b39c95003ada4f8b6550cf0f7d4b6abdb233ae14ffe3056992bc3d3ee1a0cc7f38ab26a361a5efd158301f</byte-array>
<byte-array name="IV" num="12">8197725fabe7fafd323c33b8</byte-array>
</Integrity>

default WifiConfigStore.xml

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<WifiConfigStoreData>
<int name="Version" value="2" />
<Integrity>
<byte-array name="EncryptedData" num="48">2ec97dfc559abeb8a188285ff3c83963a3459d424999da1724333921b88ff7f20af132eac72971b17fd3b5549926e676</byte-array>
<byte-array name="IV" num="12">7d532dd57a96515b29b6d2f7</byte-array>
</Integrity>
<NetworkList />
<MacAddressMap>
<map name="MacMapEntry" />
</MacAddressMap>
<PasspointConfigData>
<long name="ProviderIndex" value="0" />
</PasspointConfigData>
</WifiConfigStoreData>
mnalis commented 1 month ago

Interesting; did you try removing that <Integrity> section and see if the WifiConfigStore.xml gets accepted then?

(Also, what manufacturer/phone is that, if you could share that information?)