CN108681460A - A kind of method and electric terminal of upgrading plug-in unit - Google Patents
A kind of method and electric terminal of upgrading plug-in unit Download PDFInfo
- Publication number
- CN108681460A CN108681460A CN201810350936.5A CN201810350936A CN108681460A CN 108681460 A CN108681460 A CN 108681460A CN 201810350936 A CN201810350936 A CN 201810350936A CN 108681460 A CN108681460 A CN 108681460A
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- upgrade package
- version number
- field information
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of methods and electric terminal of upgrading plug-in unit.This method includes:Judge whether the current version number of the version number carried in the upgrade package of plug-in unit and plug-in unit is identical;If the current version number of the version number and plug-in unit that are carried in the upgrade package of plug-in unit is identical, then it represents that be the escalation process of same version plug-in unit, and further whether detection plug-in unit is in operating status;If plug-in unit is in operating status, the relevant updates file in the simultaneously upgrade package of memory card is parsed, a covering installation field information is added in plug-in unit, covering installs field information and is in state to be updated for identification plug;Then during plug-in unit startup next time, the relevant updates file in the upgrade package of plug-in unit is called to cover original releasing document of plug-in unit based on covering installation field information, to update plug-in unit.The present invention can carry out covering updating operation in the case of same version as a result, to update the function in plug-in unit, can be updated without upgraded version number.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods and electric terminal of upgrading plug-in unit.
Background technology
Plug-in unit (Plug-in, also known as addin, add-in, addon or add-on, and translate plug-in) is that one kind following a set pattern
The program that the application programming interfaces of model are write out.Plug-in unit refers to the program that can be automatically executed with the startup of IE browser,
It can only operate under the system platform of procedure stipulation, may support multiple platforms simultaneously, but it is independent to be detached from specified platform
Operation.That is, the startup that plug-in unit must adhere to application program can be run.The type of plug-in unit have it is countless, such as
Some plug-in card programs can help the more convenient browsing internet of user or call online miscellaneous function, some plug-in units that can help to use
Family online payment etc..For example, after installing relevant plug-in unit, browser can directly invoke plug-in card program, for handling spy
Determine the file of type.
In view of the particularity of plug-in unit, each module in Replugin plug-in unit frames exists and is transported in the form of plug-in unit
Row.And in Replugin plug-in unit frames, plug-in unit updates certain functions generally by upgrading, and plug-in unit in upgrading all
It is that updating and management is carried out by version number.That is, plug-in unit is when needing to update certain functions, it is necessary to pass through upgraded version
Number form upgraded, if pin function can not be updated not the version number for upgrading plug-in unit.
Invention content
In view of it is above-mentioned must be by upgraded version number come the problem of updating pin function, it is proposed that the present invention is in order to provide one
The method and electric terminal of a kind of upgrading plug-in unit for kind overcoming the above problem or solving the above problems at least partly, Neng Goujin
Row in the case of not upgraded version, can thus complete the function liter of plug-in unit with the covering installation operation of version plug-in unit
Grade.
One aspect of the present invention provides a kind of method of upgrading plug-in unit, including:
Judge whether the current version number of the version number carried in the upgrade package of the plug-in unit and the plug-in unit is identical;
If the current version number of the version number and the plug-in unit that are carried in the upgrade package of the plug-in unit is identical, described in detection
Whether plug-in unit is in operating status;
If the plug-in unit is in operating status, parses and store the relevant updates file in the upgrade package of the plug-in unit;
The one covering installation field information of addition in the plug-in unit, the covering installation field information is for identifying described insert
Part is in state to be updated;
During starting the plug-in unit next time, the upgrading of the plug-in unit is called based on the covering installation field information
Relevant updates file in packet covers original releasing document of the plug-in unit, to update the plug-in unit.
Preferably, the relevant updates file in the upgrade package for parsing and storing the plug-in unit, specifically includes:
Parse the relevant updates file in the upgrade package of the plug-in unit;
Create the phase in the upgrade package for storing the plug-in unit with the temp directory of original releasing document peer of the plug-in unit
Close update file.
Preferably, the temp directory of original releasing document peer of the establishment and the plug-in unit stores the liter of the plug-in unit
Relevant updates file in grade packet, specifically includes:
Create the jar in the upgrade package for storing the plug-in unit with the temp directory of original releasing document peer of the plug-in unit
APMB package, dex files, native lib library files.
Preferably, the relevant updates text in the upgrade package that the plug-in unit is called based on the covering installation field information
Part covers original releasing document of the plug-in unit, specifically includes:
The temp directory is called to store the jar APMB packages in the upgrade package of the plug-in unit, dex files, native lib
Library file, covering copy in the catalogue of original releasing document of the plug-in unit;
Delete original releasing document of the plug-in unit.
Preferably, one covering installation field information of the addition in the plug-in unit, specifically includes:
The covering installation field information coverinfo is added to the p.l files of the application program with Json formats
In.
Preferably, the relevant updates text in the upgrade package that the plug-in unit is called based on the covering installation field information
After part covers original releasing document of the plug-in unit, the method further includes:
Update the path of the plug-in unit.
Preferably, the relevant updates text in the upgrade package that the plug-in unit is called based on the covering installation field information
After part covers original releasing document of the plug-in unit, the method further includes:
Broadcast notice is sent to each process, synchronizes the plug-in unit last state to each process.
Preferably, the relevant updates text in the upgrade package that the plug-in unit is called based on the covering installation field information
After part covers original releasing document of the plug-in unit, the method further includes:
The memory table information of process where updating the plug-in unit.
Another aspect of the present invention provides a kind of electric terminal, including:
Judgment module, the current version number of the version number and the plug-in unit that carry in the upgrade package for judging the plug-in unit
It is whether identical;
Detection module, if the current version phase of the version number and the plug-in unit carried in upgrade package for the plug-in unit
Together, then whether in operating status the plug-in unit is detected;
Parsing module is parsed and is stored in the upgrade package of the plug-in unit if in operating status for the plug-in unit
Relevant updates file;
Add module, for one covering installation field information of addition, the covering installation field information in the plug-in unit
It is in state to be updated for identifying the plug-in unit;
Module is installed, for during starting the plug-in unit next time, being called based on covering installation field information
Relevant updates file in the upgrade package of the plug-in unit covers original releasing document of the plug-in unit, to update the plug-in unit.
Preferably, the parsing module, specifically includes:
Analyzing sub-module, the relevant updates file in upgrade package for parsing the plug-in unit;
Creation module stores the plug-in unit for creating with the temp directory of original releasing document peer of the plug-in unit
Relevant updates file in upgrade package.
Preferably, the creation module is specifically used for creating the interim mesh with original releasing document peer of the plug-in unit
Record jar APMB packages, dex files, the native lib library files in the upgrade package for putting the plug-in unit.
Preferably, the installation module, specifically includes:
Module is copied, for calling the temp directory to store the jar APMB packages in the upgrade package of the plug-in unit, dex texts
Part, native lib library files, covering copy in the catalogue of original releasing document of the plug-in unit;
Removing module, original releasing document for deleting the plug-in unit.
Preferably, the add module is specifically used for the covering installing field information coverinfo with Json formats
It is added in the p.l files of the application program.
Preferably, the electric terminal further includes:
Update module, the path for updating the plug-in unit.
Preferably, the electric terminal further includes:
Sending module synchronizes the plug-in unit last state to each process for sending broadcast notice to each process.
Preferably, the electric terminal further includes:
Update module, the memory table information for process where updating the plug-in unit.
Another aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, should
The step of above method is realized when program is executed by processor.
Another aspect of the present invention, provides a kind of computer equipment, including memory, processor and is stored in memory
The step of computer program that is upper and can running on a processor, the processor realizes the above method when executing described program.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
It is above-mentioned when updating plug-in unit in order to solve, it is necessary to by upgraded version number come the problem of updating pin function, this hair
It is bright to disclose a kind of method and electric terminal of upgrading plug-in unit.This method includes:Judge to carry in the upgrade package of the plug-in unit
Whether the current version number of version number and the plug-in unit is identical;If the version number that is carried in the upgrade package of the plug-in unit and described inserting
The current version number of part is identical, then it represents that is the escalation process of same version plug-in unit, and further detects whether the plug-in unit is in
Operating status;If the plug-in unit is in operating status, the relevant updates file in the upgrade package of the plug-in unit is parsed and stores,
The one covering installation field information of addition in the plug-in unit, covering installation field information is for identifying the plug-in unit in waiting for
More new state;Then during starting the plug-in unit next time, the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit, to update the plug-in unit.It is of the invention as a result,
Covering updating operation can be carried out in the case of same version, to update the function in plug-in unit, without upgraded version
It can update.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention,
And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of implementation process figure of the method for upgrading plug-in unit according to an embodiment of the invention;
Fig. 2 shows a kind of schematic diagrames of electric terminal according to an embodiment of the invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of methods and electric terminal of upgrading plug-in unit, must be according to solve the prior art
By upgraded version number come the problem of updating pin function.
As a kind of optional embodiment, referring to Fig. 1, an embodiment of the present invention provides a kind of method of upgrading plug-in unit, packets
It includes:
Step 11, judge the version number carried in the upgrade package of the plug-in unit and the plug-in unit current version number whether phase
Together.
In specific implementation process, each function module in the application program being related to all is with Replugin plug-in unit frames
Frame exists.So if some function in upgrade applications, is equivalent to the corresponding plug-in unit of upgrading.And each plug-in unit corresponds to
Respective upgrade package, due to Replugin frames acquiescence use two process framework, two process framework be exactly and meanwhile operation two into
Journey can start the normal operation that standby process ensures plug-in unit when Resident Process accidental interruption, will not be because of the meaning of Resident Process
Outer interruption causes outage, and vice versa.So in the Resident Process that the installation operation of plug-in unit is generally all placed on.
The current version number of the version number and the plug-in unit that are carried in the upgrade package for judging the plug-in unit it is whether identical it
Before, it needs to parse the version number carried in upgrade package.
Specifically, according to the path address of incoming plug-in unit, APK is parsed by getPackageArchiveInfo
The content of wrapping (upgrade package), the signing messages for verifying plug-in unit, triplet information (the i.e. plug-in unit for parsing plug-in unit name and plug-in unit
MetaData information:The version number of plug-in unit alias, minimum/highest protocol version of plug-in unit, plug-in unit), and the frame of plug-in unit is set
Version extracts database.The current version number of the version number and the plug-in unit that are carried in the upgrade package of the following plug-in unit is
It is no identical, if then indicating that the upgrading of the plug-in unit is actually same edition upgrading, it is also assumed that being the covering peace of same version
Dress.The operating condition of plug-in unit then can be further detected, and corresponding updating operation is carried out according to operating condition.
If the version number carried in the upgrade package of the plug-in unit is higher than the current version number of the plug-in unit, then it represents that be just
Normal escalation process, then according to normal upgrading flow upgrading.
Step 12, if the current version number of the version number and the plug-in unit that are carried in the upgrade package of the plug-in unit is identical,
Whether in operating status detect the plug-in unit.
In specific implementation process, the operating condition of plug-in unit includes:It is currently running and two kinds of situations of not running.If plug-in unit
It is currently running (such as plug-in unit may be called by user or other plug-in units call), then it cannot be immediately performed update operation,
Can again it be upgraded when starting next time.
Step 13, if the plug-in unit is in operating status, parse and store in the upgrade package of the plug-in unit it is related more
New file.
In specific implementation process, since the plug-in unit of same version has discharged and is currently running, cannot directly it cover
Lid falls the files such as the original jar packets of plug-in unit and dex.So can parse and store the relevant updates in the upgrade package of the plug-in unit
File.Specifically, the relevant updates file in the upgrade package of the plug-in unit can be parsed;Then it creates original with the plug-in unit
The temp directory of releasing document peer stores the relevant updates file in the upgrade package of the plug-in unit.For example, due to same version
Plug-in unit has been discharged and has been currently running, therefore cannot directly override the files such as the original jar packets of plug-in unit and dex, so wound
Build the upgrade package that the plug-in unit is stored with the temp directory of original releasing document peer of the plug-in unit (such as app_p_c catalogues)
In update file:Jar APMB packages, dex files, native lib library files.
Step 14, the one covering installation field information of addition in the plug-in unit, the covering installation field information is for marking
Know the plug-in unit and is in state to be updated.
It, can be by calling plugin information object (PluginInfo) in specific implementation process
SetPendingCover interfaces, one installation to be covered of plugin information object internal maintenance plugin information object (namely
Covering installation field information).In the plugin information that the above-mentioned plug-in unit upgrade package of plugin information object storage inside releases, and will
The covering installation field information coverinfo is added to Json formats in the p.l files of the application program, for recording
The covering of plug-in unit more new state postpones the update operation of plug-in unit, this document content is parsed when Resident Process is restarted and is executed again
Update of plug-in operates.
Step 15, during starting the plug-in unit next time, described insert is called based on covering installation field information
Relevant updates file in the upgrade package of part covers original releasing document of the plug-in unit, to update the plug-in unit.
In specific implementation process, when Resident Process is restarted, and plug-in unit frame executes initialization operation, it can unify to locate
The state of plug-in unit is managed, p.l files are parsed, if including the plugin information of coverinfo fields, needs the covering peace for carrying out plug-in unit
Dress operation.First, the temp directory is called to store the jar APMB packages in the upgrade package of the plug-in unit, dex files, native
Lib library files, covering copy in the catalogue of original releasing document of the plug-in unit;Delete original release text of the plug-in unit
Part.Secondly, the plugin information object of one installation to be covered of plugin information object internal maintenance is set to null.Final updating is worked as
The routing information of anterior plug-in.
Further, since the state of plug-in unit has occurred and that variation, so need timely to lead to the last state of plug-in unit
Know each process.That is, calling the relevant updates text in the upgrade package of the plug-in unit based on the covering installation field information
After part covers original releasing document of the plug-in unit, to each process send broadcast notice, synchronize the plug-in unit last state to
Each process.
In specific implementation process, in calling the upgrade package of the plug-in unit based on covering installation field information
After relevant updates file covers original releasing document of the plug-in unit, the memory table letter of process where also updating the plug-in unit
Breath.Certainly, can also update the plug-in unit of caching PackageInfo, Resources, ComponentList and
DexClassLoader data etc..
As a kind of optional embodiment, if it is judged that plug-in unit is in not running state, then can skip ' in institute
State one covering installation field information of addition in plug-in unit ' the step of, directly invoke the relevant updates text in the upgrade package of the plug-in unit
Part covers original releasing document of the plug-in unit, to update the plug-in unit.
And in specific implementation process, call the temp directory to store the jar packet texts in the upgrade package of the plug-in unit
Part, dex files, native lib library files, covering copy in the catalogue of original releasing document of the plug-in unit;Described in deletion
Original releasing document of plug-in unit.Secondly, the plugin information object of one installation to be covered of plugin information object internal maintenance is set
For null.Final updating works as the routing information of anterior plug-in.
Further, since the state of plug-in unit has occurred and that variation, so need timely to lead to the last state of plug-in unit
Know each process.That is, calling the relevant updates text in the upgrade package of the plug-in unit based on the covering installation field information
After part covers original releasing document of the plug-in unit, to each process send broadcast notice, synchronize the plug-in unit last state to
Each process.
In specific implementation process, in calling the upgrade package of the plug-in unit based on covering installation field information
After relevant updates file covers original releasing document of the plug-in unit, the memory table letter of process where also updating the plug-in unit
Breath.Certainly, can also update the plug-in unit of caching PackageInfo, Resources, ComponentList and
DexClassLoader data etc..
That is, tube insert is not in operating status or not running state, actually the process of its covering installation is all
It is consistent, the opportunity only triggered is different.If plug-in unit is in operating status, a covering installation will be added inside plug-in unit
Field information, covering installation when starting to next time, and if plug-in unit is in not running state, it can directly cover installation.
Based on unified inventive concept, the following examples introduce a kind of electric terminal.
Referring to Fig. 2, which includes:
Judgment module 21, the current version of the version number and the plug-in unit that carry in the upgrade package for judging the plug-in unit
It is number whether identical;
Detection module 22, if the current version number of the version number and the plug-in unit carried in upgrade package for the plug-in unit
It is identical, then whether in operating status detect the plug-in unit;
Parsing module 23 is parsed and is stored in the upgrade package of the plug-in unit if in operating status for the plug-in unit
Relevant updates file;
Add module 24, for the one covering installation field information of addition in the plug-in unit, the covering installation field letter
Breath is in state to be updated for identifying the plug-in unit;
Module 25 is installed, for during starting the plug-in unit next time, field information tune to be installed based on the covering
Original releasing document that the plug-in unit is covered with the relevant updates file in the upgrade package of the plug-in unit, to update the plug-in unit.
As a kind of optional embodiment, the parsing module 23 specifically includes:
Analyzing sub-module, the relevant updates file in upgrade package for parsing the plug-in unit;
Creation module stores the plug-in unit for creating with the temp directory of original releasing document peer of the plug-in unit
Relevant updates file in upgrade package.
As a kind of optional embodiment, the creation module is specifically used for creating and original release of the plug-in unit is literary
The temp directory of part peer stores jar APMB packages, dex files, native lib library files in the upgrade package of the plug-in unit.
As a kind of optional embodiment, the installation module 25 specifically includes:
Module is copied, for calling the temp directory to store the jar APMB packages in the upgrade package of the plug-in unit, dex texts
Part, native lib library files, covering copy in the catalogue of original releasing document of the plug-in unit;
Removing module, original releasing document for deleting the plug-in unit.
As a kind of optional embodiment, the add module 24 is specifically used for the covering installing field information
Coverinfo is added to Json formats in the p.l files of the application program.
As a kind of optional embodiment, the electric terminal further includes:Update module, the road for updating the plug-in unit
Diameter.
As a kind of optional embodiment, the electric terminal further includes:Sending module is broadcasted for being sent to each process
Notice synchronizes the plug-in unit last state to each process.
As a kind of optional embodiment, the electric terminal further includes:Update module, for updating the plug-in unit place
The memory table information of process.
Based on the same inventive concept with previous embodiment, the present invention also provides a kind of computer readable storage medium,
The step of being stored thereon with computer program, any the method above realized when which is executed by processor.
Based on the same inventive concept with previous embodiment, the present invention also provides a kind of computer equipments, including storage
Device, processor and storage on a memory and the computer program that can run on a processor, the processor execution journey
The step of any the method above is realized when sequence.The technical solution provided in the embodiment of the present application at least has following technology
Effect or advantage:
It is above-mentioned when updating plug-in unit in order to solve, it is necessary to by upgraded version number come the problem of updating pin function, this hair
It is bright to disclose a kind of method and electric terminal of upgrading plug-in unit.This method includes:Judge to carry in the upgrade package of the plug-in unit
Whether the current version number of version number and the plug-in unit is identical;If the version number that is carried in the upgrade package of the plug-in unit and described inserting
The current version number of part is identical, then it represents that is the escalation process of same version plug-in unit, and further detects whether the plug-in unit is in
Operating status;If the plug-in unit is in operating status, the relevant updates file in the upgrade package of the plug-in unit is parsed and stores,
The one covering installation field information of addition in the plug-in unit, covering installation field information is for identifying the plug-in unit in waiting for
More new state;Then during starting the plug-in unit next time, the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit, to update the plug-in unit.It is of the invention as a result,
Covering updating operation can be carried out in the case of same version, to update the function in plug-in unit, without upgraded version
It can update.Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means to be in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is arbitrary it
One mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors
Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) are realized in gateway according to the ... of the embodiment of the present invention, proxy server, system
Some or all components some or all functions.The present invention is also implemented as executing side as described herein
Some or all equipment or program of device (for example, computer program and computer program product) of method.It is such
Realize that the program of the present invention can may be stored on the computer-readable medium, or can be with the shape of one or more signal
Formula.Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or with any other shape
Formula provides.
It should be noted that the present invention will be described rather than limits the invention for 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 mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame
Claim.
The invention discloses A1, a kind of methods of upgrading plug-in unit, which is characterized in that including:
Judge whether the current version number of the version number carried in the upgrade package of the plug-in unit and the plug-in unit is identical;
If the current version number of the version number and the plug-in unit that are carried in the upgrade package of the plug-in unit is identical, described in detection
Whether plug-in unit is in operating status;
If the plug-in unit is in operating status, parses and store the relevant updates file in the upgrade package of the plug-in unit;
The one covering installation field information of addition in the plug-in unit, the covering installation field information is for identifying described insert
Part is in state to be updated;
During starting the plug-in unit next time, the upgrading of the plug-in unit is called based on the covering installation field information
Relevant updates file in packet covers original releasing document of the plug-in unit, to update the plug-in unit.
A2, the method as described in A1, which is characterized in that the correlation in the upgrade package for parsing and storing the plug-in unit is more
New file, specifically includes:
Parse the relevant updates file in the upgrade package of the plug-in unit;
Create the phase in the upgrade package for storing the plug-in unit with the temp directory of original releasing document peer of the plug-in unit
Close update file.
A3, the method as described in A1, which is characterized in that original releasing document of the establishment and the plug-in unit is at the same level to be faced
When catalogue store the relevant updates file in the upgrade package of the plug-in unit, specifically include:
Create the jar in the upgrade package for storing the plug-in unit with the temp directory of original releasing document peer of the plug-in unit
APMB package, dex files, native lib library files.
A4, the method as described in A3, which is characterized in that described that the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit, specifically include:
The temp directory is called to store the jar APMB packages in the upgrade package of the plug-in unit, dex files, native lib
Library file, covering copy in the catalogue of original releasing document of the plug-in unit;
Delete original releasing document of the plug-in unit.
A5, the method as described in A1, which is characterized in that one covering installation field information of the addition in the plug-in unit,
It specifically includes:
The covering installation field information coverinfo is added to the p.l files of the application program with Json formats
In.
A6, the method as described in A1, which is characterized in that described that the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit after, the method further includes:
Update the path of the plug-in unit.
A7, the method as described in A1, which is characterized in that described that the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit after, the method further includes:
Broadcast notice is sent to each process, synchronizes the plug-in unit last state to each process.
A8, the method as described in A1, which is characterized in that described that the plug-in unit is called based on covering installation field information
Upgrade package in relevant updates file cover original releasing document of the plug-in unit after, the method further includes:
The memory table information of process where updating the plug-in unit.
B9, a kind of electric terminal, which is characterized in that including:
Judgment module, the current version number of the version number and the plug-in unit that carry in the upgrade package for judging the plug-in unit
It is whether identical;
Detection module, if the current version phase of the version number and the plug-in unit carried in upgrade package for the plug-in unit
Together, then whether in operating status the plug-in unit is detected;
Parsing module is parsed and is stored in the upgrade package of the plug-in unit if in operating status for the plug-in unit
Relevant updates file;
Add module, for one covering installation field information of addition, the covering installation field information in the plug-in unit
It is in state to be updated for identifying the plug-in unit;
Module is installed, for during starting the plug-in unit next time, being called based on covering installation field information
Relevant updates file in the upgrade package of the plug-in unit covers original releasing document of the plug-in unit, to update the plug-in unit.
B10, the electric terminal as described in B9, which is characterized in that the parsing module specifically includes:
Analyzing sub-module, the relevant updates file in upgrade package for parsing the plug-in unit;
Creation module stores the plug-in unit for creating with the temp directory of original releasing document peer of the plug-in unit
Relevant updates file in upgrade package.
B11, the electric terminal as described in B9, which is characterized in that the creation module is specifically used for creating and the plug-in unit
The temp directory of original releasing document peer store jar APMB packages, dex files, native in the upgrade package of the plug-in unit
Lib library files.
B12, the electric terminal as described in B11, which is characterized in that the installation module specifically includes:
Module is copied, for calling the temp directory to store the jar APMB packages in the upgrade package of the plug-in unit, dex texts
Part, native lib library files, covering copy in the catalogue of original releasing document of the plug-in unit;
Removing module, original releasing document for deleting the plug-in unit.
B13, the electric terminal as described in B9, which is characterized in that the add module is specifically used for installing the covering
Field information coverinfo is added to Json formats in the p.l files of the application program.
B14, the electric terminal as described in B9, which is characterized in that the electric terminal further includes:
Update module, the path for updating the plug-in unit.
B15, the electric terminal as described in B9, which is characterized in that the electric terminal further includes:
Sending module synchronizes the plug-in unit last state to each process for sending broadcast notice to each process.
B16, the electric terminal as described in B9, which is characterized in that the electric terminal further includes:
Update module, the memory table information for process where updating the plug-in unit.
C17, a kind of computer readable storage medium, are stored thereon with computer program, which is characterized in that the program is located
Manage the step of realizing A1-A8 any claim the methods when device executes.
C18, a kind of computer equipment, including memory, processor and storage can transport on a memory and on a processor
Capable computer program, which is characterized in that the processor realizes any claim the methods of A1-A8 when executing described program
Step.
Claims (10)
1. a kind of method of upgrading plug-in unit, which is characterized in that including:
Judge whether the current version number of the version number carried in the upgrade package of the plug-in unit and the plug-in unit is identical;
If the current version number of the version number and the plug-in unit that are carried in the upgrade package of the plug-in unit is identical, the plug-in unit is detected
It is whether in operating status;
If the plug-in unit is in operating status, parses and store the relevant updates file in the upgrade package of the plug-in unit;
The one covering installation field information of addition in the plug-in unit, the covering installation field information is for identifying at the plug-in unit
In state to be updated;
During starting the plug-in unit next time, in the upgrade package that the plug-in unit is called based on the covering installation field information
Relevant updates file cover original releasing document of the plug-in unit, to update the plug-in unit.
2. the method as described in claim 1, which is characterized in that the correlation in the upgrade package for parsing and storing the plug-in unit
File is updated, is specifically included:
Parse the relevant updates file in the upgrade package of the plug-in unit;
Create stored to the temp directory of original releasing document peer of the plug-in unit in the upgrade package of the plug-in unit it is related more
New file.
3. the method as described in claim 1, which is characterized in that original releasing document of the establishment and plug-in unit peer
Temp directory stores the relevant updates file in the upgrade package of the plug-in unit, specifically includes:
Create the jar packet texts in the upgrade package for storing the plug-in unit with the temp directory of original releasing document peer of the plug-in unit
Part, dex files, native lib library files.
4. method as claimed in claim 3, which is characterized in that described to call described insert based on covering installation field information
Relevant updates file in the upgrade package of part covers original releasing document of the plug-in unit, specifically includes:
The temp directory is called to store the jar APMB packages in the upgrade package of the plug-in unit, dex files, nativelib library texts
Part, covering copy in the catalogue of original releasing document of the plug-in unit;
Delete original releasing document of the plug-in unit.
5. the method as described in claim 1, which is characterized in that one covering installation field letter of the addition in the plug-in unit
Breath, specifically includes:
Covering installation field information coverinfo is added to Json formats in the p.l files of the application program.
6. the method as described in claim 1, which is characterized in that described to call described insert based on covering installation field information
After relevant updates file in the upgrade package of part covers original releasing document of the plug-in unit, the method further includes:
Update the path of the plug-in unit.
7. the method as described in claim 1, which is characterized in that described to call described insert based on covering installation field information
After relevant updates file in the upgrade package of part covers original releasing document of the plug-in unit, the method further includes:
Broadcast notice is sent to each process, synchronizes the plug-in unit last state to each process.
8. a kind of electric terminal, which is characterized in that including:
Judgment module, whether the current version number of the version number and the plug-in unit that carry in the upgrade package for judging the plug-in unit
It is identical;
Detection module, if the current version number of the version number and the plug-in unit carried in upgrade package for the plug-in unit is identical,
Whether in operating status then detect the plug-in unit;
Parsing module parses if in operating status for the plug-in unit and stores the correlation in the upgrade package of the plug-in unit
Update file;
Add module, for adding a covering installation field information in the plug-in unit, the covering installation field information is used for
It identifies the plug-in unit and is in state to be updated;
Module is installed, for during starting the plug-in unit next time, being installed described in field information calling based on the covering
Relevant updates file in the upgrade package of plug-in unit covers original releasing document of the plug-in unit, to update the plug-in unit.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of claim 1-7 any claim the method is realized when row.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes any claim the methods of claim 1-7 when executing described program
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810350936.5A CN108681460A (en) | 2018-04-18 | 2018-04-18 | A kind of method and electric terminal of upgrading plug-in unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810350936.5A CN108681460A (en) | 2018-04-18 | 2018-04-18 | A kind of method and electric terminal of upgrading plug-in unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681460A true CN108681460A (en) | 2018-10-19 |
Family
ID=63801136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810350936.5A Pending CN108681460A (en) | 2018-04-18 | 2018-04-18 | A kind of method and electric terminal of upgrading plug-in unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681460A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099827A (en) * | 2020-09-21 | 2020-12-18 | 上海二三四五网络科技有限公司 | Control method and device for automatic updating of plug-in browser |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8838858B1 (en) * | 2011-12-22 | 2014-09-16 | Emc Corporation | Managing command line interface commands |
CN104699511A (en) * | 2015-03-27 | 2015-06-10 | 北京奇虎科技有限公司 | Plug-in upgrading method and plug-in upgrading device |
CN105511907A (en) * | 2015-11-26 | 2016-04-20 | 小米科技有限责任公司 | Application program upgrade method, device and system |
CN105786538A (en) * | 2014-12-24 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Software upgrading method and device based on Android system |
CN106155739A (en) * | 2016-06-30 | 2016-11-23 | 北京奇虎科技有限公司 | A kind of plug-in unit control metering method, server, client and control amount platform |
CN106227554A (en) * | 2016-07-08 | 2016-12-14 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus carrying out applying heat renewal in ios system |
-
2018
- 2018-04-18 CN CN201810350936.5A patent/CN108681460A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8838858B1 (en) * | 2011-12-22 | 2014-09-16 | Emc Corporation | Managing command line interface commands |
CN105786538A (en) * | 2014-12-24 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Software upgrading method and device based on Android system |
CN104699511A (en) * | 2015-03-27 | 2015-06-10 | 北京奇虎科技有限公司 | Plug-in upgrading method and plug-in upgrading device |
CN105511907A (en) * | 2015-11-26 | 2016-04-20 | 小米科技有限责任公司 | Application program upgrade method, device and system |
CN106155739A (en) * | 2016-06-30 | 2016-11-23 | 北京奇虎科技有限公司 | A kind of plug-in unit control metering method, server, client and control amount platform |
CN106227554A (en) * | 2016-07-08 | 2016-12-14 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus carrying out applying heat renewal in ios system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099827A (en) * | 2020-09-21 | 2020-12-18 | 上海二三四五网络科技有限公司 | Control method and device for automatic updating of plug-in browser |
CN112099827B (en) * | 2020-09-21 | 2021-06-04 | 上海二三四五网络科技有限公司 | Control method and device for automatic updating of plug-in browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104731625B (en) | A kind of method, apparatus and mobile terminal loading plug-in unit | |
CN102622241B (en) | A kind of method for upgrading software and device | |
US10552140B2 (en) | Automated identification of deployment data for distributing discrete software deliverables | |
US20100070961A1 (en) | Supplying Software Updates Synchronously | |
CN105302563B (en) | The plug-in unit method and system of mobile application service | |
JP5542796B2 (en) | Method and apparatus for managing mobile device software | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN105159718B (en) | Firmware upgrade method and device | |
US8607191B2 (en) | Automated discovery of programmatic resources | |
CN106406971B (en) | A kind of Compilation Method and device of code file | |
CN104699511B (en) | Plug-in unit upgrade method and device | |
WO2021125779A1 (en) | Cloud-based api metadata management method and system for api integrated management | |
US8650288B2 (en) | Runtime usage analysis for a distributed policy enforcement system | |
CN104461567A (en) | Method and system for releasing software package | |
CN107025108B (en) | Exporting hierarchical data from a Source Code Management (SCM) system to a Product Lifecycle Management (PLM) system | |
CN103677898A (en) | Method for checking loaded extension and/or plug-in on server side and server | |
CN113760324A (en) | Method and device for constructing micro front-end application | |
CN108037941A (en) | Application program update method, electronic equipment based on public plug-in unit, storage medium | |
CN103793248A (en) | Method and device for upgrading application program | |
CN109032620A (en) | The configuration file generation method and device of application program | |
CN109885332A (en) | Image quality chip software upgrade method, device, display equipment and storage medium | |
CN109240733A (en) | A kind of method and terminal updating advertisement SDK based on Android system | |
CN112702195A (en) | Gateway configuration method, electronic device and computer readable storage medium | |
CN103500114A (en) | Method and device for installing application program | |
CN112835568A (en) | Project construction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |