Bug P2
Status Update
Comments
sa...@livelynx.co.jp <sa...@livelynx.co.jp> #2
Comment has been deleted.
sa...@livelynx.co.jp <sa...@livelynx.co.jp> #3
When I used addNetwork instead of wifiManager.addNetworkSuggestions in 1) to register, I was able to get the WifiConfiguration by getCallerConfiguredNetworks.
I am also able to get the value of WifiEnterpriseConfig enterpriseConfig in the WifiConfiguration field.
However, null was obtained for the following APIs
https://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig#getClientCertificate()
https://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig#getCaCertificates()
The above document looks like I can get the certificate information, but can't I get it?
I am also able to get the value of WifiEnterpriseConfig enterpriseConfig in the WifiConfiguration field.
However, null was obtained for the following APIs
The above document looks like I can get the certificate information, but can't I get it?
Description
Version used: Api Level35
Devices/Android versions reproduced on: pixcel8/Android15
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
After resetting pixcel8, I installed my own DCP app and set DO privilege with the following command.
adb shell dpm set-device-owner “package/.receiver.TestAdminReceiver”
The home-made app does the following
1) Save Wifi network configuration using wifiManager.addNetworkSuggestions
2)Get Wifi network configuration using getCallerConfiguredNetworks
By 1), the connection to the suggested Wifi was confirmed.
In 2), the following exception occurred, but after running adb shell dpm set-device-owner, the exception did not occur anymore.
E AndroidRuntime: java.lang.SecurityException: Not a DO, PO, carrier or privileged app
However, the getCallerConfiguredNetworks has a get size of 0.
Return a list of all the networks previously configured by the calling app. Can be called by Device Owner (DO), Profile Owner (PO), Callers with Carrier privilege and system apps.
The above is stated above.
But why can't I get the network configurations registered by the app in getCallerConfiguredNetworks?