Conversation

Replying to
I helped to upstream hidepid=2 in Android a few years ago. It's largely obsoleted now that API 28+ apps each have a unique SELinux MLS context. It's still useful for API < 28 apps since their per-user MLS context allows them to see each other's processes within the same profile.
2
3
Replying to
Can see where it's enabled here: android.googlesource.com/platform/syste init then gives itself the gid exception, and adb has and exception too: android.googlesource.com/platform/syste Also used to gate access to low-level IPC APIs offering similar information. It's a nice example of how to deploy it.
2