[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113127050A - Application resource packaging process monitoring method, device, equipment and medium - Google Patents

Application resource packaging process monitoring method, device, equipment and medium Download PDF

Info

Publication number
CN113127050A
CN113127050A CN202110466999.9A CN202110466999A CN113127050A CN 113127050 A CN113127050 A CN 113127050A CN 202110466999 A CN202110466999 A CN 202110466999A CN 113127050 A CN113127050 A CN 113127050A
Authority
CN
China
Prior art keywords
hook function
resource
packaged
instruction set
packaging process
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
Application number
CN202110466999.9A
Other languages
Chinese (zh)
Other versions
CN113127050B (en
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.)
Shanghai Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202110466999.9A priority Critical patent/CN113127050B/en
Publication of CN113127050A publication Critical patent/CN113127050A/en
Application granted granted Critical
Publication of CN113127050B publication Critical patent/CN113127050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for monitoring an application resource packaging process. The method comprises the following steps: in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function; and when the hook function is not matched in the hook function instruction set, stopping the resource packaging process and sending out a packaging abnormity early warning. By the technical scheme of the embodiment of the invention, the problem that the final resource packaging process is finished due to the fact that errors occur in the application resource packaging process and cannot be found in time in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by import errors are avoided.

Description

Application resource packaging process monitoring method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for monitoring an application resource packaging process.
Background
The Application packages are code packages that can run on a corresponding device, such as an apple system Application (ipa) and an Android Package (apk). The application package is compiled and then packaged into a file that can be recognized by the corresponding system before being run. In the process of packaging the code resource, the time consumed by the process is longer and longer as the application program resource is increased, and the import process itself is very unstable, so that the situations of packaging error, failure, resource import error and the like can occur.
Generally, tens of thousands of resources may be available in one application package, however, the packaging process is not monitored, errors occurring in the packaging process cannot be timely discovered, or early warning is performed in advance, leading-in errors occur, so that the packaging time is too long, and the whole process of packaging and constructing the program package is slowed down.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for monitoring an application resource packaging process, which are used for effectively controlling and managing the application resource packaging process, avoiding packaging errors and overtime caused by import errors and optimizing the packaging process management.
In a first aspect, an embodiment of the present invention provides a method for monitoring an application resource packaging process, where the method includes:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and when the hook function is not matched in the hook function instruction set, stopping the resource packaging process and sending out a packaging abnormity early warning.
Optionally, before packing the resource to be packed, the method further includes:
classifying the resources to be packaged according to the preset resource identification;
reading the compiled hook functions of the resources to be packaged, and creating hook function instruction sets corresponding to the classes of the resources to be packaged, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification.
Optionally, the classifying of the resources to be packaged includes:
a mapping file class, an animation file class, a prefabricated body file class, a material file class and a script file class.
Optionally, when the package anomaly early warning is sent out, the method further includes:
generating a packaged abnormity early warning log, wherein the log comprises the corresponding resource type during packaged abnormity early warning, the hook function and the time of the packaged abnormity.
Optionally, when the hook function is matched in the hook function instruction set, the method further includes:
continuously packing the current resource to be packed;
and after the current resource to be packaged is packaged, calling and executing the hook function.
In a second aspect, an embodiment of the present invention further provides an apparatus for monitoring an application resource packaging process, where the apparatus includes:
the system comprises a hook function detection module, a hook function processing module and a processing module, wherein the hook function detection module is used for extracting a hook function of a current resource to be packaged in the resource packaging process and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, and the hook function instruction set is a function instruction set obtained by compiling the hook function;
and the packaging abnormity early warning module is used for stopping the resource packaging process and sending out the packaging abnormity early warning when the hook function is not matched in the hook function instruction set.
Optionally, the apparatus for monitoring a packing process of an application resource further includes:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
and the hook function instruction set creating module is used for reading the compiled hook functions of the resources to be packaged and creating hook function instruction sets corresponding to the classes of the resources to be packaged, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification.
Optionally, the classifying of the resources to be packaged includes:
a mapping file class, an animation file class, a prefabricated body file class, a material file class and a script file class.
Optionally, the package anomaly early warning module is further configured to:
and generating a packaging abnormity early warning log while sending out a packaging abnormity early warning, wherein the log comprises the corresponding resource type during the packaging abnormity early warning, the hook function and the time of generating the packaging abnormity.
Optionally, the apparatus for monitoring a packaging process of an application resource further includes a function execution module:
the system is used for continuously packing the current resource to be packed when the hook function is matched in the hook function instruction set;
and after the current resource to be packaged is packaged, calling and executing the hook function.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
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 are caused to implement the application resource packaging process monitoring method as provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for monitoring the packaging process of the application resource according to any embodiment of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
in the embodiment of the invention, in the resource packaging process, a hook function of the current resource to be packaged is extracted, and the hook function is matched with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function, namely all code segments of the matched hook function; when the extracted hook function is not matched in the hook function instruction set, the hook function of the current resource to be packaged is illegal, the resource packaging process is interrupted and packaging abnormity early warning is sent out.
Drawings
Fig. 1 is a flowchart of a method for monitoring an application resource packaging process according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an application resource packaging process monitoring apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for monitoring an application resource packaging process according to an embodiment of the present invention, which is applicable to monitoring import and packaging processes of application program installation package resources. The method can be executed by an application resource packaging process monitoring device, and the device can be realized by software and/or hardware and is integrated in computer equipment with an application development function, such as an intelligent mobile terminal, a computer, a server and the like.
As shown in fig. 1, the application resource packaging process monitoring method includes the following steps:
s110, in the resource packaging process, extracting a hook function of the current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function.
Specifically, the resources of the application program include execution code script resources, models, pictures, audio/video data and the like applied in the running process of some programs, and each resource may register a hook function. The hook function can be considered as one of the main characteristics of WINDOWS. With them, you can capture events that happen to your own process or other processes. By "hooking", you can give WINDOWS a callback function, also called "hooking function", which is used to process or filter events and which WINDOWS will call each time an event of interest to you occurs.
In this embodiment, the classification of the resource may be identified according to information such as the identifier of the resource during the packaging process of the resource, so as to find the hook function instruction set under the corresponding classification. Wherein, the hook function instruction set is set in advance according to the classification of the resource.
For example, if the packaged application is a game application, the classification of the resources to be packaged by the application may include: the method comprises the following steps of mapping file type, animation file type, prefabricated file type, material file type and script file type, or other more detailed classification and classification results under different classification rules can be included. The prefabricated body file class is that game objects are stored in a project and are created when needed, and is a prefabricated body (prefab). The pre-form stores a game object, including all components of the game object and all sub-game objects thereunder. Further, hook function instruction sets are created for the classified resources, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification. That is, all of the resources in the import flow may be used as a function of a hook function and stored in a corresponding hook function library (hook function instruction set).
Then, in the process of packaging the application program resource, the current resource to be packaged can be obtained, the hook function corresponding to the current resource to be packaged is extracted, and then the extracted hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs, so as to detect whether the hook function registered by the resource to be tested is in a legal hook function library or not.
It should be noted here that the hook function instruction set is a function instruction set of the hook function after compiling. The compiling process is a process of generating a target program from a source program written in a source language by using a resource to be packaged, and actions of the target program can be generated through the compiling process. Compiling is to change a high-level language into a 2-system language which can be recognized by a computer. Then the compiled hook function is also a function expressed by a binary language, and occupies a certain space in the memory.
And S120, stopping the resource packaging process and sending out packaging abnormity early warning when the hook function is not matched in the hook function instruction set.
The hook function extracted in the resource packaging process is also a compiled hook function, and the extracted hook function is not matched in the hook function instruction set corresponding to the category of the current resource to be packaged, so that the hook function of the current resource to be packaged is an illegal function, an abnormal condition is generated, the resource packaging process is stopped, and a packaging abnormity early warning is sent.
In a preferred embodiment, when the early warning of the packaging abnormity is sent out, a log of the early warning of the packaging abnormity is generated, and the log description comprises information such as corresponding resource types, illegal hook functions and time of the packaging abnormity, which are generated during the early warning of the packaging abnormity, so that member developers can conveniently locate problems generated in the packaging process, and the problems are efficiently solved.
On the other hand, when the hook function is matched in the hook function instruction set, the hook function of the file to be packaged is legal, and the current resource to be packaged can be continuously packaged; and then, after the current resource to be packaged is packaged, calling and executing a hook function.
According to the technical scheme, by classifying the application program resources, in the resource packaging process, the hook function of the current resource to be packaged is extracted, and the hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs; when the hook function is not matched in the hook function instruction set, the hook function of the current resource to be packaged is proved to be illegal, the resource packaging process is stopped, and packaging abnormity early warning is sent out, so that the problem that the packaging time is too long due to the fact that a guiding error occurs in the application resource packaging process and cannot be found in time, and the problem that the whole time consumption of the final resource packaging process is too long due to the fact that the error occurs in the application resource packaging process in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by the guiding error are avoided. In addition, in this embodiment, a package exception log may also be generated, so that the program developer can quickly locate the problem, solve the problem, and smoothly complete the package of the program resource.
The following is an embodiment of the apparatus for monitoring an application resource packaging process according to an embodiment of the present invention, and the apparatus and the method for monitoring an application resource packaging process according to the above embodiments belong to the same inventive concept, and can implement the method for monitoring an application resource packaging process according to the above embodiments. For details that are not described in detail in the embodiment of the apparatus for monitoring an application resource packaging process, reference may be made to the above-mentioned embodiment of the method for monitoring an application resource packaging process.
Example two
Fig. 2 is a schematic structural diagram of an application resource packaging process monitoring apparatus according to a third embodiment of the present invention, which is applicable to monitoring a resource import packaging process of an application installation package.
As shown in fig. 2, the apparatus for monitoring the packaging process of application resources specifically includes a code content detection module 210 and a compilation timeout warning module 220.
The hook function detection module 210 is configured to, in a resource packing process, extract a hook function of a current resource to be packed, and match the hook function with a hook function instruction set corresponding to a category to which the current resource to be packed belongs, where the hook function instruction set is a function instruction set obtained by compiling a hook function; and the packing exception early warning module 220 is configured to stop the resource packing process and send out a packing exception early warning when the hook function is not matched in the hook function instruction set.
According to the technical scheme of the embodiment, in the resource packaging process, the hook function of the current resource to be packaged is extracted, and the hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs; when the hook function is not matched in the hook function instruction set, the hook function of the current resource to be packaged is proved to be illegal, the resource packaging process is stopped, and packaging abnormity early warning is sent out, so that the problem that the packaging time is too long due to the fact that a guiding error occurs in the application resource packaging process and cannot be found in time, and the problem that the whole time consumption of the final resource packaging process is too long due to the fact that the error occurs in the application resource packaging process in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by the guiding error are avoided.
Optionally, the apparatus for monitoring a packing process of an application resource further includes:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
and the hook function instruction set creating module is used for reading the compiled hook functions of the resources to be packaged and creating hook function instruction sets corresponding to the classes of the resources to be packaged, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification.
Optionally, the classifying of the resources to be packaged includes:
a mapping file class, an animation file class, a prefabricated body file class, a material file class and a script file class.
Optionally, the packaging anomaly early warning module 220 is further configured to:
and generating a packaging abnormity early warning log while sending out a packaging abnormity early warning, wherein the log comprises the corresponding resource type during the packaging abnormity early warning, the hook function and the time of generating the packaging abnormity.
Optionally, the apparatus for monitoring a packaging process of an application resource further includes a function execution module:
the system is used for continuously packing the current resource to be packed when the hook function is matched in the hook function instruction set;
and after the current resource to be packaged is packaged, calling and executing the hook function.
The application resource packaging process monitoring device provided by the embodiment of the invention can execute the application resource packaging process monitoring method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 3 is only an example and should not impose any limitation on the scope of use or functionality of embodiments of the present invention. The computer device in the embodiment of the present invention may be a smart phone, a tablet Personal Computer (PC), a server cluster device, or another computer device with an arithmetic capability.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer 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.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
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. Computer 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. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, 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. System 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 system 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.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing steps of an application resource packaging process monitoring method provided by the embodiment of the present invention, the method includes:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and when the hook function is not matched in the hook function instruction set, stopping the resource packaging process and sending out a packaging abnormity early warning.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the method for monitoring the packing process of the application resource provided in any embodiment of the present invention.
Example four
A fourth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of a method for monitoring an application resource packaging process provided in any embodiment of the present invention, where the method includes:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and when the hook function is not matched in the hook function instruction set, stopping the resource packaging process and sending out a packaging abnormity early warning.
Computer storage media for embodiments of the invention may employ 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. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. 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, wire, fiber optic 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 + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for monitoring an application resource packaging process is characterized by comprising the following steps:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and when the hook function is not matched in the hook function instruction set, stopping the resource packaging process and sending out a packaging abnormity early warning.
2. The method of claim 1, wherein before packaging the resource to be packaged, the method further comprises:
classifying the resources to be packaged according to the preset resource identification;
reading the compiled hook functions of the resources to be packaged, and creating hook function instruction sets corresponding to the classes of the resources to be packaged, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification.
3. The method of claim 1 or 2, wherein the classification of the resources to be packaged comprises:
a mapping file class, an animation file class, a prefabricated body file class, a material file class and a script file class.
4. The method of claim 1, wherein while issuing a packaging anomaly warning, the method further comprises:
generating a packaged abnormity early warning log, wherein the log comprises the corresponding resource type during packaged abnormity early warning, the hook function and the time of the packaged abnormity.
5. The method of claim 1, wherein when the hook function is matched in the hook function instruction set, the method further comprises:
continuously packing the current resource to be packed;
and after the current resource to be packaged is packaged, calling and executing the hook function.
6. An apparatus for monitoring a packing process of an application resource, comprising:
the system comprises a hook function detection module, a hook function processing module and a processing module, wherein the hook function detection module is used for extracting a hook function of a current resource to be packaged in the resource packaging process and matching the hook function with a hook function instruction set corresponding to the category to which the current resource to be packaged belongs, and the hook function instruction set is a function instruction set obtained by compiling the hook function;
and the packaging abnormity early warning module is used for stopping the resource packaging process and sending out the packaging abnormity early warning when the hook function is not matched in the hook function instruction set.
7. The apparatus of claim 6, further comprising:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
and the hook function instruction set creating module is used for reading the compiled hook functions of the resources to be packaged and creating hook function instruction sets corresponding to the classes of the resources to be packaged, wherein each hook function instruction set comprises all hook functions under the corresponding resource classification.
8. The apparatus of claim 6 or 7, wherein the classification of the resources to be packaged comprises:
a mapping file class, an animation file class, a prefabricated body file class, a material file class and a script file class.
9. A computer device, characterized in that the computer device comprises:
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 the application resource packaging process monitoring method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for application resource packaging process monitoring according to any one of claims 1 to 5.
CN202110466999.9A 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium Active CN113127050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466999.9A CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466999.9A CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113127050A true CN113127050A (en) 2021-07-16
CN113127050B CN113127050B (en) 2024-03-22

Family

ID=76780735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466999.9A Active CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113127050B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590220A (en) * 2021-08-02 2021-11-02 上海米哈游璃月科技有限公司 Method and device for detecting action resource configuration information, electronic equipment and medium
CN114356296A (en) * 2021-12-30 2022-04-15 上海米哈游璃月科技有限公司 Resource packaging method and device, electronic equipment and storage medium
CN116010112A (en) * 2023-03-27 2023-04-25 北京渲光科技有限公司 Method and device for calling hook function, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000089978A (en) * 1998-09-16 2000-03-31 Yaskawa Electric Corp Motion controller
AU2016210760A1 (en) * 2006-09-21 2016-08-25 Apple Inc. Dynamically adaptive scheduling system
CN111291374A (en) * 2020-02-20 2020-06-16 支付宝(杭州)信息技术有限公司 Application program detection method, device and equipment
CN112363753A (en) * 2020-11-17 2021-02-12 上海米哈游天命科技有限公司 Data verification method and device, electronic equipment and storage medium
CN112527302A (en) * 2019-09-19 2021-03-19 北京字节跳动网络技术有限公司 Error detection method and device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000089978A (en) * 1998-09-16 2000-03-31 Yaskawa Electric Corp Motion controller
AU2016210760A1 (en) * 2006-09-21 2016-08-25 Apple Inc. Dynamically adaptive scheduling system
CN112527302A (en) * 2019-09-19 2021-03-19 北京字节跳动网络技术有限公司 Error detection method and device, terminal and storage medium
CN111291374A (en) * 2020-02-20 2020-06-16 支付宝(杭州)信息技术有限公司 Application program detection method, device and equipment
CN112363753A (en) * 2020-11-17 2021-02-12 上海米哈游天命科技有限公司 Data verification method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590220A (en) * 2021-08-02 2021-11-02 上海米哈游璃月科技有限公司 Method and device for detecting action resource configuration information, electronic equipment and medium
CN114356296A (en) * 2021-12-30 2022-04-15 上海米哈游璃月科技有限公司 Resource packaging method and device, electronic equipment and storage medium
CN116010112A (en) * 2023-03-27 2023-04-25 北京渲光科技有限公司 Method and device for calling hook function, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN113127050B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
US11036527B2 (en) Class splitting in object-oriented environments
US11635948B2 (en) Systems and methods for mapping software applications interdependencies
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN114116509A (en) Program analysis method, program analysis device, electronic device, and storage medium
CN111367799B (en) Method, device, medium and electronic equipment for locating source code breakdown position
CN112486496A (en) Method and equipment for generating and operating so file
CN111352644A (en) Applet updating method, device, server and storage medium
CN113760491A (en) Task scheduling system, method, equipment and storage medium
CN113127051B (en) Application resource packaging process monitoring method, device, equipment and medium
CN113687880B (en) Method, device, equipment and medium for calling component
CN112506592B (en) Page loading time length determining method, device, equipment and storage medium
CN113127002B (en) Method, device, equipment and medium for monitoring code compiling process
CN109634636B (en) Application processing method, device, equipment and medium
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN113138793B (en) Application resource packaging process monitoring method, device, equipment and medium
CN112764729A (en) Application software development method and device, computer equipment and readable storage medium
CN112181761B (en) Program execution control method, program execution test device, code detection device, program execution equipment and medium
CN114185608B (en) File descriptor detection method and device
CN110460601B (en) Dependency package security detection method, dependency package security detection device and storage medium
CN111414284B (en) Object loading self-test using protected storage
CN116303765A (en) Data copying method, device, electronic equipment and storage medium

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
GR01 Patent grant