Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2022-07-05
KYLIN CORP
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present application provides a method and system for Android to access Linux local directories and files, so as to solve the problem that existing Android applications running under a Linux system compatible with Android cannot share Linux files or documents, so that Linux Technical issues for deeper integration with Android

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for Android to access Linux local directories and files
  • Method and system for Android to access Linux local directories and files
  • Method and system for Android to access Linux local directories and files

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application discloses a method and system for Android to access Linux local directories and files. Several file directories are created in the Linux system, directories are mounted in the Linux system, and user data directories created during runtime are mapped in the Linux system through instructions. Go to the user data directory of the Android system, and virtualize the memory card mount directory under the user data directory of the Android system into a virtual device node of the fuse system on the linux system, and the virtual device node of the fuse system on the linux system will be mounted to the storage of the Android system. Card directory, the Android application accesses files in the local directory of the Linux system through the Android system's memory card directory or performs file transfer and sharing. Solve the technical problem that Android applications running under a Linux system compatible with Android cannot share Linux files or documents, so that Linux and Android can achieve more in-depth integration.

Description

technical field [0001] The present application relates to the technical field of file sharing on Android systems, and in particular, to a method and system for Android to access Linux local directories and files. Background technique [0002] In recent years, with the growth of Android users and the maturity and development of Android hardware and software products, the Android application ecosystem has shown explosive development. In many fields, it has surpassed the Windows application ecosystem and iOS application ecosystem, and has become the most widely used application ecosystem. . Android is developed based on the Linux kernel, and has an excellent ecological environment in the field of mobile terminals; Windows systems have huge security risks in information network security; and Linux operating system, as the predecessor of Android, due to the number of developers and market share. restrictions, development is relatively slow, the ecological environment has been in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/13G06F16/176
CPCG06F16/13G06F16/176
Inventor 黄彩龙马超李翔黄晟杨硕彭韬游远赵坤谢辉军杨陈博寰
Owner KYLIN CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products