How many UIDs can I use on Android?

I know that there are several system user identifiers and a number of UIDs that correspond to user applications. Therefore, I have the following questions:

  • How many system UIDs are there on Android? And what range are these UIDs?
  • What is the maximum number of applications that have a UID? What is the range (I know that all UIDs of an application start with 10000).
+5
source share
2 answers

According to system / core / include / private / android_filesystem_config.h , 0 for root (obviously), UIDs 1000-9999 (from AID_SYSTEMto AID_NOBODY) are reserved by the system. And, as the documentation says , the UID range reserved for user applications is 10000-99999 (from FIRST_APPLICATION_UIDto LAST_APPLICATION_UID).

Update: Starting with Android 4.1.1, the UID range reserved for user applications is 10000-19999.

+7
source

I think these are 4 byte integers. Not sure whether it is signed or not - in any case, there are enough of them;)

0
source

All Articles