Unlock instant, AI-driven research and patent intelligence for your innovation.

Plug-in dynamic loading method and device

A dynamic loading and plug-in technology, applied in the computer field, can solve the problems of long time-consuming dex optimization and low plug-in loading efficiency, and achieve the effect of improving loading efficiency

Active Publication Date: 2022-07-05
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since dex optimization takes a long time, the loading efficiency of plugins is low

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
  • Plug-in dynamic loading method and device
  • Plug-in dynamic loading method and device
  • Plug-in dynamic loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure, as recited in the appended claims.

[0048] In the embodiments of the present invention, "at least one" refers to one or more, and "a plurality" refers to two or more. "And / or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and / or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone, where A and B can b...

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

Embodiments of the present invention provide a method and device for dynamically loading plug-ins. The method includes: when loading a plug-in to be loaded, an installation package of the plug-in to be loaded may be obtained first, and then a class loader is used to load the plug-in to be loaded from a storage device The class file package corresponding to the installation package to realize the loading of the plug-in to be loaded; wherein, the storage device stores the class file package obtained by optimizing the initial class file in the installation package; the initial class file includes dex files and / or software Development Kit SDK files. Since the class loader loads the class file package corresponding to the installation package of the plug-in to be loaded from the storage device, and the storage device stores the optimized class file package, the corresponding class file package of the plug-in to be loaded can be loaded directly. There is no need to perform an optimization operation on the initial class file as in the prior art, thereby improving the loading efficiency of the plug-in.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method and device for dynamically loading a plug-in. Background technique [0002] With the continuous development of information technology, the operating system has been widely used in the field of mobile terminals. Taking the Android system as an example, in the Android operating system, by providing a large number of objects, each application can be provided with independent functions through the large number of objects. The virtual machine supports its operation. Among them, the class loading ClassLoader object is one of the important objects, which is mainly used to complete the loading of dex files and resources and other files when the application starts or runs. [0003] In the prior art, for the traditional application object path class loader PathClassLoader, it can only be used for system loading, and usually can only load the dex of the Android inst...

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): G06F9/445G06F9/448G06F8/41
CPCG06F9/44526G06F9/4488G06F8/41
Inventor 刘海涛白玲
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD