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: 2019-10-08
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF9 Cites 6 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] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0048] In the embodiments of the present invention, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and / or B, which can mean: A exists alone, A and B exist simultaneously, and B exists independently. A, B can be singular o...

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 provides a plug-in dynamic loading method and device. The plug-in dynamic loading method comprises the steps: obtaining an installation package of a plug-in to be loaded when the plug-in to be loaded is loaded, and loading a class file package corresponding to the installation package of the plug-in to be loaded from a storage device through a class loader, so as toachieve the loading of the plug-in to be loaded, wherein the storage device stores a class file package obtained by optimizing an initial class file in the installation package, and the initial classfile comprises a dex file and / or a software development kit SDK file. As 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 optimized class file package is stored in the storage equipment, the class file package corresponding to the installation package of the plug-in to be loaded can be directly loaded, and the condition that in the prior art, optimization operation needs to be executed on the initial class file first is avoided, and the loading efficiency of the plug-in is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for dynamically loading plug-ins. 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, a large number of objects are provided to provide independent A 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 files such as dex files and resources 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 only the dex of the Android installation package (Android Package, apk) that the plug-in has been installed can be loaded, and during ...

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