21

If not, how does android determine whether a user belongs to a certain group?

ekad
  • 14,436
  • 26
  • 44
  • 46
sunway
  • 237
  • 1
  • 2
  • 7
  • 1
    Related question on android.SE: [How to know app name by UID](http://android.stackexchange.com/q/8452/17994) – Lekensteyn Jun 29 '13 at 14:29

1 Answers1

8

This thread discusses how that is done: http://groups.google.com/group/android-ndk/browse_thread/thread/adddb27c1a5438e9

It contains a broken link to a git repository though, you can find a list of name and IDs in https://android.googlesource.com/platform/system/core.git/+/master/include/private/android_filesystem_config.h.

Lekensteyn
  • 64,486
  • 22
  • 159
  • 192
Mojo Risin
  • 8,136
  • 5
  • 45
  • 58
  • Working link of the relevant file in the most recent version of Android at the time of posting this comment: https://android.googlesource.com/platform/system/core/+/refs/heads/android13-release/libcutils/include/private/android_filesystem_config.h – Msprg Jan 12 '23 at 13:22