Android UIDs
- Android does not have /etc/passwd, /etc/shadow, and /etc/group
files.
- The file named android-filesystem-config.h in the AOSP source tree
has the equivalent defines.
- E.g.,
#define AID_ROOT 0 /* traditional unix root user */
#define AID_GPS 1021 /* GPS daemon */
% adb shell
The rest of what is shown below is within AVD pmNX5a.
root@generic:/ # ls -l /acct/uid
shows "uid" directories
root@generic:/ # more /data/system/packages.list
shows how the
application name is tied up with uid/gid.
- Ex:
com.android.keyguard 10007 0 /data/data/com.android.keyguard platform 1028,1015,1035,3002,3001
- Every app gets its own uid, distinct from all other apps. App uid
do not remain the same across all Android devices.
Copyright © 2017
www.wright.edu/~pmateti 2017-08-13