Users of Androi

Source: Internet
Author: User

Android Basic 4 types of users:

User type User Sub-string Uid Gid
Root Root 0 0
System System 1000 1000
Shell Shell 2000 2000
App Usernum_appnum uid>10000 gid>10000


App users, the GID you see may be u0_a0 and the like (Usernum_appnum)

(depending on the application, A0 is also a1,a2,a3 ....) Represents an app for User0)


What about the other non-integer user types? (Is it between these numbers?) )

Of course there are other, such as cache (for example gid=2001), nobody (gid=9999, but 9999 is not used) etc.

Some are used, and there is no, so there will be nobody


Like you went into the/DATA/DATA/COM.TENCENT.QQ directory.

Ls-l can see that the UID is u0_a59 GID is u0_a59


View Current User:

1. ADB shell (enter the shell environment)

2. WhoAmI (view user substring)

3. ID (see the user's specific information, such as UID, GID, groups, etc.)----This command more detailed

< Here's an example diagram >


View the UID & GID of a specific file? With Ls-l

For example:

Ls-l/system/app (you can see the UID and GID of the file here is root)

< Here's an example diagram >


Users of Androi

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.