CN111443983A - Application virtualization method and device, electronic equipment and storage medium - Google Patents
Application virtualization method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111443983A CN111443983A CN201910042068.9A CN201910042068A CN111443983A CN 111443983 A CN111443983 A CN 111443983A CN 201910042068 A CN201910042068 A CN 201910042068A CN 111443983 A CN111443983 A CN 111443983A
- Authority
- CN
- China
- Prior art keywords
- page
- request information
- response information
- application program
- page request
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000004044 response Effects 0.000 claims abstract description 127
- 238000004590 computer program Methods 0.000 claims description 11
- 239000000126 substance Substances 0.000 claims description 9
- 238000004458 analytical method Methods 0.000 claims description 7
- 230000007547 defect Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 15
- 230000003068 static effect Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 7
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Abstract
The embodiment of the invention discloses a virtualization method and device of an application program, electronic equipment and a storage medium; the method comprises the following steps: receiving first page request information sent by a current user through an Application layer of a current Application program; replacing the first page request information with second page request information; sending the second page request information to a system frame layer of the current application program; receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information; and returning the first page response information to the current user through the Application layer. The method and the device can not only ensure the use safety of the application program, but also improve the updating efficiency of the application program.
Description
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a virtualization method and apparatus for an application program, an electronic device, and a storage medium.
Background
In the prior art, a system structure of an Application program comprises an Application layer, a system Framework layer, an L Ibraries layer and a L inux Kemel layer, all business logics on the Application program run on the Application layer, and the Application layer directly communicates with the Framework layer.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
because the Application layer directly communicates with the Framework layer, a third-party Application program or an Application program pre-installed by a terminal manufacturer or an Application program with system level authority can obtain the privacy information of the Application program used by the current user by analyzing the static file of the Application program used by the current user in the Framework layer, so that the use safety of the Application program used by the current user cannot be ensured; moreover, when the application program currently used by the user is defect-repaired or service-updated, a new static file of the application program needs to be acquired in the Framework layer, which may seriously reduce the updating efficiency of the application program.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention provide a virtualization method and apparatus for an application program, an electronic device, and a storage medium, which can not only ensure the use safety of the application program, but also improve the update efficiency of the application program.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an application virtualization method, which is applied to an electronic device, and the method includes:
receiving first page request information sent by a current user through an Application layer of a current Application program;
replacing the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program;
receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information;
and returning the first page response information to the current user through the Application layer.
In the above embodiment, the replacing the first page request information with the second page request information includes:
determining second page request information corresponding to the first page request information in a corresponding relation of at least one page request information of the Framework layer stored in advance;
and replacing the first page request information with the second page request information corresponding to the first page request information.
In the foregoing embodiment, the replacing the second page response information with the first page response information includes:
determining the first page response information corresponding to the second page response information in the corresponding relationship of the page response information of the Application layer stored in advance;
and replacing the second page response information with the first page response information corresponding to the second page response information.
In the above embodiment, the method further comprises:
performing page statistics on the page operation of the current user in the current application program through the first page request information; or, performing path analysis on the page operation of the current user in the current application program through the first page request information; or, performing content replacement on the page operation of the current user in the current application program through the first page response information; or, performing defect repair on the page operation of the current user in the current application program through the first page response information.
In a second aspect, an embodiment of the present invention provides an apparatus for virtualizing an application, where the apparatus includes: the device comprises a receiving module and a sending module; wherein the content of the first and second substances,
the receiving module is used for receiving first page request information sent by a current user through an Application layer of a current Application program;
the sending module is used for replacing the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program;
the receiving module is further configured to receive second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information;
and the sending module is also used for returning the first page response information to the current user through the Application layer.
In the above embodiment, the sending module includes: a first determination submodule and a first replacement submodule;
wherein the content of the first and second substances,
the first determining submodule is configured to determine, in a correspondence relationship of at least one piece of page request information of the Framework layer that is stored in advance, the second page request information corresponding to the first page request information;
the first replacement submodule is configured to replace the first page request information with the second page request information corresponding to the first page request information.
In the above embodiment, the receiving module includes: a second determination submodule and a second replacement submodule;
wherein the content of the first and second substances,
the second determining submodule is configured to determine, in a correspondence relationship between page response information of the Application layer that is stored in advance, the first page response information corresponding to the second page response information;
the second replacement submodule is configured to replace the second page response information with the first page response information corresponding to the second page response information.
In the above embodiment, the receiving module is further configured to perform page statistics on the page operation of the current user in the current application program according to the first page request information; or, performing path analysis on the page operation of the current user in the current application program through the first page request information;
the sending module is further configured to replace content of the page operation of the current user in the current application program through the first page response information; or, performing defect repair on the page operation of the current user in the current application program through the first page response information.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the virtualization method of the application program according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a virtualization method for an application program according to any embodiment of the present invention.
The embodiment of the invention provides a virtualization method and device of an Application program, electronic equipment and a storage medium, which comprises the steps of firstly receiving first page request information sent by a current user through an Application layer of the current Application program; replacing the first page request information with second page request information; sending second page request information to a Framework layer of the current application program; then receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with the first page response information; and returning the first page response information to the current user through the Application layer. That is to say, in the technical solution of the present invention, the electronic device may virtualize an Application Framework layer between the Application layer and the Framework layer, and at this time, the Application layer communicates with the Framework layer through the virtualized Application Framework layer. In this way, the virtual Framework layer can acquire all service logics on the Framework layer; therefore, the virtual Framework layer can supervise and distribute all business logic of the Framework layer. In the existing virtualization method of the Application program, because the Application layer directly communicates with the Framework layer, the privacy information of the Application program being used by the current user can be obtained by analyzing the static file of the Application program being used by the current user in the Framework layer by the Application program of the third party or the Application program pre-installed in the factory of the terminal manufacturer or the Application program with the system level authority, so that the use safety of the Application program being used by the current user cannot be ensured; moreover, when the application program currently used by the user is defect-repaired or service-updated, a new static file of the application program needs to be acquired in the Framework layer, which may seriously reduce the updating efficiency of the application program. Therefore, compared with the prior art, the application virtualization method, the application virtualization device, the electronic device and the storage medium provided by the embodiment of the invention can not only ensure the use safety of the application, but also improve the update efficiency of the application; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Drawings
Fig. 1 is a flowchart illustrating a virtualization method for an application according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a virtualization method for an application according to a second embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a first structure of a virtualization apparatus for an application according to a third embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a second structure of a virtualization apparatus for an application according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example one
Fig. 1 is a flowchart illustrating a virtualization method for an application according to an embodiment of the present invention. As shown in fig. 1, the virtualization method of the application program may include the steps of:
In the specific embodiment of the invention, the electronic device may virtualize an Application Framework layer between the Application layer and the Framework layer, so that after the user sends the first page request information to the Application layer, the Application layer may send the received first page request information to the Application Framework layer instead of directly sending the first page request information to the Framework layer, and at this time, the Application layer communicates with the Framework layer through the virtualized Application Framework layer. In this way, the virtual Framework layer can acquire all service logics on the Framework layer; therefore, the virtual Framework layer can supervise and distribute all business logic of the Framework layer.
102, replacing the first page request information with second page request information; and sending the second page request information to a Framework layer of the current application program.
In an embodiment of the present invention, the electronic device may replace the first page request information with the second page request information; and sending the second page request information to a Framework layer of the current application program. Specifically, the electronic device may determine, in a correspondence relationship of at least one piece of page request information of a Framework layer stored in advance, second page request information corresponding to the first page request information; and then replacing the first page request information with second page request information corresponding to the first page request information.
In a specific embodiment of the present invention, the electronic device may receive second page response information returned by the Framework layer according to the second page request information; and replacing the second page response information with the first page response information. Specifically, the electronic device may determine, in the correspondence relationship of the page response information of the Application layer stored in advance, first page response information corresponding to the second page response information; and then replacing the second page response information with the first page response information corresponding to the second page response information.
And step 104, returning the first page response information to the current user through the Application layer.
In an embodiment of the present invention, the electronic device may return the first page response information to the current user through the Application layer.
Preferably, in the embodiment of the present invention, the electronic device may perform page statistics on the page operation of the current user in the current application program through the first page request information; or, the path analysis can be performed on the page operation of the current user in the current application program through the first page request information; or, the content of the page operation of the current user in the current application program can be replaced through the first page response information; or, the defect repair can be performed on the current page operation of the user in the current application program through the first page response information.
The virtualization method of the Application program provided by the embodiment of the invention comprises the steps of firstly receiving first page request information sent by a current user through an Application layer of the current Application program; replacing the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program; then receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with the first page response information; and returning the first page response information to the current user through the Application layer. That is to say, in the technical solution of the present invention, the electronic device may virtualize an Application Framework layer between the Application layer and the Framework layer, and at this time, the Application layer communicates with the Framework layer through the virtualized Application Framework layer. In this way, the virtual Framework layer can acquire all service logics on the Framework layer; therefore, the virtual Framework layer can supervise and distribute all business logic of the Framework layer. In the existing virtualization method of the Application program, because the Application layer directly communicates with the Framework layer, the privacy information of the Application program being used by the current user can be obtained by analyzing the static file of the Application program being used by the current user in the Framework layer by the Application program of the third party or the Application program pre-installed in the factory of the terminal manufacturer or the Application program with the system level authority, so that the use safety of the Application program being used by the current user cannot be ensured; moreover, when the application program currently used by the user is defect-repaired or service-updated, a new static file of the application program needs to be acquired in the Framework layer, which may seriously reduce the updating efficiency of the application program. Therefore, compared with the prior art, the virtualization method of the application program provided by the embodiment of the invention can not only ensure the use safety of the application program, but also improve the updating efficiency of the application program; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 2 is a flowchart illustrating a virtualization method for an application according to a second embodiment of the present invention. As shown in fig. 2, the virtualization method of the application program may include the steps of:
In the specific embodiment of the invention, the electronic device may virtualize an Application Framework layer between the Application layer and the Framework layer, so that after the user sends the first page request information to the Application layer, the Application layer may send the received first page request information to the Application Framework layer instead of directly sending the first page request information to the Framework layer, and at this time, the Application layer communicates with the Framework layer through the virtualized Application Framework layer. In this way, the virtual Framework layer can acquire all service logics on the Framework layer; therefore, the virtual Framework layer can supervise and distribute all business logic of the Framework layer.
In a specific embodiment of the present invention, the electronic device may determine, in a correspondence relationship of at least one piece of page request information of a Framework layer stored in advance, second page request information corresponding to the first page request information. For example, in the correspondence relationship of at least one piece of page request information of the Framework layer which is preselectively stored, it is assumed that the first page request information is page request information a, and the second page request information corresponding to the first page request information is page request information B. In this step, the electronic device may determine, in a correspondence relationship of at least one piece of page request information of the Framework layer stored in advance, page request information B corresponding to the page request information a.
In an embodiment of the present invention, the electronic device may replace the first page request information with second page request information corresponding to the first page request information. Specifically, the electronic device may intercept the first page response information first; then replacing the first page request information with second page request information corresponding to the first page request information; and sending the second page request information to a Framework layer of the current application program.
In a specific embodiment of the present invention, the electronic device may receive second page response information returned by the Framework layer according to the second page request information; and determining first page response information corresponding to the second page response information in the corresponding relation of the page response information of the Application layer stored in advance. For example, it is assumed that, in the correspondence relationship of the page response information of the Application layer stored in advance, the second page response information is page response information C, and the first page response request information corresponding to the second page response information is page request information D. In this step, the electronic device may determine the page response information D corresponding to the page response information C in the correspondence relationship of the page response information of the Application layer that is stored in advance.
And step 205, replacing the second page response information with the first page response information corresponding to the second page response information.
In a specific embodiment of the present invention, the electronic device may replace the second page response information with the first page response information corresponding to the second page response information. Specifically, the electronic device may intercept the second page response information first; and then replacing the second page response information with the first page response information corresponding to the second page response information.
And step 206, returning the first page response information to the current user through the Application layer.
In an embodiment of the present invention, the electronic device may return the first page response information to the current user through the Application layer. Preferably, in the embodiment of the present invention, the electronic device may perform page statistics on the page operation of the current user in the current application program through the first page request information; or, the path analysis can be performed on the page operation of the current user in the current application program through the first page request information; or, the content of the page operation of the current user in the current application program can be replaced through the first page response information; or, the defect repair can be performed on the current page operation of the user in the current application program through the first page response information.
The virtualization method of the Application program provided by the embodiment of the invention comprises the steps of firstly receiving first page request information sent by a current user through an Application layer of the current Application program; replacing the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program; then receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with the first page response information; and returning the first page response information to the current user through the Application layer. That is to say, in the technical solution of the present invention, the electronic device may virtualize an Application Framework layer between the Application layer and the Framework layer, and at this time, the Application layer communicates with the Framework layer through the virtualized Application Framework layer. In this way, the virtual Framework layer can acquire all service logics on the Framework layer; therefore, the virtual Framework layer can supervise and distribute all business logic of the Framework layer. In the existing virtualization method of the Application program, because the Application layer directly communicates with the Framework layer, the privacy information of the Application program being used by the current user can be obtained by analyzing the static file of the Application program being used by the current user in the Framework layer by the Application program of the third party or the Application program pre-installed in the factory of the terminal manufacturer or the Application program with the system level authority, so that the use safety of the Application program being used by the current user cannot be ensured; moreover, when the application program currently used by the user is defect-repaired or service-updated, a new static file of the application program needs to be acquired in the Framework layer, which may seriously reduce the updating efficiency of the application program. Therefore, compared with the prior art, the virtualization method of the application program provided by the embodiment of the invention can not only ensure the use safety of the application program, but also improve the updating efficiency of the application program; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
EXAMPLE III
Fig. 3 is a schematic diagram of a first structure of a virtualization apparatus for an application according to a third embodiment of the present invention. As shown in fig. 3, the virtualization apparatus for an application according to an embodiment of the present invention may include: a receiving module 301 and a transmitting module 302; wherein the content of the first and second substances,
the receiving module 301 is configured to receive first page request information sent by a current user through an Application layer of a current Application program;
the sending module 302 is configured to replace the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program;
the receiving module 301 is further configured to receive second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information;
the sending module 302 is further configured to return the first page response information to the current user through the Application layer.
Fig. 4 is a schematic diagram of a second structure of a virtualization apparatus for an application according to a third embodiment of the present invention. As shown in fig. 4, the sending module 302 includes: a first determination submodule 3021 and a first replacement submodule 3022; wherein the content of the first and second substances,
the first determining sub-module 3021 is configured to determine, in a correspondence relationship between at least one piece of page request information of the Framework layer that is stored in advance, the second page request information corresponding to the first page request information;
the first replacing sub-module 3022 is configured to replace the first page request information with the second page request information corresponding to the first page request information.
Further, the receiving module 301 includes: a second determination sub-module 3011 and a second replacement sub-module 3012; wherein the content of the first and second substances,
the second determining sub-module 3011, configured to determine, in a correspondence relationship between page response information of the Application layer that is stored in advance, the first page response information corresponding to the second page response information;
the second replacing sub-module 3012 is configured to replace the second page response information with the first page response information corresponding to the second page response information.
Further, the receiving module 301 is further configured to perform page statistics on the page operation of the current user in the current application program according to the first page request information; or, performing path analysis on the page operation of the current user in the current application program through the first page request information;
the sending module 302 is further configured to perform content replacement on the page operation of the current user in the current application program through the first page response information; or, performing defect repair on the page operation of the current user in the current application program through the first page response information.
The virtualization device of the application program can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a virtualization method for an application provided in any embodiment of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a virtualization method of an application program provided by an embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the invention provides a computer storage medium.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. A virtualization method of an application program, applied to an electronic device, the method comprising:
receiving first page request information sent by a current user through an Application layer of a current Application program;
replacing the first page request information with second page request information; sending the second page request information to a system frame layer of the current application program;
receiving second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information;
and returning the first page response information to the current user through the Application layer.
2. The method of claim 1, wherein replacing the first page request information with second page request information comprises:
determining second page request information corresponding to the first page request information in a corresponding relation of at least one page request information of the Framework layer stored in advance;
and replacing the first page request information with the second page request information corresponding to the first page request information.
3. The method of claim 1, wherein replacing the second page response information with the first page response information comprises:
determining the first page response information corresponding to the second page response information in the corresponding relationship of the page response information of the Application layer stored in advance;
and replacing the second page response information with the first page response information corresponding to the second page response information.
4. The method of claim 1, further comprising:
performing page statistics on the page operation of the current user in the current application program through the first page request information; or, performing path analysis on the page operation of the current user in the current application program through the first page request information; or, performing content replacement on the page operation of the current user in the current application program through the first page response information; or, performing defect repair on the page operation of the current user in the current application program through the first page response information.
5. An apparatus for virtualizing an application, the apparatus comprising: the device comprises a receiving module and a sending module; wherein the content of the first and second substances,
the receiving module is used for receiving first page request information sent by a current user through an Application layer of a current Application program;
the sending module is used for replacing the first page request information with second page request information; sending the second page request information to a Framework layer of the current application program;
the receiving module is further configured to receive second page response information returned by the Framework layer according to the second page request information; replacing the second page response information with first page response information;
and the sending module is also used for returning the first page response information to the current user through the Application layer.
6. The apparatus of claim 5, wherein the sending module comprises: a first determination submodule and a first replacement submodule; wherein the content of the first and second substances,
the first determining submodule is configured to determine, in a correspondence relationship of at least one piece of page request information of the Framework layer that is stored in advance, the second page request information corresponding to the first page request information;
the first replacement submodule is configured to replace the first page request information with the second page request information corresponding to the first page request information.
7. The apparatus of claim 5, wherein the receiving module comprises: a second determination submodule and a second replacement submodule; wherein the content of the first and second substances,
the second determining submodule is configured to determine, in a correspondence relationship between page response information of the Application layer that is stored in advance, the first page response information corresponding to the second page response information;
the second replacement submodule is configured to replace the second page response information with the first page response information corresponding to the second page response information.
8. The apparatus according to claim 5, wherein the receiving module is further configured to perform page statistics on page operations of the current user in the current application through the first page request information; or, performing path analysis on the page operation of the current user in the current application program through the first page request information;
the sending module is further configured to replace content of the page operation of the current user in the current application program through the first page response information; or, performing defect repair on the page operation of the current user in the current application program through the first page response information.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a virtualization method for an application program as recited in any of claims 1-4.
10. A storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of virtualizing an application program as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910042068.9A CN111443983B (en) | 2019-01-16 | Application program virtualization method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910042068.9A CN111443983B (en) | 2019-01-16 | Application program virtualization method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111443983A true CN111443983A (en) | 2020-07-24 |
CN111443983B CN111443983B (en) | 2024-04-26 |
Family
ID=
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030014500A1 (en) * | 2001-07-10 | 2003-01-16 | Schleiss Trevor D. | Transactional data communications for process control systems |
US20040148338A1 (en) * | 2001-11-16 | 2004-07-29 | John Saare | Method and system for an extensible client specific address book application in a portal server |
CN101183395A (en) * | 2007-12-25 | 2008-05-21 | 北京中企开源信息技术有限公司 | Method and system for realizing staticize of dynamic page |
CN103139258A (en) * | 2011-11-30 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | Method and device and system for processing page access requests of mobile terminal |
CN103136238A (en) * | 2011-11-28 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page |
CN103577321A (en) * | 2012-08-07 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Multi-version parallel test method for web pages and server |
CN108415782A (en) * | 2018-02-23 | 2018-08-17 | 携程旅游网络技术(上海)有限公司 | Control communication means, device, electronic equipment, the storage medium of application program |
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030014500A1 (en) * | 2001-07-10 | 2003-01-16 | Schleiss Trevor D. | Transactional data communications for process control systems |
US20040148338A1 (en) * | 2001-11-16 | 2004-07-29 | John Saare | Method and system for an extensible client specific address book application in a portal server |
CN101183395A (en) * | 2007-12-25 | 2008-05-21 | 北京中企开源信息技术有限公司 | Method and system for realizing staticize of dynamic page |
CN103136238A (en) * | 2011-11-28 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page |
CN103139258A (en) * | 2011-11-30 | 2013-06-05 | 百度在线网络技术(北京)有限公司 | Method and device and system for processing page access requests of mobile terminal |
CN103577321A (en) * | 2012-08-07 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Multi-version parallel test method for web pages and server |
CN108415782A (en) * | 2018-02-23 | 2018-08-17 | 携程旅游网络技术(上海)有限公司 | Control communication means, device, electronic equipment, the storage medium of application program |
Non-Patent Citations (2)
Title |
---|
ZELJKO STOJANOV等: ""Extending data-driven model of software with software change request service"", 《ENTERPRISE INFORMATION SYSTEMS》, pages 982 - 1006 * |
王丽: ""基于Android平台CUDA程序移植的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑888》, pages 138 - 820 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325195B (en) | Rendering method and system for browser, computer device and computer storage medium | |
CN109213611B (en) | Cross-process communication method, device, terminal and storage medium | |
US10467135B2 (en) | Multi-section garbage collection | |
US9734053B2 (en) | Garbage collection handler to update object pointers | |
US9747203B2 (en) | Multi-section garbage collection system including multi-use source register | |
US20170004074A1 (en) | Garbage collection absent use of special instructions | |
CN111897694A (en) | Method, device and equipment for processing messages in applet and storage medium | |
CN112346794A (en) | Interface calling method, device, equipment and medium | |
US20180203726A1 (en) | Virtual machine migration method and apparatus | |
US20180052700A1 (en) | Facilitation of guest application display from host operating system | |
US11249760B2 (en) | Parameter management between programs | |
US8762126B2 (en) | Analyzing simulated operation of a computer | |
CN111443983A (en) | Application virtualization method and device, electronic equipment and storage medium | |
CN110908882A (en) | Performance analysis method and device of application program, terminal equipment and medium | |
CN111443983B (en) | Application program virtualization method and device, electronic equipment and storage medium | |
CN111862052B (en) | Method, device, equipment and medium for detecting gap | |
CN113127050B (en) | Application resource packaging process monitoring method, device, equipment and medium | |
CN110633190B (en) | Application program memory monitoring method, device, equipment and storage medium | |
CN109634636B (en) | Application processing method, device, equipment and medium | |
CN110032595B (en) | Data processing method, system, equipment and storage medium | |
CN109213569B (en) | Auditing method and device based on virtual machine, server and storage medium | |
CN112364268A (en) | Resource acquisition method and device, electronic equipment and storage medium | |
CN114996169B (en) | Device diagnosis method, device, electronic device, and storage medium | |
CN110602162B (en) | Terminal evidence obtaining method, device, equipment and storage medium | |
CN113778350A (en) | Log printing method and device |
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 | ||
GR01 | Patent grant |