Supercharge Your Innovation With Domain-Expert AI Agents!

Lightweight hot fix method based on template code matching

A template code, hot repair technology, applied in the direction of code compilation, program code conversion, program control design, etc., can solve problems such as single repair method

Pending Publication Date: 2021-03-30
上海赛可出行科技服务有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] On the other hand, most of the existing hot repair solutions in the industry are full code or logic replacement, and the repair method is single.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Lightweight hot fix method based on template code matching
  • Lightweight hot fix method based on template code matching
  • Lightweight hot fix method based on template code matching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as Figure 1-4 As shown, the present invention provides a lightweight hot repair method based on template code matching, through the background MIS system to issue a hot repair command, the format of the command is JSON text, and its content includes:

[0039] a1. The version number of the client targeted by the current hotfix command;

[0040] a2. The ID of the current hotfix command;

[0041] a3. The bundleId of the client targeted by the current hotfix instruction;

[0042] a4, the class name of the code block embedded in the current hot repair instruction;

[0043] a5. The method or function of the code block embedded in the current hotfix instruction;

[0044] a6. Execution timing of the current hot repair instruction embedded in the method or function (execution before / after execution of the original method or function or alternative execution);

[0045] a7. The repair content that needs to be executed by the current hot repair command;

[0046] Further,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a lightweight hot fix method based on template code matching. The method comprises the steps that a server remotely sends a hot fix instruction to a mobile client, and the mobile client enables the instruction to be matched into an execution code through a template code library after receiving the hot fix instruction, and the execution code is embedded into the client for attached execution; and an embedding process is realized through AOP (Aspect Oriented Program), and the AOP is oriented to tangent plane programming. The method can provide various flexible dynamic fixmodes, and comprises the following steps: dynamically embedding a hot fix code before or after a specified function or method is executed; integrally replacing a specified function or method; dynamically adding member variables or attributes of the newly added class; dynamically adding a class function or method; execution threads of hot fix code and logic are specified. The method conforms to the hot fix rule of the mobile platform and can smoothly pass strict application shelving auditing.

Description

technical field [0001] The invention relates to the field of mobile application hot repair, in particular to a lightweight hot repair method based on template code matching. Background technique [0002] Existing mobile applications have more and more functions, and it is difficult to completely cover all user usage scenarios during the testing phase, and online problems often occur after the application is launched. Especially on the iOS platform, due to Apple's review mechanism, when online problems occur, they can only rely on the release version, and it takes a long period to complete the repair, which leads to the rapid spread of online problems. [0003] In the prior art, although there is also an open source technology with hot repair function, such as JSPatch on the iOS platform, it does not meet the hot repair rules of iOS (iOS is a mobile operating system developed by Apple Inc.), which limits the use of hot repair functions in iOS. use in the application. Theref...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41G06F8/71G06F9/445
CPCG06F8/447G06F8/71G06F9/44568
Inventor 金小俊蒋杰赵化李卫丽
Owner 上海赛可出行科技服务有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More