CN108762771A - A kind of plug-in unit discharging method and electric terminal - Google Patents
A kind of plug-in unit discharging method and electric terminal Download PDFInfo
- Publication number
- CN108762771A CN108762771A CN201810350271.8A CN201810350271A CN108762771A CN 108762771 A CN108762771 A CN 108762771A CN 201810350271 A CN201810350271 A CN 201810350271A CN 108762771 A CN108762771 A CN 108762771A
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- field information
- unloading
- unloading field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/61—Installation
- G06F8/62—Uninstallation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of plug-in unit discharging method and electric terminals, the unloading request of the plug-in unit in one application program of unloading based on user, the current state of query plugin;If the current state for inquiring plug-in unit is operating status, a unloading field information is added in plug-in unit.Unloading field information is in state to be unloaded for indicating plug-in unit, if so reading the unloading field information, means that plug-in unit needs are unloaded.Since plug-in unit can be initialized when starting next time, namely reads itself all data and loaded.So plug-in unit is during starting next time, when reading the unloading field information, then can be based on unloading field information and delete plug-in unit and its associated documents.Thus, plug-in unit in the present invention can be unloaded, the implementation of this method does not interfere with the current use of plug-in unit not only due to being added to unloading field information when starting plug-in unit next time, it also avoids and must shut off the problem of plug-in unit can unload plug-in unit, can easily unload plug-in unit.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of plug-in unit discharging methods and electric terminal.
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, to remove some card module in Replugin plug-in unit frames, it is necessary to uninstall the plug-in unit.
Plug-in unit unloading at present is usually in the process that plug-in unit is idle to be unloaded, and worked normally in plug-in unit
Middle unloading can prompt user's " whether closing the plug-in unit " to unload, so influencing the use of current operation plug-in unit, cause to occur
Current operation plug-in unit has that unloading is not easy.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly
State the plug-in unit discharging method and electric terminal of problem.
One aspect of the present invention, provides a kind of plug-in unit discharging method, and this method includes:
The unloading of plug-in unit in one application program of unloading based on user is asked, and the current state of the plug-in unit is inquired;
If the current state for inquiring the plug-in unit is operating status, a unloading field letter is added in the plug-in unit
Breath, the unloading field information are in state to be unloaded for identifying the plug-in unit;
During starting the plug-in unit next time, the plug-in unit and its related text are deleted based on the unloading field information
Part.
Preferably, the current state of the inquiry plug-in unit, specifically includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
Preferably, before the current state of the inquiry plug-in unit, the method further includes:
Obtain the plugin name of the plug-in unit;
Plugin name based on the plug-in unit obtains plugin information;
Judge whether the plugin information is empty;
If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
Preferably, after the current state of the inquiry plug-in unit, the method further includes:
If the current state for inquiring the plug-in unit is not running state, the plug-in unit and its associated documents are deleted.
Preferably, one unloading field information of the addition in the plug-in unit, specifically includes:
The unloading field information delinfo is added to Json formats in the p.l files of the application program.
Preferably, described during starting the plug-in unit next time, described insert is deleted based on the unloading field information
Part and its associated documents, specifically include:
During starting the plug-in unit next time, the associated documents of the plug-in unit are loaded;
Judge whether there is the unloading field information in the associated documents of the plug-in unit;
If there is the unloading field information, the plug-in unit and its associated documents are deleted based on the unloading field information;
If without the unloading field information, the associated documents load based on the plug-in unit starts the plug-in unit.
Preferably, described that the plug-in unit and its associated documents are deleted based on the unloading field information, it specifically includes:
Based on the system version number where the plug-in unit, deletes the plug-in unit and neutralize the corresponding configuration text of the system version
Part.
Preferably, the system version number based on where the plug-in unit deletes the plug-in unit and neutralizes the system version
After corresponding configuration file, the method further includes:Delete Native files.
Preferably, described to be based on after the unloading field information deletion plug-in unit and its associated documents, the method
Further include:
The unloading field information is recorded;
Delete the unloading field information.
Preferably, described to be based on after the unloading field information deletion plug-in unit and its associated documents, the method
Further include:
Broadcast notice is sent to each process, synchronizes the plug-in unit last state to each process.
Preferably, described to be based on after the unloading field information deletion plug-in unit and its associated documents, the method
Further include:
The memory table information of process where updating the plug-in unit.
Another aspect of the present invention discloses a kind of electric terminal, including:
Enquiry module inquires the plug-in unit for the unloading request of the plug-in unit in one application program of unloading based on user
Current state;
Add module is added if the current state for inquiring the plug-in unit is operating status in the plug-in unit
One unloading field information, the unloading field information are in state to be unloaded for identifying the plug-in unit;
Unload module, for during starting the plug-in unit next time, being based on described in unloading field information deletion
Plug-in unit and its associated documents.
Preferably, the current state of the inquiry plug-in unit, specifically includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
Preferably, the electric terminal further includes:
First obtains module, the plugin name for obtaining the plug-in unit;
Second obtains module, and plugin information is obtained for the plugin name based on the plug-in unit;
First judgment module, for judging whether the plugin information is empty;If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
Preferably, the electric terminal further includes:
Removing module, if for inquire the plug-in unit current state be not running state, delete the plug-in unit and
Its associated documents.
Preferably, the add module, specifically for the unloading field information delinfo to be added to Json formats
In the p.l files of the application program.
Preferably, the Unload module, specifically includes:
First load-on module, for during starting the plug-in unit next time, loading the associated documents of the plug-in unit;
Whether the second judgment module has the unloading field information in the associated documents for judging the plug-in unit;
First removing module, if for there is the unloading field information, described in unloading field information deletion
Plug-in unit and its associated documents;
Second load-on module, if for without the unloading field information, the associated documents load based on the plug-in unit
Start the plug-in unit.
Preferably, the Unload module is specifically used for, based on the system version number where the plug-in unit, deleting the plug-in unit
Neutralize the corresponding configuration file of the system version.
Preferably, the Unload module is additionally operable to delete Native files.
Preferably, the electric terminal further includes:
Logging modle, for recording the unloading field information;
Second removing module, for deleting the unloading field information.
Preferably, the electric terminal further includes:Synchronization module synchronizes described for sending broadcast notice to each process
Plug-in unit last state gives each process.
Preferably, the electric terminal further includes:Update module, the memory table letter for process where updating the plug-in unit
Breath.
Another aspect of the present invention is stored thereon with computer program, which realizes above-mentioned when being executed by processor
The step of method.
Another aspect of the present invention, provides a kind of computer equipment, including memory, processor and is stored in storage
On device and the computer program that can run on a processor, the processor realize the step of the above method when executing described program
Suddenly.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
The invention discloses a kind of plug-in unit discharging method and electric terminals, inserting in one application program of unloading based on user
The unloading of part is asked, and the current state of the plug-in unit is inquired;If the current state for inquiring the plug-in unit is operating status,
One unloading field information of addition in the plug-in unit.The unloading field information is in state to be unloaded for indicating the plug-in unit,
If so reading the unloading field information, mean that plug-in unit needs are unloaded.Since plug-in unit can be carried out when starting next time
Initialization, that is, read itself all data and loaded.So the plug-in unit works as reading during starting next time
The unloading field information is got, then can be based on the unloading field information and delete the plug-in unit and its associated documents.This hair as a result,
Plug-in unit in bright can be unloaded, the implementation of this method is not due to being added to unloading field information when starting plug-in unit next time
But not influence the current use of plug-in unit, it is thus also avoided that the problem of plug-in unit can unload plug-in unit is must shut off, it can be convenient
Unload plug-in unit.
Further, the mode of existing unloading plug-in unit, is actually unloaded by the way of " disabling " pin function
It carries, causes a large amount of " disabling plug-in units " to occupy Installed System Memory, be easy to keep system running speed slack-off, Caton phenomenon occur.And this hair
Bright is directly to use the mode for deleting the plug-in unit and its associated documents, can all delete all relevant informations of plug-in unit
Processing, so EMS memory occupation is less, does not interfere with system operation.
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 plug-in unit discharging method 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 plug-in unit discharging methods, and the current operation plug-in unit to solve the prior art exists
The problem of unloading is not easy.
Fig. 1 specifically is please referred to, is the implementation process figure of the plug-in unit discharging method in the embodiment of the present invention.
Step 11, the unloading request of the plug-in unit in one application program of unloading based on user, inquires the current of the plug-in unit
State.
In embodiments of the present invention, each function module in the application program being related to all is with Replugin plug-in unit frames
In the presence of.If so removing some function in application program, it is equivalent to the corresponding plug-in unit of unloading.And each plug-in unit has respectively
Current state, current state has:It is currently running state or not running state etc..
And before the current state for inquiring the plug-in unit, the unloading of the plug-in unit in one application program of unloading based on user
Request, can obtain the plugin name of the plug-in unit first, and plug-in unit name cannot be sky.The plugin name for being then based on the plug-in unit obtains
Obtain plugin information.Judge whether the plugin information is empty;If so, indicating that the plug-in unit is not installed, it is not processed and directly returns
It returns.If not, then it represents that the plugin information indicates the plug-in unit installed but current operating conditions are unknown.
In specific implementation process, since Replugin frames acquiescence uses two process framework.Two process framework is exactly
Two processes are run simultaneously, when Resident Process accidental interruption, can start the normal operation that standby process ensures plug-in unit, Bu Huiyin
Outage is caused for the accidental interruption of Resident Process, vice versa.
In the Resident Process that the unloading operation of the plug-in unit of the embodiment of the present invention can be all placed on, particular by inserter tube
Device (PluginManagerServer classes) is managed to complete.And for having installed the unloading of plug-in unit substantially state in two kinds of situation:It inserts
Part is currently running state and plug-in unit not running state.
And during the current state of query plugin, plug-in unit described in isPluginRunning interface polls can be called
Current state.
Step 12, if the current state for inquiring the plug-in unit is operating status, a unloading is added in the plug-in unit
Field information, the unloading field information are in state to be unloaded for identifying the plug-in unit.
In specific implementation process, the case where plug-in unit has been installed and has been currently running, in this case due to plug-in unit by
It uses (may be by user or other plug-in unit uses), unloading operation cannot be immediately performed, so add one in the plug-in unit
Field information is unloaded, state to be unloaded is in for identifying the plug-in unit, in order to which plug-in unit is unloaded when starting next time.
Further, internal in plugin information object (PluginInfo) by calling setPendingDelete interfaces
Safeguard the object (namely unloading field information) of a plugin information to be unloaded, and by the unloading field information
Delinfo is added to Json formats in the p.l files under the application program own directory as key values, records plug-in unit
State to be unloaded, and postpone till the unloading operation for executing plug-in unit when Resident Process is restarted again.
And as a kind of optional embodiment, if the current state for inquiring the plug-in unit is not running state, delete
The plug-in unit and its associated documents.And in specific implementation process, processing procedure of the plug-in unit in not running state, actually
With plug-in unit in unloading field information is added, the processing procedure when starting next time is similar, and next time can be specifically introduced due to following
Process is specifically deleted when startup, so the deletion process when present invention repeats no more plug-in unit not running herein.
Step 13, during starting the plug-in unit next time, based on the unloading field information deletion plug-in unit and
Its associated documents.
In deleting the specific implementation process of the plug-in unit and its associated documents based on the unloading field information, described
During plug-in unit starts next time, the associated documents of the plug-in unit are loaded;Judge whether have in the associated documents of the plug-in unit
The unloading field information;If there is the unloading field information, based on the unloading field information deletion plug-in unit and its
Associated documents;If without the unloading field information, the associated documents load based on the plug-in unit starts the plug-in unit.
Specifically, due to when each Resident Process executes reboot operation, can all execute the initialization operation of plug-in unit,
In relate to the management logic of plug-in unit, in the p.l files mentioned in above-mentioned steps, this document, which not only records, unloading field letter
Breath, equally also has recorded the plugin information that plug-in unit generates when mounted.So can read and according to the plug-in unit in the p.l files
Information manages each plug-in unit, and the meaning of management includes plug-in version upgrading and plug-in unit unloading etc..So if current plug-in package
The field information delinfo containing unloading, then can be by calling getPendingDelete interfaces to acquire unloading field information
Delinfo can then first determine whether the plug-in unit needs to unload since plug-in unit unloading condition is better than the promotion condition of plug-in unit,
If necessary to unload, then the plug-in unit and its associated documents are directly deleted, no longer does update operation.
Certainly, if plug-in unit is in not running state, plug-in unit and its associated documents can directly be deleted.
The deletion process of plug-in unit is then specifically introduced below.
During specific delete, it can be deleted in the plug-in unit and institute based on the system version number where the plug-in unit
State the corresponding configuration file of system version.For example, deleting the APK file of plug-in unit successively, deleting the odex discharged after plug-in unit installation
File.Correspondence system version number can be inquired when the associated documents for deleting plug-in unit, system version number is then based on and deletes corresponding match
Set file.
In specific implementation process, whether the system version where judging the plug-in unit presets grade version higher than first;
If the system version where the plug-in unit is deleted higher than the described first default grade version described in the plug-in unit neutralization
The corresponding configuration file of system version;
If the system version where the plug-in unit further judges the plug-in unit place less than the described first default grade version
System version whether less than the second default grade version, if so, deleting the plug-in unit neutralizes that the system version is corresponding to match
Set file.
For example, it if it is Android 8.0 and system above, then also needs to delete the vdex texts discharged after plug-in unit installation
Part and * * .jar.prof files.
If it is 4.0 systems of Android and the following catalogue also needed to where deleting after release dex optimizes, if there is so
Native files can be deleted if library.In addition, it is also necessary to delete the process lock file corresponding to the plug-in unit, which is
It is created when plug-in unit is installed.So far, the file for discharging and generating when plug-in unit is installed all has been deleted.
It further, can also be by institute after deleting the plug-in unit and its associated documents based on the unloading field information
Unloading field information is stated to be recorded;Delete the unloading field information.For example, the delinfo fields in deletion p.l files are simultaneously
It preserves.
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, after deleting the plug-in unit and its associated documents based on the unloading field information, it can be to each process
Broadcast notice is sent, synchronizes the plug-in unit last state to each process, for informing that the plug-in unit has been unloaded removal.
In specific implementation process, based on the unloading field information delete the plug-in unit and its associated documents it
Afterwards, the memory table information of process where also updating the plug-in unit.For example, update Resident Process memory table information (reside into
Journey internal maintenance has a buffer table of the various information of all plug-in units, including plugin information, PackageInfo, Resources,
The buffer objects such as ComponentList and DexClassLoader):It removes unloaded plug-in unit and is preserving all plugin informations
Buffered data in HashMap, remove plugin table snapshot, remove PackageInfo, Resources of unloading plug-in unit in memory,
ComponentList and DexClassLoader cache object data.
Based on unified inventive concept, the following examples introduce a kind of electric terminal.
Referring to Fig. 2, which includes:
Enquiry module 21 inquires described insert for the unloading request of the plug-in unit in one application program of unloading based on user
The current state of part;
Add module 22 adds if the current state for inquiring the plug-in unit is operating status in the plug-in unit
A unloading field information, the unloading field information is added to be in state to be unloaded for identifying the plug-in unit;
Unload module 23, for during starting the plug-in unit next time, institute to be deleted based on the unloading field information
State plug-in unit and its associated documents.
As a kind of optional embodiment, the current state of the inquiry plug-in unit specifically includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
As a kind of optional embodiment, the electric terminal further includes:
First obtains module, the plugin name for obtaining the plug-in unit;
Second obtains module, and plugin information is obtained for the plugin name based on the plug-in unit;
First judgment module, for judging whether the plugin information is empty;If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
As a kind of optional embodiment, the electric terminal further includes:
Removing module, if for inquire the plug-in unit current state be not running state, delete the plug-in unit and
Its associated documents.
As a kind of optional embodiment, the add module 22 is specifically used for the unloading field information delinfo
It is added in the p.l files of the application program with Json formats.
As a kind of optional embodiment, the Unload module 23 specifically includes:
First load-on module, for during starting the plug-in unit next time, loading the associated documents of the plug-in unit;
Whether the second judgment module has the unloading field information in the associated documents for judging the plug-in unit;
First removing module, if for there is the unloading field information, described in unloading field information deletion
Plug-in unit and its associated documents;
Second load-on module, if for without the unloading field information, the associated documents load based on the plug-in unit
Start the plug-in unit.
As a kind of optional embodiment, the Unload module 23 is specifically used for based on the system version where the plug-in unit
It this number, deletes the plug-in unit and neutralizes the corresponding configuration file of the system version.
As a kind of optional embodiment, the Unload module 23 is additionally operable to delete Native files.
As a kind of optional embodiment, the electric terminal further includes:
Logging modle, for recording the unloading field information;
Second removing module, for deleting the unloading field information.
As a kind of optional embodiment, the electric terminal further includes:Synchronization 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, the memory table information for process where updating the plug-in unit.
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, has at least the following technical effects or advantages:
The invention discloses a kind of plug-in unit discharging method and electric terminals, inserting in one application program of unloading based on user
The unloading of part is asked, and the current state of the plug-in unit is inquired;If the current state for inquiring the plug-in unit is operating status,
One unloading field information of addition in the plug-in unit.The unloading field information is in state to be unloaded for indicating the plug-in unit,
If so reading the unloading field information, mean that plug-in unit needs are unloaded.Since plug-in unit can be carried out when starting next time
Initialization, that is, read itself all data and loaded.So the plug-in unit works as reading during starting next time
The unloading field information is got, then can be based on the unloading field information and delete the plug-in unit and its associated documents.This hair as a result,
Plug-in unit in bright can be unloaded, the implementation of this method is not due to being added to unloading field information when starting plug-in unit next time
But not influence the current use of plug-in unit, it is thus also avoided that the problem of plug-in unit can unload plug-in unit is must shut off, it can be convenient
Unload plug-in unit.
Further, the mode of existing unloading plug-in unit, is actually unloaded by the way of " disabling " pin function
It carries, causes a large amount of " disabling plug-in units " to occupy Installed System Memory, be easy to keep system running speed slack-off, Caton phenomenon occur.And this hair
Bright is directly to use the mode for deleting the plug-in unit and its associated documents, can all delete all relevant informations of plug-in unit
Processing, so EMS memory occupation is less, does not interfere with system operation.
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 plug-in unit discharging methods, which is characterized in that the method includes:
The unloading of plug-in unit in one application program of unloading based on user is asked, and the current state of the plug-in unit is inquired;
If the current state for inquiring the plug-in unit is operating status, a unloading field letter is added in the plug-in unit
Breath, the unloading field information are in state to be unloaded for identifying the plug-in unit;
During starting the plug-in unit next time, the plug-in unit and its related text are deleted based on the unloading field information
Part.
A2, the method as described in A1, which is characterized in that the current state of the inquiry plug-in unit specifically includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
A3, the method as described in A1, which is characterized in that before the current state of the inquiry plug-in unit, the method
Further include:
Obtain the plugin name of the plug-in unit;
Plugin name based on the plug-in unit obtains plugin information;
Judge whether the plugin information is empty;
If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
A4, the method as described in A1, which is characterized in that after the current state of the inquiry plug-in unit, the method
Further include:
If the current state for inquiring the plug-in unit is not running state, the plug-in unit and its associated documents are deleted.
A5, the method as described in A1, which is characterized in that one unloading field information of the addition in the plug-in unit, specifically
Including:
The unloading field information delinfo is added to Json formats in the p.l files of the application program.
A6, the method as described in A1, which is characterized in that it is described during starting the plug-in unit next time, based on described
It unloads field information and deletes the plug-in unit and its associated documents, specifically include:
During starting the plug-in unit next time, the associated documents of the plug-in unit are loaded;
Judge whether there is the unloading field information in the associated documents of the plug-in unit;
If there is the unloading field information, the plug-in unit and its associated documents are deleted based on the unloading field information;
If without the unloading field information, the associated documents load based on the plug-in unit starts the plug-in unit.
A7, the method as described in A1, which is characterized in that it is described based on the unloading field information deletion plug-in unit and its
Associated documents specifically include:
Based on the system version number where the plug-in unit, deletes the plug-in unit and neutralize the corresponding configuration text of the system version
Part.
A8, the method as described in A7, which is characterized in that the system version number based on where the plug-in unit deletes institute
After stating the corresponding configuration file of the plug-in unit neutralization system version, the method further includes:Delete Native files.
A9, the method as described in A1, which is characterized in that it is described based on the unloading field information deletion plug-in unit and its
After associated documents, the method further includes:
The unloading field information is recorded;
Delete the unloading field information.
A10, the method as described in A1, which is characterized in that it is described based on the unloading field information deletion plug-in unit and
After its associated documents, the method further includes:
Broadcast notice is sent to each process, synchronizes the plug-in unit last state to each process.
A11, the method as described in A1, which is characterized in that it is described based on the unloading field information deletion plug-in unit and
After its associated documents, the method further includes:
The memory table information of process where updating the plug-in unit.
B12, a kind of electric terminal, which is characterized in that including:
Enquiry module inquires the plug-in unit for the unloading request of the plug-in unit in one application program of unloading based on user
Current state;
Add module is added if the current state for inquiring the plug-in unit is operating status in the plug-in unit
One unloading field information, the unloading field information are in state to be unloaded for identifying the plug-in unit;
Unload module, for during starting the plug-in unit next time, being based on described in unloading field information deletion
Plug-in unit and its associated documents.
B13, the electric terminal as described in B12, which is characterized in that the current state of the inquiry plug-in unit is specific to wrap
It includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
B14, the electric terminal as described in B12, which is characterized in that the electric terminal further includes:
First obtains module, the plugin name for obtaining the plug-in unit;
Second obtains module, and plugin information is obtained for the plugin name based on the plug-in unit;
First judgment module, for judging whether the plugin information is empty;If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
B15, the electric terminal as described in B12, which is characterized in that the electric terminal further includes:
Removing module, if for inquire the plug-in unit current state be not running state, delete the plug-in unit and
Its associated documents.
B16, the electric terminal as described in B12, which is characterized in that the add module is specifically used for the unloading word
Segment information delinfo is added to Json formats in the p.l files of the application program.
B17, the electric terminal as described in B12, which is characterized in that the Unload module specifically includes:
First load-on module, for during starting the plug-in unit next time, loading the associated documents of the plug-in unit;
Whether the second judgment module has the unloading field information in the associated documents for judging the plug-in unit;
First removing module, if for there is the unloading field information, described in unloading field information deletion
Plug-in unit and its associated documents;
Second load-on module, if for without the unloading field information, the associated documents load based on the plug-in unit
Start the plug-in unit.
B18, the electric terminal as described in B12, which is characterized in that the Unload module is specifically used for being based on the plug-in unit
The system version number at place deletes the plug-in unit and neutralizes the corresponding configuration file of the system version.
B19, the electric terminal as described in B18, which is characterized in that the Unload module is additionally operable to delete Native files.
B20, the electric terminal as described in B12, which is characterized in that the electric terminal further includes:
Logging modle, for recording the unloading field information;
Second removing module, for deleting the unloading field information.
B21, the electric terminal as described in B12, which is characterized in that the electric terminal further includes:Synchronization module, for
Each process sends broadcast notice, synchronizes the plug-in unit last state to each process.
B22, the electric terminal as described in B12, which is characterized in that the electric terminal further includes:
Update module, the memory table information for process where updating the plug-in unit.
C23, 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 any one of claim A1-A12 the methods are realized when device executes.
D24, 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 one of claim A1-A12 institutes when executing described program
The step of stating method.
Claims (10)
1. a kind of plug-in unit discharging method, which is characterized in that the method includes:
The unloading of plug-in unit in one application program of unloading based on user is asked, and the current state of the plug-in unit is inquired;
If the current state for inquiring the plug-in unit is operating status, a unloading field information, institute are added in the plug-in unit
It states unloading field information and is in state to be unloaded for identifying the plug-in unit;
During starting the plug-in unit next time, the plug-in unit and its associated documents are deleted based on the unloading field information.
2. the method as described in claim 1, which is characterized in that the current state of the inquiry plug-in unit specifically includes:
Call the current state of plug-in unit described in isPluginRunning interface polls.
3. the method as described in claim 1, which is characterized in that before the current state of the inquiry plug-in unit, the side
Method further includes:
Obtain the plugin name of the plug-in unit;
Plugin name based on the plug-in unit obtains plugin information;
Judge whether the plugin information is empty;
If so, indicating that the plug-in unit is not installed;
If not, then it represents that the plugin information is to have installed but plug-in unit that current operating conditions are unknown.
4. the method as described in claim 1, which is characterized in that after the current state of the inquiry plug-in unit, the side
Method further includes:
If the current state for inquiring the plug-in unit is not running state, the plug-in unit and its associated documents are deleted.
5. the method as described in claim 1, which is characterized in that one unloading field information of the addition in the plug-in unit, tool
Body includes:
The unloading field information delinfo 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 it is described during starting the plug-in unit next time, it is based on institute
It states unloading field information and deletes the plug-in unit and its associated documents, specifically include:
During starting the plug-in unit next time, the associated documents of the plug-in unit are loaded;
Judge whether there is the unloading field information in the associated documents of the plug-in unit;
If there is the unloading field information, the plug-in unit and its associated documents are deleted based on the unloading field information;
If without the unloading field information, the associated documents load based on the plug-in unit starts the plug-in unit.
7. the method as described in claim 1, which is characterized in that it is described based on the unloading field information deletion plug-in unit and
Its associated documents, specifically includes:
Based on the system version number where the plug-in unit, deletes the plug-in unit and neutralize the corresponding configuration file of the system version.
8. a kind of electric terminal, which is characterized in that including:
Enquiry module inquires working as the plug-in unit for the unloading request of the plug-in unit in one application program of unloading based on user
Preceding state;
Add module is added one in the plug-in unit and is unloaded if the current state for inquiring the plug-in unit is operating status
Field information is carried, the unloading field information is in state to be unloaded for identifying the plug-in unit;
Unload module, for during starting the plug-in unit next time, the plug-in unit to be deleted based on the unloading field information
And its associated documents.
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 |
---|---|---|---|
CN201810350271.8A CN108762771B (en) | 2018-04-18 | 2018-04-18 | Plug-in unloading method and electronic terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810350271.8A CN108762771B (en) | 2018-04-18 | 2018-04-18 | Plug-in unloading method and electronic terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108762771A true CN108762771A (en) | 2018-11-06 |
CN108762771B CN108762771B (en) | 2022-06-10 |
Family
ID=64011033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810350271.8A Active CN108762771B (en) | 2018-04-18 | 2018-04-18 | Plug-in unloading method and electronic terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108762771B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0811942A2 (en) * | 1996-06-07 | 1997-12-10 | Cyber Media, Incorporated | Automatic updating of diverse software products on multiple client computer system |
CN103309699A (en) * | 2012-03-16 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and application program installation method |
CN105446785A (en) * | 2015-12-31 | 2016-03-30 | 深圳市创想天空科技股份有限公司 | Method and system for unloading application program |
CN105516750A (en) * | 2015-12-03 | 2016-04-20 | 深圳市茁壮网络股份有限公司 | Plug-in unloading, deleting and updating method based on object label |
CN105955770A (en) * | 2016-04-27 | 2016-09-21 | 深圳市金立通信设备有限公司 | Application program uninstalling method and terminal |
-
2018
- 2018-04-18 CN CN201810350271.8A patent/CN108762771B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0811942A2 (en) * | 1996-06-07 | 1997-12-10 | Cyber Media, Incorporated | Automatic updating of diverse software products on multiple client computer system |
CN103309699A (en) * | 2012-03-16 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and application program installation method |
CN105516750A (en) * | 2015-12-03 | 2016-04-20 | 深圳市茁壮网络股份有限公司 | Plug-in unloading, deleting and updating method based on object label |
CN105446785A (en) * | 2015-12-31 | 2016-03-30 | 深圳市创想天空科技股份有限公司 | Method and system for unloading application program |
CN105955770A (en) * | 2016-04-27 | 2016-09-21 | 深圳市金立通信设备有限公司 | Application program uninstalling method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108762771B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10140113B2 (en) | Data processing method and device of preset application after upgrading | |
US9275089B2 (en) | Managing reusable artifacts using placeholders | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN105302563B (en) | The plug-in unit method and system of mobile application service | |
CN108427571A (en) | A kind of dynamic link library update method and server | |
US20090249311A1 (en) | Sharing a native module of compiled code using an abstraction module of interpreted code in a virtual machine environment | |
CN105867973A (en) | Loading method and system for so file in application program | |
CN103677898A (en) | Method for checking loaded extension and/or plug-in on server side and server | |
CN108563472B (en) | Service plug-in loading method and device based on multi-open application | |
CN104731622A (en) | Application program loading method and device and mobile terminal | |
CN106886422A (en) | Method for upgrading software and device, electronic equipment | |
CN104346206A (en) | Method and system for recovering installation of unloaded software | |
CN107798064A (en) | Page processing method, electronic equipment and computer-readable recording medium | |
CN113805965B (en) | Method, device, equipment and readable medium for installing external plug-in | |
CN114296835B (en) | Application program starting method and device | |
US20110010348A1 (en) | Rule-based record profiles to automate record declaration of electronic documents | |
US8949423B2 (en) | Autonomically co-locating first and second components on a select server | |
CN108762771A (en) | A kind of plug-in unit discharging method and electric terminal | |
CN108694048B (en) | Method for realizing batch publishing service | |
CN114296747A (en) | Installation method and device of software installation package | |
CN112181470B (en) | Patch deployment method and device | |
CN108681460A (en) | A kind of method and electric terminal of upgrading plug-in unit | |
CN107885461B (en) | Data local storage method and device | |
US20130081007A1 (en) | Providing continuous application availability during application update | |
US8490105B2 (en) | Pluggable component interface |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |