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

Method and system for accessing Linux local directory and file by Android

An Android system, directory technology, applied in the file system, file access structure, digital data information retrieval and other directions, can solve problems such as inability to share Linux files or documents

Active Publication Date: 2022-03-15
KYLIN CORP
View PDF12 Cites 1 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 accessing Linux local directory and file by Android
  • Method and system for accessing Linux local directory and file by Android
  • Method and system for accessing Linux local directory and file by Android

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 accessing Linux local directories and files provided by the application, the method for Android accessing Linux local directories and files is applied to a Linux compatible Android system, and a Linux compatible Android system includes a Linux system and a system running on a Linux system on the Android system, including the following steps:

[0052] Step 101, create several file directories in the Linux system, including: shared directory, internal storage directory, system file directory and 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-Kylin mo...

Embodiment 2

[0067] For ease of understanding, see Figure 1 to Figure 3 , as a further improvement of Embodiment 1, several file directories are created in the Linux system, including the following steps:

[0068] Step 1011, create a running change data storage directory in the Linux system, and newly create a directory corresponding to the compatible environment name, the corresponding user id, and the corresponding user name under the running change data saving 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 created to save the data to be changed when the linux system is running);

[0070] Step 1012, setting 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 in the Linux system includes the following steps:

[0073] Step 1021, respectively use the api of fuse and fuse3 to write fuse interface instruction binary;

[0074] Step 1022, judge whether it is fuse3 by judging the file access command;

[0075] Judging whether it is fuse3 or not by judging the command of / bin / fusermount (the tool that comes with the fuse system on the linux system, used for file system access), among them, it may appear that fuse or fuse3 is used in the same system, through the command Judgment, to judge whether the system is fuse3;

[0076] If it is fuse3, use the api of fuse3 to write the fuse interface command binary to mount the directory;

[0077] If it is fuse3, use the fuse3 api to write fuse interface instruction binary to mount the directory, among which the -u parameter when mounting / var / lib / kmre / kmre-uid-username / data / m...

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 invention discloses a method and a system for accessing Linux local directories and files by android, a plurality of file directories are created in a Linux system, directory mounting is performed in the Linux system, a user data directory created during operation is mapped to a user data directory of an android system through an instruction in the Linux system, and the user data directory of the android system is mapped to the user data directory of the android system. A memory card mounting catalog under a user data catalog of an Android system is virtualized into a fuse system virtual device node on a linux system, the fuse system virtual device node on the linux system is mounted to a memory card catalog of the Android system, and an Android application accesses a file of a local catalog of the Linux system or transmits and shares the file through the memory card catalog of the Android system. The technical problem that Linux files or documents cannot be shared by an Android application program running in a Linux system compatible with Android running, and Linux and Android are fused more deeply is solved.

Description

technical field [0001] This application relates to the technical field of file sharing on the Android system, 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 software and hardware products, the Android application ecosystem has shown explosive development. In many fields, it has surpassed the Windows application ecosystem and the 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; the Windows system has huge security risks in information network security; and the Linux operating system, as the predecessor of Android, due to the number of developers and market share Restricted, the development is relatively slow, and the ecological environment has be...

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