Some ROM's like Xiaomi's MIUI allows the user to disable network access for a given app:
I am working in a TWA
application and in ROM's like the Xiaomi, is possible to block Chrome's network access.
Is there a way to programmatically check if Chrome has access to the network?
Things to consider:
- I've already try to use PackageManager with
ACCESS_NETWORK_STATE
,INTERNET
andCHANGE_NETWORK_STATE
permissions. - I do not want to add a permission for my app.
- Checking for network access does not work either because the smartphone has internet access, the ROM is blocking a specific app to access it.