CN104731625A - Method, device and mobile terminal for loading plugin - Google Patents

Method, device and mobile terminal for loading plugin Download PDF

Info

Publication number
CN104731625A
CN104731625A CN201510142846.3A CN201510142846A CN104731625A CN 104731625 A CN104731625 A CN 104731625A CN 201510142846 A CN201510142846 A CN 201510142846A CN 104731625 A CN104731625 A CN 104731625A
Authority
CN
China
Prior art keywords
unit
plug
context
described plug
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510142846.3A
Other languages
Chinese (zh)
Other versions
CN104731625B (en
Inventor
宋照春
张炅轩
姚彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510142846.3A priority Critical patent/CN104731625B/en
Publication of CN104731625A publication Critical patent/CN104731625A/en
Application granted granted Critical
Publication of CN104731625B publication Critical patent/CN104731625B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method, device and mobile terminal for loading a plugin and relates to the field of computers. The embodiment of the method comprises the steps that when the plugin is triggered, the resources of the plugin are obtained, the context of the plugin is created, the context which is allocated to a main application of the plugin by an operation system is replaced with the context of the plugin, and according to the replaced context, the resources of the plugin are loaded. By means of the method, the problem that under an Android original system, the resources of the plugin can not be loaded due to the fact that the context of the plugin can not be obtained, the method has no effect on other objects generated by the system, the compatibility problem does not occur, and even if evolvement happens to the system, the plugin can still be loaded correctly.

Description

A kind of method of loading of plug-in, device and mobile terminal
Technical field
The present invention relates to computer realm, be specifically related to a kind of method of loading of plug-in, device and mobile terminal.
Background technology
At present, Android (Android) operating system is widely used in field of mobile terminals, and a large amount of mobile phones, panel computer adopt Android operation system.Android operation system adopts linux kernel, and due to the security mechanism of linux kernel, add the special mechanism of the dalvik of Android operation system, the application program in Android operation system is difficult to expand.
Under Android operation system, the apk of application program is installed to after in operating system, is just difficult to expand.Carry out small upgrading in application programs, all need again to pack to code, user need reuse new apk and install, thus makes the application program in android system so not flexible.
Recently, occurred Plugin Mechanism, the function of application is divided module, each module corresponds to a plug-in unit and concentrates in an apk.There is this Plugin Mechanism, when application programs carries out expanding or upgrading, only needed to change corresponding plug-in unit.
At present, the loading to plug-in unit is realized by DexClassLoader under Android operation system.But, under normal circumstances, a plug-in unit is made up of the part such as class, resource, the resource of plug-in unit can comprise its content such as interface images, background music, and DexClassLoader can only realize the loading of the class to plug-in unit, but can not realize the loading of the resource to plug-in unit, show mistake after plug-in unit can be caused to load, the problem such as cannot to show completely.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of a kind of method, correspondingly device and the mobile terminal of loading of plug-in that overcome the problems referred to above or solve the problem at least in part.
According to one aspect of the present invention, a kind of method of loading of plug-in is provided, comprises:
When plug-in unit is triggered, obtain the resource of described plug-in unit;
The context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Described main application loads the resource of described plug-in unit according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
Alternatively, before the resource obtaining described plug-in unit, also comprise:
Obtain the installation kit archive information of described plug-in unit.
Alternatively, the installation kit archive information of the described plug-in unit of described acquisition, comprising:
Obtain the PackageManager object of described plug-in unit;
The installation kit archive information of plug-in unit according to described PackageManager object acquisition;
Design variables under described installation kit archive information is revised as preset path;
Wherein, described preset path is the store path of described plug-in unit.
Alternatively, before the context of newly-built described plug-in unit, described method also comprises:
The DexClassLoader class of newly-built described plug-in unit;
Wherein, described DexClassLoader class is used for transmitting the executable code path of described plug-in unit.
Alternatively, the context context of described newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, comprising:
For the context inherited from ContextThemeWrapper class set up by described plug-in unit;
Rewrite the method function for the resource and executable code loading described plug-in unit, in the function after described rewriting, return the context of described plug-in unit.
Alternatively, the method function of described resource and executable code for loading described plug-in unit, comprising:
GetClassLoader, getResources and getAssets.
Alternatively, before described plug-in unit is triggered or when described plug-in unit is triggered, described method also comprises:
Judge whether described plug-in unit can be used;
When described plug-in unit is unavailable, send the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by described main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in described plug-in unit list.
Receive the described plug-in unit list sent;
The plug-in unit of redaction is downloaded according to the download address of plug-in unit described in described plug-in unit list.
Alternatively, after the described download address according to plug-in unit described in described plug-in unit list downloads the plug-in unit of redaction, described method also comprises:
Whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, performs the step of the resource of the described plug-in unit of described acquisition.
Alternatively, described method also comprises;
The ClassLoader object of replacement operation system is the self-defining ClassLoader object of described main application;
Wherein, described self-defining ClassLoader object is for realizing the loading of described plug-in unit.
According to another aspect of the present invention, a kind of device of loading of plug-in is provided, comprises:
Source obtaining module, is suitable for, when plug-in unit is triggered, obtaining the resource of described plug-in unit;
First sets up module, is suitable for the context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Load-on module, is suitable for described main application loads described plug-in unit resource according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
Alternatively, described device also comprises:
Data obtaining module, is suitable for, before the resource obtaining described plug-in unit, obtaining the installation kit archive information of described plug-in unit.
Alternatively, described data obtaining module, comprising:
Object acquisition unit, is suitable for the PackageManager object obtaining described plug-in unit;
Information acquisition unit, is suitable for the installation kit archive information of plug-in unit according to described PackageManager object acquisition;
Variable amendment unit, is suitable for the design variables under described installation kit archive information to be revised as preset path;
Wherein, described preset path is the store path of described plug-in unit.
Alternatively, described device also comprises:
Second sets up module, is suitable for before the context of newly-built described plug-in unit, the DexClassLoader class of newly-built described plug-in unit;
Wherein, described DexClassLoader class is used for transmitting the executable code path of described plug-in unit.
Alternatively, described first set up module and comprise:
Unit set up in context, is suitable for described plug-in unit and sets up the context inherited from ContextThemeWrapper class;
Rewriting unit, is suitable for rewriteeing the method function for the resource and executable code loading described plug-in unit, returns the context of described plug-in unit in the function after described rewriting.
Alternatively, the method function of described resource and executable code for loading described plug-in unit, comprising:
GetClassLoader, getResources and getAssets.
Alternatively, described device also comprises: plug-in download module;
Described plug-in download module comprises:
Available judging unit, is suitable for before described plug-in unit is triggered or when described plug-in unit is triggered, and judges whether described plug-in unit can be used;
Request transmitting unit, is suitable for when described plug-in unit is unavailable, sends the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by described main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in described plug-in unit list.
List reception unit, is suitable for receiving the described plug-in unit list sent;
Plug-in download unit, is suitable for the plug-in unit downloading redaction according to the download address of plug-in unit described in described plug-in unit list.
Alternatively, described device also comprises:
Authentication module, be suitable for after downloading the plug-in unit of redaction according to the download address of plug-in unit described in described plug-in unit list, whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, perform the step of the resource of the described plug-in unit of described acquisition.
Alternatively, described device also comprises;
Entrance realizes module, and the ClassLoader object being suitable for replacement operation system is the self-defining ClassLoader object of described main application;
Wherein, described self-defining ClassLoader object is for realizing the loading of described plug-in unit.
According to another aspect of the present invention, provide a kind of mobile terminal, described mobile terminal comprises:
Storer;
One or more processor;
Wherein, described one or more processor is configured to perform following method:
When plug-in unit is triggered, obtain the resource of described plug-in unit;
The context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Described main application loads the resource of described plug-in unit according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
Embodiments provide a kind of method of loading of plug-in, device and mobile terminal, by when plug-in unit is triggered, obtain the resource of plug-in unit, the context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit, according to the resource of the context loading of plug-in after being replaced, can solve can not the problem of resource of loading of plug-in due to what can not obtain that plug-in unit context causes under the primary system of Android, and the method does not affect other objects that system generates, compatibility issue can not be caused, even if system there occurs evolution, plug-in unit still can correctly load.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the method flow diagram of a kind of loading of plug-in that one embodiment of the invention provides;
Fig. 2 is the concrete grammar process flow diagram of a kind of loading of plug-in that one embodiment of the invention provides;
Fig. 3 is the apparatus structure block diagram of a kind of loading of plug-in that one embodiment of the invention provides.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
Embodiments provide a kind of method of loading of plug-in.It can realize by carrying out improvement to the application program under Android, implements on the terminal device being provided with Android operation system, such as mobile phone, the customer mobile terminal equipment such as flat board, Hand Personal Computer.
Fig. 1 is the method flow diagram of a kind of loading of plug-in that the present embodiment provides.The method specifically comprises step S102 to step S106.
S102: when plug-in unit is triggered, obtains the resource of plug-in unit.
S104: the context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit.
Wherein, the context of plug-in unit points to the resource of plug-in unit.
S106: main application is according to the resource of the context loading of plug-in after being replaced, and wherein, the context after being replaced is the context of plug-in unit.
Embodiments provide a kind of method of loading of plug-in.When plug-in unit is triggered, obtain the resource of plug-in unit, the context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit, according to the resource of the context loading of plug-in after being replaced, can solve can not the problem of resource of loading of plug-in due to what can not obtain that plug-in unit context causes under the primary system of Android, and the method does not affect other objects that system generates, compatibility issue can not be caused, even if system there occurs evolution, plug-in unit still can correctly load.
Embodiment two
The present embodiment is a kind of embody rule scene of above-described embodiment one, by the present embodiment, can set forth method provided by the present invention clearly, particularly.
As shown in Figure 2, be the concrete grammar process flow diagram of a kind of loading of plug-in that the embodiment of the present invention provides, the method comprising the steps of S201 to S206.
First, perform step S201, when plug-in unit is triggered, obtain the installation kit archive information PackageArchiveInfo of plug-in unit.
Wherein, plug-in unit is a module of master routine.Based in the application program of developing plug, usually can comprise multiple module, wherein each module realizes by a plug-in unit.At present, due to the upgrading inconvenience of the application program under Android, the plug-in unitization of application program has become a kind of trend.
Such as, in a Optimization Software, can comprise the functions such as garbage-cleaning, self-triggered program management, wooden horse scanning, wherein, each function can be developed to separately a module, as a plug-in unit of Optimization Software.When Optimization Software needs to increase New function " hardware testing ", only need write under a plug-in unit is discharged into master routine again, and without the need to upgrading whole application program, developer does not need again to carry out packing to whole application program more yet and compile.
Under normal circumstances, plug-in unit is an apk file, and user after downloading, can be directly released on the assigned catalogue of master routine, namely completes the installation of plug-in unit.
It should be noted that, in order to make plug-in unit to be loaded, should at least specifying an entrance (Entry), for completing the loading procedure of plug-in unit by developer to it in the apk inside of plug-in unit.
In order to realize the entrance of plug-in unit, in the present embodiment, can in the following way:
Self-defining ClassLoader object in master routine is used to replace the primary ClassLoader object of system.
The class of application programs or the particular load mode of resource can be realized in self-defining ClassLoader, such as, when the activity assembly of loading of plug-in, the context of redirect application is the context of plug-in unit, to realize the complete loading to plug-in unit.
Particularly, can comprise for the method using self-defining ClassLoader object in master routine to replace the primary ClassLoader object of system:
When the process initiation of application program, obtaining operating system is the PackageInfo object that application program is set up, obtain the mClassLoader field in PackageInfo object, address in amendment mClassLoader field, it is made to point to self-defining ClassLoader object address, thus complete self-defining ClassLoader object to the replacement of primary ClassLoader, make it possible to by self-defining ClassLoader object loading application programs.
For the triggering of plug-in unit, two kinds of situations usually can be comprised:
A kind of be user active click, when the function that user needs plug-in unit corresponding, click this plug-in unit with start.
Another kind is when master routine starts, and triggers plug-in unit and automatically loads.Such as, some optimizational function, needs plug-in component operation when master routine starts.
In this step S201, obtain the installation kit archive information PackageArchiveInfo of plug-in unit by following method:
First, the object of the PackageManager of plug-in unit is obtained;
Then call mContext.getPackageManager () interface to realize and obtain the installation kit archive information of plug-in unit then.
Such as, in the present embodiment, PackageManager object is defined as pm, then obtains the PackageManager object of plug-in unit by following codes implement:
In above-mentioned code, mPath is the path of plug-in unit, GET_ACTIVITIES, GET_SERVICES, GET_PROVIDERS, GET_META_DATA represent the information of Activity, Service, the Provider of the apk obtaining plug-in unit respectively, and the META_DATA information in Android Manifest.
Wherein, namely the installation kit archive information PackageArchiveInfo of plug-in unit comprises the information of Activity, Service, Provider of apk, and the META_DATA information in Android Manifest.
Further, in the present embodiment, only obtain as above four kinds of information and, as the installation kit archive information of plug-in unit, the loading velocity of plug-in unit can be improved, improving performance.
It should be noted that, multiple plug-in unit can be comprised under a master routine.Such as, under security guard's software, can have the plug-in unit of the functions such as sweep-drug, cleaning, encryption, user can select download plug-in according to demand.Based on the program of Plugin Mechanism exploitation, when carrying out the iteration of plug-in unit, also only can carry out down loading updating for single plug-in unit.
In the present embodiment, can select to be downloaded plug-in unit by cloud server or upgrade, method can be as follows:
Whether steps A, before plug-in unit is triggered or triggers, detect plug-in unit and can use, if available, perform step S202, if unavailable, perform step B;
Wherein, unavailable comprise do not download or the version of plug-in unit too low.
Step B, sends the request obtaining plug-in unit list to server;
Wherein, server preserves the plug-in unit list of current master routine, records the plugin name of plug-in unit, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit in the list.
As shown in table 1 below, be the example of plug-in unit list:
Plug-in unit name Plug-in version Plug-in unit MD5 Plug-in unit URL
Plug-in unit A 1 A111 http://a.360.cn/a.apk
Plug-in unit A 2 A222 http://a.360.cn/a2.apk
Plug-in unit B 1 B111 http://a.360.cn/b.apk
Table 1
Wherein, MD5 (Message Digest Algorithm 5rd, Message Digest Algorithm 5) value is the one of digital digest value.
Step C, the plug-in unit list that reception server sends;
Step D, downloads the plug-in unit of redaction according to the download address of the plug-in unit in plug-in unit list;
Step e, whether the digital digest in the digital digest of plug-in unit of the redaction that checking is downloaded and plug-in unit list meets, and if so, then plug-in download or renewal complete, if not, again download.
After getting the installation kit archive information of plug-in unit, perform step S202, the design variables under installation kit archive information is revised as preset path.
It should be noted that, in order to realize the loading to plug-in resource in the present embodiment, change the normal initialization flow process (such as replacing the context of master routine) of plug-in unit, therefore, need the design variables under amendment installation kit archive information in this step, to prevent the loading procedure Program throw exception at plug-in unit.
In the present embodiment, design variables comprises: sourceDir and publicSourceDir.
Preset path is the path mPath of plug-in unit.
Such as, by the amendment of following codes implement to design variables:
mPackageInfo.applicationInfo.sourceDir=mPath;
mPackageInfo.applicationInfo.publicSourceDir=mPath;
After to design variables amendment, can step S203 be performed, obtain the resource of plug-in unit.
In this step S203, obtain the resource of plug-in unit by such as under type:
By calling PackageManager object (also i.e. self-defining pm in step S201, complete in step s 201 acquisition operation) in getResourcesForApplication method, obtain the Resources object of this plug-in unit, then pass through the resource of Resources object acquisition plug-in unit.
Wherein, the relevant all resource informations of this plug-in unit are included in Resources object.
Such as, following codes implement can be passed through:
Wherein, mPkgResources is the resource of plug-in unit.
After acquiring the resource of plug-in unit, performing step S204, is the newly-built DexClassLoader class of plug-in unit.
Wherein, a plug-in unit is made up of dex (binary code under Android) file and resource usually, if complete the loading of plug-in unit, then needs dex file and the resource of loading of plug-in simultaneously.In android system, for the loading of dex file, completed by DexClassLoader class.DexClassLoader also becomes class loaders.
In order to make the dex file of loading of plug-in that DexClassLoader can be correct, needing the path of the dex file depositing plug-in unit in newly-built DexClassLoader, being transmitted the path of the dex file of plug-in unit by newly-built DexClassLoader.
Such as, by following codes implement:
String out=mContext.getDir(DIR,0).getPath();
mClassLoader=new DexClassLoader(mPath,out,null,parent);
Wherein, parent represents that newly-built DexClassLoader is parent loader, in order to avoid there is the problem adjusting have more than is needed android system class.
After newly-built DexClassLoader, namely guarantee to load the dex file of plug-in unit.In the present embodiment, in order to can the resource of normal load plug-in unit, also need to perform step S205, the i.e. context of newly-built plug-in unit oneself, and replace the context of master routine.
Wherein, context is the unique identifier of application program in android system, is equivalent to the handle in windows system, when needing the dex file, resource etc. of invokes application, all needs to have been come by context.Under normal circumstances, when an application program launching, operating system can be this application initialization context, and can not distribute context for plug-in unit, and therefore, in existing android system, the loading for plug-in unit is a difficult point always.
Therefore, in the present invention, need for plug-in unit to be loaded creates a context, in order to be different from the context of master routine, the context of plug-in unit can be defined as PluginContext.
Such as, following codes implement can be passed through for plug-in unit creates PluginContext:
Wherein, the PluginContext of plug-in unit must inherit from ContextThemeWrapper, and it is the encapsulation class of Context.
After setting up the PluginContext of plug-in unit, in order to make its replacement system be the Context that master routine distributes, also need to perform step below:
Overriding loads relevant method function to plug-in unit.
In the present embodiment, load relevant method function to plug-in unit and mainly comprise following three:
GetClassLoader, getResources and getAssets.
Wherein, getClassLoader is used for loading classes, such as DexClassLoader;
GetResources and getAssets is used for the resource of loading of plug-in.
Illustrate below and how these three method functions of getClassLoader, getResources and getAssets override:
(1)getClassLoader
Wherein, as long as relate to the place that Context calls, Context.getClassLoader method is preferentially used in capital, when application program launching, the method can be called, because we have override the method, therefore, be we DexClassLoader newly-built in step S204 by what return, completed the loading of the class to plug-in unit by we newly-built DexClassLoader.
(2)getResources
Wherein, generally involve the place of Gains resources, all can call getResources method function, in getResources method function after overriding, when the function is called, namely can return the Resources object of plug-in unit, thus complete the loading of the resource to plug-in unit.
(3)getAssets
Wherein, getAssets is also the resource for obtaining plug-in unit, when the part resource of loading of plug-in, can use getAssets method function.When the function is called, namely can return the Assets object of plug-in unit, thus complete the loading of the resource to plug-in unit.
After above-mentioned three method functions of rewriting, all can realize replacing for the dex file of plug-in unit and the loading of resource, perfectly can load the plug-in unit under master routine.
Finally, perform step S206, according to resource and the dex file of the context loading of plug-in after being replaced.
It should be noted that generally there is when program starts an entrance (Entry), in order to realize plug-in unit triggering after can carry out the loading of resource, we can realize an Entry in plug-in unit.In all entrances, Entry is invoked the earliest, and it is similar to the Dalvik.main of Android, is the place of the most entrance of whole plug-in unit.
Such as following code, is the entrance of a plug-in unit:
String className=PACKAGE_PREFIX+“_”+mName+“_”+CLASS_NAME
Class<?>C=mClassLoader.loadClass(className);
McreateMethod=c.getDeclareMethod(Factory.METHOD_NAME,Factory_METHOD_PARAMS);
Mplugin=(IPlugin)mCreateMethod.invoke(null,mPkgContext,manager);
We first can obtain the entry method of Entry, be Create in the present embodiment, then call the method by reflection, mPkgContext and manager (cache interface is shown in " plug-in unit scheme " series) etc. is passed to plug-in unit entrance and gets final product (as shown in above-mentioned code).
In addition, we use mClassLoader, and this is the ClassLoader of plug-in unit, and that is, Entry.create is present in plug-in unit, but not other is local.Arrive this, whole loading procedure terminates, and plug-in unit can have come to use.
Be described Entry in order to clearer, shown below is the example of an Entry class, as follows:
Wherein, " package com.qihoo360.plugin.antitheft " represents the bag " com.qihoo360.plugin.antitheft " by name of the bag at this Entry class place;
" public class Entry " represents the class " Entry " by name of newly-built class;
" public static final IBinder create " represents that the entrance the earliest of whole plug-in unit is for " cerate " method, and delivers parameter " ClassLoader of plug-in unit Context, plug-in unit IBinder and master routine " wherein;
" return new Plugin (context, cl) " expression returns an interface used by master routine, is perhaps IBinder, perhaps be IPlugin or other, but howsoever, this interface is all finally to return master routine, is dispatched by master routine.
Embodiments provide a kind of method of loading of plug-in.When plug-in unit is triggered, obtain the resource of plug-in unit, the context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit, according to the resource of the context loading of plug-in after being replaced, can solve can not the problem of resource of loading of plug-in due to what can not obtain that plug-in unit context causes under the primary system of Android, and the method does not affect other objects that system generates, compatibility issue can not be caused, even if system there occurs evolution, plug-in unit still can correctly load.
Embodiment three
Fig. 3 is the structured flowchart of the device of a kind of loading of plug-in that one embodiment of the invention provides, and this device 300 comprises:
Source obtaining module 310, is suitable for when plug-in unit is triggered, and obtains the resource of plug-in unit;
First sets up module 320, is suitable for the context context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit, wherein the context of plug-in unit points to the resource of plug-in unit;
Load-on module 330, be suitable for main application according to the resource of the context loading of plug-in after being replaced, wherein, the context after being replaced is the context of plug-in unit.
Alternatively, this device 300 also comprises:
Data obtaining module 340, is suitable for, before the resource obtaining plug-in unit, obtaining the installation kit archive information of plug-in unit.
Alternatively, data obtaining module 340, comprising:
Object acquisition unit 341, is suitable for the PackageManager object obtaining plug-in unit;
Information acquisition unit, is suitable for the installation kit archive information according to PackageManager object acquisition plug-in unit;
Variable amendment unit 342, is suitable for the design variables under installation kit archive information to be revised as preset path;
Wherein, preset path is the store path of plug-in unit.
Alternatively, this device 300 also comprises:
Second sets up module 350, is suitable for before the context of newly-built plug-in unit, the DexClassLoader class of newly-built plug-in unit;
Wherein, DexClassLoader class is used for transmitting the executable code path of plug-in unit.
Alternatively, first set up module 320 and comprise:
Unit 321 set up in context, is suitable for plug-in unit and sets up the context inherited from ContextThemeWrapper class;
Rewriting unit 322, is suitable for rewriteeing for the resource of loading of plug-in and the method function of executable code, returns the context of plug-in unit in the function after rewriting.
Alternatively, for the resource of loading of plug-in and the method function of executable code, comprising:
GetClassLoader, getResources and getAssets.
Alternatively, this device 300 also comprises: plug-in download module 360;
This plug-in download module 360 comprises:
Available judging unit 361, is suitable for before above-mentioned plug-in unit is triggered or when above-mentioned plug-in unit is triggered, and judges whether above-mentioned plug-in unit can be used;
Request transmitting unit 362, is suitable for when above-mentioned plug-in unit is unavailable, sends the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by above-mentioned main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in above-mentioned plug-in unit list.
List reception unit 363, is suitable for receiving the above-mentioned plug-in unit list sent;
Plug-in download unit 364, is suitable for the plug-in unit downloading redaction according to the download address of above-mentioned plug-in unit in above-mentioned plug-in unit list.
Alternatively, this device 300 also comprises:
Authentication module 370, be suitable for after downloading the plug-in unit of redaction according to the download address of above-mentioned plug-in unit in above-mentioned plug-in unit list, whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, perform the step of the resource of the above-mentioned plug-in unit of above-mentioned acquisition.
Alternatively, this device 300 also comprises;
Entrance realizes module 380, and the ClassLoader object being suitable for replacement operation system is the self-defining ClassLoader object of above-mentioned main application;
Wherein, above-mentioned self-defining ClassLoader object is for realizing the loading of above-mentioned plug-in unit.
Embodiments provide a kind of device of loading of plug-in, when plug-in unit is triggered, obtain the resource of plug-in unit, the context of newly-built plug-in unit, and by operating system in advance for the context of distribution of the main application of plug-in unit replaces with the context of plug-in unit, according to the resource of the context loading of plug-in after being replaced, can solve can not the problem of resource of loading of plug-in due to what can not obtain that plug-in unit context causes under the primary system of Android, and the method does not affect other objects that system generates, compatibility issue can not be caused, even if system there occurs evolution, plug-in unit still can correctly load.
In addition, the embodiment of the present invention additionally provides a kind of mobile terminal, and this mobile terminal comprises:
Storer;
One or more processor;
Wherein, this one or more processor is configured to perform following method:
When plug-in unit is triggered, obtain the resource of above-mentioned plug-in unit;
The context context of newly-built above-mentioned plug-in unit, and by operating system in advance for the context of distribution of the main application of above-mentioned plug-in unit replaces with the context of above-mentioned plug-in unit, wherein the context of above-mentioned plug-in unit points to the resource of above-mentioned plug-in unit;
Above-mentioned main application loads the resource of above-mentioned plug-in unit according to the context after being replaced, wherein, above-mentioned be replaced after context be the context of above-mentioned plug-in unit.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the device of the loading of plug-in of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.
The embodiment of the invention also discloses the method for an A1. loading of plug-in, comprising:
When plug-in unit is triggered, obtain the resource of described plug-in unit;
The context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Described main application loads the resource of described plug-in unit according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
A2. the method according to A1, wherein, before the resource obtaining described plug-in unit, also comprises:
Obtain the installation kit archive information of described plug-in unit.
A3. the method according to A2, wherein, the installation kit archive information of the described plug-in unit of described acquisition, comprising:
Obtain the PackageManager object of described plug-in unit;
The installation kit archive information of plug-in unit according to described PackageManager object acquisition;
Design variables under described installation kit archive information is revised as preset path;
Wherein, described preset path is the store path of described plug-in unit.
A4. the method according to any one of A1 to A3, wherein, before the context of newly-built described plug-in unit, described method also comprises:
The DexClassLoader class of newly-built described plug-in unit;
Wherein, described DexClassLoader class is used for transmitting the executable code path of described plug-in unit.
A5. the method according to A4, wherein, the context context of described newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, comprising:
For the context inherited from ContextThemeWrapper class set up by described plug-in unit;
Rewrite the method function for the resource and executable code loading described plug-in unit, in the function after described rewriting, return the context of described plug-in unit.
A6. the method according to A5, wherein, the method function of described resource and executable code for loading described plug-in unit, comprising:
GetClassLoader, getResources and getAssets.
A7. the method according to A1, wherein, before described plug-in unit is triggered or when described plug-in unit is triggered, described method also comprises:
Judge whether described plug-in unit can be used;
When described plug-in unit is unavailable, send the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by described main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in described plug-in unit list.
Receive the described plug-in unit list sent;
The plug-in unit of redaction is downloaded according to the download address of plug-in unit described in described plug-in unit list.
A8. the method according to A7, wherein, after the described download address according to plug-in unit described in described plug-in unit list downloads the plug-in unit of redaction, described method also comprises:
Whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, performs the step of the resource of the described plug-in unit of described acquisition.
A9. the method according to A1, wherein, described method also comprises;
The ClassLoader object of replacement operation system is the self-defining ClassLoader object of described main application;
Wherein, described self-defining ClassLoader object is for realizing the loading of described plug-in unit.
The embodiment of the invention also discloses the device of a B10. loading of plug-in, comprising:
Source obtaining module, is suitable for, when plug-in unit is triggered, obtaining the resource of described plug-in unit;
First sets up module, is suitable for the context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Load-on module, is suitable for described main application loads described plug-in unit resource according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
B11. the device according to B10, wherein, described device also comprises:
Data obtaining module, is suitable for, before the resource obtaining described plug-in unit, obtaining the installation kit archive information of described plug-in unit.
B12. the device according to B11, wherein, described data obtaining module, comprising:
Object acquisition unit, is suitable for the PackageManager object obtaining described plug-in unit;
Information acquisition unit, is suitable for the installation kit archive information of plug-in unit according to described PackageManager object acquisition;
Variable amendment unit, is suitable for the design variables under described installation kit archive information to be revised as preset path;
Wherein, described preset path is the store path of described plug-in unit.
B13. the device according to any one of B10 to B12, wherein, described device also comprises:
Second sets up module, is suitable for before the context of newly-built described plug-in unit, the DexClassLoader class of newly-built described plug-in unit;
Wherein, described DexClassLoader class is used for transmitting the executable code path of described plug-in unit.
B14. the device according to B13, wherein, described first sets up module comprises:
Unit set up in context, is suitable for described plug-in unit and sets up the context inherited from ContextThemeWrapper class;
Rewriting unit, is suitable for rewriteeing the method function for the resource and executable code loading described plug-in unit, returns the context of described plug-in unit in the function after described rewriting.
B15. the device according to B14, wherein, the method function of described resource and executable code for loading described plug-in unit, comprising:
GetClassLoader, getResources and getAssets.
B16. the device according to B10, wherein, described device also comprises: plug-in download module;
Described plug-in download module comprises:
Available judging unit, is suitable for before described plug-in unit is triggered or when described plug-in unit is triggered, and judges whether described plug-in unit can be used;
Request transmitting unit, is suitable for when described plug-in unit is unavailable, sends the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by described main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in described plug-in unit list.
List reception unit, is suitable for receiving the described plug-in unit list sent;
Plug-in download unit, is suitable for the plug-in unit downloading redaction according to the download address of plug-in unit described in described plug-in unit list.
B17. the device according to B16, wherein, described device also comprises:
Authentication module, be suitable for after downloading the plug-in unit of redaction according to the download address of plug-in unit described in described plug-in unit list, whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, perform the step of the resource of the described plug-in unit of described acquisition.
B18. the device according to B10, wherein, described device also comprises;
Entrance realizes module, and the ClassLoader object being suitable for replacement operation system is the self-defining ClassLoader object of described main application;
Wherein, described self-defining ClassLoader object is for realizing the loading of described plug-in unit.
The embodiment of the invention also discloses C19. mobile terminal, it is characterized in that, described mobile terminal comprises:
Storer;
One or more processor;
Wherein, described one or more processor is configured to perform following method:
When plug-in unit is triggered, obtain the resource of described plug-in unit;
The context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Described main application loads the resource of described plug-in unit according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.

Claims (10)

1. a method for loading of plug-in, comprising:
When plug-in unit is triggered, obtain the resource of described plug-in unit;
The context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Described main application loads the resource of described plug-in unit according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
2. method according to claim 1, wherein, before the resource obtaining described plug-in unit, also comprises:
Obtain the installation kit archive information of described plug-in unit.
3. method according to claim 2, wherein, the installation kit archive information of the described plug-in unit of described acquisition, comprising:
Obtain the PackageManager object of described plug-in unit;
The installation kit archive information of plug-in unit according to described PackageManager object acquisition;
Design variables under described installation kit archive information is revised as preset path;
Wherein, described preset path is the store path of described plug-in unit.
4. the method according to any one of claims 1 to 3, wherein, before the context of newly-built described plug-in unit, described method also comprises:
The DexClassLoader class of newly-built described plug-in unit;
Wherein, described DexClassLoader class is used for transmitting the executable code path of described plug-in unit.
5. method according to claim 4, wherein, the context context of described newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, comprising:
For the context inherited from ContextThemeWrapper class set up by described plug-in unit;
Rewrite the method function for the resource and executable code loading described plug-in unit, in the function after described rewriting, return the context of described plug-in unit.
6. method according to claim 5, wherein, the method function of described resource and executable code for loading described plug-in unit, comprising:
GetClassLoader, getResources and getAssets.
7. method according to claim 1, wherein, before described plug-in unit is triggered or when described plug-in unit is triggered, described method also comprises:
Judge whether described plug-in unit can be used;
When described plug-in unit is unavailable, send the request obtaining plug-in unit list to server; Wherein, the plugin name of the plug-in unit included by described main application, plug-in version, the digital digest value of plug-in unit and the download address of plug-in unit is preserved in described plug-in unit list.
Receive the described plug-in unit list sent;
The plug-in unit of redaction is downloaded according to the download address of plug-in unit described in described plug-in unit list.
8. method according to claim 7, wherein, after the described download address according to plug-in unit described in described plug-in unit list downloads the plug-in unit of redaction, described method also comprises:
Whether the digital digest value that the plug-in unit of the redaction obtained is downloaded in checking is identical with the digest value preserved in plug-in unit list, when identical, performs the step of the resource of the described plug-in unit of described acquisition.
9. method according to claim 1, wherein, described method also comprises;
The ClassLoader object of replacement operation system is the self-defining ClassLoader object of described main application;
Wherein, described self-defining ClassLoader object is for realizing the loading of described plug-in unit.
10. a device for loading of plug-in, comprising:
Source obtaining module, is suitable for, when plug-in unit is triggered, obtaining the resource of described plug-in unit;
First sets up module, is suitable for the context context of newly-built described plug-in unit, and by operating system in advance for the context of distribution of the main application of described plug-in unit replaces with the context of described plug-in unit, the context of wherein said plug-in unit points to the resource of described plug-in unit;
Load-on module, is suitable for described main application loads described plug-in unit resource according to the context after being replaced, wherein, described in be replaced after context be the context of described plug-in unit.
CN201510142846.3A 2015-03-27 2015-03-27 A kind of method, apparatus and mobile terminal loading plug-in unit Expired - Fee Related CN104731625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510142846.3A CN104731625B (en) 2015-03-27 2015-03-27 A kind of method, apparatus and mobile terminal loading plug-in unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510142846.3A CN104731625B (en) 2015-03-27 2015-03-27 A kind of method, apparatus and mobile terminal loading plug-in unit

Publications (2)

Publication Number Publication Date
CN104731625A true CN104731625A (en) 2015-06-24
CN104731625B CN104731625B (en) 2019-02-26

Family

ID=53455543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510142846.3A Expired - Fee Related CN104731625B (en) 2015-03-27 2015-03-27 A kind of method, apparatus and mobile terminal loading plug-in unit

Country Status (1)

Country Link
CN (1) CN104731625B (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867956A (en) * 2015-10-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and device for showing plugin view element in host application page
CN105975290A (en) * 2015-10-13 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for analyzing APK document
CN106445598A (en) * 2016-09-28 2017-02-22 北京奇虎科技有限公司 Plug-in loading method and Plug-in loading device
CN106445601A (en) * 2016-09-29 2017-02-22 乐视控股(北京)有限公司 Device and method for plugin upgrading
CN106599066A (en) * 2016-11-16 2017-04-26 广州视源电子科技股份有限公司 Document loading method and system
CN106598642A (en) * 2016-11-07 2017-04-26 北京奇虎科技有限公司 Method and device for using services in plug-in
CN106681749A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Local code patch updating method and device based on Android platform
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106775754A (en) * 2016-12-30 2017-05-31 百度在线网络技术(北京)有限公司 The compatible processing method and processing device of application
CN106775793A (en) * 2015-11-23 2017-05-31 卓望数码技术(深圳)有限公司 A kind of Android application exempts to install method, device and the terminal for starting
CN106951236A (en) * 2017-03-07 2017-07-14 东软集团股份有限公司 The development approach and device of plug-in unit
CN107203524A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of method for APK file of packing, the method and system for loading Bundle files
CN108008985A (en) * 2017-11-20 2018-05-08 北京奇虎科技有限公司 Application program loading method and device
CN108037941A (en) * 2017-12-27 2018-05-15 掌阅科技股份有限公司 Application program update method, electronic equipment based on public plug-in unit, storage medium
WO2018103610A1 (en) * 2016-12-05 2018-06-14 腾讯科技(深圳)有限公司 Plug-in loading method and device, terminal and storage medium
CN108228266A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Start the method and apparatus of Fragment components under a kind of Android card cages between different plug-in units
CN108491216A (en) * 2018-03-05 2018-09-04 北京指掌易科技有限公司 A kind of method of android system unaware application installation upgrading
CN109388919A (en) * 2017-08-10 2019-02-26 蓝盾信息安全技术股份有限公司 In a kind of Android ART virtual machine after dynamically load encryption plug-in unit solution
CN110908933A (en) * 2019-10-23 2020-03-24 深圳智链物联科技有限公司 Method and system compatible with Windows equipment and related equipment
CN111142972A (en) * 2019-12-27 2020-05-12 京东数字科技控股有限公司 Method, apparatus, system, and medium for extending functions of application program
CN111459570A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 PDF plug-in loading method, electronic equipment and computer storage medium
WO2021196597A1 (en) * 2020-04-02 2021-10-07 深圳创维-Rgb电子有限公司 Service plug-in loading implementation method and apparatus, and terminal device
CN117407115A (en) * 2023-12-15 2024-01-16 江苏金融租赁股份有限公司 Interface display method and device based on dynamic loading plug-in

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2521025A1 (en) * 2010-01-28 2012-11-07 Huawei Device Co., Ltd. Component display processing method and user device
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins
CN104049986A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Plugin loading method and device
CN104123151A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Plug-in management method and device for application program in mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2521025A1 (en) * 2010-01-28 2012-11-07 Huawei Device Co., Ltd. Component display processing method and user device
CN104049986A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Plugin loading method and device
CN104123151A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Plug-in management method and device for application program in mobile terminal and mobile terminal
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975290A (en) * 2015-10-13 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for analyzing APK document
WO2017071191A1 (en) * 2015-10-28 2017-05-04 乐视控股(北京)有限公司 Method and device for displaying plug-in view element in host application page
CN105867956A (en) * 2015-10-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and device for showing plugin view element in host application page
CN106681749A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Local code patch updating method and device based on Android platform
CN106775793A (en) * 2015-11-23 2017-05-31 卓望数码技术(深圳)有限公司 A kind of Android application exempts to install method, device and the terminal for starting
CN107203524A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of method for APK file of packing, the method and system for loading Bundle files
CN106445598A (en) * 2016-09-28 2017-02-22 北京奇虎科技有限公司 Plug-in loading method and Plug-in loading device
CN106445601A (en) * 2016-09-29 2017-02-22 乐视控股(北京)有限公司 Device and method for plugin upgrading
CN106598642A (en) * 2016-11-07 2017-04-26 北京奇虎科技有限公司 Method and device for using services in plug-in
CN106598642B (en) * 2016-11-07 2020-05-15 北京奇虎科技有限公司 Method and device for using service in plug-in
CN106599066A (en) * 2016-11-16 2017-04-26 广州视源电子科技股份有限公司 Document loading method and system
US11263027B2 (en) 2016-12-05 2022-03-01 Tencent Technology (Shenzhen) Company Limited Plugin loading method and apparatus, terminal, and storage medium
CN108170485B (en) * 2016-12-05 2021-06-11 腾讯科技(深圳)有限公司 Plug-in loading method and device and mobile terminal
US10891141B2 (en) 2016-12-05 2021-01-12 Tencent Technology (Shenzhen) Company Limited Plugin loading method and apparatus, terminal, and storage medium
WO2018103610A1 (en) * 2016-12-05 2018-06-14 腾讯科技(深圳)有限公司 Plug-in loading method and device, terminal and storage medium
CN108170485A (en) * 2016-12-05 2018-06-15 腾讯科技(深圳)有限公司 A kind of plug-in loading method, device and mobile terminal
CN108228266A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Start the method and apparatus of Fragment components under a kind of Android card cages between different plug-in units
CN106775754A (en) * 2016-12-30 2017-05-31 百度在线网络技术(北京)有限公司 The compatible processing method and processing device of application
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN106951236A (en) * 2017-03-07 2017-07-14 东软集团股份有限公司 The development approach and device of plug-in unit
CN106951236B (en) * 2017-03-07 2020-06-05 东软集团股份有限公司 Plug-in development method and device
CN109388919A (en) * 2017-08-10 2019-02-26 蓝盾信息安全技术股份有限公司 In a kind of Android ART virtual machine after dynamically load encryption plug-in unit solution
CN108008985A (en) * 2017-11-20 2018-05-08 北京奇虎科技有限公司 Application program loading method and device
CN108037941A (en) * 2017-12-27 2018-05-15 掌阅科技股份有限公司 Application program update method, electronic equipment based on public plug-in unit, storage medium
CN108491216A (en) * 2018-03-05 2018-09-04 北京指掌易科技有限公司 A kind of method of android system unaware application installation upgrading
CN108491216B (en) * 2018-03-05 2021-07-13 北京指掌易科技有限公司 Method for installing and upgrading non-sensory application of Android system
CN110908933A (en) * 2019-10-23 2020-03-24 深圳智链物联科技有限公司 Method and system compatible with Windows equipment and related equipment
CN111142972A (en) * 2019-12-27 2020-05-12 京东数字科技控股有限公司 Method, apparatus, system, and medium for extending functions of application program
CN111459570A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 PDF plug-in loading method, electronic equipment and computer storage medium
CN111459570B (en) * 2020-03-30 2023-03-17 掌阅科技股份有限公司 PDF plug-in loading method, electronic equipment and computer storage medium
WO2021196597A1 (en) * 2020-04-02 2021-10-07 深圳创维-Rgb电子有限公司 Service plug-in loading implementation method and apparatus, and terminal device
CN117407115A (en) * 2023-12-15 2024-01-16 江苏金融租赁股份有限公司 Interface display method and device based on dynamic loading plug-in
CN117407115B (en) * 2023-12-15 2024-02-20 江苏金融租赁股份有限公司 Interface display method and device based on dynamic loading plug-in

Also Published As

Publication number Publication date
CN104731625B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN104731625A (en) Method, device and mobile terminal for loading plugin
US8887152B1 (en) Android application virtual environment
KR101619557B1 (en) Computer application packages with customizations
US8336043B2 (en) Dynamic deployment of custom code
US9542552B2 (en) Extensible platform for securing apps on a mobile device using policies and customizable action points
CN107220083A (en) Exempt from the method and system of installation and operation application program in a kind of Android system
CN106295255B (en) Application program reinforcing method and device
US20130205415A1 (en) Network linker for secure execution of unsecured apps on a device
CN104375861A (en) Installation-free operation method and device for application programs based on Android platform and terminal
RU2339076C2 (en) Execution of non-verified programs in radio communication device
CN104077160B (en) A kind of method, apparatus and system for upgrading Android software
US9747145B2 (en) Mobile application configuration agnostic to operating system versions
CN108536451B (en) Method and device for embedding embedded point of application program
MXPA05003944A (en) Efficient patching.
CN104217140A (en) Method and device for reinforcing application program
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN111897520A (en) Front-end project framework construction method and device, computer equipment and storage medium
CN104899025A (en) Method and device for generating channel package
US20070282801A1 (en) Dynamically creating and executing an application lifecycle management operation
CN103761178A (en) Method for realizing application uninstalling surveys
CN104750528A (en) Management method and device for components in Android program
US20050091259A1 (en) Framework to build, deploy, service, and manage customizable and configurable re-usable applications
CN104156215A (en) Method and device for obtaining application program information on basis of mobile operating system
CN112189187A (en) Extensibility of unified platform
CN111625260A (en) Method and system based on mixed mobile application program upgrading

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220719

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190226