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

Local code patch updating method and device based on Android platform

A local code, Android platform technology, applied in the computer field, can solve the problems of limited execution mode, difficulty in predicting, and the code cannot be updated locally, and achieves the effect of improving flexibility and convenience.

Active Publication Date: 2017-05-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. It is necessary to predict the code fragments that need to be updated in the future before developing the code, and then write the code related to the update into the sub-Dex file. This kind of prediction is very difficult;
[0005] 2. The main Dex file calls the code in the sub-Dex file, which can only be executed by means of reflection call, and the execution method is limited;
[0006] 3. The code in the main Dex file cannot be partially updated

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
  • Local code patch updating method and device based on Android platform
  • Local code patch updating method and device based on Android platform
  • Local code patch updating method and device based on Android platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, the specific implementation, structure, features and effects of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0018] see figure 1 , figure 1 It is a structural schematic diagram of a mobile terminal device.

[0019] The mobile terminal includes a memory 102, a storage controller 104, one or more (only one is shown in the figure) processors 106, a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a touch Screen 118 and key module 120. These components communicate with each other via one or more communication buses / signal lines 122 .

[0020] understandable, figure 1 The structure shown is only for illustration, and the mobile terminal may also include figure 1 more or fewer com...

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

A local code patch updating method based on an Android platform comprises the steps that a target program is started, targets in executable sub-files for local code updating are configured into various loads in main executable files in an installation pack prior to the target program; memory patch files are loaded to shield the same type of caused program running errors existing in the multiple executable files; a target program is started again, various target types in the executable files are loaded, and other types in the main executable files except the target types are loaded. In addition, the invention further provides a local code patch updating device based on the Android platform, local update of codes in the executable files can be achieved, code snippets required to be updated in the future are not needed to be predicted before code development, and accordingly the flexibility and convenience of code update can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for updating local code patches based on an Android platform. Background technique [0002] In the prior art, in the Android system, only when the code area to be updated is known in advance, the code to be updated can be implemented in the sub-Dex file, and the main Dex file uses reflection calling to call All codes to be updated are partial code update methods currently used, wherein the main Dex file refers to the classes.dex file in the APK (Android Package, Android installation package) file. When the code in the sub-Dex file has a new version, the sub-Dex file is dynamically updated and replaced. [0003] But there is following defective in above prior art: [0004] 1. It is necessary to predict the code fragments that need to be updated in the future before developing the code, and then write the code related to the update into the sub-Dex file. Thi...

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): G06F9/445
Inventor 江威蒋宁波吴昊
Owner TENCENT TECH (SHENZHEN) CO LTD
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