CN111679835A - Application processing method, device, terminal and storage medium - Google Patents

Application processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN111679835A
CN111679835A CN202010340911.4A CN202010340911A CN111679835A CN 111679835 A CN111679835 A CN 111679835A CN 202010340911 A CN202010340911 A CN 202010340911A CN 111679835 A CN111679835 A CN 111679835A
Authority
CN
China
Prior art keywords
installation package
app installation
target app
resource
target
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
CN202010340911.4A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010340911.4A priority Critical patent/CN111679835A/en
Publication of CN111679835A publication Critical patent/CN111679835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

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

Abstract

The invention discloses an application program processing method, an application program processing device, a terminal and a storage medium, wherein the application program processing method comprises the following steps: when a target operation instruction triggered by a target APP installation package is detected, the target APP installation package is operated, and the target APP installation package is obtained by carrying out reduction processing operation on a resource file without reference in a source APP installation package; monitoring the operation process of the target APP installation package, and determining whether resource files necessary for operation are missing in the target APP installation package; if so, sending a resource acquisition request to the server, wherein the resource acquisition request is used for requesting to acquire resource files required by operation; and running the target APP installation package based on the resource files returned by the server and necessary for running. Therefore, the terminal can timely sense and position details of the missing resources in the APP installation package, and sends the corresponding missing resources to the server request, so that the resources are deleted by mistake in a regression mode, and the problems of APP breakdown, operation errors and the like caused by mistaken deletion of the resources are avoided.

Description

Application processing method, device, terminal and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application processing method, an application processing apparatus, a terminal, and a storage medium.
Background
With the rapid development of internet technology, the update iteration speed of an APP (Application) is faster and faster, multiple versions of the APP iterate so that the size of an APP installation package is also iterated along with the increment, and an oversized APP installation package occupies more storage space and consumes more download traffic, so that optimization of the APP installation package becomes a problem to be solved by those skilled in the art.
In the prior art, when optimizing an APP installation package, the optimization is mainly realized by deleting some resources in the APP installation package. Although the prior art can realize the reduction of the APP installation package to a certain extent, because the deleted resource may be the resource essential for the APP operation, when the terminal operates the APP based on the reduced APP installation package, the problems of APP breakdown, operation error and the like are easily generated.
Disclosure of Invention
Embodiments of the present invention provide an application processing method, an application processing device, a terminal, and a storage medium, so as to solve technical problems of APP crash and operation errors caused by mistaken deletion of resources in an APP installation package in the prior art.
According to a first aspect of the present invention, an application processing method is disclosed, which is applied to a terminal, and the method comprises:
when a target operation instruction triggered by a target application program APP installation package is detected, operating the target APP installation package, wherein the target APP installation package is an installation package obtained by performing reduction processing operation on a resource file without reference in a source APP installation package;
monitoring the operation process of the target APP installation package, and determining whether resource files necessary for operation are lost in the target APP installation package;
if the resource files necessary for operation are missing in the target APP installation package, sending a resource acquisition request to a server, wherein the resource acquisition request is used for requesting to acquire the resource files necessary for operation from the server;
and running the target APP installation package based on the resource files which are returned by the server and are necessary for running.
Optionally, as an embodiment, the resource file is a picture file.
Optionally, as an embodiment, the monitoring the running process of the target APP installation package, and determining whether a resource file necessary for running is missing in the target APP installation package includes:
monitoring all picture loading interfaces corresponding to the target APP installation package;
if it is monitored that at least one picture loading interface corresponding to the target APP installation package fails to load pictures, determining that pictures necessary for operation are missing in the target APP installation package, wherein the pictures necessary for operation are the pictures which fail to be loaded;
if it is monitored that all the picture loading interfaces corresponding to the target APP installation package successfully load pictures, determining that pictures necessary for operation are not missing in the target APP installation package.
Optionally, as an embodiment, the reduction processing operation includes:
deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
Optionally, as an embodiment, the running the target APP installation package based on the resource file returned by the server and necessary for running includes:
receiving the resource file which is returned by the server and is necessary for running;
storing the resource files required by the operation into a preset folder of the target APP installation package;
and loading the resource files required by the operation from the preset folder, and operating the target APP installation package.
According to a second aspect of the present invention, an application processing apparatus applied to a terminal is disclosed, the apparatus comprising:
the running module is used for running a target APP installation package when a target running instruction triggered by the target APP installation package is detected, wherein the target APP installation package is obtained by performing reduction processing operation on a resource file without reference in a source APP installation package;
the determining module is used for monitoring the running process of the target APP installation package and determining whether the resource files required by running are missing in the target APP installation package;
a sending module, configured to send a resource obtaining request to a server if a determination result of the determining module is yes, where the resource obtaining request is used to request to obtain a resource file necessary for the operation from the server;
and the processing module is used for operating the target APP installation package based on the resource file which is returned by the server and is necessary for operation.
Optionally, as an embodiment, the resource file is a picture file.
Optionally, as an embodiment, the determining module includes:
the monitoring submodule is used for monitoring all picture loading interfaces corresponding to the target APP installation package;
the first determining submodule is used for determining that pictures necessary for operation are missed in the target APP installation package under the condition that at least one picture loading interface corresponding to the target APP installation package fails to load the pictures, wherein the pictures necessary for operation are the pictures which fail to load;
and the second determining submodule is used for determining that the pictures required by operation are not missed in the target APP installation package under the condition that all picture loading interfaces corresponding to the target APP installation package are monitored to be successful in picture loading.
Optionally, as an embodiment, the reduction processing operation includes:
deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
Optionally, as an embodiment, the processing module includes:
the receiving submodule is used for receiving the resource file which is returned by the server and is necessary for operation;
the storage submodule is used for storing the resource files required by the operation into a preset folder of the target APP installation package;
and the loading submodule is used for loading the resource files required by the operation from the preset folder and executing the operation of the target APP installation package.
According to a third aspect of the present invention, there is disclosed a terminal comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application processing method of the first aspect.
According to a fourth aspect of the present invention, a computer-readable storage medium is disclosed, having stored thereon a computer program which, when executed by a processor, implements the steps in the application processing method of the first aspect.
In the embodiment of the invention, for the target APP installation package obtained through the reduction processing, the terminal can detect whether the resources necessary for operation are lacked by operating the APP installation package, and if the resources necessary for operation are determined to be lacked, the terminal requests the server for the corresponding lacked resources, so that the terminal can normally operate the APP installation package. Compared with the prior art, the embodiment of the invention has the advantages that the terminal can timely sense and position the details of the missing resources in the APP installation package and request the server to issue the corresponding missing resources, so that the recovery of the mistakenly deleted resources is realized, and the problems of APP breakdown, operation errors and the like caused by the mistakenly deleted resources are avoided.
Drawings
FIG. 1 is a flow diagram of an application processing method of one embodiment of the invention;
FIG. 2 is a flow diagram of an application processing method of another embodiment of the invention;
FIG. 3 is a signaling interaction diagram of an application processing method of one embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
At present, the size increment iteration of the APP installation package results in that the occupied space of the APP installation package is only increased but not reduced, and serious hidden dangers exist at present from a long-term perspective. In the prior art, the server detects useless resources in the APP installation package and deletes the resources to achieve the purpose of reducing the APP installation package, but the problems of APP breakdown, operation errors and the like exist in the later stage.
In order to solve the technical problem, embodiments of the present invention provide an application processing method, an application processing apparatus, a terminal, and a storage medium.
For ease of understanding, some concepts involved in embodiments of the present invention will be described first below.
Lossless data compression: it is referred to as reconstruction (or called restoration or decompression) using compressed data, and the reconstructed data is completely the same as the original data, but the compression ratio is usually smaller than that of lossy data compression.
LSUnsesdResources: the method is a project useless picture resource detection tool provided by github, and provides static resources without references in a detection project.
Bugly: the method is a service for Tencent development, provides tracking services such as Crash monitoring and Crash analysis aiming at a mobile development end, and can timely master and position APP abnormal operation information.
Next, a method for processing an application provided in an embodiment of the present invention is described.
Fig. 1 is a flowchart of an application processing method according to an embodiment of the present invention, where the method is executed by a terminal, and in practical applications, the terminal may be a smart phone, a tablet computer, a personal digital assistant, and the like, and as shown in fig. 1, the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
in step 101, when a target running instruction triggered by a target APP installation package is detected, the target APP installation package is run, wherein the target APP installation package is obtained by performing reduction processing operation on a resource file without reference in a source APP installation package.
In the embodiment of the invention, the target operation instruction can be triggered by a terminal user or can be triggered by the terminal. When the target operation instruction is triggered by the terminal, the terminal can firstly determine whether a trigger condition is met, and if the trigger condition is met, the target operation instruction is triggered, wherein the trigger condition can be that the target APP installation package is successfully downloaded from the application store to the local terminal.
In the embodiment of the invention, the target APP installation package can be from a server, under the condition, the server firstly detects the resource files without reference in the source APP installation package, then performs reduction processing operation on the resource files without reference in the source APP installation package to obtain the target APP installation package, and then provides the target APP installation package for the terminal through the network application store, and the terminal obtains the target APP installation package from the network application store. The server reduces the APP installation package, on one hand, the problem that downloading is limited or refused by each network application store due to the fact that the APP installation package is excessively enlarged can be avoided; on the other hand, the storage space occupied by the APP installation package can be reduced, and the consumption of download flow is reduced.
In the embodiment of the invention, the target APP installation package can be obtained by reducing the source APP installation package through the terminal, in this case, the terminal firstly detects the resource file without reference in the source APP installation package, and then reduces the resource file without reference in the source APP installation package to obtain the target APP installation package.
In the embodiment of the invention, the reduction of the APP installation package is mainly considered to be the reduction of the static resources in the APP installation package, so that the target APP installation package can be an installation package obtained by performing reduction processing operation on static resource files which are not referenced in the source APP installation package. Further, considering that most of the static resources in the APP installation package are pictures, the target APP installation package may be an installation package obtained by performing reduction processing on pictures that are not referenced in the source APP installation package.
In the embodiment of the present invention, when the non-referenced resource file in the source APP installation package is a non-referenced static resource file, the reduction processing operation may be: compressing the static resource files without reference in the source APP installation package, and replacing the files obtained by compression with the corresponding static resource files without reference; when the resource file without reference in the source APP installation package is a picture without reference, the reduction processing operation may be: detecting the picture files without reference in the source APP installation package, deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
In the embodiment of the invention, when the picture file without reference in the source APP installation package is detected, all pictures without reference in the source APP installation package can be detected by using LSUnunsedResources.
In the embodiment of the invention, when the picture file without reference in the source APP installation package is compressed, lossless compression is adopted to ensure that the quality of the compressed picture can reach the expectation.
In step 102, monitoring the running process of the target APP installation package, and determining whether resource files necessary for running are missing in the target APP installation package; if yes, go to step 103.
In the embodiment of the invention, the running state of the target APP installation package is monitored in the running process of the target APP installation package so as to timely sense the details of the missing information of the target APP installation package.
In the embodiment of the invention, when the target APP installation package is the installation package obtained by carrying out reduction processing operation on the static resource files which are not quoted in the source APP installation package, whether the static resource files which are necessary for running are lost in the running process of the target APP installation package can be monitored. When the target APP installation package is an installation package obtained by carrying out reduction processing operation on the pictures without reference in the source APP installation package, whether the pictures necessary for operation are lost in the operation process of the target APP installation package can be monitored.
In the embodiment of the invention, the operation process of the target APP installation package can be tracked and monitored by using the Bugly.
In step 103, a resource acquisition request is sent to the server, wherein the resource acquisition request is used for requesting to acquire a resource file necessary for operation from the server.
In the embodiment of the invention, if the resource file necessary for operation is detected to be missing in the target APP installation package, the missing resource information is reported to the server by sending a resource acquisition request to the server, and the server issues the corresponding missing resource.
In step 104, the target APP installation package is executed based on the resource files returned by the server and necessary for execution.
In the embodiment of the invention, after receiving the resource files required for operation returned by the server, the resource files required for operation can be stored in the preset folder of the target APP installation package, and the resource files required for operation are loaded from the preset folder to operate the target APP installation package.
As can be seen from the foregoing embodiment, in this embodiment, for a target APP installation package obtained through reduction processing, a terminal may detect whether a resource necessary for operation is missing by running the APP installation package, and if it is determined that the resource necessary for operation is missing, request the server for the corresponding missing resource, so that the terminal may normally run the APP installation package. Compared with the prior art, the embodiment of the invention has the advantages that the terminal can timely sense and position the details of the missing resources in the APP installation package and request the server to issue the corresponding missing resources, so that the recovery of the mistakenly deleted resources is realized, and the problems of APP breakdown, operation errors and the like caused by the mistakenly deleted resources are avoided.
Fig. 2 is a flowchart of an application processing method according to another embodiment of the present invention, where in the embodiment of the present invention, when a target APP installation package is an installation package obtained by performing a reduction processing operation on a picture that is not referenced in a source APP installation package, as shown in fig. 2, the method may include the following steps: step 201, step 202, step 203 and step 204, wherein,
in step 201, when a target running instruction triggered by the target APP installation package is detected, the target APP installation package is run.
In the embodiment of the present invention, the reduction processing operation may include: and deleting the picture files without reference in the source APP installation package, and compressing the residual picture files in the source APP installation package without loss, wherein the picture files obtained by lossless compression are used for replacing the corresponding uncompressed picture files.
In step 202, monitoring all picture loading interfaces corresponding to the target APP installation package, and if it is monitored that at least one picture loading interface corresponding to the target APP installation package fails to load pictures, determining that pictures necessary for operation are missing in the target APP installation package, wherein the pictures necessary for operation are pictures which fail to load; and if it is monitored that all the picture loading interfaces corresponding to the target APP installation package successfully load the pictures, determining that the pictures necessary for operation are not missed in the target APP installation package.
In the embodiment of the invention, whether the picture required in the running process is missing in the target APP installation package can be determined by monitoring all picture loading interfaces corresponding to the target APP installation package.
In step 203, in the case that the picture necessary for operation is missing in the target APP installation package, a resource acquisition request is sent to the server, wherein the resource acquisition request is used for requesting to acquire the picture necessary for operation from the server.
In the embodiment of the invention, if the picture resources necessary for operation are detected to be missing in the target APP installation package, the missing picture information is reported to the server by sending a resource acquisition request to the server, and the server issues the corresponding missing picture resources.
In step 204, the target APP installation package is run based on the pictures returned by the server and necessary for running.
In the embodiment of the invention, after the pictures required by the operation returned by the server are received, the pictures required by the operation can be stored in the preset folder of the target APP installation package, and the pictures required by the operation are loaded from the preset folder to operate the target APP installation package.
In the embodiment of the present invention, the preset folder may be a Document folder.
As can be seen from the foregoing embodiment, in this embodiment, for a target APP installation package obtained through reduction processing, a terminal may detect whether a picture resource necessary for operation is missing through tracking and monitoring a picture loading interface corresponding to the APP installation package, and if it is determined that the picture resource necessary for operation is missing, request the server for the corresponding missing picture resource, so that the terminal may normally operate the APP installation package. Compared with the prior art, the embodiment of the invention has the advantages that the terminal can timely sense and position the details of the missing resources in the APP installation package and request the server to issue the corresponding missing resources, so that the recovery of the mistakenly deleted resources is realized, and the problems of APP breakdown, operation errors and the like caused by the mistakenly deleted resources are avoided.
In order to facilitate the overall understanding of the technical solution of the present invention, the description is made with reference to a signaling interaction diagram for information interaction between a terminal and a server shown in fig. 3. Fig. 3 is a signaling interaction diagram of an application processing method according to an embodiment of the present invention, as shown in fig. 3, the signaling interaction diagram includes: the server and the terminal, in particular,
in step 301, a server receives a source APP installation package uploaded by a developer;
in step 302, the server detects a picture without reference in the source APP installation package, and deletes the picture after manual verification;
in step 303, the server losslessly compresses the remaining pictures in the source APP installation package, and replaces the corresponding uncompressed pictures with the pictures obtained by lossless compression to obtain a target APP installation package;
in step 304, the server provides the target APP installation package to the terminal through the network application store;
in step 305, the terminal acquires a target APP installation package;
in step 306, when detecting a target operation instruction triggered by the target APP installation package, the terminal operates the target APP installation package;
in step 307, the terminal monitors all picture loading interfaces corresponding to the target APP installation package, and if it is monitored that at least one picture loading interface corresponding to the target APP installation package fails to load pictures, it is determined that pictures necessary for operation are missing in the target APP installation package;
in step 308, the terminal sends a resource acquisition request to the server when the target APP installation package lacks pictures necessary for operation;
in step 309, the server receives a resource acquisition request from the terminal;
in step 310, the server sends pictures necessary for running missing target APP installation packages to the terminal;
in step 311, the terminal receives the pictures necessary for the missing operation of the target APP installation package from the server.
Fig. 4 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention, the apparatus is applied to a terminal, and as shown in fig. 4, the application processing apparatus 400 may include: an execution module 401, a determination module 402, a sending module 403, and a processing module 404, wherein,
the running module 401 is configured to run a target APP installation package when a target running instruction triggered by the target APP installation package is detected, where the target APP installation package is an installation package obtained by performing reduction processing on a resource file without reference in a source APP installation package;
a determining module 402, configured to monitor an operation process of the target APP installation package, and determine whether a resource file necessary for operation is missing in the target APP installation package;
a sending module 403, configured to send a resource obtaining request to a server if a determination result of the determining module 402 is yes, where the resource obtaining request is used to request to obtain a resource file necessary for the operation from the server;
a processing module 404, configured to run the target APP installation package based on the resource file, which is returned by the server and is necessary for running.
As can be seen from the foregoing embodiment, in this embodiment, for a target APP installation package obtained through reduction processing, a terminal may detect whether a resource necessary for operation is missing by running the APP installation package, and if it is determined that the resource necessary for operation is missing, request the server for the corresponding missing resource, so that the terminal may normally run the APP installation package. Compared with the prior art, the embodiment of the invention has the advantages that the terminal can timely sense and position the details of the missing resources in the APP installation package and request the server to issue the corresponding missing resources, so that the recovery of the mistakenly deleted resources is realized, and the problems of APP breakdown, operation errors and the like caused by the mistakenly deleted resources are avoided.
Optionally, as an embodiment, the resource file is a picture file.
Optionally, as an embodiment, the determining module 402 may include:
the monitoring submodule is used for monitoring all picture loading interfaces corresponding to the target APP installation package;
the first determining submodule is used for determining that pictures necessary for operation are missed in the target APP installation package under the condition that at least one picture loading interface corresponding to the target APP installation package fails to load the pictures, wherein the pictures necessary for operation are the pictures which fail to load;
and the second determining submodule is used for determining that the pictures required by operation are not missed in the target APP installation package under the condition that all picture loading interfaces corresponding to the target APP installation package are monitored to be successful in picture loading.
Optionally, as an embodiment, the reduction processing operation may include:
deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
Optionally, as an embodiment, the processing module 404 may include:
the receiving submodule is used for receiving the resource file which is returned by the server and is necessary for operation;
the storage submodule is used for storing the resource files required by the operation into a preset folder of the target APP installation package;
and the loading submodule is used for loading the resource files required by the operation from the preset folder and executing the operation of the target APP installation package.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to an embodiment of the present invention, there is also provided a terminal including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application processing method according to any of the embodiments described above.
According to an embodiment of the present invention, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the application processing method according to any one of the above-mentioned embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of 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, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing describes in detail an application processing method, an application processing apparatus, a terminal, and a storage medium provided by the present invention, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the foregoing embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. An application processing method applied to a terminal is characterized by comprising the following steps:
when a target operation instruction triggered by a target application program APP installation package is detected, operating the target APP installation package, wherein the target APP installation package is an installation package obtained by performing reduction processing operation on a resource file without reference in a source APP installation package;
monitoring the operation process of the target APP installation package, and determining whether resource files necessary for operation are lost in the target APP installation package;
if the resource files necessary for operation are missing in the target APP installation package, sending a resource acquisition request to a server, wherein the resource acquisition request is used for requesting to acquire the resource files necessary for operation from the server;
and running the target APP installation package based on the resource files which are returned by the server and are necessary for running.
2. The method of claim 1, wherein the resource file is a picture file.
3. The method of claim 2, wherein the monitoring the running process of the target APP installation package and determining whether the resource file necessary for running is missing in the target APP installation package comprises:
monitoring all picture loading interfaces corresponding to the target APP installation package;
if it is monitored that at least one picture loading interface corresponding to the target APP installation package fails to load pictures, determining that pictures necessary for operation are missing in the target APP installation package, wherein the pictures necessary for operation are the pictures which fail to be loaded;
if it is monitored that all the picture loading interfaces corresponding to the target APP installation package successfully load pictures, determining that pictures necessary for operation are not missing in the target APP installation package.
4. The method of claim 2, wherein the reduction processing operation comprises:
deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
5. The method of claim 1, wherein the running the target APP installation package based on the resource files required for the running returned by the server comprises:
receiving the resource file which is returned by the server and is necessary for running;
storing the resource files required by the operation into a preset folder of the target APP installation package;
and loading the resource files required by the operation from the preset folder, and operating the target APP installation package.
6. An application processing apparatus applied to a terminal, the apparatus comprising:
the running module is used for running a target APP installation package when a target running instruction triggered by the target APP installation package is detected, wherein the target APP installation package is obtained by performing reduction processing operation on a resource file without reference in a source APP installation package;
the determining module is used for monitoring the running process of the target APP installation package and determining whether the resource files required by running are missing in the target APP installation package;
a sending module, configured to send a resource obtaining request to a server if a determination result of the determining module is yes, where the resource obtaining request is used to request to obtain a resource file necessary for the operation from the server;
and the processing module is used for operating the target APP installation package based on the resource file which is returned by the server and is necessary for operation.
7. The apparatus of claim 6, wherein the resource file is a picture file.
8. The apparatus of claim 7, wherein the determining module comprises:
the monitoring submodule is used for monitoring all picture loading interfaces corresponding to the target APP installation package;
the first determining submodule is used for determining that pictures necessary for operation are missed in the target APP installation package under the condition that at least one picture loading interface corresponding to the target APP installation package fails to load the pictures, wherein the pictures necessary for operation are the pictures which fail to load;
and the second determining submodule is used for determining that the pictures required by operation are not missed in the target APP installation package under the condition that all picture loading interfaces corresponding to the target APP installation package are monitored to be successful in picture loading.
9. The apparatus of claim 7, wherein the reduction processing operation comprises:
deleting the picture files without reference in the source APP installation package, compressing the residual picture files in the source APP installation package without loss, and replacing the picture files obtained by lossless compression with the corresponding uncompressed picture files.
10. The apparatus of claim 6, wherein the processing module comprises:
the receiving submodule is used for receiving the resource file which is returned by the server and is necessary for operation;
the storage submodule is used for storing the resource files required by the operation into a preset folder of the target APP installation package;
and the loading submodule is used for loading the resource files required by the operation from the preset folder and executing the operation of the target APP installation package.
11. A terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the application processing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps in the application processing method according to any one of claims 1 to 5.
CN202010340911.4A 2020-04-26 2020-04-26 Application processing method, device, terminal and storage medium Pending CN111679835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010340911.4A CN111679835A (en) 2020-04-26 2020-04-26 Application processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010340911.4A CN111679835A (en) 2020-04-26 2020-04-26 Application processing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111679835A true CN111679835A (en) 2020-09-18

Family

ID=72452562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010340911.4A Pending CN111679835A (en) 2020-04-26 2020-04-26 Application processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111679835A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783512A (en) * 2021-03-15 2021-05-11 腾讯科技(深圳)有限公司 Application package processing method, device, equipment and storage medium
CN112925751A (en) * 2021-02-20 2021-06-08 浙江大华技术股份有限公司 Multi-channel application processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278995A (en) * 2015-11-03 2016-01-27 努比亚技术有限公司 Management method of application, system, server and mobile terminal
CN106569859A (en) * 2016-10-28 2017-04-19 搜游网络科技(北京)有限公司 Method and device for loading object file
CN107436781A (en) * 2017-06-28 2017-12-05 北京五八信息技术有限公司 APK file treating method and apparatus
CN109634617A (en) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 Software installation method, user equipment, storage medium and device
CN109828776A (en) * 2018-12-06 2019-05-31 珠海西山居互动娱乐科技有限公司 A kind of method and system searching missing resource and supplementing
CN110968331A (en) * 2019-11-29 2020-04-07 广州市百果园信息技术有限公司 Method and device for running application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278995A (en) * 2015-11-03 2016-01-27 努比亚技术有限公司 Management method of application, system, server and mobile terminal
CN106569859A (en) * 2016-10-28 2017-04-19 搜游网络科技(北京)有限公司 Method and device for loading object file
CN107436781A (en) * 2017-06-28 2017-12-05 北京五八信息技术有限公司 APK file treating method and apparatus
CN109634617A (en) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 Software installation method, user equipment, storage medium and device
CN109828776A (en) * 2018-12-06 2019-05-31 珠海西山居互动娱乐科技有限公司 A kind of method and system searching missing resource and supplementing
CN110968331A (en) * 2019-11-29 2020-04-07 广州市百果园信息技术有限公司 Method and device for running application program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925751A (en) * 2021-02-20 2021-06-08 浙江大华技术股份有限公司 Multi-channel application processing method and device
CN112925751B (en) * 2021-02-20 2022-08-16 浙江大华技术股份有限公司 Multi-channel application processing method and device
CN112783512A (en) * 2021-03-15 2021-05-11 腾讯科技(深圳)有限公司 Application package processing method, device, equipment and storage medium
CN112783512B (en) * 2021-03-15 2024-05-10 腾讯科技(深圳)有限公司 Application package processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109117169B (en) Method and device for repairing kernel vulnerability
CN102880663B (en) The optimization of the file of part deduplication
US8407189B2 (en) Finding and fixing stability problems in personal computer systems
CN108399132B (en) Scheduling test method, device and storage medium
KR101389682B1 (en) System and method that prevent virus damage
CN109885324B (en) Processing method, device, terminal and storage medium of application program installation package
CN105138376A (en) Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN111679835A (en) Application processing method, device, terminal and storage medium
CN104008104A (en) Method for processing document change and electronic device
CN103955375A (en) Generation method for application installation file and starting method and device for application
CN110109628B (en) Data reconstruction method, device, equipment and storage medium of distributed storage system
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
CN112149035A (en) Website static resource processing method and device
CN106325896A (en) Method and device for processing shared function library file of installation package
CN111045698A (en) Redundant picture deleting method and device, electronic equipment and storage medium
CN114553858A (en) Resource pre-downloading method, device and equipment
CN112286543B (en) Application service deployment method and device
CN113110851A (en) Resource loading method and device, electronic equipment and medium
CN104572943A (en) Installation-free program cleaning method and device
CN115080114A (en) Application program transplanting processing method, device and medium
CN115964061A (en) Plug-in updating method and device, electronic equipment and computer readable storage medium
CN114237976A (en) Data acquisition method and device
CN110888686B (en) Application program starting method, device and storage medium
CN113326054A (en) Software deployment method and device, computer-readable storage medium and electronic equipment
CN113626245B (en) Method for preventing ios application program from crashing

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