Android has a system media service, which process name is android.process.media. It has sharedUserId=android.media, and id of process itself is simply app_xx. In the absence of the shell commands groups, useradd, and proper-functional id i don’t have any idea how to get it.
Android has a system media service, which process name is android.process.media . It has
Share
In short:
Android platform uses a hard-coded list of user and group IDs which is stored in the file called “android_filesystem_config.h”.
Most of system services have the same gids as SystemServer process which GIDs are hard-coded in it’s main() function in Zygote.
Additional GIDs are mapped in permissions.xml to Android permissions. There’re also special permissions for ADB root user, Media service, etc. are set in this file.