Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Q removes access to /proc/net #65

Open
dhnasa opened this issue Mar 14, 2019 · 3 comments
Open

Android Q removes access to /proc/net #65

dhnasa opened this issue Mar 14, 2019 · 3 comments

Comments

@dhnasa
Copy link

dhnasa commented Mar 14, 2019

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
Copy link
Member

Kamuno commented Mar 14, 2019

Thanks for pointing this out.

@Baerbeisser
Copy link

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
Copy link

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?

private static final String commandTcp = "cat /proc/net/tcp";
private static final String commandTcp6 = "cat /proc/net/tcp6";
private static final String commandUdp = "cat /proc/net/udp";
private static final String commandUdp6 = "cat /proc/net/udp6";

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@Kamuno @Baerbeisser @dhnasa @mcg-android and others