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

Android 10 #46

Closed nowster closed 4 years ago

nowster commented 4 years ago

App needs to request "location permission" to work on Android 10:

12-13 16:06:05.898  1330  1404 I ActivityManager: Start proc 26757:be.brunoparmentier.wifikeyshare/u0a326 for activity {be.brunoparmentier.wifikeyshare/be.brunoparmentier.wifikeyshare.ui.activities.WifiListActivity}
12-13 16:06:05.905 26757 26757 E er.wifikeyshar: Not starting debugger since process cannot load the jdwp agent.
12-13 16:06:05.976  1330  4089 E WifiService: Permission violation - getConfiguredNetworks not allowed for uid=10326, packageName=be.brunoparmentier.wifikeyshare, reason=java.lang.SecurityException: UID 10326 has no location permission

See: https://developer.android.com/guide/topics/connectivity/wifi-scan

nowster commented 4 years ago

As Android 10 has built-in key sharing in the WiFi settings, this program isn't needed if your device has upgraded to Android 10.