Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for solving ios hot repair problem and user terminal

A technology for hot fixes and problems, applied in user identity/authority verification, instruments, digital transmission systems, etc.

Active Publication Date: 2020-06-09
GUANGDONG YOUMAI INFORMATION COMM TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the deficiencies in the prior art, one of the purposes of the present invention is to provide a method for solving the iOS hot repair problem, solve and improve the sensitive function problem and the hot repair security problem existing in the current open source technology, so that it has the hot repair function Products can successfully pass Apple's strict audit
[0006] The second purpose of the present invention is to provide a user terminal to solve and improve the sensitive function problem and hot repair security problem existing in the current open source technology, so that products with hot repair function can pass the strict audit of Apple Inc.

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
  • A method for solving ios hot repair problem and user terminal
  • A method for solving ios hot repair problem and user terminal
  • A method for solving ios hot repair problem and user terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] refer to figure 1 , the present invention provides a kind of method for solving iOS heat repair problem, comprises the following steps:

[0071] S001. Obtain an encrypted hotfix file from the server;

[0072] S002. Decrypt the encrypted MD5 digital signature in the encrypted hot repair file to obtain the MD5 digital signature;

[0073] S003. Comparing the value of the MD5 digital signature with the MD5 value obtained by calculating the encrypted hot repair file, if they are the same, then execute step S004, and if they are not the same, then end the process;

[0074] S004. Decrypt the encrypted hot repair file and load it into the memory to generate a hot repair JavaScript script;

[0075] S101. Analyzing the hot-fix JavaScript script in the memory to generate a hot-fix analysis script;

[0076] S201. Load the hot-fix analysis script through JavaScriptCore, and use the closure to call back the Objective-C information referenced in the hot-fix analysis script to Objec...

Embodiment 2

[0120] like image 3 As shown, the present invention provides a user terminal, including:

[0121] memory for storing program instructions;

[0122] a processor for executing the program instructions to perform the following steps:

[0123] S101. Analyzing the hot-fix JavaScript script in the memory to generate a hot-fix analysis script;

[0124] S201. Load the hot-fix analysis script through JavaScriptCore, and use the closure to call back the Objective-C information referenced in the hot-fix analysis script to Objective-C;

[0125]S301. Determine whether there is a class corresponding to the class name in the information in Objective-C through the NSClassFromString method, if yes, execute step S401, if not, dynamically create a corresponding class in Objective-C, and execute step S401;

[0126] S401. Replace and cache the message redirection method forwardInvocation of the class in Objective-C corresponding to the class name in the information and its parent class;

[01...

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 method of solving an iOS hot-fix problem and a user terminal. According to the method, on the one hand, a method of querying whether an Objective-C class method exists is also realized through avoiding a respondsToSelector method and a performSelector method and using class_getInstanceMethod and class_getClassMethod methods in a runtime Library, and NSInvocation and forwardInvocation are applied to realize redirection of messages, and also to realize forwarding and invoking of the messages. Through relieving a sensitivity function problem existing in current open source technology, the method can enable a product with a hot-fix function to successfully pass strict examination and verification of Apple Inc..

Description

technical field [0001] The invention relates to the field of IOS software development, in particular to the field of hot repair function development. Background technique [0002] As a technical means to quickly solve IT product online abnormalities, hot repair is very important for mobile applications, especially on the iOS platform, because Apple's review cycle is generally longer, if you release a new version to fix the problems that occurred in the previous version Abnormal problems require a longer cycle, which leads to the spread of abnormalities, which not only affects the normal use of App functions, but also seriously damages the reputation of the product and user experience, resulting in the loss of users. In the open source technical solution, the iOS platform realizes hot There are also many open source technologies for repair functions, such as the popular JSPatch, Weex, RN, etc., but around March 8, 2017, Apple issued a stern warning to products using these hot...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/656G06F21/57G06F21/64H04L9/32
CPCG06F8/656G06F21/572G06F21/64H04L9/3249
Inventor 陈强陈显财
Owner GUANGDONG YOUMAI INFORMATION COMM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products