Application updating method and device, terminal and storage medium

An update method and technology to be updated, applied in the computer field, can solve the problems of occupying system resources and memory, and achieve the effects of saving memory space, reducing system resource consumption and prolonging life.

Active Publication Date: 2020-12-04
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide an application update method, device, terminal, and storage medium, which solves the problem of occupying more system resources and memory during application update in related technologies

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
  • Application updating method and device, terminal and storage medium
  • Application updating method and device, terminal and storage medium
  • Application updating method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0062] Before describing the embodiments of the present invention in detail, first explain the concepts involved as follows:

[0063] Class file: A class file is a file used to carry a class and related codes of the class, and its form can be a .class file or a .dex file.

[0064] The embodiment of the present invention involves three types of files, which are

[0065] 1. The first type of file: the first type of file is used to update the application, and consists of at least one class file used for updating the application. It is generated based on the updated version and the original version of the application. Files for differentiating classes, files containing subclasses of differentiating classes, etc.

[0066] 2. The second ty...

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 embodiment of the invention discloses an application updating method and device, a terminal and a storage medium, and belongs to the field of computers. The method comprises the steps that in therunning process of an application, a patch file to be updated of the application is obtained, the patch file comprises function names of a first type file and a second function, the first type file comprises a first function, and the second function is a function for calling the first function; when the application is started next time, inserting the patch file in front of the class file of the original version of the application in the class list of the class loader; and when a class loader is used for loading a second class of files in the class files of the original version, the execution mode of the second function is updated to interpretive execution, and the second class of files comprise the second function. When the application is updated, only the patch file needs to be inserted into the class list of the class loader, consumption of system resources and memory is reduced as much as possible on the premise that the application is successfully updated, and the service life of the terminal is prolonged.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an application updating method, device, terminal and storage medium. Background technique [0002] ART (Android Runtime, Android operating environment), is an operating environment on the Android (Android) operating system. In the ART environment, a new optimization method - inline (inlink) is adopted, which eliminates the function call overhead by directly embedding the function (method) into the call site. In other words, inlining is merging function A into function B that calls that function A. However, when the function of the BUG (vulnerability) class is function A, if the patch file is directly loaded, when function B is called, function A in function B will still be called, and will not be called into the patch file. Therefore, the application cannot be solved. Existing BUG. [0003] At present, in order to solve the above problem, after the terminal obtains t...

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): G06F8/658G06F8/71G06F9/445G06F8/41
CPCG06F8/658G06F8/71G06F9/44521G06F8/41
Inventor 丁平
Owner TENCENT TECH (SHENZHEN) CO LTD
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