-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NETWORK_SETTINGS permission required on Android 10 #37
Comments
Hello, and thanks for investigating this on your own already. That is very helpful indeed. So, you probably compiled fresh from sources to be able to inject the new permission. Wow. I did some desk research and have to say I'm a bit baffled by this. The parts of Android API documentation that mention NETWORK_SETTINGS only mention it in combination with throttling of network scans. The profile installation itself does not use that. Then again the error message you got is fairly explicit (but we are not changing MAC address randomisation settings AFAICT?) And then, I tried to look up the real extent of what Android.permissions.NETWORK_SETTINGS does and found: nothing. Browsing API 29 https://developer.android.com/reference/android/Manifest.permission does not speak of this permission at all; neither is it a permission group as in https://developer.android.com/reference/android/Manifest.permission_group Do you have any pointers to documentation of that permission? |
Hi, Ive created a android virtual device with android 10 (api28) and i cant reproduce this yet. The logs you show above do not reference any of the eduroamCAT classes. I am wondering if some other code/app was updating the eduroam profile? Gareth |
This is a strange one for sure. The problem was initially reported to us by a user I can't find the full logs anymore, but I am pretty sure that the WifiConfigManager errors However I cannot reproduce the problem anymore either Maybe it was a bug on Google's side that was fixed already |
|
Hi @jafar-jabr, I've had a look at the LOCAL_MAC_ADDRESS permission and couldn't find much on it. It's mostly mentioned in the documentation for the WifiP2pManager but I can't see anything that uses that class in the code. However, I did come across this page which mentions needing that permission to access the factory MAC address. Perhaps this has something to do with the new default MAC Randomization settings in Android 10? |
Never mind, it was from sdkBuildTools 30.0.1 |
On the recently released Android 10 (Google Pixel 3a), profile install fails with the following in logcat:
Adding the NETWORK_SETTINGS permission to
AndroidManifest.xml
seems to fix the problem (but :However I'm not really an Android developer, so there might be a better solution.
Is there a timeline in general for Android 10 support in CAT? Do you need help testing?
The text was updated successfully, but these errors were encountered: