In android, how to programmatically list applications using a data connection?

Can someone please tell me in android if it is possible to access the list of names of applications that use data connection in the background / foreground? If possible, how?

Note. I found out that you can access the total data consumption in bytes by reading the TX / RX files. But I could not find which applications use the data connection.

+3
source share
1 answer

This is possible with a little work. You will need to use the PackageManager to get the permissions required for each application. Then you can simply filter applications based on these permissions.

+2
source

Source: https://habr.com/ru/post/1784924/


All Articles