WiFiAnalyzer
WiFiAnalyzer copied to clipboard
Show whether a network is detected as metered or not
Android provides an option for a user to say whether a network is metered or not, or, to auto-detect it.
Unfortunately, when set to auto-detection, the Android OS UI does not provide any way to confirm what was detected by the OS.
The Android OS API allows to know what is detected using a capability: https://developer.android.com/training/monitoring-device-state/connectivity-status-type
NetworkCapabilities#NET_CAPABILITY_NOT_METERED
Would it be possible to add this capability to the app? Just display a flag (a dollar sign for instance?) when the connection is detected as metered?
Thanks
It is possible by checking if the vendor-specific elements that is being transmitted. Take a look at https://learn.microsoft.com/en-us/windows-hardware/drivers/mobilebroadband/network-cost-information-element for information on how it could be implemented.
Android also checks if DHCP option 43 is set to ANDROID_METERED but there wouldn't be any way to check this from the app. Only the vendor elements method could be used by the app AFAIK.
Both can be checked.
The MS-specific vendor element thing may be checked during scanning.
For the Android method (DHCP), I posted the link above in my first comment as to how this should be checked. It can only be checked for the currently connected network, since it is DHCP, but no other app has the ability to display this information so it would be a great feature.
Please use provided feature report template, do not forget to fill all required information in the template. The information provided in the template helps to resolve issues faster.
Interesting idea, sorry to say all current contributors are busy with other work. When we don't have an opportunity or time to implement a feature, we encourage developers to fork the project and become a contributor. It would be great to add new contributors to this project.