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

Android-system-based plug-in loading method and system

A technology of Android system and plug-in, which is applied in the Android system-based plug-in loading method and its system field, and can solve problems such as the inability to use the four major components

Inactive Publication Date: 2014-12-24
GUANGZHOU JIUBANG DIGITAL TECH
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

We need to find new ways to use the code to bypass android's compilation restrictions
Android provides DexClassLoader, which is used to load external dex files and use the classes in them through reflection, but this method cannot use the four major components defined in external dex files

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
  • Android-system-based plug-in loading method and system
  • Android-system-based plug-in loading method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. The schematic implementation and description of the present invention are used to explain the present invention, but are not intended to limit the present invention.

[0020] Such as figure 1 As shown, a plug-in loading system based on the Android system is used to call four major components defined in the dex file: Activity display interface, Service service, Content Provider content provider, BroadcastReceiver broadcast receiver, defined in the Dex file The package name and class name of the four major components of the main project are explicitly registered in AndroidMainfest.xml, so as to be called in the main project, and the jar package of the plug-in is converted into a file containing a dex file through a script, and the dex file can be compressed into The file in zip format, the dex file is stored on the SD card or the built...

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 provides an android-system-based plug-in loading method, which is used for calling four major components defined in a dex (Dalvik VM executes) file. The method comprises the following steps of self-defining a class loader for loading the dex file in a main project; replacing a class loader allocated to the main project by a system with the self-defined class loader in a reflecting way to locate a class in the dex file and own class of the main project in the same class space, and calling a code module in the dex file to use the four major components defined in the dex code file in a way of normally using the four major components to endow the four major components in the dex file with correct characteristics through a reflecting technology by using the main project. The invention also provides an android-system-based plug-in loading system.

Description

technical field [0001] The invention relates to the field of Android system plug-ins, in particular to a method and system for loading plug-ins based on the Android system. Background technique [0002] Due to Android's restrictions on the number of functions in the application, the maximum number of functions below 3.0 cannot exceed 48,000, and the maximum number of functions above 3.0 cannot exceed 65,535, including codes written by the project itself and codes in external jar libraries. We need to find new ways to use the code to bypass android's compilation restrictions. Android provides DexClassLoader, which is used to load external dex files and use the classes in them through reflection, but this method cannot use the four major components defined in external dex files. Contents of the invention [0003] Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide a plug-in loading method based on the Android system, which dynamic...

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/44
Inventor 邓裕强梁国盛陈家煜潘国维巢子良
Owner GUANGZHOU JIUBANG DIGITAL TECH