Method and system for Android to access Linux local directories and files
An Android system, directory technology, applied in the file system, file access structure, instruments, etc., can solve problems such as inability to share Linux files or documents
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] For ease of understanding, see Figure 1 to Figure 3 , an embodiment of a method for Android to access Linux local directories and files provided by this application, the method for Android to access Linux local directories and files is applied to the Linux compatible Android system, and the Linux compatible Android system includes the Linux system and runs on the Linux system. on the Android system, including the following steps:
[0052] Step 101, create several file directories in the Linux system, including: a shared directory, an internal storage directory, a system file directory and a system mobile storage device directory;
[0053] Create several file directories in the Linux system, including / var / lib / kmre / data / kmre-uid-username (shared directory), / var / lib / kmre / kmre-uid-username / data / media / 0 (Android internal storage directory), / var / lib / kmre / kmre-uid-username / data / media / 0 / 0-kylin file (kylin file directory), / var / lib / kmre / kmre-uid-username / data / media / 0 / 0-K...
Embodiment 2
[0067] For ease of understanding, see Figure 1 to Figure 3 , as the further improvement of embodiment 1, create several file directories in Linux system, comprise the following steps:
[0068] Step 1011, create a running change data storage directory in the Linux system, and newly create a directory corresponding to a compatible environment name, a corresponding user id and a corresponding user name under the running change data storage directory;
[0069] Create a directory corresponding to the compatible environment name, the corresponding user id and the corresponding user name under / var / lib / (the directory where the data to be changed is saved and created when the Linux system is running);
[0070] Step 1012: Set the corresponding authority and owner for the newly created directory corresponding to the compatible environment name, the corresponding user id, and the corresponding user name.
Embodiment 3
[0072] For ease of understanding, see Figure 1 to Figure 3 , as a further improvement of Embodiment 1, the directory mounting is performed in the Linux system, including the following steps:
[0073] Step 1021, use the api of fuse and fuse3 to write the fuse interface instruction binary;
[0074] Step 1022, by judging whether the file access command is fuse3;
[0075] By judging the / bin / fusermount (a tool that comes with the fuse system on the linux system, used for file system access) command, it is judged whether it is fuse3 or not. Among them, fuse or fuse3 may exist in the same system. Use the command Judgment, to determine whether the system used on the system is fuse3;
[0076] If it is fuse3, use the api of fuse3 to write the fuse interface instruction binary to mount the directory;
[0077] If it is fuse3, use fuse3's api to write the fuse interface instruction binary to mount the directory, and the -u parameter when mounting / var / lib / kmre / kmre-uid-username / data / med...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com