CN114201262A - File calling method based on Android application file pool - Google Patents

File calling method based on Android application file pool Download PDF

Info

Publication number
CN114201262A
CN114201262A CN202111462680.5A CN202111462680A CN114201262A CN 114201262 A CN114201262 A CN 114201262A CN 202111462680 A CN202111462680 A CN 202111462680A CN 114201262 A CN114201262 A CN 114201262A
Authority
CN
China
Prior art keywords
android
application
application file
pool
file pool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111462680.5A
Other languages
Chinese (zh)
Inventor
雷小刚
贾宏伟
郭建君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Weiling Times Technology Co Ltd
Original Assignee
Beijing Weiling Times Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Weiling Times Technology Co Ltd filed Critical Beijing Weiling Times Technology Co Ltd
Priority to CN202111462680.5A priority Critical patent/CN114201262A/en
Publication of CN114201262A publication Critical patent/CN114201262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides a file calling method, a device, equipment and a computer readable storage medium based on an Android application file pool. The method comprises the steps of obtaining an installation program of an application and installing the installation program in an Android application file pool; receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool. In this way, the independent Android system can share one file of the game application, and therefore storage space of the server is reduced.

Description

File calling method based on Android application file pool
Technical Field
Embodiments of the present disclosure relate generally to the field of data processing, and more particularly, to a method, an apparatus, a device, and a computer-readable storage medium for file retrieval based on an Android application file pool.
Background
The container technology is a lightweight operating system level virtualization, and can enable an application service and a dependent item thereof to run in a resource isolation process. The components necessary to run the application service will be packaged as a mirror image and can be reused. Compared with virtual machines, because each virtual machine instance needs to run a complete copy of the operating system and a large number of application service programs contained therein, starting the operating system and initializing the application service programs take a while; while a container is a lightweight operating system that is much smaller in size than a full copy of the operating system (typically within 1M), and can be started in a few seconds. The method has the advantages of high deployment speed, high efficiency, safety and wider application range.
At present, the internal storage of a cloud Android game server application program using system manages Android applications, so that each Android system has an independent application program file, and the used storage resources are increased.
Disclosure of Invention
According to the embodiment of the disclosure, a file calling scheme based on an Android application file pool is provided.
In a first aspect of the disclosure, a file calling method based on an Android application file pool is provided. The method comprises the following steps:
acquiring an installation program of an application, and installing the installation program in an Android application file pool;
receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool.
Further, the Android application file pool comprises an application file storage directory.
Further, the user request includes application name information.
Further, the air conditioner is provided with a fan,
and judging whether an application program corresponding to the user request is installed in the Android application file pool or not according to the application name information in the user request.
Further, still include:
and if the opened Android container corresponding to the request exists, closing the Android container.
In a second aspect of the disclosure, a file retrieving device based on an Android application file pool is provided. The device includes:
the acquisition module is used for acquiring an installation program of the application and installing the installation program in the Android application file pool;
and the calling module is used for receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool.
Further, the Android application file pool comprises an application file storage directory.
Further, the user request includes application name information.
In a third aspect of the disclosure, an electronic device is provided. The electronic device includes: a memory having a computer program stored thereon and a processor implementing the method as described above when executing the program.
In a fourth aspect of the present disclosure, a computer readable storage medium is provided, having stored thereon a computer program, which when executed by a processor, implements a method as in accordance with the first aspect of the present disclosure.
According to the file calling method based on the Android application file pool, the installation program of the application is obtained and installed in the Android application file pool; receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, starting the application installed in the Android application file pool, enabling an independent Android system to commonly use a game application file, and reducing the storage space of a server.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 2 shows a flowchart of a file retrieval method based on an Android application file pool according to an embodiment of the present disclosure;
FIG. 3 shows a block diagram of an Android application file pool based file fetching device according to an embodiment of the present disclosure;
FIG. 4 illustrates a block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Fig. 1 shows an exemplary system architecture 100 to which an embodiment of an Android application file pool-based file retrieval method or an Android application file pool-based file retrieval apparatus according to the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a model training application, a video recognition application, a web browser application, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they may be various electronic devices with a display screen, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
When the terminals 101, 102, 103 are hardware, a video capture device may also be installed thereon. The video acquisition equipment can be various equipment capable of realizing the function of acquiring video, such as a camera, a sensor and the like. The user may capture video using a video capture device on the terminal 101, 102, 103.
The server 105 may be a server that provides various services, such as a background server that processes data displayed on the terminal devices 101, 102, 103. The background server may perform processing such as analysis on the received data, and may feed back a processing result (e.g., an identification result) to the terminal device.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. In particular, in the case where the target data does not need to be acquired from a remote place, the above system architecture may not include a network but only a terminal device or a server.
As shown in fig. 2, the method for retrieving a file based on an Android application file pool in the embodiment of the present application is shown in a flowchart. As can be seen from fig. 2, the file retrieving method based on the Android application file pool in the embodiment includes the following steps:
and S210, acquiring an installation program of the application, and installing the installation program in an Android application file pool.
The Android application file pool is a storage directory.
In this embodiment, an execution subject (for example, a server shown in fig. 1) of the file invoking method for the Android application file pool may acquire the installer in a wired manner or a wireless connection manner.
Further, the execution subject may acquire an installation program transmitted by an electronic device (for example, the terminal device shown in fig. 1) connected in communication therewith, or may be an installation program stored locally in advance.
In some embodiments, in the Android container manager, an Android container is created, and an Android application file pool is mounted;
starting the Android container, updating an application list in the Android container, and installing the application through the installation program; each container is deployed with a Service Manager (SM), and the SM can manage application services in the container.
Containers (containers) are a lightweight operating system virtualization technology that can efficiently partition resources managed by a single operating system into multiple, isolated groups of resources. Each of the containers is an isolated operating execution environment for the application to run. The applications in the container behave as if they were running on a separate operating system, but can share many of the underlying system resources.
Each container will be assigned to a container storage unit belonging to itself for holding private data of each container; multiple containers may share a Base storage unit.
In some embodiments, when an application in a container reads a file stored in the Base storage unit, the file may be read directly for access. When the application in the container writes the file stored in the Base storage unit, a copy-on-write mechanism is adopted, namely, a copy of the file is firstly established in the container storage unit, and then the copy of the file is written. Due to the adoption of the copy-on-write mechanism, when write operation is required, the write operation can be really started only by waiting for the completion of the establishment of the copy of the file in the container storage unit. This results in a write request not responding in time and is inefficient.
In the disclosure, the writing operation and the copy establishment are performed separately and simultaneously, on one hand, when an application in a certain container opens a file stored in a Base storage unit in a writable manner, the file copy establishment in a first container storage unit is started; on the other hand, the write operation is executed at the same time without waiting for the establishment of the copy, so that the storage efficiency of the container is improved.
S220, receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool.
The user request comprises name information of an application program to be started.
In some embodiments, a user request is received, whether an application program corresponding to the user request is installed in the Android application file pool or not is judged according to a program name in the user request, if so, an Android container is created, the Android application file pool (shared application installation directory) is mounted, and an application installed in the Android application file pool is started;
further, in order to improve the working efficiency of the system, before starting the application, the system process may be traversed, if there is an opened Android container corresponding to the request, the Android container is closed, otherwise, a corresponding program file is started from the Android application file pool.
According to the embodiment of the disclosure, the following technical effects are achieved:
by setting the Android application file pool, an independent Android system can share one game application file, and the storage space of the server is reduced.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 3 shows a block diagram of a file retrieving device 300 based on an Android application file pool according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus 300 includes:
the obtaining module 310 is configured to obtain an installation program of an application, and install the installation program in an Android application file pool;
the processing module 320 is configured to receive a user request, create an Android container if an application program corresponding to the user request is installed in the Android application file pool, mount the Android application file pool, and start an application installed in the Android application file pool.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
FIG. 4 shows a schematic block diagram of an electronic device 400 that may be used to implement embodiments of the present disclosure. As shown, device 400 includes a Central Processing Unit (CPU)401 that may perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM)402 or loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The CPU 401, ROM402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Processing unit 401 performs various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM402 and/or the communication unit 409. When loaded into RAM 403 and executed by CPU 701, may perform one or more of the steps of method 200 described above. Alternatively, in other embodiments, the CPU 401 may be configured to perform the method 200 in any other suitable manner (e.g., by way of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A file calling method based on an Android application file pool is characterized by comprising the following steps:
acquiring an installation program of an application, and installing the installation program in an Android application file pool;
receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool.
2. The method according to claim 1, wherein the Android application file pool comprises an application file storage directory.
3. The method of claim 2, wherein the user request includes application name information.
4. The method of claim 3,
and judging whether an application program corresponding to the user request is installed in the Android application file pool or not according to the application name information in the user request.
5. The method of claim 4, further comprising:
and if the opened Android container corresponding to the request exists, closing the Android container.
6. The utility model provides a file calling device based on Android application file pool which characterized in that includes:
the acquisition module is used for acquiring an installation program of the application and installing the installation program in the Android application file pool;
and the calling module is used for receiving a user request, if an application program corresponding to the user request is installed in the Android application file pool, creating an Android container, mounting the Android application file pool, and starting an application installed in the Android application file pool.
7. The apparatus according to claim 6, wherein the Android application file pool comprises an application file storage directory.
8. The apparatus of claim 7, wherein the user request comprises application name information.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202111462680.5A 2021-12-02 2021-12-02 File calling method based on Android application file pool Pending CN114201262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111462680.5A CN114201262A (en) 2021-12-02 2021-12-02 File calling method based on Android application file pool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111462680.5A CN114201262A (en) 2021-12-02 2021-12-02 File calling method based on Android application file pool

Publications (1)

Publication Number Publication Date
CN114201262A true CN114201262A (en) 2022-03-18

Family

ID=80650306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111462680.5A Pending CN114201262A (en) 2021-12-02 2021-12-02 File calling method based on Android application file pool

Country Status (1)

Country Link
CN (1) CN114201262A (en)

Similar Documents

Publication Publication Date Title
CN107943577B (en) Method and device for scheduling tasks
CN110389936B (en) Method, equipment and computer storage medium for starting small program
WO2017166447A1 (en) Method and device for loading kernel module
CN110457038B (en) Card display method, device and equipment of auxiliary application terminal and storage medium
CN109889875A (en) Communication means, device, terminal device and computer-readable medium
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN107077379A (en) A kind of virtual machine creation method and device
CN109582317B (en) Method and apparatus for debugging hosted applications
CN111488220A (en) Method and device for processing starting request and electronic equipment
CN107526623B (en) Data processing method and device
CN110968331A (en) Method and device for running application program
CN111240769A (en) Page starting method, device, equipment and storage medium
EP4060496A2 (en) Method, apparatus, device and storage medium for running inference service platform
CN115686805A (en) GPU resource sharing method and device, and GPU resource sharing scheduling method and device
CN107301220B (en) Method, device and equipment for data driving view and storage medium
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN111506393B (en) ARM-based virtualization device and use method thereof
CN111580883B (en) Application program starting method, device, computer system and medium
CN112433713A (en) Application program design graph processing method and device
CN112115738A (en) Image identification method and device applied to browser end
CN114201262A (en) File calling method based on Android application file pool
CN112181470B (en) Patch deployment method and device
CN114253671A (en) GPU pooling method of Android container

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination