Android Advanced file access rights

Source: Internet
Author: User

Android is Linux-based, so file access rights are the same as Linux. where R stands for readable, W stands for writable, and X represents executable.



File access rights are divided into three groups.

1-3 Current User (app) access rights.

4-6 access rights for the current user's group.

7-9 other User (app) access rights.

The Android app is a standalone user that corresponds to a separate group.



You can view user groups and user IDs by using the following directives:




To force modification of file access permissions:

----------(first-represents the directory, followed by three groups of permissions-on behalf of 0)-rw-------(on behalf of the current user readable writable) (corresponds to the decimal-----"0")-rw-rw-rw-(Global readable writable)---------- > 0 666 So you can change the file access via adb SehlL in the mobile terminal using chmod instructions, thecd+ package name is as follows:


Android Advanced file access rights

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.