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 10及以上系统,流量是全局流量,而不是当前进程流量 #17

Open
luoshengheng opened this issue Jan 17, 2022 · 0 comments

Comments

@luoshengheng
Copy link

Android 10以下系统:通过/proc/net/xt_qtaguid,可以获取到当前进程的流量
Android 10及以上系统:/proc/net/xt_qtaguid不存在了,只能通过/proc/{pid}/net/dev获取流量,但该方法获取的是全局流量

@luoshengheng luoshengheng changed the title Android 10及以上系统,流量是全局流量,而不是当前流量 Android 10及以上系统,流量是全局流量,而不是当前进程流量 Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant