CN108984224A - A kind of plug-in management method, computer readable storage medium and terminal device - Google Patents
A kind of plug-in management method, computer readable storage medium and terminal device Download PDFInfo
- Publication number
- CN108984224A CN108984224A CN201810606118.7A CN201810606118A CN108984224A CN 108984224 A CN108984224 A CN 108984224A CN 201810606118 A CN201810606118 A CN 201810606118A CN 108984224 A CN108984224 A CN 108984224A
- Authority
- CN
- China
- Prior art keywords
- plug
- target
- unit
- list
- digest value
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- 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
- G06F8/658—Incremental updates; Differential updates
Abstract
The invention belongs to field of computer technology more particularly to a kind of plug-in management methods, computer readable storage medium and terminal device.The method obtains user to the operational order of application program first, then judge the function whether function indicated by the operational order is realized by the main program of the application program, if function indicated by the operational order is not the function that the main program of the application program is realized, then target plug-in is inquired in preset global plug-in unit list, and the mount message of the target plug-in is inquired in preset mount message list, if not inquiring the mount message of the target plug-in in the mount message list, it is then downloaded from specified server and the target plug-in is installed, the operational order is executed finally by the target plug-in.It only needs to download and install the plug-in unit for realizing extension function in extension application function, extension function is realized by plug-in unit, greatly reduces the consumption of system resource.
Description
Technical field
The invention belongs to field of computer technology more particularly to a kind of plug-in management methods, computer readable storage medium
And terminal device.
Background technique
With the development of wireless Internet technologies and intelligent terminal, various application programs (APP) start to be widely used in
In the mobile terminals such as mobile phone, tablet computer, provided a great convenience for the work and life of user.
But in the prior art, user extends the function of mounted application program if necessary, needs to download this and answers
It with the more highest version of program and is reinstalled, to realize the extension of function of application.But this mode is each
The more highest version for requiring to re-download and install the application program when extension application function, to increase system resource
Consumption.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of plug-in management method, computer readable storage medium and terminals
Equipment requires to re-download and install the application program more in each extension application function to solve the prior art
Highest version, thus the problem of increasing the consumption of system resource.
The first aspect of the embodiment of the present invention provides a kind of plug-in management method, may include:
User is obtained to the operational order of application program;
Judge the function whether function indicated by the operational order is realized by the main program of the application program;
If function indicated by the operational order is not the function that the main program of the application program is realized, pre-
If global plug-in unit list in inquire target plug-in, the target plug-in is to realize inserting for function indicated by the operational order
Part, the function that each plug-in unit and each plug-in unit of the overall situation plug-in unit list records application program are realized;
The mount message of the target plug-in, the mount message list records are inquired in preset mount message list
Each mount message for having installed plug-in unit;
If not inquiring the mount message of the target plug-in in the mount message list, from specified server
Middle downloading simultaneously installs the target plug-in;
The operational order is executed by the target plug-in.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
User is obtained to the operational order of application program;
Judge the function whether function indicated by the operational order is realized by the main program of the application program;
If function indicated by the operational order is not the function that the main program of the application program is realized, pre-
If global plug-in unit list in inquire target plug-in, the target plug-in is to realize inserting for function indicated by the operational order
Part, the function that each plug-in unit and each plug-in unit of the overall situation plug-in unit list records application program are realized;
The mount message of the target plug-in, the mount message list records are inquired in preset mount message list
Each mount message for having installed plug-in unit;
If not inquiring the mount message of the target plug-in in the mount message list, from specified server
Middle downloading simultaneously installs the target plug-in;
The operational order is executed by the target plug-in.
The third aspect of the embodiment of the present invention provide a kind of plug-in management terminal device, including memory, processor with
And the computer-readable instruction that can be run in the memory and on the processor is stored, described in the processor execution
Following steps are realized when computer-readable instruction:
User is obtained to the operational order of application program;
Judge the function whether function indicated by the operational order is realized by the main program of the application program;
If function indicated by the operational order is not the function that the main program of the application program is realized, pre-
If global plug-in unit list in inquire target plug-in, the target plug-in is to realize inserting for function indicated by the operational order
Part, the function that each plug-in unit and each plug-in unit of the overall situation plug-in unit list records application program are realized;
The mount message of the target plug-in, the mount message list records are inquired in preset mount message list
Each mount message for having installed plug-in unit;
If not inquiring the mount message of the target plug-in in the mount message list, from specified server
Middle downloading simultaneously installs the target plug-in;
The operational order is executed by the target plug-in.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention obtains user couple first
The operational order of application program, then judge function indicated by the operational order whether be the application program main program
The function of being realized, if the function that the main program that function indicated by the operational order is not the application program is realized,
Target plug-in then is inquired in preset global plug-in unit list, and inquires the target plug-in in preset mount message list
Mount message, if not inquiring the mount message of the target plug-in in the mount message list, from specified clothes
The target plug-in is downloaded and installed in business device, executes the operational order finally by the target plug-in.Through the invention,
It only needs to download and install the plug-in unit for realizing extension function in extension application function, extension function is realized by plug-in unit
Can, without being all updated to entire application program, greatly reduce the consumption of system resource.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of plug-in management method in the embodiment of the present invention;
Fig. 2 is the exemplary flow being updated in the embodiment of the present invention to the global plug-in unit list that terminal device is locally stored
Figure;
Fig. 3 is the schematic flow diagram for downloading and installing the target plug-in in the embodiment of the present invention from server;
Fig. 4 is a kind of one embodiment structure chart of plug-in management device in the embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of plug-in management terminal device in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
In the prior art, application program can generally occupy more resource, moreover, one due to having concentrated more function
Denier needs to increase new function, needs to carry out re-downloading for entire application program, and not only taking up network bandwidth also makes to user
With making troubles.The premise that the present invention is carried out is at a main program to insert an application program dismantling at least one
Part.Main program refers to can be in intelligent terminal for realizing the basic function of application program with independently operated subprogram
In installed.Plug-in unit is also a subprogram, and for realizing the extension function of application program, generally, different plug-in units is real
Existing different extension function.Plug-in unit is unable to independent operating, needs to be loaded into main program in a manner of module and runs.
In order to support this scheme, the present embodiment application program development phase an original complete application program
Engineering project is split as multiple sub- engineerings from various dimensions such as business, basis dependences respectively, for example, a main program can be split as
Sub- engineering and the sub- engineering of at least one plug-in unit, sub- engineering can all can be in the same GIT systems with independent compilation, all sub- engineerings
Middle maintenance.Wherein, GIT is distributed version control system, ununified central server, the terminal of each developer
It is a complete version repository, in this way, each developer also can work independently in the case where not networking, when needing to cooperate
When modification, only respective modification need to be pushed to other side, so that it may see the modification content of other side mutually.
May exist dependence, the function that certain sub- engineerings of plug-in unit are realized between the sub- engineering of plug-in unit and the sub- engineering of main program
The sub- engineering of main program can may need to rely on to complete, i.e., the sub- engineering of plug-in unit can be based on the sub- engineering of main program.But
It is that during Engineering Division, should ensure that between the sub- engineering of plug-in unit and the sub- engineering of plug-in unit should not there is dependence, i.e., it is each to insert
Part engineering is independent from each other, and may be needed to rely on another plug-in unit there is no the function that the sub- engineering of certain plug-in units is realized
Sub- engineering is come the case where completion.Why in this way, be due to main program be that user installs first on the terminal device, only exist
The problem of main program is installed in later use process, and plug-in unit installation can be just related to, is when having specific between the two therefore
Between sequencing.And this relationship is then not present between plug-in unit and plug-in unit, according to the use demand of user, it may be possible under first
Load is mounted with A plug-in unit, then downloads again and is mounted with B plug-in unit, it is also possible to which first downloading is mounted with B plug-in unit, then downloads installation again
A plug-in unit.If the function of B plug-in unit realizes the A plug-in unit that needs to rely on, and user does not install A and inserts when carrying out Engineering Division
Part also cannot achieve corresponding function described in B plug-in unit even when user's downloading is mounted with B plug-in unit.
Each sub- engineering (including the sub- engineering of main program and the sub- engineering of plug-in unit) can share bottom module, but respectively specific institute
Using to specific bottom module be possibly different from.For any one sub- engineering, first have to determine the bottom needed for it
Module separately constitutes its bottom-layer network modular engineering, bottom picture module engineering, bottom common class modular engineering etc., then
Corresponding each jar packet is generated by compiling packaged service device, the jar packet of bottom-layer network modular engineering is Network.jar,
The jar packet of bottom picture module engineering is ImageLoader.jar, and the jar packet of bottom common class modular engineering is
Toools.jar, after completing the work that compiling is packaged, these jar of generation can be wrapped the project of reaching by compiling packaged service device
It manages in library.Each sub- engineering can download the jar packet that it is relied on from project management library on demand and participate in corresponding function exploitation, open
During hair, developer need to only safeguard the sub- engineering code being each responsible for, and submit code on demand, united by packing compiler server
One automatic compiling is packaged out each corresponding installation kit, is then uploaded to these installation kits and its corresponding version information specified
Server in.
Under the premise of the exploitation of above-described main program and plug-in unit is completed, the terminal device of user can root
The downloading and installation of these plug-in units are managed according to actual conditions, as shown in Figure 1, a kind of plug-in management in the embodiment of the present invention
One embodiment of method may include:
Step S101, user is obtained to the operational order of application program.
The operational order is triggered by user by the user interface (User Interface, UI) of application program,
For example, user can click specific button on UI, to trigger corresponding operation instruction.
Step S102, judge whether function indicated by the operational order is realized by the main program of the application program
Function.
If function indicated by the operational order is the function that the main program of the application program is realized, step is executed
Rapid S103, if the function that the main program that function indicated by the operational order is not the application program is realized, executes
Step S104 and its subsequent step.
Step S103, the operational order is executed by the main program.
Step S104, target plug-in is inquired in preset global plug-in unit list.
The target plug-in is the plug-in unit for realizing function indicated by the operational order, the overall situation plug-in unit list records
The function that each plug-in unit and each plug-in unit of the application program are realized, it is preferable that in the overall situation plug-in unit list also
May include the latest edition of each plug-in unit, storage address and support latest edition plug-in component operation main program minimum version
This, is an example of the global plug-in unit list shown in following table:
Plug-in unit | Function | Latest edition | Storage address | Main program minimum version |
Plug-in unit A | Function 1 | V1.0.0 | https://****/plugins/pluginA | V1.0.0 |
Plug-in unit B | Function 2 | V2.1.0 | https://****/plugins/pluginB | V1.0.0 |
Plug-in unit C | Function 3 | V1.0.1 | https://****/plugins/pluginC | V1.0.0 |
…… | …… | …… | …… | …… |
If function indicated by the operational order is function 2, can be true by carrying out inquiry in global plug-in unit list
It makes and realizes that the plug-in unit of the function is plug-in unit B, namely determine that plug-in unit B is the target plug-in.
It should be noted that each plug-in unit may be continued for updating, therefore constantly had in the server
New plug-in version replaces old plug-in version, whenever carrying out update of plug-in in the server, wherein stored
Corresponding change is also made in global plug-in unit list therewith, for example, may operate at if the version of original plug-in unit A is V1.0.0
In V1.0.0 and the main program of the above version, the information record in global plug-in unit list is as follows:
Plug-in unit | Function | Latest edition | Storage address | Main program minimum version |
Plug-in unit A | Function 1 | V1.0.0 | https://****/plugins/pluginA | V1.0.0 |
But developer is iterated after update, version updating 1.0.1, and need to operate in V1.0.1 and with adjustment of the printing plate
In this main program, then its information record in global plug-in version list need to update as follows:
Plug-in unit | Function | Latest edition | Storage address | Main program minimum version |
Plug-in unit A | Function 1 | V1.0.1 | https://****/plugins/pluginA | V1.0.1 |
Preferably, before carrying out target plug-in inquiry, step as shown in Figure 2 can be first passed through to terminal device local
The global plug-in unit list of storage is updated:
Step S201, global plug-in unit list update request is sent to the server.
Step S202, the more new information of the server feedback is received.
It include first message digest value in the more new information, the first message digest value is to be plucked using preset message
The message digest value for wanting algorithm to handle the global plug-in unit list in the server.
In this example, the Message Digest 5 can be MD5 algorithm, SHA-1 algorithm and other similar algorithms.
Message Digest 5 can be the Input transformation of random length at the output of regular length, and this conversion is that a kind of compression maps,
It is, the length of output is generally much less than the length inputted, different inputs may hash to identical output, and can not
Input value can be uniquely determined from output valve, be briefly exactly that a kind of message compression by random length is long to a certain fixation
The process of the eap-message digest of degree.
Step S203, judge whether the first message digest value is consistent with second message digest value.
The second message digest value is to be carried out using the Message Digest 5 to the global plug-in unit list being locally stored
Handle obtained message digest value.
If the first message digest value and the second message digest value are inconsistent, illustrate that the overall situation being locally stored is inserted
Part list and the global plug-in unit list in the server are inconsistent, that is to say, that the global plug-in unit list being locally stored is not most
New version needs to be updated it, executes step S204 at this time, if the first message digest value and the second message
Digest value is consistent, then illustrates that the global plug-in unit list being locally stored is consistent with the global plug-in unit list in the server, also
It is to say that the global plug-in unit list being locally stored has been newest version, without being updated to it, executes step S205 at this time.
Step S204, the global plug-in unit list in the server is downloaded, and uses the global plug-in unit in the server
The global plug-in unit list being locally stored is replaced in list.
Step S205, the global plug-in unit list being locally stored is kept.
The above process is the process that terminal device actively updates global plug-in unit list, in the alternatively possible reality of the present embodiment
In existing, the update of global plug-in unit list can be carried out come instruction terminal equipment by the server, i.e., when in the server
When global plug-in unit list changes, current newest global plug-in unit list is sent to terminal device, terminal by the server
After equipment receives the overall situation plug-in unit list, the global plug-in unit list being locally stored is replaced using the overall situation plug-in unit list.
Step S105, the mount message of the target plug-in is inquired in preset mount message list.
The each mount message for having installed plug-in unit of the mount message list records.
If the mount message of the target plug-in step S106, is not inquired in the mount message list, from finger
It is downloaded in fixed server and the target plug-in is installed.
Specifically, step S106 may include step as shown in Figure 3:
Step S1061, in the global plug-in unit list with inquiring storage of the target plug-in in the server
Location.
Step S1062, the target plug-in is downloaded from the storage address.
Step S1063, it is handled using the target plug-in of the Message Digest 5 to downloading, obtains third and disappear
Cease digest value.
Step S1064, the 4th message digest value is inquired in the global plug-in unit list.
4th message digest value is the message digest value that the server handles the target plug-in.
It in the present embodiment, can also include the 4th message digest value of each plug-in unit in the global plug-in unit list.
Step S1065, judge whether the third message digest value is consistent with the 4th message digest value.
If the third message digest value and the 4th message digest value are inconsistent, illustrate that the target plug-in of downloading is
It is incomplete, error in data or damage may have occurred in downloading process, return to step S1062 and its subsequent step at this time
Suddenly.If the third message digest value is consistent with the 4th message digest value, illustrate the target plug-in of downloading be it is complete,
Error in data or damage does not occur, executes step S1066 at this time.
Step S1066, the target plug-in of installation downloading.
Also the target plug-in is loaded onto the main program of the application program, to realize to the application program
The extension of function.
Step S107, the operational order is executed by the target plug-in.
Further, after inquiring the mount message of the target plug-in in preset mount message list, if in institute
The mount message for inquiring the target plug-in in mount message list is stated, then locally-installed target plug-in can also be carried out
It updates, specifically, obtains the installation version of the target plug-in from the mount message of the target plug-in, and from the overall situation
The latest edition of the target plug-in is obtained in plug-in unit list, then judges the installation version and the target of the target plug-in
Whether the latest edition of plug-in unit is consistent, if the installation version of the target plug-in is consistent with the latest edition of the target plug-in,
The operational order is directly then executed by locally-installed target plug-in, if the installation version of the target plug-in and the mesh
The latest edition for marking plug-in unit is inconsistent, then unloads the mounted target plug-in, download and installed most from the server
The target plug-in of new version, and the operational order is executed by the target plug-in of latest edition.
It further, can also be to local peace before being downloaded in specified server and installing the target plug-in
The main program of dress is updated, and specifically, obtains the installation version of the main program in the mount message list, and from institute
The target version that the main program is obtained in global plug-in unit list is stated, the target version is that the target plug-in is supported to run
Minimum version, then judges whether the installation version of the main program is lower than the target version of the main program, if the main journey
The installation version of sequence is greater than or equal to the target version of the main program, then without being updated to the main program, if described
The installation version of main program is lower than the target version of the main program, then unloads the mounted main program, and from the clothes
The main program of latest edition is downloaded and installed in business device.
In conclusion the embodiment of the present invention obtains user to the operational order of application program first, the behaviour is then judged
The function of instructing indicated function whether to be realized by the main program of the application program, if indicated by the operational order
Function be not the application program the function realized of main program, then inquiry target is inserted in preset global plug-in unit list
Part, and the mount message of the target plug-in is inquired in preset mount message list, if in the mount message list
The mount message of the target plug-in is not inquired, then download from specified server and the target plug-in is installed, finally
The operational order is executed by the target plug-in.Through the invention, it only needs to download simultaneously in extension application function
The plug-in unit of extension function is realized in installation, and extension function is realized by plug-in unit, without all carrying out more to entire application program
Newly, the consumption of system resource is greatly reduced.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to a kind of plug-in management method described in foregoing embodiments, Fig. 4 shows provided in an embodiment of the present invention one
One embodiment structure chart of kind plug-in management device.
In the present embodiment, a kind of plug-in management device may include:
Operational order obtains module 401, for obtaining user to the operational order of application program;
Function judgment module 402, for judging whether function indicated by the operational order is the application program
The function that main program is realized;
Target plug-in enquiry module 403, if not being the application program for function indicated by the operational order
The function that main program is realized, then inquire target plug-in in preset global plug-in unit list, and the target plug-in is realization institute
State the plug-in unit of function indicated by operational order, the overall situation plug-in unit list records each plug-in unit of the application program and
The function that each plug-in unit is realized;
Mount message enquiry module 404, for inquiring the installation of the target plug-in in preset mount message list
Information, each mount message for having installed plug-in unit of the mount message list records;
Target plug-in installs module 405, if for not inquiring the target plug-in in the mount message list
Mount message is then downloaded from specified server and installs the target plug-in;
First execution module 406, for executing the operational order by the target plug-in.
Further, the plug-in management device can also include:
Plug-in unit installs version and obtains module, if the peace for inquiring the target plug-in in the mount message list
Information is filled, then obtains the installation version of the target plug-in from the mount message of the target plug-in;
Plug-in unit latest edition obtains module, for obtaining the latest edition of the target plug-in from the global plug-in unit list
This;
Plug-in version judgment module, for judging the installation version of the target plug-in and the latest edition of the target plug-in
Whether this is consistent;
Plug-in unit Unload module, if different for the installation version of the target plug-in and the latest edition of the target plug-in
It causes, then unloads the mounted target plug-in;
Plug-in unit installs module, for the target plug-in of latest edition to be downloaded and installed from the server;
Second execution module, for executing the operational order by the target plug-in of latest edition.
Further, the plug-in management device can also include:
Main program installs version and obtains module, for obtaining the installation version of the main program in the mount message list
This;
Main program target version obtains module, for obtaining the target version of the main program from the global plug-in unit list
This, the target version is the minimum version for supporting the target plug-in operation;
Main program version judgment module, for judging whether the installation version of the main program is lower than the mesh of the main program
Mark version;
Main program Unload module, if being lower than the target version of the main program for the installation version of the main program,
Unload the mounted main program;
Main program installs module, for the main program of latest edition to be downloaded and installed from the server.
Further, the plug-in management device can also include:
Request sending module is updated, for sending global plug-in unit list update request to the server;
Update information receiving module for receiving the more new information of the server feedback includes in the more new information
First message digest value, the first message digest value are using preset Message Digest 5 to the overall situation in the server
The message digest value that plug-in unit list is handled;
Message digest value judgment module, for judge the first message digest value whether with second message digest value one
It causes, the second message digest value is handle to the global plug-in unit list being locally stored using the Message Digest 5
The message digest value arrived;
Global plug-in unit list update module, if different for the first message digest value and the second message digest value
It causes, then downloads the global plug-in unit list in the server, and replace locally using the global plug-in unit list in the server
The global plug-in unit list of storage.
Further, the target plug-in installation module may include:
Storage address query unit, for inquiring the target plug-in in the server in the global plug-in unit list
In storage address;
Target plug-in download unit, for downloading the target plug-in from the storage address;
Eap-message digest processing unit, for using preset Message Digest 5 to the target plug-in of downloading at
Reason, obtains third message digest value;
Message digest value query unit, for inquiring the 4th message digest value in the global plug-in unit list, described the
Four message digest values are the message digest value that the server handles the target plug-in;
Message digest value judging unit, for judge the third message digest value whether with the 4th message digest value
Unanimously;
Target plug-in is according to unit, if consistent with the 4th message digest value for the third message digest value,
The target plug-in of downloading is installed.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Fig. 5 shows a kind of schematic block diagram of plug-in management terminal device provided in an embodiment of the present invention, for the ease of saying
Bright, only parts related to embodiments of the present invention are shown.
In the present embodiment, the plug-in management terminal device 5 can be smart phone, tablet computer, intelligent glasses, intelligence
The terminal devices such as energy wrist-watch, Intelligent bracelet.The plug-in management terminal device 5 can include: processor 50, memory 51 and storage
In the memory 51 and the computer-readable instruction 52 that can run on the processor 50, such as execute above-mentioned plug-in unit
The computer-readable instruction of management method.The processor 50 is realized above-mentioned each slotting when executing the computer-readable instruction 52
Step in part management method embodiment, such as step S101 to S107 shown in FIG. 1.Alternatively, the processor 50 executes institute
The function of each module/unit in above-mentioned each Installation practice, such as module shown in Fig. 4 are realized when stating computer-readable instruction 52
401 to 406 function.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one
Or multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Institute
Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment
For describing implementation procedure of the computer-readable instruction 52 in the plug-in management terminal device 5.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the plug-in management terminal device 5, such as plug-in management end
The hard disk or memory of end equipment 5.The memory 51 is also possible to the External memory equipment of the plug-in management terminal device 5,
Such as the plug-in type hard disk being equipped on the plug-in management terminal device 5, intelligent memory card (Smart Media Card, SMC),
Secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 51 may be used also
With the internal storage unit both including the plug-in management terminal device 5 or including External memory equipment.The memory 51 is used
Other instruction and datas needed for storing the computer-readable instruction and the plug-in management terminal device 5.It is described to deposit
Reservoir 51 can be also used for temporarily storing the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each
Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used
To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a storage medium, including several computer-readable instructions are used so that one
Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of plug-in management method characterized by comprising
User is obtained to the operational order of application program;
Judge the function whether function indicated by the operational order is realized by the main program of the application program;
If function indicated by the operational order is not the function that the main program of the application program is realized, preset
Target plug-in is inquired in global plug-in unit list, the target plug-in is the plug-in unit for realizing function indicated by the operational order,
The function that each plug-in unit and each plug-in unit of the overall situation plug-in unit list records application program are realized;
Inquire the mount message of the target plug-in in preset mount message list, the mount message list records are each
A mount message for having installed plug-in unit;
If the mount message of the target plug-in is not inquired in the mount message list, under in specified server
It carries and the target plug-in is installed;
The operational order is executed by the target plug-in.
2. plug-in management method according to claim 1, which is characterized in that inquire institute in preset mount message list
After the mount message for stating target plug-in, further includes:
If inquiring the mount message of the target plug-in in the mount message list, from the installation of the target plug-in
The installation version of the target plug-in is obtained in information;
The latest edition of the target plug-in is obtained from the global plug-in unit list;
Whether the installation version for judging the target plug-in is consistent with the latest edition of the target plug-in;
If the installation version of the target plug-in and the latest edition of the target plug-in are inconsistent, unload mounted described
Target plug-in;
The target plug-in of latest edition is downloaded and installed from the server;
The operational order is executed by the target plug-in of latest edition.
3. plug-in management method according to claim 1, which is characterized in that downloading and installing from specified server
Before the target plug-in, further includes:
The installation version of the main program is obtained in the mount message list;
The target version of the main program is obtained from the global plug-in unit list, the target version is that the target is supported to insert
The minimum version of part operation;
Judge whether the installation version of the main program is lower than the target version of the main program;
If the installation version of the main program is lower than the target version of the main program, the mounted main program is unloaded;
The main program of latest edition is downloaded and installed from the server.
4. plug-in management method according to claim 1, which is characterized in that inquire mesh in preset global plug-in unit list
Before mark plug-in unit, further includes:
Global plug-in unit list update request is sent to the server;
The more new information of the server feedback is received, includes first message digest value in the more new information, described first disappears
Breath digest value is to be disappeared using preset Message Digest 5 to what the global plug-in unit list in the server was handled
Cease digest value;
Judge whether the first message digest value is consistent with second message digest value, the second message digest value is uses institute
State the message digest value that Message Digest 5 handles the global plug-in unit list being locally stored;
If the first message digest value and the second message digest value are inconsistent, the overall situation downloaded in the server is inserted
Part list, and the global plug-in unit list being locally stored is replaced using the global plug-in unit list in the server.
5. plug-in management method according to any one of claim 1 to 4, which is characterized in that described from specified service
It is downloaded in device and the target plug-in is installed and include:
Storage address of the target plug-in in the server is inquired in the global plug-in unit list;
The target plug-in is downloaded from the storage address;
It is handled using the target plug-in of the preset Message Digest 5 to downloading, obtains third message digest value;
The 4th message digest value is inquired in the global plug-in unit list, the 4th message digest value is the server to institute
State the message digest value that target plug-in is handled;
Judge whether the third message digest value is consistent with the 4th message digest value;
If the third message digest value is consistent with the 4th message digest value, the target plug-in of downloading is installed.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special
Sign is, the inserter tube as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor
The step of reason method.
7. a kind of plug-in management terminal device, including memory, processor and storage are in the memory and can be described
The computer-readable instruction run on processor, which is characterized in that the processor executes real when the computer-readable instruction
Existing following steps:
User is obtained to the operational order of application program;
Judge the function whether function indicated by the operational order is realized by the main program of the application program;
If function indicated by the operational order is not the function that the main program of the application program is realized, preset
Target plug-in is inquired in global plug-in unit list, the target plug-in is the plug-in unit for realizing function indicated by the operational order,
The function that each plug-in unit and each plug-in unit of the overall situation plug-in unit list records application program are realized;
Inquire the mount message of the target plug-in in preset mount message list, the mount message list records are each
A mount message for having installed plug-in unit;
If the mount message of the target plug-in is not inquired in the mount message list, under in specified server
It carries and the target plug-in is installed;
The operational order is executed by the target plug-in.
8. plug-in management terminal device according to claim 7, which is characterized in that looked into preset mount message list
After the mount message for asking the target plug-in, further includes:
If inquiring the mount message of the target plug-in in the mount message list, from the installation of the target plug-in
The installation version of the target plug-in is obtained in information;
The latest edition of the target plug-in is obtained from the global plug-in unit list;
Whether the installation version for judging the target plug-in is consistent with the latest edition of the target plug-in;
If the installation version of the target plug-in and the latest edition of the target plug-in are inconsistent, unload mounted described
Target plug-in;
The target plug-in of latest edition is downloaded and installed from the server;
The operational order is executed by the target plug-in of latest edition.
9. plug-in management terminal device according to claim 7, which is characterized in that downloaded simultaneously from specified server
Before the target plug-in is installed, further includes:
The installation version of the main program is obtained in the mount message list;
The target version of the main program is obtained from the global plug-in unit list, the target version is that the target is supported to insert
The minimum version of part operation;
Judge whether the installation version of the main program is lower than the target version of the main program;
If the installation version of the main program is lower than the target version of the main program, the mounted main program is unloaded;
The main program of latest edition is downloaded and installed from the server.
10. plug-in management terminal device according to any one of claims 7 to 9, which is characterized in that in the preset overall situation
It is inquired before target plug-in in plug-in unit list, further includes:
Global plug-in unit list update request is sent to the server;
The more new information of the server feedback is received, includes first message digest value in the more new information, described first disappears
Breath digest value is to be disappeared using preset Message Digest 5 to what the global plug-in unit list in the server was handled
Cease digest value;
Judge whether the first message digest value is consistent with second message digest value, the second message digest value is uses institute
State the message digest value that Message Digest 5 handles the global plug-in unit list being locally stored;
If the first message digest value and the second message digest value are inconsistent, the overall situation downloaded in the server is inserted
Part list, and the global plug-in unit list being locally stored is replaced using the global plug-in unit list in the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810606118.7A CN108984224A (en) | 2018-06-13 | 2018-06-13 | A kind of plug-in management method, computer readable storage medium and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810606118.7A CN108984224A (en) | 2018-06-13 | 2018-06-13 | A kind of plug-in management method, computer readable storage medium and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984224A true CN108984224A (en) | 2018-12-11 |
Family
ID=64541261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810606118.7A Pending CN108984224A (en) | 2018-06-13 | 2018-06-13 | A kind of plug-in management method, computer readable storage medium and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984224A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684115A (en) * | 2019-01-08 | 2019-04-26 | 深圳市网心科技有限公司 | A kind of communication means and relevant device applied between plug-in unit |
CN109725952A (en) * | 2019-01-07 | 2019-05-07 | 深圳市网心科技有限公司 | A kind of method of application plug, system and relevant apparatus |
CN109739868A (en) * | 2019-01-08 | 2019-05-10 | 深圳市网心科技有限公司 | A kind of data processing method and its relevant device |
CN110413343A (en) * | 2019-07-17 | 2019-11-05 | 深圳市酷开网络科技有限公司 | A kind of method, apparatus and computer equipment of instant plug-in unit |
CN110457049A (en) * | 2019-06-27 | 2019-11-15 | 北京奇艺世纪科技有限公司 | Realize method, apparatus, electronic equipment and the storage medium of plug-in unit automation |
CN110764836A (en) * | 2019-09-18 | 2020-02-07 | 华为技术有限公司 | Method and system for realizing plug-in |
CN111596967A (en) * | 2020-04-27 | 2020-08-28 | 中国银联股份有限公司 | Application function configuration method, terminal device, server and storage medium |
CN111736922A (en) * | 2020-07-23 | 2020-10-02 | 平安国际智慧城市科技股份有限公司 | Plug-in calling method and device, electronic equipment and storage medium |
CN111782294A (en) * | 2020-06-28 | 2020-10-16 | 珠海豹趣科技有限公司 | Application program running method and device, electronic equipment and storage medium |
CN111857862A (en) * | 2020-06-19 | 2020-10-30 | 泰康保险集团股份有限公司 | Plug-in management method and device, electronic equipment and computer readable storage medium |
CN111857781A (en) * | 2020-07-23 | 2020-10-30 | 平安普惠企业管理有限公司 | Resource updating method and related equipment |
CN112085229A (en) * | 2020-09-09 | 2020-12-15 | 北京华胜天成科技股份有限公司 | Operation and maintenance method and device, computer equipment and storage medium |
CN112162795A (en) * | 2020-10-09 | 2021-01-01 | 广州博冠信息科技有限公司 | Plug-in starting method and device, computer equipment and storage medium |
CN112527301A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Method for realizing application plug-in and electronic equipment |
CN112965762A (en) * | 2021-03-19 | 2021-06-15 | 福建新大陆通信科技股份有限公司 | Access control management method and system based on double APP architectures |
CN116701234A (en) * | 2023-08-04 | 2023-09-05 | 腾讯科技(深圳)有限公司 | Application program debugging method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253840A (en) * | 2011-08-04 | 2011-11-23 | 深圳芯智汇科技有限公司 | Plugin management method and plugin manager |
CN104714827A (en) * | 2015-03-31 | 2015-06-17 | 北京奇虎科技有限公司 | Plug-in update method and device |
CN105094889A (en) * | 2012-03-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for loading application program plugins |
WO2016145747A1 (en) * | 2015-03-16 | 2016-09-22 | 中兴通讯股份有限公司 | Smart gateway functional plug-in management method, client terminal and system |
CN106095458A (en) * | 2016-06-20 | 2016-11-09 | 腾讯科技(深圳)有限公司 | The management method of plug-in unit and device in a kind of application program |
-
2018
- 2018-06-13 CN CN201810606118.7A patent/CN108984224A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253840A (en) * | 2011-08-04 | 2011-11-23 | 深圳芯智汇科技有限公司 | Plugin management method and plugin manager |
CN105094889A (en) * | 2012-03-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for loading application program plugins |
WO2016145747A1 (en) * | 2015-03-16 | 2016-09-22 | 中兴通讯股份有限公司 | Smart gateway functional plug-in management method, client terminal and system |
CN104714827A (en) * | 2015-03-31 | 2015-06-17 | 北京奇虎科技有限公司 | Plug-in update method and device |
CN106095458A (en) * | 2016-06-20 | 2016-11-09 | 腾讯科技(深圳)有限公司 | The management method of plug-in unit and device in a kind of application program |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109725952B (en) * | 2019-01-07 | 2021-09-24 | 深圳市网心科技有限公司 | Method, system and related device for application program plug-in |
CN109725952A (en) * | 2019-01-07 | 2019-05-07 | 深圳市网心科技有限公司 | A kind of method of application plug, system and relevant apparatus |
CN109739868B (en) * | 2019-01-08 | 2023-05-12 | 深圳市网心科技有限公司 | Data processing method and related equipment thereof |
CN109684115A (en) * | 2019-01-08 | 2019-04-26 | 深圳市网心科技有限公司 | A kind of communication means and relevant device applied between plug-in unit |
CN109739868A (en) * | 2019-01-08 | 2019-05-10 | 深圳市网心科技有限公司 | A kind of data processing method and its relevant device |
CN110457049A (en) * | 2019-06-27 | 2019-11-15 | 北京奇艺世纪科技有限公司 | Realize method, apparatus, electronic equipment and the storage medium of plug-in unit automation |
CN110457049B (en) * | 2019-06-27 | 2023-01-10 | 北京奇艺世纪科技有限公司 | Method and device for realizing plug-in automation, electronic equipment and storage medium |
CN110413343A (en) * | 2019-07-17 | 2019-11-05 | 深圳市酷开网络科技有限公司 | A kind of method, apparatus and computer equipment of instant plug-in unit |
CN110764836A (en) * | 2019-09-18 | 2020-02-07 | 华为技术有限公司 | Method and system for realizing plug-in |
CN110764836B (en) * | 2019-09-18 | 2024-02-09 | 华为技术有限公司 | Plug-in implementation method and plug-in implementation system |
US11880695B2 (en) | 2019-09-18 | 2024-01-23 | Huawei Technologies Co., Ltd. | Plug-in implementation method and plug-in implementation system |
WO2021052167A1 (en) * | 2019-09-18 | 2021-03-25 | 华为技术有限公司 | Method for realizing pluginization of application, and electronic apparatus |
CN112527301B (en) * | 2019-09-18 | 2022-10-25 | 华为技术有限公司 | Method for realizing application plug-in and electronic equipment |
CN112527301A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Method for realizing application plug-in and electronic equipment |
CN111596967A (en) * | 2020-04-27 | 2020-08-28 | 中国银联股份有限公司 | Application function configuration method, terminal device, server and storage medium |
CN111857862A (en) * | 2020-06-19 | 2020-10-30 | 泰康保险集团股份有限公司 | Plug-in management method and device, electronic equipment and computer readable storage medium |
CN111782294A (en) * | 2020-06-28 | 2020-10-16 | 珠海豹趣科技有限公司 | Application program running method and device, electronic equipment and storage medium |
CN111857781A (en) * | 2020-07-23 | 2020-10-30 | 平安普惠企业管理有限公司 | Resource updating method and related equipment |
CN111736922A (en) * | 2020-07-23 | 2020-10-02 | 平安国际智慧城市科技股份有限公司 | Plug-in calling method and device, electronic equipment and storage medium |
CN112085229A (en) * | 2020-09-09 | 2020-12-15 | 北京华胜天成科技股份有限公司 | Operation and maintenance method and device, computer equipment and storage medium |
CN112085229B (en) * | 2020-09-09 | 2024-04-02 | 北京华胜天成科技股份有限公司 | Operation and maintenance method, device, computer equipment and storage medium |
CN112162795A (en) * | 2020-10-09 | 2021-01-01 | 广州博冠信息科技有限公司 | Plug-in starting method and device, computer equipment and storage medium |
CN112162795B (en) * | 2020-10-09 | 2023-12-12 | 广州博冠信息科技有限公司 | Plug-in starting method and device, computer equipment and storage medium |
CN112965762A (en) * | 2021-03-19 | 2021-06-15 | 福建新大陆通信科技股份有限公司 | Access control management method and system based on double APP architectures |
CN112965762B (en) * | 2021-03-19 | 2023-05-02 | 福建新大陆通信科技股份有限公司 | Access control management method and system based on double APP architecture |
CN116701234A (en) * | 2023-08-04 | 2023-09-05 | 腾讯科技(深圳)有限公司 | Application program debugging method and device, computer equipment and storage medium |
CN116701234B (en) * | 2023-08-04 | 2024-02-02 | 腾讯科技(深圳)有限公司 | Application program debugging method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984224A (en) | A kind of plug-in management method, computer readable storage medium and terminal device | |
CN102622241B (en) | A kind of method for upgrading software and device | |
CN104063239B (en) | Application program update method and server, the client of mobile terminal | |
US9591428B2 (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
CN101110788B (en) | Method and system for updating client software | |
US9485134B2 (en) | Managing configurations of system management agents in a distributed environment | |
US9268552B1 (en) | Patching improvement for executables in memory constrained devices | |
CN109857423B (en) | Program version updating method and device, server and readable storage medium | |
US8490077B2 (en) | Runtime versioning and distribution of dynamic web-elements | |
CN104919423A (en) | Peer-to-peer software updates | |
CN107483241B (en) | Method and device for downloading upgrade mirror image version in network element upgrading process | |
CN103473287A (en) | Method and system for automatically distributing, running and updating executable programs | |
CN111258587A (en) | Method, device, equipment and storage medium for realizing android application plug-in | |
CN102612023A (en) | Mobile terminal and application updating method and server thereof | |
CN104699511A (en) | Plug-in upgrading method and plug-in upgrading device | |
CN113342387A (en) | Automatic software upgrading method, updating client and updating server | |
CN109213536A (en) | Resource exhibition method, resource show configuration method, device and the equipment of class control | |
CN112702195A (en) | Gateway configuration method, electronic device and computer readable storage medium | |
CN109240726B (en) | Software updating method and system | |
CN110007946B (en) | Method, device, equipment and medium for updating algorithm model | |
CN112905676A (en) | Data file importing method and device | |
CN107861739A (en) | ReactNative applications method of adjustment, client and system | |
CN109766131A (en) | The system and method for the intelligent automatic upgrading of software is realized based on multithreading | |
CN112114816A (en) | Distributed compiling system and method | |
CN109298880A (en) | Multi version code generating method, equipment and electronic equipment |
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 |