bparmentier / WiFiKeyShare

Share Wi-Fi passwords with QR codes or NFC tags
https://wifikeysha.re
GNU General Public License v3.0
118 stars 40 forks source link

NFC tags with "Open" network configurations are not imported into Android #12

Closed bparmentier closed 8 years ago

bparmentier commented 8 years ago

Yet another bug coming from AOSP: in NfcUtils#parseCredential, WifiConfiguration.preSharedKey should be null for OPEN networks, which is not the case here since this field is always initialized with "\"" + new String(networkKey) + "\"" (at least when NETWORK_KEY_FIELD_ID exists).