Method of solving iOS hot-fix problem of and user terminal

A user terminal, hot repair technology, applied in user identity/authority verification, platform integrity maintenance, digital data protection, etc.

Active Publication Date: 2017-11-24
GUANGDONG YOUMAI INFORMATION COMM TECH
View PDF2 Cites 13 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
  • Method of solving iOS hot-fix problem of and user terminal
  • Method of solving iOS hot-fix problem of and user terminal
  • Method of solving iOS hot-fix problem of 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] Such as 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;

...

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 Applications(China)
IPC IPC(8): G06F9/445G06F21/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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products