Application crash protection method and apparatus, device and storage medium
A technology of application programs and equipment, applied in the field of Internet applications, can solve problems such as code increase and application program crashes, and achieve the effect of maintaining simplicity, improving robustness, and avoiding crashes
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of an application program crash protection method provided by Embodiment 1 of the present invention. This embodiment is applicable to a mobile terminal with an IOS operating system. During the use of the application program, the application program crashes due to calling an unidentified method of the object Case. The method can be executed by the application program crash protection device / device / computer-readable storage medium provided by the embodiment of the present invention, and the device / device / computer-readable storage medium can be implemented by software and / or hardware. see figure 1 , the method specifically includes:
[0028] S110. During the use of the application program, if the current object cannot recognize the current method, create a crash protection processing object, and dynamically add the current method to the created crash protection processing object.
[0029] Among them, an object refers to an entity with charact...
Embodiment 2
[0041] figure 2 It is a flow chart of an application crash protection method provided by Embodiment 2 of the present invention. The method is based on Embodiment 1 of the present invention, and further provides a method of creating a crash protection processing object if the current object cannot recognize the current method. Methods. Specifically, see figure 2 , the method includes:
[0042] S210, if the current object cannot recognize the current method, send an unrecognized message.
[0043]An unidentified message refers to a message sent after the system detects that an object calls a method that does not belong to it. The message may include information such as the current object name and the current method name.
[0044] If the system detects that the current object does not recognize the current method, the system issues an unrecognized message.
[0045] S220, after the unidentified message is captured by the custom message forwarding method, determine whether the...
Embodiment 3
[0058] image 3 It is a flowchart of an application program crash protection method provided by Embodiment 3 of the present invention, and the method is a preferred embodiment of the above-mentioned embodiments of the present invention. Specifically, see image 3 , the method includes:
[0059] S301. When starting the application program, replace the message forwarding method in the system base class with a self-defined message forwarding method, and send a request for obtaining the whitelist list to the server.
[0060] S302. Determine whether the application successfully obtains the whitelist. If the white list is obtained successfully, execute step S303; if not, execute step S304.
[0061] S303. Store the whitelist in a preset database, and execute step S304.
[0062] S304, the current object invokes the current method.
[0063] S305, judging whether the current object can recognize the current method. If it cannot be identified, execute step S306; if it can be identi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com