CN104731623B - Mastery routine starts the method and device of plug-in unit - Google Patents
Mastery routine starts the method and device of plug-in unit Download PDFInfo
- Publication number
- CN104731623B CN104731623B CN201510142838.9A CN201510142838A CN104731623B CN 104731623 B CN104731623 B CN 104731623B CN 201510142838 A CN201510142838 A CN 201510142838A CN 104731623 B CN104731623 B CN 104731623B
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- mark
- anterior
- unit mark
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 92
- 230000003044 adaptive effect Effects 0.000 claims abstract description 24
- 238000012795 verification Methods 0.000 claims description 52
- 230000008569 process Effects 0.000 claims description 41
- 230000008878 coupling Effects 0.000 claims description 22
- 238000010168 coupling process Methods 0.000 claims description 22
- 238000005859 coupling reaction Methods 0.000 claims description 22
- 238000012937 correction Methods 0.000 claims description 8
- 101100217298 Mus musculus Aspm gene Proteins 0.000 claims 2
- 238000001914 filtration Methods 0.000 claims 2
- 230000008901 benefit Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002147 killing effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides the method and device starting plug-in unit in a kind of mastery routine.The method includes: when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;In a plurality of plug-in unit mark that corresponding plug-in unit is all adaptive with described mastery routine, search and the described plug-in unit mark mated when anterior plug-in mark, obtain lookup result;Corresponding plug-in unit is started according to described lookup result.The technical scheme that the embodiment of the present invention provides can improve the matching rate of plug-in unit mark, it is possible to realizes compatible early version, improves the purpose for the treatment of effeciency.
Description
Technical field
The present invention relates to computer processing technology field, a kind of mastery routine start the method and device of plug-in unit.
Background technology
In software development, for convenience software is carried out Function Extension, can develop, by soft to use plug-in unit mode
Each plug-in unit, in plug-in unit, is finally integrated in software main program bag and together sends out by part function package one by one to be realized
Cloth.
Normal mutual in order to ensure between plug-in unit and mastery routine, need plug-in unit adaptive with mastery routine, in correlation technique, pass through
The one-to-one relationship write in main program code between dead mastery routine version and plug-in version realizes.Such as, mastery routine from
Version 1 is upgraded to version 2, and now plug-in unit is also upgraded to version 2 from version 1, can write in correlation technique in main program code
It is normal mutual that the one-to-one relationship of mastery routine version 2 and plug-in version 2 ensures between the two.Although and plug-in version 1 energy
Enough adaptive mastery routine version 2s, but write dead one-to-one relationship due to this, plug-in unit version can be mistakenly considered when mastery routine is called
This 1 is the plug-in unit lost efficacy and is not called, if there has been no the related data of plug-in version 2 in current mastery routine bag, then also
Need it is downloaded, treatment effeciency can be reduced, cause the waste of resource.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State the method and device starting plug-in unit in the mastery routine of problem.
According to one aspect of the present invention, it is provided that a kind of method starting plug-in unit in mastery routine, including: slotting when receiving
During the enabled instruction of part, obtain identifying when anterior plug-in of plug-in unit to be launched;Corresponding plug-in unit all with described mastery routine adaptation
In a plurality of plug-in unit mark, search and the described plug-in unit mark mated when anterior plug-in mark, obtain lookup result;According to described lookup
Result starts corresponding plug-in unit.
Alternatively, start corresponding plug-in unit according to described lookup result, including: if described lookup result is for finding and institute
State when the plug-in unit mark of anterior plug-in mark coupling, then start described plug-in unit to be launched;If described lookup result for do not find with
Described when the plug-in unit mark of anterior plug-in mark coupling, then from described a plurality of plug-in unit identifies, choose a plug-in unit mark, Jin Ergen
Download corresponding plug-in unit according to the described plug-in unit mark chosen, and start after the download is complete.
Alternatively, from described a plurality of plug-in unit identifies, choose a plug-in unit mark, including: in the plug-in unit mark pre-build
With the corresponding relation of plug-in version, search described a plurality of plug-in unit and identify each self-corresponding plug-in version;According to described plug-in unit version
This, choose a plug-in unit mark from described a plurality of plug-in unit identifies.
Alternatively, if there is multiple package types in described a plurality of plug-in unit mark, and every kind of package types corresponding one or
A plurality of plug-in unit identifies;According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark, including: obtain
The typonym of described plug-in unit to be launched;The typonym pair of described plug-in unit to be launched is filtered out from described a plurality of plug-in unit identifies
At least one plug-in unit mark answered;According to described plug-in version, from described at least one plug-in unit mark, choose a plug-in unit mark
Know.
Alternatively, according to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark, including: from
In described a plurality of plug-in unit mark, choose the plug-in unit mark that up-to-date plug-in version is corresponding.
Alternatively, download corresponding plug-in unit according to the described plug-in unit chosen mark, including: according to described choose one
Bar plug-in unit identifies, and generates URL (Uniform Resource Locator, URL);Phase is downloaded according to described URL
The plug-in unit answered.
Alternatively, described after the download is complete, before starting, also include: to download plug-in unit verify, if school
Test and pass through, then start the plug-in unit of described download;And if verification do not pass through, then the information that output verification is failed.
Alternatively, the described plug-in unit to downloading verifies, including: obtain the target plug-in mark of the plug-in unit of described download
Know;In described a plurality of plug-in unit identifies, search the plug-in unit mark mated with described target plug-in mark;If finding, it is determined that
Verification is passed through;If not finding, it is determined that verification is not passed through.
Alternatively, described plug-in unit mark includes at least one following:
MD5 (Message Digest Algorithm5, the message digest algorithm 5) value of plug-in unit;
SHA1 (Secure Hash Algorithm1, the Secure Hash Algorithm 1) value of plug-in unit.
Alternatively, described method also includes: capture backstage plug-in unit upgrade event, acquisition carries out the plug-in unit mark of the plug-in unit upgraded
Know;The plug-in unit mark of the plug-in unit according to described upgrading, updates described a plurality of plug-in unit mark.
Alternatively, described after the download is complete, before starting, also include: travel through the process of all startups, it is judged that be
The no process started that exists belongs to described when the plug-in unit of anterior plug-in mark;If existing, then kill described inserting when anterior plug-in mark
The startup process of part, and start new process to run the plug-in unit of described download.
According to another aspect of the present invention, additionally provide the device starting plug-in unit in a kind of mastery routine, including:
Acquisition module, is suitable to when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
Search module, be suitable in a plurality of plug-in unit mark that the plug-in unit of its correspondence is all adaptive with described mastery routine, lookup and
Described when the plug-in unit mark of anterior plug-in mark coupling, obtain lookup result;
Start module, be suitable to start corresponding plug-in unit according to described lookup result.
Alternatively, described startup module is further adapted for: if described lookup result is for finding with described when anterior plug-in mark
The plug-in unit mark joined, then start described plug-in unit to be launched;If described lookup result is not for finding with described when anterior plug-in mark
The plug-in unit mark of coupling, then choose a plug-in unit mark from described a plurality of plug-in unit identifies, and then according to described chosen
Plug-in unit mark downloads corresponding plug-in unit, and starts after the download is complete.
Alternatively, described startup module is further adapted for: in the corresponding relation of the plug-in unit mark pre-build and plug-in version,
Search described a plurality of plug-in unit and identify each self-corresponding plug-in version;According to described plug-in version, from described a plurality of plug-in unit identifies
Choose a plug-in unit mark.
Alternatively, described startup module is further adapted for: if there is multiple package types, and every kind in described a plurality of plug-in unit mark
The corresponding one or more plug-in unit mark of package types;Obtain the typonym of described plug-in unit to be launched;From described a plurality of plug-in unit mark
Knowledge filters out at least one plug-in unit mark that the typonym of described plug-in unit to be launched is corresponding;According to described plug-in version, from
Described at least one plug-in unit mark chooses a plug-in unit mark.
Alternatively, described startup module is further adapted for: from described a plurality of plug-in unit identifies, choose up-to-date plug-in version corresponding
Plug-in unit identifies.
Alternatively, described startup module is further adapted for: according to the described plug-in unit mark chosen, generate URL;According to described
URL downloads corresponding plug-in unit.
Alternatively, described device also includes:
Correction verification module, be suitable to described in after the download is complete, before starting, to download plug-in unit verify, if school
Test and pass through, then start the plug-in unit of described download;And if verification do not pass through, then the information that output verification is failed.
Alternatively, described correction verification module is further adapted for: obtain the target plug-in mark of the plug-in unit of described download;Described a plurality of
In plug-in unit mark, search the plug-in unit mark mated with described target plug-in mark;If finding, it is determined that verification is passed through;If not
Find, it is determined that verification is not passed through.
Alternatively, described plug-in unit mark includes at least one following:
The MD5 value of plug-in unit;
The SHA1 value of plug-in unit.
Alternatively, described device also includes:
More new module, is suitable to capture backstage plug-in unit upgrade event, and acquisition carries out the plug-in unit mark of the plug-in unit upgraded;According to institute
State the plug-in unit mark of the plug-in unit of upgrading, update described a plurality of plug-in unit mark.
Alternatively, described after the download is complete, before starting, described startup module is further adapted for: travel through all startups
Process, it may be judged whether there is the process of startup and belong to described when the plug-in unit of anterior plug-in mark;If exist, then kill described currently
The startup process of the plug-in unit of plug-in unit mark, and start new process to run the plug-in unit of described download.
According to an additional aspect of the present invention, additionally provide a kind of terminal, including:
Memorizer;
One or more processors;
Wherein, the one or more processor is configured to perform following method:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that the plug-in unit of correspondence is all adaptive with described mastery routine, search with described when anterior plug-in mark
The plug-in unit mark of coupling, obtains lookup result;
Corresponding plug-in unit is started according to described lookup result.
In the embodiment of the present invention, there is a plurality of plug-in unit mark, (type of plug-in unit can be a kind of or many to the plug-in unit of its correspondence
Kind) all adaptive with mastery routine.When receiving the enabled instruction of plug-in unit, and get plug-in unit to be launched when anterior plug-in identifies,
The plug-in unit mark mated with when anterior plug-in mark can be searched, compared to prior art being merely able to make in a plurality of plug-in unit identifies
By fixing plug-in unit mark, the technical scheme that the embodiment of the present invention provides can improve the matching rate of plug-in unit mark.Further,
Owing to finding plug-in unit mark mate with when anterior plug-in mark, just can directly initiate plug-in unit to be launched, search less than with ought
The plug-in unit mark of anterior plug-in mark coupling, needs further exist for downloading the plug-in unit adaptive with mastery routine, thus, the present invention is at plug-in unit mark
The number of times of download can be reduced in the case of knowledge matching rate is higher, improve treatment effeciency.Further, a plurality of plug-in unit that the present invention provides
Mark can comprise the plug-in unit mark of some early version plug-in units, when being so early version plug-in unit for plug-in unit to be launched, this
Bright still can search that the match is successful, thus solve and prior art can be mistakenly considered when mastery routine is called early version plug-in unit be
The plug-in unit that lost efficacy and be not called, cause the problems such as the wasting of resources, it is achieved compatible early version, improve the purpose for the treatment of effeciency.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
According to below in conjunction with the accompanying drawing detailed description to the specific embodiment of the invention, those skilled in the art will be brighter
Above-mentioned and other purposes, advantage and the feature of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the method starting plug-in unit in mastery routine according to an embodiment of the invention;
Fig. 2 shows the flow chart of the method starting plug-in unit in mastery routine in accordance with another embodiment of the present invention;
Fig. 3 shows the flow chart of the method for backstage plug-in unit upgrading according to an embodiment of the invention;
Fig. 4 shows the structural representation of the device starting plug-in unit in mastery routine according to an embodiment of the invention;With
And
Fig. 5 shows the structural representation of the device starting plug-in unit in mastery routine in accordance with another embodiment of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
For solving above-mentioned technical problem, the invention provides a kind of method starting plug-in unit in mastery routine.Fig. 1 shows root
Flow chart according to the method starting plug-in unit in the mastery routine of one embodiment of the invention.As it is shown in figure 1, the method at least include with
Lower step S102 is to step S106.
Step S102, when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify.
Step S104, in a plurality of plug-in unit that corresponding plug-in unit is all adaptive with mastery routine identifies, search and when anterior plug-in mark
Know the plug-in unit mark of coupling, obtain lookup result.
Step S106, start corresponding plug-in unit according to lookup result.
In the embodiment of the present invention, there is a plurality of plug-in unit mark, (type of plug-in unit can be a kind of or many to the plug-in unit of its correspondence
Kind) all adaptive with mastery routine.When receiving the enabled instruction of plug-in unit, and get plug-in unit to be launched when anterior plug-in identifies,
The plug-in unit mark mated with when anterior plug-in mark can be searched, compared to prior art being merely able to make in a plurality of plug-in unit identifies
By fixing plug-in unit mark, the technical scheme that the embodiment of the present invention provides can improve the matching rate of plug-in unit mark.Further,
Owing to finding plug-in unit mark mate with when anterior plug-in mark, just can directly initiate plug-in unit to be launched, search less than with ought
The plug-in unit mark of anterior plug-in mark coupling, needs further exist for downloading the plug-in unit adaptive with mastery routine, thus, the present invention is at plug-in unit mark
The number of times of download can be reduced in the case of knowledge matching rate is higher, improve treatment effeciency.Further, a plurality of plug-in unit that the present invention provides
Mark can comprise the plug-in unit mark of some early version plug-in units, when being so early version plug-in unit for plug-in unit to be launched, this
Bright still can search that the match is successful, thus solve and prior art can be mistakenly considered when mastery routine is called early version plug-in unit be
The plug-in unit that lost efficacy and be not called, cause the problems such as the wasting of resources, it is achieved compatible early version, improve the purpose for the treatment of effeciency.
Mastery routine mentioned above, i.e. host program, such as 360 mobile phone bodyguards, 360 virus killings etc..Plug-in unit refers to applets,
Such as " antitheft " plug-in unit in 360 mobile phone bodyguards, " start accelerate " plug-in unit, " calendar " plug-in unit, etc..It addition, above step S102
In the plug-in unit mark mentioned can be MD5 value or the SHA1 value etc. of plug-in unit.Concrete, the embodiment of the present invention is calculated by MD5
Method calculates unique hash (Hash) value of plug-in unit, i.e. MD5 value.Typical case's application of MD5 algorithm is to a segment information
(Message) informative abstract (Message-Digest) is produced, to prevent from being tampered.MD5 by whole file as a big literary composition
This information, by its irreversible character string mapping algorithm, creates this unique MD5 informative abstract.Certainly, the present invention is real
Execute example according to practical situation use other algorithms calculate executable file cryptographic Hash be all feasible, for example with SHA1 etc.,
This is not limiting as by the present invention.
Further, a plurality of plug-in unit mark mentioned in above step S104, the plug-in unit of its correspondence is all adaptive with mastery routine,
I.e. can be the most mutual between plug-in unit and mastery routine.Further, a plurality of plug-in unit mark can include inserting of some early version plug-in units
Part identifies, and meets normal mutual.It addition, a plurality of plug-in unit mark can write in main program code, it is also possible to write on text
In file, text file can be stored in this locality or Cloud Server.
The plug-in unit mark mated with when anterior plug-in mark, after obtaining lookup result, step S106 is searched in step S104
The middle plug-in unit starting correspondence according to lookup result, i.e. according to the difference of lookup result, starts corresponding inserting in the embodiment of the present invention
The scheme of part is the most different, is introduced separately below.
First, if lookup result is to find the plug-in unit mark mated with when anterior plug-in mark, then plug-in unit to be launched is started.
Such as, a plurality of plug-in unit mark is respectively mark 1,2 and 3, and wherein identifying 1,2 is all early version plug-in unit, and mark 3 is that latest edition is inserted
Part, when anterior plug-in is designated mark 2, now finds in a plurality of plug-in unit mark (mark 1,2 and 3) and identifies with when anterior plug-in
The plug-in unit mark that (mark 2) mates, can directly initiate when the plug-in unit to be launched of anterior plug-in mark correspondence.And in prior art,
The one-to-one relationship writing dead mastery routine version and latest edition plug-in unit (mark 3) in main program code the most just ensures
The most mutual, now do not mate with latest edition plug-in unit (mark 3) when anterior plug-in mark (mark 2), need to download latest edition
Plug-in unit, thus can reduce treatment effeciency, cause the waste of resource.
Secondly, if lookup result is not find the plug-in unit mark mated with when anterior plug-in mark, then from a plurality of plug-in unit mark
Knowledge is chosen a plug-in unit mark, and then according to the plug-in unit mark corresponding plug-in unit of download chosen, and after the download is complete
Start.Here, search and have multiple less than the reason of the plug-in unit mark mated with when anterior plug-in mark, plug-in unit the most to be launched
Having damage, it changes when anterior plug-in mark (such as MD5 value), causes that it fails to match.The version of plug-in unit the most to be launched is
Through the oldest, it can not meet and there is not this plug-in unit in a plurality of plug-in unit mark with the normal of mastery routine and identify alternately, thus lookup
Less than the plug-in unit mark of coupling, etc..At this time, it may be necessary to choose a plug-in unit mark from a plurality of plug-in unit identifies, and then according to choosing
The plug-in unit mark taken downloads corresponding plug-in unit, and wherein, the mode choosing a plug-in unit mark from a plurality of plug-in unit identifies has
Multiple, as chosen according to the size of the corresponding plug-in unit of plug-in unit mark, and for example evaluate according to the user of the corresponding plug-in unit of plug-in unit mark
Information is chosen, and chooses according to the version information of the corresponding plug-in unit of plug-in unit mark for another example, etc..
In a preferred embodiment of the invention, can be in the plug-in unit mark pass corresponding with plug-in version pre-build
In system, search a plurality of plug-in unit and identify each self-corresponding plug-in version, and then according to plug-in version, choose from a plurality of plug-in unit identifies
Article one, plug-in unit mark, such as, from a plurality of plug-in unit identifies, choose the plug-in unit mark that up-to-date plug-in version is corresponding.Further, if
A plurality of plug-in unit mark exists multiple package types, and every kind of corresponding one or more plug-in unit mark of package types, then can obtain
Take the typonym of plug-in unit to be launched, filter out from a plurality of plug-in unit identifies subsequently the typonym of plug-in unit to be launched corresponding to
Few plug-in unit mark, and then according to plug-in version, from least one plug-in unit mark, choose a plug-in unit mark.Such as, many
There are two kinds of package types, respectively plug-in unit A and plug-in unit B in bar plug-in unit mark, as shown in table 1 below, the latest edition of plug-in unit A is
2, the version 1 of mastery routine adaptation plug-in unit A and version 2, the latest edition of plug-in unit B is 1, the version 1 of mastery routine adaptation plug-in unit B, inserts
Plug-in unit mark (i.e. MD5 value) of two plug-in versions of part A is respectively the plug-in unit mark of the version 1 of A111 and A222, plug-in unit B
(i.e. MD5 value) is B111.
Table 1
The typonym of plug-in unit | Plug-in version | The MD5 value of plug-in unit |
Plug-in unit A | 1 | A111 |
Plug-in unit A | 2 | A222 |
Plug-in unit B | 1 | B111 |
If the typonym of plug-in unit to be launched is plug-in unit A, then can choose one from plug-in unit mark A111 and A222 and insert
Part identifies, such as, choose the plug-in unit mark A222 of up-to-date plug-in version 2 correspondence of plug-in unit A, and then according to the plug-in unit chosen
Mark downloads corresponding plug-in unit, and starts after the download is complete.It should be noted that the plugin information in table 1 is only row
Lifting, plugin information can also include the information such as plug-in unit size, brief introduction, so can in conjunction with plug-in version, plug-in unit size,
The information such as brief introduction carry out choosing of plug-in unit mark, meet diversified demand.
Further, a plug-in unit mark according to choosing downloads corresponding plug-in unit, the invention provides a kind of preferred
Scheme, in this scenario, can generate URL according to the plug-in unit mark chosen, and then downloads corresponding plug-in unit according to URL.
As a example by the plug-in unit mark A222 of up-to-date plug-in version 2 correspondence choosing plug-in unit A in table 1, it is assumed that its address prefix is http: //
A.360.cn/plgs/, the up-to-date plug-in version 2 of download plug-in A, the URL address first spliced be http://a.360.cn/
Plgs/PlgA-2.apk, wherein PlgA indication plug unit A ,-2 indication plug unit version 2s.Then, under this URL transmission request is carried out
Carrying, file entitled " typonym+.apk.tmp of plug-in unit ", need not write plug-in version number, the file such as plug-in unit A is entitled
" PlgA.apk.tmp ", for downloading success or failure, can carry out message notifying.
In order to increase safety, after plug-in download completes, before starting, the legitimacy to plug-in unit is needed to carry out school
Test, if verification pass through, then start the plug-in unit of download, and if verification do not pass through, then the information that output verification is failed.Further
Ground, it is possible to use the plug-in unit downloaded is verified by plug-in unit mark, i.e. obtains the target plug-in mark of the plug-in unit of download, exists subsequently
In a plurality of plug-in unit mark, search the plug-in unit mark mated with target plug-in mark, if finding, it is determined that verification is passed through, permissible
Start the plug-in unit downloaded, if not finding, it is determined that verification is not passed through, can be with the failed information of output verification.Here, download also
After verifying successfully, the .tmp suffix in filename can be removed, as originally downloaded early version plug-in unit, the most directly cover.
Additionally, the embodiment of the present invention can also capture backstage plug-in unit upgrade event, obtain inserting of the plug-in unit that carries out upgrading
Part mark, and then the plug-in unit mark of the plug-in unit according to upgrading, update a plurality of plug-in unit mark, it is achieved upgrade in time, improve lookup
The accuracy rate joined.It addition, the present invention can also identify according to a plurality of plug-in unit, the plug-in unit in background update mastery routine, such as, than
Relatively identify with a plurality of plug-in unit when the plug-in unit mark of anterior plug-in, if a plurality of plug-in unit mark existing and when the plug-in unit mark of anterior plug-in
The plug-in unit mark joined, then determine whether, when whether anterior plug-in is the plug-in unit of latest edition, not the most to be updated upgrading,
If it is not, then work as anterior plug-in according to the plug-in unit mark upgrading of the plug-in unit of latest edition.If a plurality of plug-in unit mark in do not exist with currently
The plug-in unit mark of the plug-in unit mark coupling of plug-in unit, then search the latest edition when anterior plug-in, and then according to the plug-in unit of latest edition
Plug-in unit mark download corresponding plug-in unit.
It is described above the multiple implementation of each link in the embodiment shown in Fig. 1, comes below by specific embodiment
Realize process is discussed in detail.
Embodiment one
Fig. 2 shows the flow chart of the method starting plug-in unit in mastery routine in accordance with another embodiment of the present invention.Such as Fig. 2
Shown in, the method at least comprises the following steps S202 to step S214.
Step S202, receive plug-in unit enabled instruction, obtain plug-in unit to be launched when anterior plug-in identify.
Step S204, in a plurality of plug-in unit that corresponding plug-in unit is all adaptive with mastery routine identifies, search and when anterior plug-in mark
Know the plug-in unit mark of coupling, obtain lookup result, if lookup result is to find the plug-in unit mark mated with when anterior plug-in mark,
Then continue executing with step S206;If lookup result is not find the plug-in unit mark mated with when anterior plug-in mark, then continue to hold
Row step S208.
Step S206, start plug-in unit to be launched.
Step S208, from a plurality of plug-in unit identifies, choose plug-in unit mark, and then according to the plug-in unit mark chosen
Download corresponding plug-in unit.
Step S210, to download plug-in unit verify, if verification pass through, then continue executing with step S212;If verification is not
Pass through, then continue executing with step S214.
The plug-in unit that step S212, startup are downloaded.
Before starting the plug-in unit downloaded, the embodiment of the present invention just can start if not entering journey with killing process
If, the plug-in unit of possible early version is also running, it is possible that various unexpected problem, such as Resource Manager
(resource management) conflict etc..In an embodiment of the present invention, killing process can be realized by following steps A1-A2:
Step A1, travel through the process of all startups, it may be judged whether the process that there is startup belongs to inserting when anterior plug-in mark
Part, if existing, then continues executing with step A2;If not existing, then continue executing with step A3.
Step A2, kill when the startup process of plug-in unit of anterior plug-in mark, and start new process to run inserting of downloading
Part.
In this step, can directly be judged by the state of STATE, if the process that there is startup belongs to works as anterior plug-in
The plug-in unit of mark, then call killProcess and force to kill this process, re-create it afterwards, it is ensured that when process is run not
Can conflict.
Step A3, directly initiate new process with run download plug-in unit.
The information that step S214, output verification are failed, returns and performs step S208.
In the embodiment of the present invention, in a plurality of plug-in unit identifies, search the plug-in unit mark mated with when anterior plug-in mark, if looking into
Find the plug-in unit mark mated with when anterior plug-in mark, just can directly initiating plug-in unit to be launched, inserting less than with current if searching
The plug-in unit mark of part mark coupling, then download the plug-in unit adaptive with mastery routine.Further, after plug-in download completes, start
, the legitimacy of plug-in unit is verified before, add the safety of system.
Embodiment two
Can also capture backstage plug-in unit upgrade event in the embodiment of the present invention, acquisition carries out the plug-in unit mark of the plug-in unit upgraded
Know, and then the plug-in unit mark of the plug-in unit according to upgrading, update a plurality of plug-in unit mark, it is achieved upgrade in time, improve and search coupling
Accuracy rate.Fig. 3 shows the flow chart of the method for backstage plug-in unit upgrading according to an embodiment of the invention.As it is shown on figure 3, should
Method at least comprises the following steps S302 to step S314.
Step S302, capture backstage plug-in unit upgrade event, obtain the plug-in unit mark of plug-in unit to be upgraded.
Here, capture backstage plug-in unit upgrade event can realize in several ways, such as, pre-set update time
Or certain upgrade event pre-set is triggered etc..
The plug-in unit mark of the plug-in unit that step S304, comparison are to be upgraded identifies with a plurality of plug-in unit, it is judged that plug-in unit to be upgraded
Whether plug-in version is latest edition, the most then continue executing with step S306;If it is not, then continue executing with step S308.
Step S306, the updating operation that do not carries out, return step S302.
Step S308, from a plurality of plug-in unit identifies, choose the plug-in unit mark of the latest edition of corresponding plug-in unit, and then according to
The plug-in unit mark of redaction downloads corresponding plug-in unit.
Step S310, to download plug-in unit verify, if verification pass through, then continue executing with step S312;If verification is not
Pass through, then continue executing with step S314.
The plug-in unit that step S312, utilization are downloaded carries out plug-in unit upgrading.
The information that step S314, output verification are failed, returns and performs step S308.
In the embodiment of the present invention, identify according to a plurality of plug-in unit, the plug-in unit in background update mastery routine.Further, also
Can capture backstage plug-in unit upgrade event, acquisition carries out the plug-in unit mark of the plug-in unit upgraded, and then inserting according to the plug-in unit upgraded
Part identifies, and updates a plurality of plug-in unit mark, it is achieved upgrade in time, improves the accuracy rate searching coupling.
It should be noted that in actual application, above-mentioned all optional embodiments can any group in the way of using combination
Closing, form the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides the device starting plug-in unit in a kind of mastery routine.Fig. 4 shows
Go out the structural representation of the device starting plug-in unit in mastery routine according to an embodiment of the invention.As shown in Figure 4, this device
At least may include that acquisition module 410, search module 420 and start module 430.
Now introduce each composition of the device starting plug-in unit in the mastery routine of the embodiment of the present invention or the function of device and each
Annexation between part:
Acquisition module 410, is suitable to when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in mark
Know;
Search module 420, be coupled with acquisition module 410, be suitable to the plug-in unit in its correspondence all adaptive with mastery routine many
In bar plug-in unit mark, search the plug-in unit mark mated with when anterior plug-in mark, obtain lookup result;
Start module 430, be coupled with searching module 420, be suitable to start corresponding plug-in unit according to lookup result.
Here, acquisition module 410 obtain when anterior plug-in mark can be MD5 value or SHA1 value etc. of plug-in unit.Specifically
, the embodiment of the present invention is calculated unique hash (Hash) value of plug-in unit, i.e. MD5 value by MD5 algorithm.MD5 algorithm
Typical case's application is that a segment information (Message) is produced informative abstract (Message-Digest), to prevent from being tampered.MD5 will
Whole file is as a big text message, by its irreversible character string mapping algorithm, creates this unique MD5 letter
Breath summary.Certainly, the cryptographic Hash that the embodiment of the present invention uses other algorithms to calculate executable file according to practical situation is all can
Row, for example with SHA1 etc., this is not limiting as by the present invention.
Further, searching a plurality of plug-in unit mark mentioned in module 420, the plug-in unit of its correspondence is all adaptive with mastery routine,
I.e. can be the most mutual between plug-in unit and mastery routine.Further, a plurality of plug-in unit mark can include inserting of some early version plug-in units
Part identifies, and meets normal mutual.It addition, a plurality of plug-in unit mark can write in main program code, it is also possible to write on text
In file, text file can be stored in this locality or Cloud Server.
In one embodiment of the invention, above-mentioned startup module 430 is further adapted for: if lookup result for find with currently
The plug-in unit mark of plug-in unit mark coupling, then start plug-in unit to be launched;If lookup result is not for finding and when anterior plug-in mark
The plug-in unit mark joined, then choose a plug-in unit mark from a plurality of plug-in unit identifies, and then according under the plug-in unit mark chosen
Carry corresponding plug-in unit, and start after the download is complete.
In one embodiment of the invention, above-mentioned startup module 430 is further adapted for: in the plug-in unit mark pre-build with slotting
In the corresponding relation of part version, search a plurality of plug-in unit and identify each self-corresponding plug-in version;According to plug-in version, from a plurality of plug-in unit
Mark is chosen a plug-in unit mark.
In one embodiment of the invention, above-mentioned startup module 430 is further adapted for: if existing multiple in a plurality of plug-in unit mark
Package types, and every kind of corresponding one or more plug-in unit mark of package types;Obtain the typonym of plug-in unit to be launched;From a plurality of
Plug-in unit mark filters out at least one plug-in unit mark that the typonym of plug-in unit to be launched is corresponding;According to plug-in version, to
Few plug-in unit mark is chosen a plug-in unit mark.
In one embodiment of the invention, above-mentioned startup module 430 is further adapted for: from a plurality of plug-in unit identifies, choose
The plug-in unit mark that new plug-in version is corresponding.
In one embodiment of the invention, above-mentioned startup module 430 is further adapted for: according to the plug-in unit mark chosen,
Generate URL;Corresponding plug-in unit is downloaded according to URL.
In one embodiment of the invention, Fig. 5 shows and starts in mastery routine in accordance with another embodiment of the present invention
The structural representation of the device of plug-in unit.As it is shown in figure 5, this device can also include: correction verification module 510, with startup module 430 phase
Coupling, is suitable to after the download is complete, before starting, verifies the plug-in unit downloaded, if verification is passed through, then starts download
Plug-in unit;And if verification do not pass through, then the information that output verification is failed.
In one embodiment of the invention, above-mentioned correction verification module 510 is further adapted for: obtain the target plug-in of the plug-in unit downloaded
Mark;In a plurality of plug-in unit identifies, search the plug-in unit mark mated with target plug-in mark;If finding, it is determined that verification is logical
Cross;If not finding, it is determined that verification is not passed through.
In one embodiment of the invention, plug-in unit mark includes at least one following:
The message digest algorithm MD5 value of plug-in unit;
The Secure Hash Algorithm SHA1 value of plug-in unit.
In one embodiment of the invention, the device shown in Fig. 5 can also include: more new module 520, with lookup module
420 are coupled, and are suitable to capture backstage plug-in unit upgrade event, and acquisition carries out the plug-in unit mark of the plug-in unit upgraded;Inserting according to upgrading
The plug-in unit mark of part, updates a plurality of plug-in unit mark.
In one embodiment of the invention, after the download is complete, before starting, above-mentioned startup module 430 is the suitableeest
In: travel through the process of all startups, it may be judged whether the process that there is startup belongs to when the plug-in unit of anterior plug-in mark;If existing, then
Kill when the startup process of plug-in unit of anterior plug-in mark, and start new process to run the plug-in unit downloaded.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of terminal, including:
Memorizer;
One or more processors;
Wherein, the one or more processor is configured to perform following method:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that the plug-in unit of correspondence is all adaptive with described mastery routine, search with described when anterior plug-in mark
The plug-in unit mark of coupling, obtains lookup result;
Corresponding plug-in unit is started according to described lookup result.
According to any one preferred embodiment above-mentioned or the combination of multiple preferred embodiment, the embodiment of the present invention can reach
Following beneficial effect:
In the embodiment of the present invention, there is a plurality of plug-in unit mark, (type of plug-in unit can be a kind of or many to the plug-in unit of its correspondence
Kind) all adaptive with mastery routine.When receiving the enabled instruction of plug-in unit, and get plug-in unit to be launched when anterior plug-in identifies,
The plug-in unit mark mated with when anterior plug-in mark can be searched, compared to prior art being merely able to make in a plurality of plug-in unit identifies
By fixing plug-in unit mark, the technical scheme that the embodiment of the present invention provides can improve the matching rate of plug-in unit mark.Further,
Owing to finding plug-in unit mark mate with when anterior plug-in mark, just can directly initiate plug-in unit to be launched, search less than with ought
The plug-in unit mark of anterior plug-in mark coupling, needs further exist for downloading the plug-in unit adaptive with mastery routine, thus, the present invention is at plug-in unit mark
The number of times of download can be reduced in the case of knowledge matching rate is higher, improve treatment effeciency.Further, a plurality of plug-in unit that the present invention provides
Mark can comprise the plug-in unit mark of some early version plug-in units, when being so early version plug-in unit for plug-in unit to be launched, this
Bright still can search that the match is successful, thus solve and prior art can be mistakenly considered when mastery routine is called early version plug-in unit be
The plug-in unit that lost efficacy and be not called, cause the problems such as the wasting of resources, it is achieved compatible early version, improve the purpose for the treatment of effeciency.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in detail in the claims, embodiment required for protection one of arbitrarily
Can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize starting in mastery routine according to embodiments of the present invention the device of plug-in unit
In the some or all functions of some or all parts.The present invention is also implemented as performing as described herein
Part or all equipment of method or device program (such as, computer program and computer program).So
The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape
Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
So far, although those skilled in the art will appreciate that the multiple of the most detailed present invention of illustrate and describing show
Example embodiment, but, without departing from the spirit and scope of the present invention, still can be direct according to present disclosure
Determine or derive other variations or modifications of many meeting the principle of the invention.Therefore, the scope of the present invention is it is understood that and recognize
It is set to and covers other variations or modifications all these.
The invention also discloses: a kind of method starting plug-in unit in A1, mastery routine, including:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that the plug-in unit of correspondence is all adaptive with described mastery routine, search with described when anterior plug-in mark
The plug-in unit mark of coupling, obtains lookup result;
Corresponding plug-in unit is started according to described lookup result.
A2, according to the method described in A1, wherein, start corresponding plug-in unit according to described lookup result, including:
If described lookup result is to find and the described plug-in unit mark mated when anterior plug-in mark, then wait to open described in startup
Dynamic plug-in unit;
If described lookup result is not find and the described plug-in unit mark mated when anterior plug-in mark, then from described a plurality of
Plug-in unit mark is chosen a plug-in unit mark, and then according to the described plug-in unit mark corresponding plug-in unit of download chosen, and
Download starts after completing.
A3, according to the method described in A2, wherein, from described a plurality of plug-in unit identifies, choose plug-in unit mark, including:
In the plug-in unit mark the pre-build corresponding relation with plug-in version, search described a plurality of plug-in unit mark the most right
The plug-in version answered;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark.
A4, according to the method described in A3, wherein, if described a plurality of plug-in unit mark in there is multiple package types, and every kind
The corresponding one or more plug-in unit mark of package types;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark, including:
Obtain the typonym of described plug-in unit to be launched;
At least one plug-in unit that the typonym of described plug-in unit to be launched is corresponding is filtered out from described a plurality of plug-in unit identifies
Mark;
According to described plug-in version, from described at least one plug-in unit mark, choose a plug-in unit mark.
A5, according to the method described in A3 or A4, wherein, according to described plug-in version, select from described a plurality of plug-in unit identifies
Take a plug-in unit mark, including:
From described a plurality of plug-in unit identifies, choose the plug-in unit mark that up-to-date plug-in version is corresponding.
A6, according to the method described in any one of A2-A5, wherein, download corresponding according to the described plug-in unit chosen mark
Plug-in unit, including:
According to the described plug-in unit mark chosen, generate uniform resource position mark URL;
Corresponding plug-in unit is downloaded according to described URL.
A7, according to the method described in any one of A2-A6, wherein, described after the download is complete, before starting, also wrap
Include:
The plug-in unit downloaded is verified, if verification is passed through, then starts the plug-in unit of described download;And
If verification is not passed through, then the information that output verification is failed.
A8, according to the method described in A7, wherein, described to download plug-in unit verify, including:
Obtain the target plug-in mark of the plug-in unit of described download;
In described a plurality of plug-in unit identifies, search the plug-in unit mark mated with described target plug-in mark;
If finding, it is determined that verification is passed through;
If not finding, it is determined that verification is not passed through.
A9, according to the method described in any one of A1-A8, wherein, described plug-in unit mark includes at least one following:
The message digest algorithm MD5 value of plug-in unit;
The Secure Hash Algorithm SHA1 value of plug-in unit.
A10, according to the method described in any one of A1-A9, wherein, also include:
Capture backstage plug-in unit upgrade event, acquisition carries out the plug-in unit mark of the plug-in unit upgraded;
The plug-in unit mark of the plug-in unit according to described upgrading, updates described a plurality of plug-in unit mark.
A11, according to the method described in any one of A1-A10, wherein, described after the download is complete, before starting, also
Including:
Travel through the process of all startups, it may be judged whether the process that there is startup belongs to described when the plug-in unit of anterior plug-in mark;
If existing, then kill the startup process of the described plug-in unit when anterior plug-in mark, and start new process to run institute
State the plug-in unit of download.
B12, a kind of mastery routine start the device of plug-in unit, including:
Acquisition module, is suitable to when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
Search module, be suitable in a plurality of plug-in unit mark that the plug-in unit of its correspondence is all adaptive with described mastery routine, lookup and
Described when the plug-in unit mark of anterior plug-in mark coupling, obtain lookup result;
Start module, be suitable to start corresponding plug-in unit according to described lookup result.
B13, according to the device described in B12, wherein, described startup module is further adapted for:
If described lookup result is to find and the described plug-in unit mark mated when anterior plug-in mark, then wait to open described in startup
Dynamic plug-in unit;
If described lookup result is not find and the described plug-in unit mark mated when anterior plug-in mark, then from described a plurality of
Plug-in unit mark is chosen a plug-in unit mark, and then according to the described plug-in unit mark corresponding plug-in unit of download chosen, and
Download starts after completing.
B14, according to the device described in B13, wherein, described startup module is further adapted for:
In the plug-in unit mark the pre-build corresponding relation with plug-in version, search described a plurality of plug-in unit mark the most right
The plug-in version answered;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark.
B15, according to the device described in B14, wherein, described startup module is further adapted for:
If described a plurality of plug-in unit mark exists multiple package types, and every kind of corresponding one or more plug-in unit of package types
Mark;
Obtain the typonym of described plug-in unit to be launched;
At least one plug-in unit that the typonym of described plug-in unit to be launched is corresponding is filtered out from described a plurality of plug-in unit identifies
Mark;
According to described plug-in version, from described at least one plug-in unit mark, choose a plug-in unit mark.
B16, according to the device described in B14 or B15, wherein, described startup module is further adapted for:
From described a plurality of plug-in unit identifies, choose the plug-in unit mark that up-to-date plug-in version is corresponding.
B17, according to the device described in any one of B13-B16, wherein, described startup module is further adapted for:
According to the described plug-in unit mark chosen, generate uniform resource position mark URL;
Corresponding plug-in unit is downloaded according to described URL.
B18, according to the device described in any one of B13-B17, wherein, also include:
Correction verification module, be suitable to described in after the download is complete, before starting, to download plug-in unit verify, if school
Test and pass through, then start the plug-in unit of described download;And if verification do not pass through, then the information that output verification is failed.
B19, according to the device described in B18, wherein, described correction verification module is further adapted for:
Obtain the target plug-in mark of the plug-in unit of described download;
In described a plurality of plug-in unit identifies, search the plug-in unit mark mated with described target plug-in mark;
If finding, it is determined that verification is passed through;
If not finding, it is determined that verification is not passed through.
B20, according to the device described in any one of B12-B19, wherein, described plug-in unit mark includes at least one following:
The message digest algorithm MD5 value of plug-in unit;
The Secure Hash Algorithm SHA1 value of plug-in unit.
B21, according to the device described in any one of B12-B20, wherein, also include:
More new module, is suitable to capture backstage plug-in unit upgrade event, and acquisition carries out the plug-in unit mark of the plug-in unit upgraded;According to institute
State the plug-in unit mark of the plug-in unit of upgrading, update described a plurality of plug-in unit mark.
B22, according to the device described in any one of B12-B21, wherein, described after the download is complete, before starting, institute
State startup module to be further adapted for:
Travel through the process of all startups, it may be judged whether the process that there is startup belongs to described when the plug-in unit of anterior plug-in mark;
If existing, then kill the startup process of the described plug-in unit when anterior plug-in mark, and start new process to run institute
State the plug-in unit of download.
C23, a kind of terminal, including:
Memorizer;
One or more processors;
Wherein, the one or more processor is configured to perform following method:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that the plug-in unit of correspondence is all adaptive with described mastery routine, search with described when anterior plug-in mark
The plug-in unit mark of coupling, obtains lookup result;
Corresponding plug-in unit is started according to described lookup result.
Claims (21)
1. the method starting plug-in unit in mastery routine, including:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that corresponding plug-in unit is all adaptive with described mastery routine, search and mate when anterior plug-in identifies with described
Plug-in unit mark, obtain lookup result;
Corresponding plug-in unit is started according to described lookup result;
Wherein, start corresponding plug-in unit according to described lookup result, including:
If described lookup result is to find and the described plug-in unit mark mated when anterior plug-in mark, then start described to be launched slotting
Part;
If described lookup result is not find and the described plug-in unit mark mated when anterior plug-in mark, then from described a plurality of plug-in unit
Mark is chosen a plug-in unit mark, and then downloads corresponding plug-in unit according to the described plug-in unit mark chosen, and downloading
Start after completing.
Method the most according to claim 1, wherein, chooses a plug-in unit mark from described a plurality of plug-in unit identifies, including:
In the plug-in unit mark the pre-build corresponding relation with plug-in version, search described a plurality of plug-in unit mark each self-corresponding
Plug-in version;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark.
, wherein, if there is multiple package types in described a plurality of plug-in unit mark, and often in method the most according to claim 2
Plant the corresponding one or more plug-in unit mark of package types;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark, including:
Obtain the typonym of described plug-in unit to be launched;
The typonym filtering out described plug-in unit to be launched from the described a plurality of plug-in unit mark that there is multiple package types is corresponding
At least one plug-in unit mark;
According to described plug-in version, from described at least one plug-in unit mark, choose a plug-in unit mark.
The most according to the method in claim 2 or 3, wherein, according to described plug-in version, select from described a plurality of plug-in unit identifies
Take a plug-in unit mark, including:
From described a plurality of plug-in unit identifies, choose the plug-in unit mark that up-to-date plug-in version is corresponding.
5. according to the method described in any one of claim 1-3, wherein, download corresponding according to the described plug-in unit mark chosen
Plug-in unit, including:
According to the described plug-in unit mark chosen, generate uniform resource position mark URL;
Corresponding plug-in unit is downloaded according to described URL.
6., according to the method described in any one of claim 1-3, wherein, after the download is complete, before starting, also include:
The plug-in unit downloaded is verified, if verification is passed through, then starts the plug-in unit of described download;And
If verification is not passed through, then the information that output verification is failed.
Method the most according to claim 6, wherein, the described plug-in unit to downloading verifies, including:
Obtain the target plug-in mark of the plug-in unit of described download;
In described a plurality of plug-in unit identifies, search the plug-in unit mark mated with described target plug-in mark;
If finding, it is determined that verification is passed through;
If not finding, it is determined that verification is not passed through.
8. according to the method described in any one of claim 1-3, wherein, described plug-in unit mark includes at least one following:
The message digest algorithm MD5 value of plug-in unit;
The Secure Hash Algorithm SHA1 value of plug-in unit.
9., according to the method described in any one of claim 1-3, wherein, also include:
Capture backstage plug-in unit upgrade event, acquisition carries out the plug-in unit mark of the plug-in unit upgraded;
The plug-in unit mark of the plug-in unit according to described upgrading, updates described a plurality of plug-in unit mark.
10., according to the method described in any one of claim 1-3, wherein, after the download is complete, before starting, also include:
Travel through the process of all startups, it may be judged whether the process that there is startup belongs to described when the plug-in unit of anterior plug-in mark;
If existing, then kill the startup process of the described plug-in unit when anterior plug-in mark, and start new process with run described under
The plug-in unit carried.
11. 1 kinds of mastery routines start the device of plug-in unit, including:
Acquisition module, is suitable to when receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
Search module, be suitable to, in a plurality of plug-in unit mark that the plug-in unit of its correspondence is all adaptive with described mastery routine, search with described
When the plug-in unit mark of anterior plug-in mark coupling, obtain lookup result;
Start module, be suitable to start corresponding plug-in unit according to described lookup result;
Wherein, described startup module is further adapted for:
If described lookup result is to find and the described plug-in unit mark mated when anterior plug-in mark, then start described to be launched slotting
Part;
If described lookup result is not find and the described plug-in unit mark mated when anterior plug-in mark, then from described a plurality of plug-in unit
Mark is chosen a plug-in unit mark, and then downloads corresponding plug-in unit according to the described plug-in unit mark chosen, and downloading
Start after completing.
12. devices according to claim 11, wherein, described startup module is further adapted for:
In the plug-in unit mark the pre-build corresponding relation with plug-in version, search described a plurality of plug-in unit mark each self-corresponding
Plug-in version;
According to described plug-in version, from described a plurality of plug-in unit identifies, choose a plug-in unit mark.
13. devices according to claim 12, wherein, described startup module is further adapted for:
If described a plurality of plug-in unit mark exists multiple package types, and every kind of corresponding one or more plug-in unit mark of package types
Know;
Obtain the typonym of described plug-in unit to be launched;
The typonym filtering out described plug-in unit to be launched from the described a plurality of plug-in unit mark that there is multiple package types is corresponding
At least one plug-in unit mark;
According to described plug-in version, from described at least one plug-in unit mark, choose a plug-in unit mark.
14. according to the device described in claim 12 or 13, and wherein, described startup module is further adapted for:
From described a plurality of plug-in unit identifies, choose the plug-in unit mark that up-to-date plug-in version is corresponding.
15. according to the device described in any one of claim 11-13, and wherein, described startup module is further adapted for:
According to the described plug-in unit mark chosen, generate uniform resource position mark URL;
Corresponding plug-in unit is downloaded according to described URL.
16., according to the device described in any one of claim 11-13, wherein, also include:
Correction verification module, is suitable to after the download is complete, before starting, verifies the plug-in unit downloaded, if verification is passed through, then
Start the plug-in unit of described download;And if verification do not pass through, then the information that output verification is failed.
17. devices according to claim 16, wherein, described correction verification module is further adapted for:
Obtain the target plug-in mark of the plug-in unit of described download;
In described a plurality of plug-in unit identifies, search the plug-in unit mark mated with described target plug-in mark;
If finding, it is determined that verification is passed through;
If not finding, it is determined that verification is not passed through.
18. according to the device described in any one of claim 11-13, and wherein, described plug-in unit mark includes at least one following:
The message digest algorithm MD5 value of plug-in unit;
The Secure Hash Algorithm SHA1 value of plug-in unit.
19., according to the device described in any one of claim 11-13, wherein, also include:
More new module, is suitable to capture backstage plug-in unit upgrade event, and acquisition carries out the plug-in unit mark of the plug-in unit upgraded;According to described liter
The plug-in unit mark of the plug-in unit of level, updates described a plurality of plug-in unit mark.
20. according to the device described in any one of claim 11-13, wherein, after the download is complete, before starting, described
Start module to be further adapted for:
Travel through the process of all startups, it may be judged whether the process that there is startup belongs to described when the plug-in unit of anterior plug-in mark;
If existing, then kill the startup process of the described plug-in unit when anterior plug-in mark, and start new process with run described under
The plug-in unit carried.
21. 1 kinds of terminals, including:
Memorizer;
One or more processors;
Wherein, the one or more processor is configured to perform following method:
When receiving the enabled instruction of plug-in unit, obtain plug-in unit to be launched when anterior plug-in identify;
In a plurality of plug-in unit mark that corresponding plug-in unit is all adaptive with mastery routine, search with described when inserting that anterior plug-in mark is mated
Part identifies, and obtains lookup result;
Corresponding plug-in unit is started according to described lookup result;
Wherein, start corresponding plug-in unit according to described lookup result, including:
If described lookup result is to find and the described plug-in unit mark mated when anterior plug-in mark, then start described to be launched slotting
Part;
If described lookup result is not find and the described plug-in unit mark mated when anterior plug-in mark, then from described a plurality of plug-in unit
Mark is chosen a plug-in unit mark, and then downloads corresponding plug-in unit according to the described plug-in unit mark chosen, and downloading
Start after completing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510142838.9A CN104731623B (en) | 2015-03-27 | 2015-03-27 | Mastery routine starts the method and device of plug-in unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510142838.9A CN104731623B (en) | 2015-03-27 | 2015-03-27 | Mastery routine starts the method and device of plug-in unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104731623A CN104731623A (en) | 2015-06-24 |
CN104731623B true CN104731623B (en) | 2016-11-16 |
Family
ID=53455541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510142838.9A Active CN104731623B (en) | 2015-03-27 | 2015-03-27 | Mastery routine starts the method and device of plug-in unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104731623B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487886A (en) * | 2015-11-24 | 2016-04-13 | 小米科技有限责任公司 | Method and device for loading plugin |
CN106021367B (en) * | 2016-05-10 | 2021-10-15 | 腾讯科技(深圳)有限公司 | Method and terminal for searching backup data |
CN106934272B (en) * | 2017-02-09 | 2021-09-07 | 北京奇虎科技有限公司 | Application information verification method and device |
EP3471388A1 (en) | 2017-10-10 | 2019-04-17 | Canon Kabushiki Kaisha | Image processing apparatus, method for controlling the same, and program |
CN107977410B (en) * | 2017-11-21 | 2020-07-03 | 掌阅科技股份有限公司 | Bookshelf management method based on electronic book application and electronic equipment |
TWI724424B (en) * | 2019-05-17 | 2021-04-11 | 英商鼎通盛股份有限公司 | Method for accelerating verification process in a booting procedure and computer system thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699405A (en) * | 2009-10-26 | 2010-04-28 | 中兴通讯股份有限公司 | Method and device for interaction between host program and plug-in and interaction between plug-ins |
US8667478B1 (en) * | 2010-09-17 | 2014-03-04 | Emc Corporation | Backward-compatibility using a plugin architecture |
-
2015
- 2015-03-27 CN CN201510142838.9A patent/CN104731623B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699405A (en) * | 2009-10-26 | 2010-04-28 | 中兴通讯股份有限公司 | Method and device for interaction between host program and plug-in and interaction between plug-ins |
US8667478B1 (en) * | 2010-09-17 | 2014-03-04 | Emc Corporation | Backward-compatibility using a plugin architecture |
Also Published As
Publication number | Publication date |
---|---|
CN104731623A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104731623B (en) | Mastery routine starts the method and device of plug-in unit | |
CN102830992B (en) | Plug-in loading method and system | |
CN104731625B (en) | A kind of method, apparatus and mobile terminal loading plug-in unit | |
CN103530156B (en) | Dynamic load and the method and device of caller | |
CN108847950B (en) | Electronic device, cloud system software automatic deployment method and storage medium | |
CN103647816A (en) | Method and device for upgrading application software | |
CN104699511B (en) | Plug-in unit upgrade method and device | |
CN102982258B (en) | A kind of system of mobile applications being carried out to master verification | |
CN107748668B (en) | Method and device for upgrading application program | |
CN104717301B (en) | Plug-in download method and device | |
CN106815049B (en) | Method and device for upgrading feature library | |
CN108027741A (en) | Document handling method, device, terminal and storage medium based on patch upgrading | |
US9244758B2 (en) | Systems and methods for repairing system files with remotely determined repair strategy | |
WO2016083537A1 (en) | Method and device for providing verifying application integrity | |
CN103745158A (en) | Method and device for repairing system bugs | |
CN104052818A (en) | Version upgrade method and device for mobile terminal | |
CN109814948B (en) | Method and device for hook on native layer function based on xposed framework and electronic device | |
CN104683303A (en) | APP (application) management method | |
CN106406872B (en) | A kind of production method and device of the difference upgrade package based on specific file | |
CN106919843A (en) | Leak repair system, method and apparatus | |
CN106886437B (en) | Application program updating method and device | |
CN105279436A (en) | Software updating method and system | |
EP2849113B1 (en) | Software distribution system and software distribution method | |
KR20170087887A (en) | Method and device for providing verifying application integrity | |
US20210119858A1 (en) | Network node firmware update |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220720 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. |