CN107402761A - Using restorative procedure and device - Google Patents
Using restorative procedure and device Download PDFInfo
- Publication number
- CN107402761A CN107402761A CN201710613070.8A CN201710613070A CN107402761A CN 107402761 A CN107402761 A CN 107402761A CN 201710613070 A CN201710613070 A CN 201710613070A CN 107402761 A CN107402761 A CN 107402761A
- Authority
- CN
- China
- Prior art keywords
- application
- plug
- card cage
- target
- newest
- 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
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000009434 installation Methods 0.000 claims abstract description 42
- 238000011161 development Methods 0.000 claims abstract description 15
- 238000001514 detection method Methods 0.000 claims description 11
- 230000006837 decompression Effects 0.000 claims description 4
- 230000008439 repair process Effects 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005067 remediation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000032258 transport Effects 0.000 description 1
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/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application provides one kind and applies restorative procedure and device, applied to intelligent terminal, the application for being melted hair mode development based on plug-in unit and being formed is installed on the intelligent terminal, under the plug-in unit development mode, the application is integrated by card cage and some plug-in applications, wherein, the card cage carries the application management function of Android system, and methods described includes:The card cage detects whether target plug-in application to be repaired be present;If so, then the card cage unloads the target plug-in application;The card cage obtains the newest installation kit of the target plug-in application, and reinstalls the target plug-in application based on the newest installation kit;The target plug-in application that the card cage operation is reinstalled.Using this method, it can improve using the efficiency repaired and repair success rate.
Description
Technical field
The application is related to applied technical field, more particularly to one kind applies restorative procedure and device.
Background technology
As intelligent terminal, such as the popularization of the intelligent terminal such as intelligent television, smart mobile phone, people use more and more
On intelligent terminal application carry out many activities, such as online chatting, shopping online, etc..However, with application
Need summation function more and more, the logic in also becomes increasingly complex, and the situation for bug occur is also more and more.Work as exploit person
When member has found that a certain application has serious bug and needs to be repaired, developer needs to recompilate an application installation package, and
Carry out changing bag to each application market and channel, prompt user to carry out the sequence of operations such as installation kit download, application upgrade.Cause
This, the repair process of application needs developer to pay larger cost, and needs user to be operated manually, remediation efficiency
It is relatively low.
In correlation technique, hot patch technology can be used to realize the dynamic restoring of application.However, still suffered from correlation technique
Many defects, on the one hand, hot patch technology only supports to repair class class files have larger limitation, therefore repair successfully
Rate is unable to reach 100%;On the other hand, hot patch technology is repaired by the way of path replacement, causes to repeat what is repaired
Risk is larger, relatively low so as to repair success rate;Another further aspect, developer are needed for heat corresponding to the exploitation of each application version
Patch, then as version is more and more, hot patch is also more and more, and the maintenance efficiency of hot patch is more and more lower, maintenance cost
More and more higher.As can be seen here, in correlation technique, using the less efficient of reparation, repairing success rate can not also be protected.
The content of the invention
In view of this, the application provides one kind and applies restorative procedure and device, to improve the efficiency of application reparation and repair
Multiple success rate.
Specifically, the application is achieved by the following technical solution:
According to the first aspect of the embodiment of the present application, there is provided one kind applies restorative procedure, applied to intelligent terminal, the intelligence
The application for being melted hair mode development based on plug-in unit and being formed can be installed in terminal, it is described to answer under the plug-in unit development mode
Integrated with by card cage and some plug-in applications, wherein, the card cage carries the application management function of Android system,
Methods described includes:
The card cage detects whether target plug-in application to be repaired be present;
If so, then the card cage unloads the target plug-in application;
The card cage obtains the newest installation kit of the target plug-in application, and based on the newest installation kit again
The target plug-in application is installed;
The target plug-in application that the card cage operation is reinstalled.
According to the second aspect of the embodiment of the present application, there is provided one kind applies prosthetic device, applied to intelligent terminal, the intelligence
The application for being melted hair mode development based on plug-in unit and being formed can be installed in terminal, it is described to answer under the plug-in unit development mode
Integrated with by card cage and some plug-in applications, wherein, the card cage carries the application management function of Android system,
Described device includes:
First detection module, detect whether target plug-in application to be repaired be present for the card cage;
First Unload module, if for the target plug-in application be present, the card cage unloads the target and inserted
Part application;
First installation module, the newest installation kit of the target plug-in application is obtained for the card cage, and is based on
The newest installation kit reinstalls the target plug-in application;
First operation module, the target plug-in application reinstalled for card cage operation.Described device includes:
As seen from the above-described embodiment, target plug-in application to be repaired is unloaded by card cage, and is reinstalled newest
The target plug-in application of version, and the target plug-in application that operation is reinstalled, because whole process is in card cage
Completed inside the program space, so as to skip monitoring of the Android system to application renewal, realize dynamic during application operation
Repair;Simultaneously as each plug-in application can be repaired independently, it is independent of each other, so as to improve using the efficiency repaired;
And due to being the file that legacy version is deleted in the privately owned program space of plug-in application, the file of redaction is preserved, therefore not
The risk repaired in the presence of repetition, improve the reparation success rate of application.
Brief description of the drawings
Figure 1A is one embodiment flow chart of the application application restorative procedure;
Figure 1B is the layer architecture schematic diagram applied in the application;
Fig. 2 is another embodiment flow chart of the application application restorative procedure;
Fig. 3 is a kind of hardware structure diagram of intelligent terminal where the device that the application application is repaired;
Fig. 4 is one embodiment block diagram of the application application prosthetic device;
Fig. 5 is another embodiment block diagram of the application application prosthetic device.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind " of singulative used in the application and appended claims, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
In order to realize the dynamic restoring of application, efficiency and reparation success rate that application is repaired, the application offer one are improved
Kind applies restorative procedure.
Figure 1A is referred to, is one embodiment flow chart of the application application restorative procedure, this method can apply to intelligence
Energy terminal, on the intelligent terminal, the application for being melted hair mode development based on plug-in unit and being formed is installed, specifically, in plug-in unit
Under development mode, using decomposition module is carried out according to function, each single item/group function is packaged into a plug-in application, from
And each plug-in application completes one or one group of function, its have independent interface, service logic, the privately owned program space, etc.,
There is physical isolation, so as to which developer can carry out stand-alone development, test and portion to each plug-in application between plug-in application
Administration.After the completion of each plug-in application exploitation, card cage is desirably integrated into, is issued eventually as the application of a standard.
Wherein, card cage is the supporting body of plug-in application, is responsible for the management of plug-in application, such as install, run, unloading, etc., because
This card cage can carry the application management function of Android system, can specifically include:Identification plug-in application simultaneously is completed to copy
Parse work, to corresponding to plug-in application component assign the normal life of Android system so that plug-in application can with normal operation,
Clear up unloaded plug-in application application data and the function being currently running and component, etc..As shown in Figure 1B, it is in the application
The layer architecture schematic diagram of application.Method exemplified by Figure 1A may comprise steps of:
Step 101:Card cage detects whether target plug-in application to be repaired be present.
When detect apply enabled instruction when, the card cage of application is loaded first, after the completion of card cage loading, you can
Detect whether plug-in application to be repaired be present, referred herein is that card cage detection has currently been installed and by the slotting of its management
It whether there is plug-in application to be repaired in part application, for example, as shown in Figure 1B, plug-in application can detect plug-in application 1, insert
Part, which is applied in 2, plug-in application 3, and plug-in application 4, whether there is plug-in application to be repaired.Subsequently for convenience, system
Plug-in application to be repaired will be referred to as target plug-in application by one.
Under normal circumstances, target plug-in is applied to there is bug, it is necessary to the plug-in application repaired, then, in this kind of feelings
Under condition, developer can be that installation kit is recompilated in target plug-in application, and issue again, the installation kit after the recompility
For installation kit before, its bag name can't change, and version number can but change, for example, peace before
The version number of dress bag is V1.0, and the version number of the installation kit after recompility is V2.0.
Based on this, in an optional implementation, card cage can determine target plug-in by way of traversal
Using being another embodiment flow chart of the application application restorative procedure specifically, refer to Fig. 2, exemplified by the Fig. 2
Flow essentially describes the process that card cage obtains above-mentioned described target plug-in application, comprises the following steps:
Step 201:Each plug-in application is traveled through, obtains the Bao Mingyu current versions of the plug-in application currently traversed
Number.
Step 202:Plugin library is searched according to the bag name got, if finding the newest plug-in application with the bag name,
Then perform step 203;If not finding the newest plug-in application with the bag name, step 206 is performed.
Step 203:Obtain the latest edition number of the newest plug-in application with the bag name.
Step 204:It is whether consistent with current version number to compare latest edition number, if unanimously, performing step 206;If no
Unanimously, then step 205 is performed.
Step 205:It is determined that the plug-in application currently traversed is target plug-in application to be repaired.
Step 206:Next plug-in application to be traveled through is judged whether, if so, next plug-in application is then traveled through,
Return and perform step 201;Otherwise, flow is terminated.
It is as follows, step 201 to step 206 is illustrated:
Card cage travels through each plug-in application successively, obtains the Bao Mingyu version numbers of the plug-in application traversed, is
Description is convenient, and the version number for getting this in the application is referred to as current version number, and afterwards, card cage is got according to this
Bag name search plugin library, plugin library include currently announced plug-in application, for convenience, by plug-in unit in the application
The current announced plug-in application that storehouse includes is referred to as newest plug-in application, and the version number of newest plug-in application is referred to as newest
Version number, it is how to search plugin library as card cage, may refer to subsequent descriptions, is not described further first herein.
Subsequently, if finding the newest plug-in application with the bag name in plugin library, the newest plug-in application is obtained
Latest edition number, by the latest edition number compared with the above-mentioned current version number got, if compare draw both one
Cause, then the plug-in application that can determine currently to traverse not is target plug-in application, continues to travel through next plug-in application;If compare
Show that both are inconsistent, then the plug-in application that can determine currently to traverse is target plug-in application;Until each insert is traveled through
Part application.
In this application, plugin library can be located at service end, and card cage is getting the plug-in application that currently traverses
Bao Minghou, the bag name can be based on, ask to search plugin library to service end, there is the bag name to determine to whether there is in plugin library
Newest plug-in application.
It should be noted that above-mentioned described card cage searches the process of plugin library as just citing, in reality
In, card cage can also search plugin library by other means, be inserted for example, card cage can ask to download to service end
The bag name of newest plug-in application in part storehouse, it whether there is the newest plug-in application with the bag name in plugin library to search.
Step 102:If target plug-in application to be repaired be present, card cage unloading target plug-in application.
In this application, by foregoing description, card cage carries the application management function of Android system, so as to
Card cage can be to be found in unloading step 101 target plug-in application, specific uninstall process can include:Stop target
The function and component that plug-in application is currently running, and in the privately owned program space of target plug-in application, delete the intended application
Current file, so as to realize unloading target plug-in application.
Step 103:Card cage obtains the newest installation kit of target plug-in application, and is pacified again based on the newest installation kit
Fill target plug-in application.
In this application, card cage can according to target plug-in apply bag name, from the plugin library of service end in obtain
The newest installation kit for taking target plug-in to apply, i.e., the installation kit of newest issue, after getting the newest installation kit, card cage
The newest installation kit is decompressed, the file that decompression is obtained, such as dex files, lib files, res files, manifest
File, etc. be stored in the privately owned program space of target plug-in application under corresponding catalogue, for example, dex files preserve to/
Under dalvik-cache catalogues, lib files are preserved to/app-lib catalogues.
Step 104:The target plug-in application that card cage operation is reinstalled.
In execution of step 103, after card cage reinstalls target plug-in application, it is heavy that card cage can run this
The target plug-in application newly installed, specifically, card cage can be answered target plug-in by the manager methods of hook systems
Class loading, resource are carried out to target plug-in application with the registration for carrying out New Parent, and calling dexClassLoad Classloaders
Loading.
In addition, in this application, currently traversed if card cage does not find to have in the plugin library of foregoing description
Plug-in application bag name newest plug-in application, then, card cage can consider plug-in application that this currently traverses to treat
The plug-in application of deletion.Now, card cage can unload the plug-in application to be deleted, and specific uninstall process can include:
Stop function and the component that the plug-in application to be deleted is currently running, and it is empty in the privately owned program of the plug-in application to be deleted
Between in, delete the current file of the plug-in application to be deleted.
In addition, in this application, card cage can also detect whether newly-increased plug-in application be present, for example, exploit person
Member is that application has newly increased a function, and has issued the plug-in application that can complete the function, and specific detection process can be:Insert
Part framework obtains the bag name of each plug-in application, above-mentioned described plugin library is searched based on the bag name got, if in plug-in unit
The newest plug-in application with the bag name is found in storehouse, then the newest plug-in application can be marked, to represent current
The newest plug-in application is installed, subsequently, card cage may determine that newest slotting with the presence or absence of what is be not labeled in plugin library
Part application, if in the presence of card cage can consider that labeled newest plug-in application is not to treat newly-increased plug-in application for this.
Now, card cage can obtain the installation kit for treating newly-increased plug-in application from plugin library, and the installation kit is decompressed,
Obtained file will be decompressed to be stored in the privately owned program space that this treats newly-increased plug-in application under corresponding catalogue.
In addition, in this application, it is also necessary to which explanation, above-mentioned described card cage are after the completion of itself is loaded
Detect whether to exist target plug-in to be repaired to apply as just citing, in actual applications, in the case of logical,
Card cage can also detect whether target plug-in application to be repaired be present at other moment, for example, in one section of application operation
After time, that is, detect whether target plug-in application to be repaired be present;In another example set at interval of preset duration, card cage
Detect and once whether there is target plug-in application to be repaired.
As seen from the above-described embodiment, target plug-in application to be repaired is unloaded by card cage, and is reinstalled newest
The target plug-in application of version, and the target plug-in application that operation is reinstalled, because whole process is in card cage
Completed inside the program space, so as to skip monitoring of the Android system to application renewal, realize dynamic during application operation
Repair;Simultaneously as each plug-in application can be repaired independently, it is independent of each other, so as to improve using the efficiency repaired;
And due to being the file that legacy version is deleted in the privately owned program space of plug-in application, the file of redaction is preserved, therefore not
The risk repaired in the presence of repetition, improve the reparation success rate of application.
Corresponding with the embodiment of aforementioned applications restorative procedure, present invention also provides the embodiment of application prosthetic device.
The embodiment of the application application prosthetic device can be applied on intelligent terminal.Device embodiment can pass through software
Realize, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as on a logical meaning
Device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of intelligent terminal where it
Into internal memory, operation is formed.For hardware view, as shown in figure 3, intelligence where the device repaired for the application application is eventually
A kind of hardware structure diagram at end, except the processor 31 shown in Fig. 3, internal memory 32, network interface 33 and nonvolatile memory
Outside 34, the intelligent terminal in embodiment where device can also include other generally according to the actual functional capability of the intelligent terminal
Hardware, this is repeated no more.
Fig. 4 is refer to, is one embodiment block diagram of the application application prosthetic device, the device can apply to intelligent end
Hold, the application for being melted hair mode development based on plug-in unit and being formed is installed on the intelligent terminal, under the plug-in unit development mode,
The application is integrated by card cage and some plug-in applications, wherein, the card cage carries the application pipe of Android system
Function is managed, the device can include:First detection module 41, the first Unload module 42, first installation module 43, first run mould
Block 44.
Wherein, the first detection module 41, it can be used for the card cage and detect whether that target to be repaired be present inserts
Part application;
First Unload module 42, if can be used for having the target plug-in application, the card cage unloads institute
State target plug-in application;
The first installation module 43, it can be used for the newest installation that the card cage obtains the target plug-in application
Bag, and the target plug-in application is reinstalled based on the newest installation kit;
The first operation module 44, it can be used for the target plug-in application that the card cage operation is reinstalled.
Fig. 5 is referred to, is another embodiment block diagram of the application application prosthetic device, Fig. 5 shown devices are above-mentioned
On the basis of Fig. 4 shown devices, wherein, first detection module 41 can include:Travel through submodule 411, the first acquisition submodule
412nd, submodule 413, the second acquisition submodule 414, comparison sub-module 415, determination sub-module 416 are searched.
Wherein, submodule 411 is traveled through, can be used for the card cage and travel through each plug-in application successively;
First acquisition submodule 412, it can be used for the Bao Mingyu current versions number for obtaining the plug-in application currently traversed;
Submodule 413 is searched, can be used for searching plugin library according to the bag name, the plugin library includes announced
Newest plug-in application;
Second acquisition submodule 414, if can be used in the plugin library finding newest slotting with the bag name
Part application, then obtain the latest edition number of the newest plug-in application with the bag name;
Comparison sub-module 415, it is whether consistent with the current version number to can be used for latest edition number described in comparison;
Determination sub-module 416, if can be used for the latest edition number and the current version number is inconsistent, it is determined that institute
It is target plug-in application to be repaired to state the plug-in application currently traversed.
Second Unload module 42 can include:First, which stops submodule 421, first, deletes submodule 422.
Wherein, first stops submodule 421, can be used for the card cage stopping target plug-in application and transports
Capable function and component;
First deletes submodule 422, can be used in the privately owned program space of target plug-in application described in deletion
The current file of target plug-in application.
First installation module 43 can include:Decompress submodule 431, preserve submodule 432.
Wherein, submodule 431 is decompressed, can be used for the card cage and the newest installation kit is decompressed;
Submodule 432 is preserved, can be used for the card cage and the file that decompression obtains is stored in the intended application
The privately owned program space in.
In one embodiment, the first operation module 44 can be specifically used for:
The card cage carries out the note of New Parent by the manager methods of hook systems to target plug-in application
Volume, and call dexClassLoad Classloaders to carry out class loading, resource loading to target plug-in application.
In one embodiment, described device can also include (not shown in Fig. 5):
Second detection module, detect whether plug-in application to be deleted be present for the card cage;
Second Unload module, for the existing plug-in application to be deleted, then treated described in the card cage unloading
The plug-in application of deletion.
In one embodiment, described device can also include (not shown in Fig. 5):
3rd detection module, detect whether to exist for the card cage and treat newly-increased plug-in application;
Second installation module, if for treating newly-increased plug-in application described in presence, treated described in the card cage installation
Newly-increased plug-in application;
Second operation module, newly-increased plug-in application is treated described in after being installed for card cage operation.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application
God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.
Claims (14)
1. one kind applies restorative procedure, applied to intelligent terminal, be provided with the intelligent terminal based on plug-in unit development mode
The application formed is developed, under the plug-in unit development mode, the application is integrated by card cage and some plug-in applications, its
In, the card cage carries the application management function of Android system, it is characterised in that methods described includes:
The card cage detects whether target plug-in application to be repaired be present;
If so, then the card cage unloads the target plug-in application;
The card cage obtains the newest installation kit of the target plug-in application, and is reinstalled based on the newest installation kit
The target plug-in application;
The target plug-in application that the card cage operation is reinstalled.
2. according to the method for claim 1, it is characterised in that the card cage detects whether target to be repaired be present
Plug-in application, including:
The card cage travels through each plug-in application successively, obtains the Bao Mingyu current versions of the plug-in application currently traversed
Number;
Plugin library is searched according to the bag name, the plugin library includes announced newest plug-in application;
If finding the newest plug-in application with the bag name in the plugin library, obtain newest with the bag name
The latest edition number of plug-in application;
It is whether consistent with the current version number to compare the latest edition number, if inconsistent, it is determined that described currently to traverse
Plug-in application be target plug-in application to be repaired.
3. according to the method for claim 1, it is characterised in that the control card cage unloads from local system
The target plug-in application, including:
The card cage stops function and the component that the target plug-in application is currently running, and in the target plug-in application
The privately owned program space in delete the current file of target plug-in application.
4. according to the method for claim 1, it is characterised in that described that the mesh is reinstalled based on the newest installation kit
Plug-in application is marked, including:
The newest installation kit is decompressed;
The file that decompression obtains is stored in the privately owned program space of the target plug-in application.
5. according to the method for claim 1, it is characterised in that the target plug-in that the card cage operation is reinstalled should
With, including:
The card cage carries out the registration of New Parent by the manager methods of hook systems to target plug-in application,
And dexClassLoad Classloaders are called to carry out class loading, resource loading to target plug-in application.
6. according to the method for claim 1, it is characterised in that methods described also includes:
The card cage detects whether plug-in application to be deleted be present;
If so, then the card cage unloads the plug-in application to be deleted.
7. according to the method for claim 1, it is characterised in that methods described also includes:
The card cage, which detects whether to exist, treats newly-increased plug-in application;
If so, then treat newly-increased plug-in application described in the card cage installation;
Newly-increased plug-in application is treated described in after the card cage operation installation.
8. one kind applies prosthetic device, applied to intelligent terminal, be provided with the intelligent terminal based on plug-in unit development mode
The application formed is developed, under the plug-in unit development mode, the application is integrated by card cage and some plug-in applications, its
In, the card cage carries the application management function of Android system, it is characterised in that described device includes:
First detection module, detect whether target plug-in application to be repaired be present for the card cage;
First Unload module, if for the target plug-in application be present, the card cage unloads the target plug-in should
With;
First installation module, the newest installation kit of the target plug-in application is obtained for the card cage, and based on described
Newest installation kit reinstalls the target plug-in application;
First operation module, the target plug-in application reinstalled for card cage operation.
9. device according to claim 8, it is characterised in that the first detection module includes:
Submodule is traveled through, each plug-in application is traveled through successively for the card cage;
First acquisition submodule, for obtaining the Bao Mingyu current versions number of the plug-in application currently traversed;
Submodule is searched, for searching plugin library according to the bag name, the plugin library includes announced newest plug-in unit should
With;
Second acquisition submodule, if for finding the newest plug-in application with the bag name in the plugin library, obtain
Take the latest edition number of the newest plug-in application with the bag name;
Comparison sub-module, it is whether consistent with the current version number for the latest edition number;
Determination sub-module, if inconsistent for the latest edition number and the current version number, it is determined that the current traversal
The plug-in application arrived is target plug-in application to be repaired.
10. device according to claim 8, it is characterised in that first Unload module includes:
First stops submodule, stops function and the component that the target plug-in application is currently running for the card cage;
First deletes submodule, for deleting the target plug-in application in the privately owned program space applied in the target plug-in
Current file.
11. device according to claim 8, it is characterised in that the first installation module includes:
Submodule is decompressed, the newest installation kit is decompressed for the card cage;
Submodule is preserved, the privately owned program that the file that decompression obtains is stored in the intended application for the card cage is empty
Between in.
12. device according to claim 8, it is characterised in that the first operation module is specifically used for:
The card cage carries out the registration of New Parent by the manager methods of hook systems to target plug-in application,
And dexClassLoad Classloaders are called to carry out class loading, resource loading to target plug-in application.
13. device according to claim 8, it is characterised in that described device also includes:
Second detection module, detect whether plug-in application to be deleted be present for the card cage;
Second Unload module, for the existing plug-in application to be deleted, then the card cage unloading is described to be deleted
Plug-in application.
14. device according to claim 8, it is characterised in that described device also includes:
3rd detection module, detect whether to exist for the card cage and treat newly-increased plug-in application;
Second installation module, if for treating newly-increased plug-in application described in presence, wait to increase newly described in the card cage installation
Plug-in application;
Second operation module, newly-increased plug-in application is treated described in after being installed for card cage operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710613070.8A CN107402761A (en) | 2017-07-25 | 2017-07-25 | Using restorative procedure and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710613070.8A CN107402761A (en) | 2017-07-25 | 2017-07-25 | Using restorative procedure and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107402761A true CN107402761A (en) | 2017-11-28 |
Family
ID=60401350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710613070.8A Pending CN107402761A (en) | 2017-07-25 | 2017-07-25 | Using restorative procedure and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402761A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109035622A (en) * | 2018-07-17 | 2018-12-18 | 中国建设银行股份有限公司 | financial plug-in management method and device |
CN112667306A (en) * | 2019-10-15 | 2021-04-16 | 华为终端有限公司 | Method, device and storage medium for installing plug-in |
CN113608797A (en) * | 2021-08-04 | 2021-11-05 | 南方电网数字电网研究院有限公司 | Native plug-in extension system based on nodejs and cordova |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130073400A1 (en) * | 2011-09-15 | 2013-03-21 | Stephan HEATH | Broad and alternative category clustering of the same, similar or different categories in social/geo/promo link promotional data sets for end user display of interactive ad links, promotions and sale of products, goods and services integrated with 3d spatial geomapping and social networking |
CN103399792A (en) * | 2013-07-24 | 2013-11-20 | 佳都新太科技股份有限公司 | Implementation scheme of Android-based plug-in applications |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN103914287A (en) * | 2012-12-31 | 2014-07-09 | 北京讯鸟软件有限公司 | Plug-in mechanism based software system and implementation method thereof |
CN105302711A (en) * | 2014-07-09 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application repairing method and apparatus and terminal |
CN105302563A (en) * | 2015-11-09 | 2016-02-03 | 歌尔声学股份有限公司 | Plug-in method and system for mobile application service |
US20160283067A1 (en) * | 2013-01-23 | 2016-09-29 | Facebook, Inc. | Enabling delayed interactions with content items presented by a social networking system |
CN106055330A (en) * | 2016-05-31 | 2016-10-26 | 深圳卡尔拓客科技有限公司 | Management method and system of application program |
CN106648559A (en) * | 2015-10-28 | 2017-05-10 | 广东电网有限责任公司佛山供电局 | Android application pluggable development system and method |
CN106951284A (en) * | 2017-03-14 | 2017-07-14 | 深圳创维-Rgb电子有限公司 | User interface upgrade method, device and the intelligent terminal applied based on Android system |
-
2017
- 2017-07-25 CN CN201710613070.8A patent/CN107402761A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130073400A1 (en) * | 2011-09-15 | 2013-03-21 | Stephan HEATH | Broad and alternative category clustering of the same, similar or different categories in social/geo/promo link promotional data sets for end user display of interactive ad links, promotions and sale of products, goods and services integrated with 3d spatial geomapping and social networking |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN103914287A (en) * | 2012-12-31 | 2014-07-09 | 北京讯鸟软件有限公司 | Plug-in mechanism based software system and implementation method thereof |
US20160283067A1 (en) * | 2013-01-23 | 2016-09-29 | Facebook, Inc. | Enabling delayed interactions with content items presented by a social networking system |
CN103399792A (en) * | 2013-07-24 | 2013-11-20 | 佳都新太科技股份有限公司 | Implementation scheme of Android-based plug-in applications |
CN105302711A (en) * | 2014-07-09 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application repairing method and apparatus and terminal |
CN106648559A (en) * | 2015-10-28 | 2017-05-10 | 广东电网有限责任公司佛山供电局 | Android application pluggable development system and method |
CN105302563A (en) * | 2015-11-09 | 2016-02-03 | 歌尔声学股份有限公司 | Plug-in method and system for mobile application service |
CN106055330A (en) * | 2016-05-31 | 2016-10-26 | 深圳卡尔拓客科技有限公司 | Management method and system of application program |
CN106951284A (en) * | 2017-03-14 | 2017-07-14 | 深圳创维-Rgb电子有限公司 | User interface upgrade method, device and the intelligent terminal applied based on Android system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109035622A (en) * | 2018-07-17 | 2018-12-18 | 中国建设银行股份有限公司 | financial plug-in management method and device |
CN112667306A (en) * | 2019-10-15 | 2021-04-16 | 华为终端有限公司 | Method, device and storage medium for installing plug-in |
WO2021073337A1 (en) * | 2019-10-15 | 2021-04-22 | 华为技术有限公司 | Method and apparatus for installing plug-in, and storage medium |
US12032938B2 (en) | 2019-10-15 | 2024-07-09 | Huawei Technologies Co., Ltd. | Plug-in installation method, apparatus, and storage medium |
CN113608797A (en) * | 2021-08-04 | 2021-11-05 | 南方电网数字电网研究院有限公司 | Native plug-in extension system based on nodejs and cordova |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105867947B (en) | Data processing method and device after preset application program updating | |
CN112162753B (en) | Software deployment method, device, computer equipment and storage medium | |
US8296758B2 (en) | Deployment and versioning of applications | |
CN102622241B (en) | A kind of method for upgrading software and device | |
US9928059B1 (en) | Automated deployment of a multi-version application in a network-based computing environment | |
CN105843656A (en) | System upgrading method for insufficient disk space, terminal device and server | |
CN107682436A (en) | A kind of method, apparatus and equipment of more new file | |
CN109828772A (en) | Hot update method, operating system, terminal device and storage medium | |
CN110225078B (en) | Application service updating method, system and terminal equipment | |
CN103559446A (en) | Dynamic virus detection method and device for equipment based on Android system | |
US20190187974A1 (en) | System and method for downgrading applications | |
KR102065565B1 (en) | Systems, methods, and computer program products for managing data re-installation | |
CN107402761A (en) | Using restorative procedure and device | |
CN106886422A (en) | Method for upgrading software and device, electronic equipment | |
CN110333876A (en) | A kind of data clearing method and control equipment | |
CN106445309A (en) | Display method and device of application download entry | |
CN108540509A (en) | A kind of processing method of terminal browser, device and server, intelligent terminal | |
CN109032617B (en) | Control method and control device for automatically deleting installation package | |
CN104731622A (en) | Application program loading method and device and mobile terminal | |
WO2016082450A1 (en) | Method for upgrading user terminal, and user terminal | |
CN106055375A (en) | Application program installation method and device | |
CN110209420A (en) | A kind of method and device updating bootstrap loader | |
CN106598662A (en) | Application loading method and device based on android | |
CN115134238A (en) | Business system publishing method, device, computer equipment and storage medium | |
CN103309696B (en) | Method and device for updating Java card extended library, and Java card |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171128 |