-
Notifications
You must be signed in to change notification settings - Fork 12
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
Proccess is not given in android N #1
Comments
I think probably it will be user permission issue because adb shell's user id(uid) is different from your app's user id(uid) in (Android) Linux. This netstat command can succeed every system call when you run it in your adb shell. But, your app's some system call can fail even though your app runs it through shell. |
I appreciate your response to this issue .
|
I have checked this issue. Android application can't read "/proc" directory except for its own process directory in only Android N system. Because it fail to read other process's /proc directory(/proc/$PID), the process list is empty though netstat command is working in adb shell. If I find another solution, I will share it. |
Well , i have found a working solution . instead of packagename i return UID from netstat and from there , there is a command in packagemanager that returns packagename from UID |
Good job! Thanks for sharing your solution. |
Hello . execuring this netstat is fine with adb shell without root permission and it gives process name but when i try to get processname through shell in y application , the name pf the process is empty .
sample result from netstat executed inside application :
The text was updated successfully, but these errors were encountered: