SecUSo / privacy-friendly-netmonitor

Privacy Friendly App that shows active network connections of installed apps.
GNU General Public License v3.0
156 stars 33 forks source link

Android Q removes access to /proc/net #65

Open dhnasa opened 5 years ago

dhnasa commented 5 years ago

Android Q removes access to /proc/net, which includes information about a device's network state. Apps that need access to this information, such as VPNs, should refer to the NetworkStatsManager and ConnectivityManager classes.

https://developer.android.com/preview/privacy/data-identifiers#proc-net-filesystem

This app will not work in its current state on Android Q

Kamuno commented 5 years ago

Thanks for pointing this out.

Baerbeisser commented 3 years ago

As a workaround, could you detect if the device is rooted and if so, acccess /proc/net with root permissions? This way at least rooted devices with Android Q+ will be able to enjoy this app.

mcg-android commented 1 year ago

As a workaround, could you detect if the device is rooted and if so, acccess /proc/net with root permissions?

Should the only required change be to wrap these cat calls in /bin/su? https://github.com/SecUSo/privacy-friendly-netmonitor/blob/a233d13631fc70ce6c64fd6aea48ebe6682c6664/app/src/main/java/org/secuso/privacyfriendlynetmonitor/ConnectionAnalysis/Detector.java#L74-L77

Is anybody aware of such a fork being maintained (and published on F-Droid)?