I. Illustration
Android is based on Linux and is different from what we normally think of Windows. Its file structure is similar to Linux, so its root directory is/, and then underneath is:
1. MNT: mount point directory, sdcard in the modified directory
2. Etc: System main configuration file
3. System:android System files
4. Sys:linux Kernel files
5. Proc: Runtime files
6. Init.rc: Startup script
7. Default.prop: System Properties configuration file
8. Data: User program Directory
9. Dev: Equipment files
Two. Introduction to each catalogue
This is the Android root directory under the directory, according to the previous partition structure can be roughly see the location of each directory and the approximate function,
Here is a description of several important catalogs/documents:
- MNT: mount point directory, sdcard in the modified directory
- ETC: System main configuration file
- System:android System files
- Sys:linux kernel files
- Proc: Run-time Files
- Init.rc: Startup script
- Default.prop: System Properties configuration file
- Data: User program Directory
- Dev: Device files
32 Kinds of File operations
1. Memory, file operation
Each application on the Android device has a directory of files placed in the sandbox. Saving a file in a sandbox prevents access to other applications. Each application's sandbox directory is a subdirectory of the device/data/data directory, and is named by the application package by default.
We use the Openfileoutput and Openfileinput APIs to manipulate the files, the build location is in the/data/data directory of the device/files under the subdirectory.
2.SD Card
Located in Mnt, mount point directory, sdcard in this directory. All we do with the getExternalStorageDirectory API are the files on that.