CN104778031A - Method and device for closing processes - Google Patents
Method and device for closing processes Download PDFInfo
- Publication number
- CN104778031A CN104778031A CN201410010685.8A CN201410010685A CN104778031A CN 104778031 A CN104778031 A CN 104778031A CN 201410010685 A CN201410010685 A CN 201410010685A CN 104778031 A CN104778031 A CN 104778031A
- Authority
- CN
- China
- Prior art keywords
- critical processes
- run
- belonging
- predetermined condition
- belongs
- 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
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and device for closing processes. The method comprises the steps of acquiring command information used for requesting process closing, responding to the command information to acquire authority and/or process information corresponding to each running process, judging whether the processes are key processes related to normal running of a system according to the authority and/or the process information corresponding to each process, and closing the running processes that are not the key processes. The method and the device solve the technical problem that the normal running of the system on a terminal is affected when the running processes on the terminal are ended; and the method and the device have technical effects that the processes are ended in a securer form; other processes are not affected and occupied resources are released.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of process method for cleaning and device.
Background technology
At present, the program that Android phone is run exists with the form of process, but the existence of process can consume the internal memory of mobile phone.Relate to the process of cell phone system, or for process important user, this kind of process can not terminate, once terminate, the normal use of mobile phone will be had influence on.
In the related, the scheme of some clean up process only judges whether this process is the process that third-party application is corresponding, and have ignored the association between process, and such as, the process run may be associated with cell phone system.Like this, when clean up process, the process be associated with cell phone system if terminate, then may have influence on the normal operation of mobile phone.
For above-mentioned problem, at present effective solution is not yet proposed.
Summary of the invention
Embodiments provide a kind of process method for cleaning and device, the technical matters that the system in terminal that can affect during at least to solve the process terminating terminal is run normally is run.
According to an aspect of the embodiment of the present invention, providing a kind of process method for cleaning, comprising: obtaining the command information for asking clean up process; The authority that each process in the process that response instruction acquisition of information is running is corresponding and/or progress information; The authority corresponding according to each process and/or progress information judge whether each process belongs to the critical processes be associated with the normal operation of system; The process not belonging to critical processes in the process run is cleared up.
As the optional scheme of one, critical processes comprise following one of at least: for the process of the desktop programs of operational system; For the process of the wallpaper of display system; The process be associated with the desktop programs of system, wherein, if the process be associated with the desktop of system is cleaned, then the desktop programs of system is restarted; The process be associated with system, wherein, if the process be associated with system is cleaned, then system occurs abnormal.
As the optional scheme of one, the authority corresponding according to each process and/or progress information judge whether each process belongs to and comprise with the critical processes that the normal operation of system is associated: if authority corresponding to the process current to be judged in the process run comprises the authority running desktop programs, then judge that process current to be judged is the process of the desktop programs for operational system that critical processes comprises; If authority corresponding to the process current to be judged in the process run comprises the authority of display wallpaper, then judge that process current to be judged is the process of the wallpaper for display system that critical processes comprises; If the sharing users mark that progress information corresponding to the process current to be judged in the process run comprises is consistent with the mark of the desktop programs of the current operation of system, then judge that process current to be judged is the process be associated with the desktop programs of system that critical processes comprises; If the sharing users mark that progress information corresponding to the process current to be judged in the process run comprises is consistent with the mark of the systemic-function of system, then judge that process current to be judged is the process be associated with system that critical processes comprises, wherein, systemic-function comprise following one of at least: note, phone.
As the optional scheme of one, carry out cleaning to the process not belonging to critical processes in the process run to comprise: if the process not belonging to critical processes in the process run meets predetermined condition, then terminate the process meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition; Or, restart the process meeting predetermined condition, and release meets the part resource shared by process of predetermined condition; If the process not belonging to critical processes in the process run does not meet predetermined condition, then terminate the process not meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition.
As the optional scheme of one, one of at least judge whether the process not belonging to critical processes in the process run meets predetermined condition by following: if the value of priority that progress information corresponding to the process not belonging to critical processes in the process run comprises is less than or equal to predetermined threshold, then judge that the process not belonging to critical processes in the process run meets predetermined condition; If the process not belonging to critical processes in the process run belongs to the process associated with the media resource in system, then judge that the process not belonging to critical processes in the process run meets predetermined condition; If the process not belonging to critical processes in the process run belongs to the process of the background service class of system, then judge that the process not belonging to critical processes in the process run meets predetermined condition.
As the optional scheme of one, whether the process judging not belong in the process run critical processes as follows belongs to and the process that the media resource in system associates: if the sharing users that progress information corresponding to the process not belonging to critical processes in the process run comprises identifies with the mark of the media resource of system consistent, the process then judging not belong in the process run critical processes belongs to the process associated with the media resource in system, wherein, the media resource of system comprise following one of at least: camera, bluetooth, player, video player.
As the optional scheme of one, whether the process judging not belong in the process run critical processes as follows belongs to the process of the background service class of system: if progress information corresponding to the process not belonging to critical processes in the process run comprises background service mark, then the process judging not belong in the process run critical processes belongs to the process of the background service class of system.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of process cleaning plant, comprising: the first acquiring unit, for obtaining the command information of clean up process; Second acquisition unit, the authority corresponding for each process in the process that response instruction acquisition of information is running and/or progress information; According to authority corresponding to each process and/or progress information, judging unit, for judging whether each process belongs to the critical processes be associated with the normal operation of system; Cleaning unit, for clearing up the process not belonging to critical processes in the process run.
As the optional scheme of one, judging unit comprises: the first judge module, for judging whether each process belongs to the process of the desktop programs of operational system; Second judge module, for judging whether each process belongs to the process of the wallpaper of display system; 3rd judge module, for judging whether each process belongs to the process be associated with the desktop programs of system, wherein, if the process be associated with the desktop of system is cleaned, then the desktop programs of system is restarted; 4th judge module, for judging whether each process belongs to the process be associated with system, wherein, if the process be associated with system is cleaned, then system occurs abnormal.
As the optional scheme of one, when first judge module also comprises for the current authority corresponding wait the process judged in the process run the authority running desktop programs, judge that process current to be judged is the process of the desktop programs for operational system that critical processes comprises; When second judge module also comprises the authority of display wallpaper for the current authority corresponding wait the process judged in the process run, judge that process current to be judged is the process of the wallpaper for display system that critical processes comprises; When the sharing users that 3rd judge module also comprises for the current progress information corresponding wait the process judged in the process run identifies consistent with the mark of the desktop programs of the current operation of system, judge that process current to be judged is the process be associated with the desktop programs of system that critical processes comprises; When the sharing users that 4th judge module also comprises for the current progress information corresponding wait the process judged in the process run identifies consistent with the mark of the systemic-function of system, judge that process current to be judged is the process be associated with system that critical processes comprises, wherein, systemic-function comprise following one of at least: note, phone.
As the optional scheme of one, cleaning unit comprises: the 5th judge module, for judging whether the process not belonging to critical processes in the process run meets predetermined condition; First terminates module, when process for not belonging to critical processes in the process run meets predetermined condition, terminate the process meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition, or restart the process meeting predetermined condition, and release meets the part resource shared by process of predetermined condition; Second terminates module, when the process for not belonging to critical processes in the process run does not meet predetermined condition, terminate the process not meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition.
As the optional scheme of one, 5th judge module comprises: first judges submodule, when the value of the priority comprised for the progress information that the process not belonging to critical processes in the process run is corresponding is less than or equal to predetermined threshold, judge that the process not belonging to critical processes in the process run meets predetermined condition; Second judges submodule, when the process for not belonging to critical processes in the process run belongs to the process associated with the media resource in system, judges that the process not belonging to critical processes in the process run meets predetermined condition; 3rd judges submodule, when the process for not belonging to critical processes in the process run belongs to the process of background service class of system, judges that the process not belonging to critical processes in the process run meets predetermined condition.
As the optional scheme of one, second judges whether the process that submodule is used for judging not belong to critical processes in the process run by following steps belongs to and the process that the media resource in system associates: if the sharing users that progress information corresponding to the process not belonging to critical processes in the process run comprises identifies and the mark of the media resource of system is consistent, the process then judging not belong in the process run critical processes belongs to the process associated with the media resource in system, wherein, the media resource of system comprise following one of at least: camera, bluetooth, player, video player.
As the optional scheme of one, 3rd judges whether process that submodule is used for judging not belong to critical processes in the process run by following steps belongs to the process of the background service class of system: identify if progress information corresponding to the process not belonging to critical processes in the process run comprises background service, then the process judging not belong in the process run critical processes belongs to the process of the background service class of system.
In embodiments of the present invention, the authority that the process run by acquisition is corresponding and/or progress information, judge whether the process run is the process be associated with the normal operation of system according to authority and/or progress information, and only clear up when clearing up the process do not associated with the normal operation of system, reach the object terminating process with safer form, achieve while not affecting other processes, also the technique effect of the resource taken is released, and then the technical matters that the system in terminal that can affect when solving the process terminating terminal is run normally is run.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of a kind of process method for cleaning according to the embodiment of the present invention;
Fig. 2 is the process flow diagram according to the optional method of the another kind of the embodiment of the present invention;
Fig. 3 is the process flow diagram of another the optional method according to the embodiment of the present invention;
Fig. 4 is the schematic diagram of a kind of process cleaning plant according to the embodiment of the present invention;
Fig. 5 is the schematic diagram of the another kind of process cleaning plant according to the embodiment of the present invention;
Fig. 6 is the schematic diagram of another the process cleaning plant according to the embodiment of the present invention; And
Fig. 7 is the schematic diagram of another the process cleaning plant according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide a kind of process method for cleaning, as shown in Figure 1, the method comprises:
S102, obtains the command information for asking clean up process;
Alternatively, above-mentioned process method for cleaning is applied to various terminal in the present embodiment, such as, and mobile phone, panel computer.Certainly, the citing of above-mentioned terminal is a kind of example, and the application does not limit this.
For mobile phone, above-mentioned steps S102 is described, mobile phone obtains the command information for request process cleaning of user's input, wherein, the mode of above-mentioned acquisition command information can be but be not limited to: user generates command information by clicking a kind of icon applying shown " a key cleaning " operated on mobile phone, and user inputs phonetic order information by the phonetic incepting equipment on mobile phone.
Alternatively, the corresponding application of each process in the present embodiment.Wherein, the type of above-mentioned application includes but not limited to: system class is applied, and desktop class is applied, and wallpaper class is applied, third-party application.Specifically, above-mentioned application include but not limited to following one of at least: micro-letter, desktop runs application, wallpaper display application, address list, browser, picture library, player.
S104, the authority that each process in the process that response instruction acquisition of information is running is corresponding and/or progress information;
Alternatively, each process can corresponding one or more authority and/or one or more progress information in the present embodiment.
Such as, to obtain the command information for asking clean up process on mobile phone, when after the command information that mobile phone obtains for asking clean up process, the system (such as, Android operation system) run on mobile phone obtains authority corresponding to each process in the process run and/or progress information.
The process of the authority that each process described in the process that acquisition running below in conjunction with form is corresponding and/or progress information.
First, the system run on mobile phone obtains the list of the process run, and wherein, the list ginseng of the process run is shown in Table 1.
Table 1
Sequence number | The process ID run |
1 | 0001 |
2 | 0010 |
3 | 0101 |
From upper table 1, the process that current phone is being run has three.
Then, from above-mentioned list, obtain the process ID of the process run, as above show shown in secondary series.
Then, the process ID of the process run corresponding to each process run is obtained according to the process ID of the above-mentioned process run.Alternatively, authority and/or the progress information of each process that system that mobile phone runs prestores are described below in conjunction with table 2.
Table 2
From upper table 2, the authority corresponding to the process in mobile phone include but not limited to following one of at least: obtain current location information, obtain local linkages people, obtain local picture, obtain local audio file.In addition, the progress information corresponding to above-mentioned process include but not limited to following one of at least: the priority (such as, high) of process title (such as, weixin), process, Share User ID(such as, android.app).Content shown in upper table is a kind of example, and the application is not limited only to the content shown in table.
Alternatively, authority corresponding to corresponding process and/or progress information is found by the process ID of the process run.
Such as, shown in above-mentioned table 1 and table 2, the ID of the current process run of mobile phone be 0001(corresponding be applied as address list), the desktop that is applied as that 0010(is corresponding runs application), 0101(corresponding be applied as micro-letter), wherein, the authority corresponding to the above process that each is running and progress information are as shown in the 2nd and 3 row in table 2.
S106, the authority corresponding according to each process and/or progress information judge whether each process belongs to the critical processes be associated with the normal operation of system;
Such as, example is applied as with the micro-letter on mobile phone, by the Share User ID(in its progress information such as, android.app) judge whether the process (the process weixin that such as, micro-letter application is corresponding) of this application correspondence belongs to the critical processes be associated with the normal operation of system.
S108, clears up the process not belonging to critical processes in the process run.
Alternatively, judge to show that the process run does not belong to critical processes, then this process is cleared up.
By the embodiment that the application provides, by determining whether critical processes to the process run, the process of operation is made differentiation, and then make user when clearing up process, when not affecting normal use, also achieve the effect optimizing cleaning.
As the optional scheme of one, above-mentioned critical processes include but not limited to following one of at least:
Alternatively, for the process of the desktop programs of operational system.Such as, for mobile phone, above-mentioned critical processes can be the process (such as, desktop runs process home corresponding to application) of the desktop programs for the normal operational system of mobile phone.
Alternatively, for the process of the wallpaper of display system.Such as, for mobile phone, above-mentioned critical processes can be the process (the process WALLPAPER that such as, wallpaper display application is corresponding) of the wallpaper for display system.
Alternatively, the process be associated with the desktop programs of system, wherein, if the process be associated with the desktop of system is cleaned, then the desktop programs of system is restarted.Such as, for mobile phone, above-mentioned critical processes can for the process (the process HomeSearch that such as, WDS application is corresponding) be associated with the desktop programs of system.Such as, when the process corresponding to WDS is cleaned, then the desktop of cell phone system will be restarted.
Alternatively, the process be associated with system, wherein, if the process be associated with system is cleaned, then system occurs abnormal.Such as, for mobile phone, above-mentioned critical processes can for the process (the process phone that such as, address list application is corresponding) be associated with system.Such as, when the process corresponding to cell phone address book is cleaned, then system occurs abnormal, such as, affects the normal use of note, telephony feature.
By the embodiment that the application provides, further judgement can be made to critical processes, when clearing up, above-mentioned critical processes be filtered, and then avoid the normal use affecting user.
As the optional scheme of one, the authority corresponding according to each process and/or progress information judge whether each process belongs to the critical processes be associated with the normal operation of system, alternatively, be described further by the authority that each process is corresponding in the present embodiment, above-mentioned judgment mode includes but not limited to following four kinds of optional embodiments:
As the optional embodiment of one, if authority corresponding to the process current to be judged in the process run comprises the authority running desktop programs, then judge that process current to be judged is the process of the desktop programs for operational system that critical processes comprises;
Such as, the authority of desktop class application is android.intent.category.HOME, if then judge process current to be judged (such as, desktop runs process home corresponding to application) authority whether comprise android.intent.category.HOME, if above-mentioned process comprises this authority, then can show that this process is the critical processes for running desktop programs.
As the optional embodiment of another kind, if authority corresponding to the process current to be judged in the process run comprises the authority of display wallpaper, then judge that process current to be judged is the process of the wallpaper for display system that critical processes comprises;
Such as, the authority of wallpaper class application is android.permission.BIND_WALLPAPER, if then judge process current to be judged (such as, the process WALLPAPER that wallpaper display application is corresponding) authority whether comprise android.permission.BIND_WALLPAPER, if above-mentioned process comprises this authority, then can show that this process is the critical processes of the wallpaper for display system.
As another optional embodiment, if the sharing users mark that progress information corresponding to the process current to be judged in the process run comprises is consistent with the mark of the desktop programs of the current operation of system, then judge that process current to be judged is the process be associated with the desktop programs of system that critical processes comprises;
Alternatively, sharing users mark includes but not limited in the present embodiment: Share User ID.
Such as, process current to be judged in the process that acquisition mobile phone is running (such as, the process HomeSearch that WDS application is corresponding) in progress information Share User ID(such as, for android.uid.home) after, judge that whether the Share User ID of the desktop working procedure of the current operation of itself and system is consistent, if draw, the two is consistent, then can show that this process is the critical processes be associated with the desktop programs of system.
As another optional embodiment, if the sharing users mark that progress information corresponding to the process current to be judged in the process run comprises is consistent with the mark of the systemic-function of system, then judge that process current to be judged is the process be associated with system that critical processes comprises.
Alternatively, in the present embodiment systemic-function comprise following one of at least: note, phone.
Such as, process current to be judged in the process that acquisition mobile phone is running (such as, the process phone that address list application is corresponding) in progress information Share User ID(such as, for android.uid.phone) after, judge that whether it is consistent with the Share User ID of systemic-function, if draw, the two is consistent, then can show that this process is the critical processes be associated with system.
By the embodiment that the application provides, the authority corresponding according to each process and/or progress information judge whether each process belongs to the critical processes be associated with the normal operation of system, and then when process is cleared up, can the critical processes of intelligently filters outbalance, avoid the normal use affecting user.
As the optional scheme of one, as shown in Figure 2, carry out cleaning to the process not belonging to critical processes in the process run to comprise:
S202, judges whether the process not belonging to critical processes in the process run meets predetermined condition;
Alternatively, shown in associative list 1 and table 2, obtain the process and the corresponding authority of each process and/or progress information run, and judge whether this process belongs to critical processes according to the corresponding authority of each process and/or progress information, then judge whether to meet predetermined condition to the process not belonging to critical processes.
Alternatively, in the present embodiment predetermined condition include but not limited to following one of at least: the association of priority, media, backstage association.
S204, if the process not belonging to critical processes in the process run meets predetermined condition, then terminates the process meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition; Or, restart the process meeting predetermined condition, and release meets the part resource shared by process of predetermined condition;
Such as, for the micro-letter run in mobile phone, the process of this application correspondence is drawn (such as after judgement, weixin) do not belong to critical processes, and judge to meet predetermined condition (such as, priority is greater than low), then restart this process, and release meets the part resource shared by process of predetermined condition, such as, the pictorial information of buffer memory.
S206, if the process not belonging to critical processes in the process run does not meet predetermined condition, then terminates the process not meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition.
Such as, for the browser run in mobile phone, the process of this application correspondence is drawn (such as after judgement, browser) do not belong to critical processes, and judge that this process does not meet predetermined condition (such as, priority is low) yet, then terminate this process, and all resources discharged shared by it, such as, all browsing informations.
By the embodiment that the application provides, judge whether to meet predetermined condition in the process not belonging to critical processes, and then the process not belonging to critical processes is done further judgement, terminate unnecessary process to greatest extent, make cleaning effect optimization.
As the optional scheme of one, judge whether the process not belonging to critical processes in the process run meets predetermined condition, wherein above-mentionedly judge whether that meeting predetermined condition includes but not limited to following three kinds of optional modes:
As the optional embodiment of one, if the value of the priority that progress information corresponding to the process not belonging to critical processes in the process run comprises is less than or equal to predetermined threshold, then judge that the process not belonging to critical processes in the process run meets predetermined condition;
Alternatively, the value of priority is by system assignment in the present embodiment, and the implication of its value represents the priority of process, and numerical value is less, and priority is higher.Such as, carry out Identity Priority level with Priority Group, if the numerical value of Priority Group is less than or equal to 2, then this process is system high priority process.
Such as, the predetermined threshold arranging priority (Priority Group) is 2, if the process run (such as, the process weixin that micro-letter application is corresponding) numerical value of Priority Group in corresponding progress information equals 1, then judge that this process known is the high priority process meeting predetermined condition.
As the optional embodiment of another kind, if the process not belonging to critical processes in the process run belongs to the process associated with the media resource in system, then judge that the process not belonging to critical processes in the process run meets predetermined condition;
Such as, the Share User ID in progress information is utilized to determine whether android.media, and then determine whether that the process that associates with the media resource in system (such as, the process media that player application is corresponding), if the Share User ID of this process is android.media, then judge that this process known is the process associated with the media resource in system meeting predetermined condition.
As another optional embodiment, if the process not belonging to critical processes in the process run belongs to the process of the background service class of system, then judge that the process not belonging to critical processes in the process run meets predetermined condition.
Such as, the process title in progress information is utilized to judge whether to comprise the mark of ": service ", and then determine whether system background service class process (such as, the process weixin that micro-letter application is corresponding), if the mark that the process title of this process comprises ": service ", then judge that this process known is the process of the background service class of the system meeting predetermined condition.
By the embodiment that the application provides, by predetermined condition, further filtration is done to the process run, terminate unnecessary process to greatest extent, optimize cleaning result.
As the optional scheme of one, whether the process judging not belong in the process run critical processes as follows belongs to the process associated with the media resource in system:
If the sharing users mark that progress information corresponding to the process not belonging to critical processes in the process run comprises is consistent with the mark of the media resource of system, then the process judging not belong in the process run critical processes belongs to the process associated with the media resource in system.
Alternatively, in the present embodiment the media resource of system comprise following one of at least: camera, bluetooth, player, video player.
Alternatively, sharing users is designated but is not limited in the present embodiment: Share User ID.
Such as, for mobile phone player application, in the progress information of the process media of its correspondence, Share User ID is android.media, the Share User ID of the process associated with the media resource in system is also android.media, then judge that the known above-mentioned process run belongs to the process associated with the media resource in system.
As the optional scheme of one, whether the process judging not belong in the process run critical processes as follows belongs to the process of the background service class of system:
If progress information corresponding to the process not belonging to critical processes in the process run comprises background service mark, then the process judging not belong in the process run critical processes belongs to the process of the background service class of system.
Alternatively, background service is designated but is not limited in the present embodiment: ": service ".
Such as, be applied as example with the micro-letter in mobile phone, in the progress information of the process weixin of its correspondence, process title comprises ": service ", then judge that the known above-mentioned process run belongs to the process of the background service class of system.
By the embodiment that the application provides, by predetermined condition, further filtration is done to the process run, terminate unnecessary process to greatest extent, optimize cleaning result.
Shown in composition graphs 3, further illustrate, terminate process with the use of Rootkill and Restart method, make cleaning effect optimization.The method of above-mentioned process cleaning can also be described as:
S302, determines process for clearance;
S304, judges whether application corresponding to above-mentioned process for clearance is the application of desktop class.Alternatively, above-mentioned determining step comprises: obtain all authorities that application corresponding to above-mentioned process for clearance has, judge whether comprise android.intent.category.HOME authority in all authorities got, if comprise android.intent.category.HOME authority, then judge above-mentioned process for clearance corresponding be applied as desktop class application.
S306, judges whether application corresponding to above-mentioned process for clearance is the application of wallpaper class.Alternatively, above-mentioned determining step comprises: obtain all authorities that application corresponding to above-mentioned process for clearance has, judge whether comprise android.permission.BIND_WALLPAPER authority in all authorities got, if comprise android.permission.BIND_WALLPAPER authority, then judge above-mentioned process for clearance corresponding be applied as wallpaper class application.
S308, judges whether application corresponding to above-mentioned process for clearance is desktop associated application.Alternatively, the process that this kind of application is corresponding, if be moved to end, can make desktop programs restart, cause mobile phone to run abnormal.Alternatively, above-mentioned determining step comprises: by obtaining the Share User ID of application, judge that whether Share User ID is the same with current desktop programs, if the same, then represents that this application is desktop associated application.
S310, judge whether application corresponding to above-mentioned process for clearance is system relationship application, alternatively, the process that this kind of application is corresponding, if be moved to end, may cause the use of the function such as note, phone.Alternatively, above-mentioned determining step comprises: by obtaining the Share User ID of application, judge whether Share User ID is android.uid.phone, if so, then represents that this application is system relationship application.
For the process of application correspondence meeting above condition, all belong to the critical processes of system, can not directly be terminated, but need to carry out intelligently filters, as step S312, then to other remaining process, proceed classification.Be further explained in conjunction with S314-S322:
S314, judges whether above-mentioned process for clearance is system high priority process.Alternatively, above-mentioned determining step comprises: priority (Priority Group) attribute obtaining application corresponding to above-mentioned process for clearance, this attribute is by system assignment, and represent the priority of process, numerical value is less, and priority is higher.Alternatively, if the numerical value of Priority Group is less than or equal to 2, then represent that this process is system high priority process.
S316, judges whether above-mentioned process for clearance is media association process.Alternatively, this kind of process, if thoroughly terminated, likely can affect the use of the camera of mobile phone, bluetooth etc.Alternatively, above-mentioned determining step comprises: by obtaining the Share User ID of application corresponding to above-mentioned process for clearance, judges whether Share User ID is android.media, if the two is consistent, then represents that this process is media association process.
S318, judges whether above-mentioned process for clearance is background service class process.Alternatively, this kind of process, if thoroughly terminated, then can cause other processes to use abnormal.Alternatively, above-mentioned determining step comprises: by obtaining the process title of process, judging whether to comprise the mark of ": service ", as comprised, then representing that this process is background service class process.
For the process meeting S314-S318, be judged to be high priority process, use the cleaning of system Restart method, as step S320, and all processes remaining after filtering, be then judged to be low priority process, terminate by Rootkill method, as step S322.
By the embodiment of the application, classification is carried out to the process run and judges, judge whether this process is be associated with the process of the normal operation of system, thus terminate process with safer form, achieve while not affecting other processes, also release the technique effect of the resource taken
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of process cleaning plant, as shown in Figure 4, process cleaning plant comprises in the present embodiment:
1) the first acquiring unit 402, for obtaining the command information of clean up process;
Alternatively, above-mentioned process method for cleaning is applied to various terminal in the present embodiment, such as, and mobile phone, panel computer.Certainly, the citing of above-mentioned terminal is a kind of example, and the application does not limit this.
Describe for mobile phone, mobile phone obtains the command information for request process cleaning of user's input, wherein, the mode of above-mentioned acquisition command information can be but be not limited to: user generates command information by clicking a kind of icon applying shown " a key cleaning " operated on mobile phone, and user inputs phonetic order information by the phonetic incepting equipment on mobile phone.
Alternatively, the corresponding application of each process in the present embodiment.Wherein, the type of above-mentioned application includes but not limited to: system class is applied, and desktop class is applied, and wallpaper class is applied, third-party application.Specifically, above-mentioned application include but not limited to following one of at least: micro-letter, desktop runs application, wallpaper display application, address list, browser, picture library, player.
2) second acquisition unit 404, the authority corresponding for each process in the process that response instruction acquisition of information is running and/or progress information;
Alternatively, each process can corresponding one or more authority and/or one or more progress information in the present embodiment.
Such as, to obtain the command information for asking clean up process on mobile phone, when after the command information that mobile phone obtains for asking clean up process, the system (such as, Android operation system) run on mobile phone obtains authority corresponding to each process in the process run and/or progress information.
The process of the authority that each process described in the process that acquisition running below in conjunction with form is corresponding and/or progress information.
First, the system run on mobile phone obtains the list of the process run, and wherein, the list ginseng of the process run is shown in Table 3.
Table 3
Sequence number | The process ID run |
1 | 0001 |
2 | 0010 |
3 | 0101 |
From upper table 3, the process that current phone is being run has three.
Then, from above-mentioned list, obtain the process ID of the process run, as above show shown in secondary series.
Then, the process ID of the process run corresponding to each process run is obtained according to the process ID of the above-mentioned process run.Alternatively, authority and/or the progress information of each process that system that mobile phone runs prestores are described below in conjunction with table 4.
Table 4
From upper table 4, the authority corresponding to the process in mobile phone include but not limited to following one of at least: obtain current location information, obtain local linkages people, obtain local picture, obtain local audio file.In addition, the progress information corresponding to above-mentioned process include but not limited to following one of at least: the priority (such as, high) of process title (such as, weixin), process, Share User ID(such as, android.app).Content shown in upper table is a kind of example, and the application is not limited only to the content shown in table.
Alternatively, authority corresponding to corresponding process and/or progress information is found by the process ID of the process run.
Such as, shown in above-mentioned table 3 and table 4, the ID of the current process run of mobile phone be 0001(corresponding be applied as address list), the desktop that is applied as that 0010(is corresponding runs application), 0101(corresponding be applied as micro-letter), wherein, the authority corresponding to the above process that each is running and progress information are as shown in the 2nd and 3 row in table 4.
3) according to authority corresponding to each process and/or progress information, judging unit 406, for judging whether each process belongs to the critical processes be associated with the normal operation of system;
Such as, example is applied as with the micro-letter on mobile phone, by the Share User ID(in its progress information such as, android.app) judge whether the process (the process weixin that such as, micro-letter application is corresponding) of this application correspondence belongs to the critical processes be associated with the normal operation of system.
4) unit 408 is cleared up, for clearing up the process not belonging to critical processes in the process run.
Alternatively, judge to show that the process run does not belong to critical processes, then this process is cleared up.
By the embodiment that the application provides, by determining whether critical processes to the process run, the process of operation is made differentiation, and then make user when clearing up process, when not affecting normal use, also achieve the effect optimizing cleaning.
As the optional scheme of one, shown in composition graphs 5, above-mentioned judging unit 406 comprises:
1) the first judge module 502, for judging whether each process belongs to the process of the desktop programs of operational system;
Alternatively, for the process of the desktop programs of operational system.Such as, for mobile phone, above-mentioned critical processes can be the process (such as, desktop runs process home corresponding to application) of the desktop programs for the normal operational system of mobile phone.
2) the second judge module 504, for judging whether each process belongs to the process of the wallpaper of display system;
Alternatively, for the process of the wallpaper of display system.Such as, for mobile phone, above-mentioned critical processes can be the process (the process WALLPAPER that such as, wallpaper display application is corresponding) of the wallpaper for display system.
3) the 3rd judge module 506, for judging whether each process belongs to the process be associated with the desktop programs of system, wherein, if the process be associated with the desktop of system is cleaned, then the desktop programs of system is restarted;
Alternatively, the process be associated with the desktop programs of system, wherein, if the process be associated with the desktop of system is cleaned, then the desktop programs of system is restarted.Such as, for mobile phone, above-mentioned critical processes can for the process (the process HomeSearch that such as, WDS application is corresponding) be associated with the desktop programs of system.Such as, when the process corresponding to WDS is cleaned, then the desktop of cell phone system will be restarted.
4) the 4th judge module 508, for judging whether each process belongs to the process be associated with system, wherein, if the process be associated with system is cleaned, then system occurs abnormal.
Alternatively, the process be associated with system, wherein, if the process be associated with system is cleaned, then system occurs abnormal.Such as, for mobile phone, above-mentioned critical processes can for the process (the process phone that such as, address list application is corresponding) be associated with system.Such as, when the process corresponding to cell phone address book is cleaned, then system occurs abnormal, such as, affects the normal use of note, telephony feature.
By the embodiment that the application provides, further judgement can be made to critical processes, when clearing up, above-mentioned critical processes be filtered, and then avoid the normal use affecting user.
As the optional scheme of one, in said apparatus, judging unit 406 also comprises:
When first judge module also comprises for the current authority corresponding wait the process judged in the process run the authority running desktop programs, judge that process current to be judged is the process of the desktop programs for operational system that critical processes comprises;
Such as, the authority of desktop class application is android.intent.category.HOME, if then judge process current to be judged (such as, desktop runs process home corresponding to application) authority whether comprise android.intent.category.HOME, if above-mentioned process comprises this authority, then can show that this process is the critical processes for running desktop programs.
When second judge module also comprises the authority of display wallpaper for the current authority corresponding wait the process judged in the process run, judge that process current to be judged is the process of the wallpaper for display system that critical processes comprises;
Such as, the authority of wallpaper class application is android.permission.BIND_WALLPAPER, if then judge process current to be judged (such as, the process WALLPAPER that wallpaper display application is corresponding) authority whether comprise android.permission.BIND_WALLPAPER, if above-mentioned process comprises this authority, then can show that this process is the critical processes of the wallpaper for display system.
When the sharing users that 3rd judge module also comprises for the current progress information corresponding wait the process judged in the process run identifies consistent with the mark of the desktop programs of the current operation of system, judge that process current to be judged is the process be associated with the desktop programs of system that critical processes comprises;
Alternatively, sharing users mark includes but not limited in the present embodiment: Share User ID.
Such as, process current to be judged in the process that acquisition mobile phone is running (such as, the process HomeSearch that WDS application is corresponding) in progress information Share User ID(such as, for android.uid.home) after, judge that whether the Share User ID of the desktop working procedure of the current operation of itself and system is consistent, if draw, the two is consistent, then can show that this process is the critical processes be associated with the desktop programs of system.
When the sharing users that 4th judge module also comprises for the current progress information corresponding wait the process judged in the process run identifies consistent with the mark of the systemic-function of system, judge that process current to be judged is the process be associated with system that critical processes comprises.
Alternatively, in the present embodiment systemic-function comprise following one of at least: note, phone.
Such as, process current to be judged in the process that acquisition mobile phone is running (such as, the process phone that address list application is corresponding) in progress information Share User ID(such as, for android.uid.phone) after, judge that whether it is consistent with the Share User ID of systemic-function, if draw, the two is consistent, then can show that this process is the critical processes be associated with system.
By the embodiment that the application provides, the authority corresponding according to each process and/or progress information judge whether each process belongs to the critical processes be associated with the normal operation of system, and then when process is cleared up, can the critical processes of intelligently filters outbalance, avoid the normal use affecting user.
As the optional scheme of one, shown in composition graphs 6, above-mentioned cleaning unit 408 comprises:
1) the 5th judge module 602, for judging whether the process not belonging to critical processes in the process run meets predetermined condition;
Alternatively, shown in associative list 3 and table 4, obtain the process and the corresponding authority of each process and/or progress information run, and judge whether this process belongs to critical processes according to the corresponding authority of each process and/or progress information, then judge whether to meet predetermined condition to the process not belonging to critical processes.
Alternatively, in the present embodiment predetermined condition include but not limited to following one of at least: the association of priority, media, backstage association.
2) first terminates module 604, when process for not belonging to critical processes in the process run meets predetermined condition, terminate the process meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition, or restart the process meeting predetermined condition, and release meets the part resource shared by process of predetermined condition;
Such as, for the micro-letter run in mobile phone, the process of this application correspondence is drawn (such as after judgement, weixin) do not belong to critical processes, and judge to meet predetermined condition (such as, priority is greater than low), then restart this process, and release meets the part resource shared by process of predetermined condition, such as, the pictorial information of buffer memory.
3) second terminates module 606, when the process for not belonging to critical processes in the process run does not meet predetermined condition, terminate the process not meeting predetermined condition, and release does not meet all resources shared by process of predetermined condition.
Such as, for the browser run in mobile phone, the process of this application correspondence is drawn (such as after judgement, browser) do not belong to critical processes, and judge that this process does not meet predetermined condition (such as, priority is low) yet, then terminate this process, and all resources discharged shared by it, such as, all browsing informations.
By the embodiment that the application provides, judge whether to meet predetermined condition in the process not belonging to critical processes, and then the process not belonging to critical processes is done further judgement, terminate unnecessary process to greatest extent, make cleaning effect optimization.
As the optional scheme of one, shown in composition graphs 7, above-mentioned 5th judge module 602 comprises:
1) first judges submodule 702, when the value of the priority comprised for the progress information that the process not belonging to critical processes in the process run is corresponding is less than or equal to predetermined threshold, judge that the process not belonging to critical processes in the process run meets predetermined condition;
Alternatively, the value of priority is by system assignment in the present embodiment, and the implication of its value represents the priority of process, and numerical value is less, and priority is higher.Such as, carry out Identity Priority level with Priority Group, if the numerical value of Priority Group is less than or equal to 2, then this process is system high priority process.
Such as, the predetermined threshold arranging priority (Priority Group) is 2, if the process run (such as, the process weixin that micro-letter application is corresponding) numerical value of Priority Group in corresponding progress information equals 1, then judge that this process known is the high priority process meeting predetermined condition.
2) second judges submodule 704, when the process for not belonging to critical processes in the process run belongs to the process associated with the media resource in system, judges that the process not belonging to critical processes in the process run meets predetermined condition;
Such as, the Share User ID in progress information is utilized to determine whether android.media, and then determine whether that the process that associates with the media resource in system (such as, the process media that player application is corresponding), if the Share User ID of this process is android.media, then judge that this process known is the process associated with the media resource in system meeting predetermined condition.
3) the 3rd judges submodule 706, when the process for not belonging to critical processes in the process run belongs to the process of background service class of system, judges that the process not belonging to critical processes in the process run meets predetermined condition.
Such as, the process title in progress information is utilized to judge whether to comprise the mark of ": service ", and then determine whether system background service class process (such as, the process weixin that micro-letter application is corresponding), if the mark that the process title of this process comprises ": service ", then judge that this process known is the process of the background service class of the system meeting predetermined condition.
By the embodiment that the application provides, by predetermined condition, further filtration is done to the process run, terminate unnecessary process to greatest extent, optimize cleaning result.
As the optional scheme of one, second judges whether submodule 704 belongs to the process associated with the media resource in system for the process being judged not belong to critical processes by following steps in the process run:
If the sharing users mark that progress information corresponding to the process not belonging to critical processes in the process run comprises is consistent with the mark of the media resource of system, then the process judging not belong in the process run critical processes belongs to the process associated with the media resource in system.
Alternatively, in the present embodiment the media resource of system comprise following one of at least: camera, bluetooth, player, video player.
Alternatively, sharing users is designated but is not limited in the present embodiment: Share User ID.
Such as, for mobile phone player application, Share User ID in the progress information of the process media of its correspondence is android.media, the Share User ID of the process associated with the media resource in system is also android.media, then judge that the known above-mentioned process run belongs to the process associated with the media resource in system.
As the optional scheme of one, the 3rd judges whether submodule 706 belongs to the process of the background service class of system for the process being judged not belong to critical processes by following steps in the process run:
If progress information corresponding to the process not belonging to critical processes in the process run comprises background service mark, then the process judging not belong in the process run critical processes belongs to the process of the background service class of system.
Alternatively, background service is designated but is not limited in the present embodiment: ": service ".
Such as, be applied as example with the micro-letter in mobile phone, the process title in the progress information of the process weixin of its correspondence comprises ": service ", then judge that the known above-mentioned process run belongs to the process of the background service class of system.
By the embodiment that the application provides, by predetermined condition, further filtration is done to the process run, terminate unnecessary process to greatest extent, optimize cleaning result.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (14)
1. a process method for cleaning, is characterized in that, comprising:
Obtain the command information for asking clean up process;
Respond described command information and obtain authority corresponding to each process in the process run and/or progress information;
The authority corresponding according to described each process and/or progress information judge whether described each process belongs to the critical processes be associated with the normal operation of system;
The process not belonging to described critical processes in the described process run is cleared up.
2. method according to claim 1, is characterized in that, described critical processes comprise following one of at least:
For running the process of the desktop programs of described system;
For showing the process of the wallpaper of described system;
The process be associated with the desktop programs of described system, wherein, if the process that the desktop of described and described system is associated is cleaned, then the desktop programs of described system is restarted;
The process be associated with described system, wherein, if the process that described and described system is associated is cleaned, then described system occurs abnormal.
3. method according to claim 1 and 2, is characterized in that, the authority corresponding according to described each process and/or progress information judge whether described each process belongs to the critical processes be associated with the normal operation of described system and comprise:
If authority corresponding to the process current to be judged in the process run described comprises the authority running desktop programs, then judge that described current process to be judged is the process of the desktop programs for running described system that described critical processes comprises;
If authority corresponding to the process current to be judged in the process run described comprises the authority of display wallpaper, then judge that described current process to be judged is the process of the wallpaper for showing described system that described critical processes comprises;
If the sharing users mark that progress information corresponding to the process current to be judged in the process run described comprises is consistent with the mark of the desktop programs of the current operation of described system, then judge that described current process to be judged is the process be associated with the desktop programs of described system that described critical processes comprises;
If the sharing users mark that progress information corresponding to the process current to be judged in the process run described comprises is consistent with the mark of the systemic-function of described system, then judge that described current process to be judged is the process be associated with described system that described critical processes comprises, wherein, described systemic-function comprise following one of at least: note, phone.
4. method according to claim 1, is characterized in that, the described process to not belonging to described critical processes in the described process run is carried out cleaning and comprised:
If the process not belonging to described critical processes in the process run described meets predetermined condition, then terminate the process meeting described predetermined condition, and release does not meet all resources shared by process of described predetermined condition; Or, restart the process meeting described predetermined condition, and release meets the part resource shared by process of described predetermined condition;
If the process not belonging to described critical processes in the process run described does not meet described predetermined condition, then terminate the process not meeting described predetermined condition, and release does not meet all resources shared by process of described predetermined condition.
5. method according to claim 4, is characterized in that, by following one of at least judge described in do not belong to described critical processes in the process run process whether meet described predetermined condition:
If the value not belonging to the priority that progress information corresponding to the process of described critical processes comprises in the process run described is less than or equal to predetermined threshold, then the process not belonging to described critical processes in the process run described in judging meets described predetermined condition;
If the process not belonging to described critical processes in the process run described belongs to the process associated with the media resource in described system, then the process not belonging to described critical processes in the process run described in judging meets described predetermined condition;
If the process not belonging to described critical processes in the process run described belongs to the process of the background service class of described system, then the process not belonging to described critical processes in the process run described in judging meets described predetermined condition.
6. method according to claim 5, is characterized in that, whether the process not belonging to described critical processes in the process run described in judging as follows belongs to the process associated with the media resource in described system:
If the sharing users mark that progress information corresponding to the process not belonging to described critical processes in the process run described comprises is consistent with the mark of the media resource of described system, the process not belonging to described critical processes in the process run described in then judging belongs to the process associated with the media resource in described system, wherein, the media resource of described system comprise following one of at least: camera, bluetooth, player, video player.
7. method according to claim 5, is characterized in that, whether the process not belonging to described critical processes in the process run described in judging as follows belongs to the process of the background service class of described system:
If progress information corresponding to the process not belonging to described critical processes in the process run described comprises background service mark, then the process not belonging to described critical processes in the process run described in judging belongs to the process of the background service class of described system.
8. a process cleaning plant, is characterized in that, comprising:
First acquiring unit, for obtaining the command information of clean up process;
Second acquisition unit, obtains authority corresponding to each process in the process run and/or progress information for responding described command information;
According to authority corresponding to described each process and/or progress information, judging unit, for judging whether described each process belongs to the critical processes be associated with the normal operation of system;
Cleaning unit, for clearing up the process not belonging to described critical processes in the described process run.
9. device according to claim 8, is characterized in that, described judging unit comprise following one of at least:
First judge module, for judging whether described each process belongs to the process of the desktop programs running described system;
Second judge module, for judging whether described each process belongs to the process of the wallpaper showing described system;
3rd judge module, for judging whether described each process belongs to the process be associated with the desktop programs of described system, wherein, if the process that the desktop of described and described system is associated is cleaned, then the desktop programs of described system is restarted;
4th judge module, for judging whether described each process belongs to the process be associated with described system, wherein, if the process that described and described system is associated is cleaned, then described system occurs abnormal.
10. device according to claim 9, is characterized in that,
Described first judge module is also for judging by following steps whether described each process belongs to the process of the desktop programs running described system: when the current authority corresponding wait the process judged in the described process run comprises the authority running desktop programs, judge that described current process to be judged is the process of the desktop programs for running described system that described critical processes comprises;
Described second judge module is also for judging by following steps whether described each process belongs to the process of the wallpaper showing described system: when the current authority corresponding wait the process judged in the described process run comprises the authority of display wallpaper, judge that described current process to be judged is the process of the wallpaper for showing described system that described critical processes comprises;
Described 3rd judge module is also for judging by following steps whether described each process belongs to and the process that the desktop programs of described system is associated: when the sharing users that the current progress information corresponding wait the process judged in the described process run comprises identifies consistent with the mark of the desktop programs of the current operation of described system, judge that described current process to be judged is the process be associated with the desktop programs of described system that described critical processes comprises;
Described 4th judge module is also for judging by following steps whether described each process belongs to and the process that described system is associated: when the sharing users that the current progress information corresponding wait the process judged in the described process run comprises identifies consistent with the mark of the systemic-function of described system, judge that described current process to be judged is the process be associated with described system that described critical processes comprises, wherein, described systemic-function comprise following one of at least: note, phone.
11. devices according to claim 8, is characterized in that, described cleaning unit comprises:
Whether the 5th judge module, meet predetermined condition for the process not belonging to described critical processes in the process run described in judging;
First terminates module, when process for not belonging to described critical processes in the described process run meets predetermined condition, terminate the process meeting described predetermined condition, and release does not meet all resources shared by process of described predetermined condition, or restart the process meeting described predetermined condition, and release meets the part resource shared by process of described predetermined condition;
Second terminates module, when process for not belonging to described critical processes in the described process run does not meet described predetermined condition, terminate the process not meeting described predetermined condition, and release does not meet all resources shared by process of described predetermined condition.
12. devices according to claim 11, is characterized in that, described 5th judge module comprises:
First judges submodule, when the value of the priority comprised for the progress information that the process not belonging to described critical processes in the described process run is corresponding is less than or equal to predetermined threshold, the process not belonging to described critical processes in the process run described in judging meets described predetermined condition;
Second judges submodule, when process for not belonging to described critical processes in the described process run belongs to the process associated with the media resource in described system, the process not belonging to described critical processes in the process run described in judging meets described predetermined condition;
3rd judges submodule, when process for not belonging to described critical processes in the described process run belongs to the process of background service class of described system, the process not belonging to described critical processes in the process run described in judging meets described predetermined condition.
13. devices according to claim 12, it is characterized in that, described second judges that submodule is used for judging whether the process not belonging to described critical processes in the described process run belongs to the process associated with the media resource in described system by following steps:
If the sharing users mark that progress information corresponding to the process not belonging to described critical processes in the process run described comprises is consistent with the mark of the media resource of described system, the process not belonging to described critical processes in the process run described in then judging belongs to the process associated with the media resource in described system, wherein, the media resource of described system comprise following one of at least: camera, bluetooth, player, video player.
14. devices according to claim 12, is characterized in that, the described 3rd judges whether submodule belongs to the process of the background service class of described system for the process judging not belong in the described process run described critical processes by following steps:
If progress information corresponding to the process not belonging to described critical processes in the process run described comprises background service mark, then the process not belonging to described critical processes in the process run described in judging belongs to the process of the background service class of described system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410010685.8A CN104778031A (en) | 2014-01-09 | 2014-01-09 | Method and device for closing processes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410010685.8A CN104778031A (en) | 2014-01-09 | 2014-01-09 | Method and device for closing processes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104778031A true CN104778031A (en) | 2015-07-15 |
Family
ID=53619518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410010685.8A Pending CN104778031A (en) | 2014-01-09 | 2014-01-09 | Method and device for closing processes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778031A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105224369A (en) * | 2015-10-14 | 2016-01-06 | 深圳Tcl数字技术有限公司 | Application start method and system |
CN105607820A (en) * | 2015-12-28 | 2016-05-25 | 小米科技有限责任公司 | Process eliminating method and device and mobile terminal |
CN105608378A (en) * | 2015-12-24 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for obtaining process list |
CN106055358A (en) * | 2016-05-26 | 2016-10-26 | 乐视控股(北京)有限公司 | Game mode setting method and device |
CN106201698A (en) * | 2016-07-15 | 2016-12-07 | 北京金山安全软件有限公司 | Method and device for managing application program and electronic equipment |
CN106844032A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | The storage processing method and device of a kind of terminal applies |
CN106951328A (en) * | 2017-03-28 | 2017-07-14 | 努比亚技术有限公司 | The management method and system of application program |
CN107301059A (en) * | 2016-04-14 | 2017-10-27 | 中兴通讯股份有限公司 | A kind of method and device of clean up process |
CN107479953A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN108196913A (en) * | 2018-01-05 | 2018-06-22 | 青岛海信移动通信技术股份有限公司 | The process method for cleaning and device of a kind of application program |
CN108595271A (en) * | 2018-04-27 | 2018-09-28 | 宇龙计算机通信科技(深圳)有限公司 | A kind of memory method for cleaning and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019777A (en) * | 2012-11-28 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and system for automatically cleaning background applications of mobile terminal |
CN103164229A (en) * | 2013-04-08 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for clearing progresses of mobile terminal |
CN103399785A (en) * | 2013-07-25 | 2013-11-20 | 华南理工大学 | Method of improving Android vehicular system process management |
-
2014
- 2014-01-09 CN CN201410010685.8A patent/CN104778031A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019777A (en) * | 2012-11-28 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and system for automatically cleaning background applications of mobile terminal |
CN103164229A (en) * | 2013-04-08 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for clearing progresses of mobile terminal |
CN103399785A (en) * | 2013-07-25 | 2013-11-20 | 华南理工大学 | Method of improving Android vehicular system process management |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105224369A (en) * | 2015-10-14 | 2016-01-06 | 深圳Tcl数字技术有限公司 | Application start method and system |
CN105608378A (en) * | 2015-12-24 | 2016-05-25 | 北京奇虎科技有限公司 | Method and device for obtaining process list |
CN105607820A (en) * | 2015-12-28 | 2016-05-25 | 小米科技有限责任公司 | Process eliminating method and device and mobile terminal |
CN107301059A (en) * | 2016-04-14 | 2017-10-27 | 中兴通讯股份有限公司 | A kind of method and device of clean up process |
CN106055358A (en) * | 2016-05-26 | 2016-10-26 | 乐视控股(北京)有限公司 | Game mode setting method and device |
CN106201698A (en) * | 2016-07-15 | 2016-12-07 | 北京金山安全软件有限公司 | Method and device for managing application program and electronic equipment |
CN106844032A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | The storage processing method and device of a kind of terminal applies |
CN106951328A (en) * | 2017-03-28 | 2017-07-14 | 努比亚技术有限公司 | The management method and system of application program |
CN107479953A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN107479953B (en) * | 2017-07-31 | 2020-08-25 | Oppo广东移动通信有限公司 | Process management method, device, storage medium and electronic equipment |
CN108196913A (en) * | 2018-01-05 | 2018-06-22 | 青岛海信移动通信技术股份有限公司 | The process method for cleaning and device of a kind of application program |
CN108595271A (en) * | 2018-04-27 | 2018-09-28 | 宇龙计算机通信科技(深圳)有限公司 | A kind of memory method for cleaning and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778031A (en) | Method and device for closing processes | |
CN104142844B (en) | A kind of method and device for clearing up mobile terminal process | |
CN104182545A (en) | Application program recommendation method and device | |
CN106774786A (en) | A kind of power consumption control method and device | |
CN107871278A (en) | The method and storage medium of server, customer relationship network display | |
CN103984743B (en) | A kind of method and device of managing internal memory resource | |
CN107870981A (en) | Electronic installation, the method and storage medium of tables of data filing processing | |
CN108038130A (en) | Automatic cleaning method, device, equipment and the storage medium of fictitious users | |
CN104866770B (en) | Sensitive data scanning method and system | |
CN106899857A (en) | Server load adjusting method, device and server | |
CN103442267A (en) | User behavior information collection method and television | |
CN107729137A (en) | Server, the method and storage medium of the decryption of block chain sign test | |
CN104657435A (en) | Storage management method for application data and network management system | |
CN108038135A (en) | Electronic device, the method for multilist correlation inquiry and storage medium | |
CN106899877A (en) | barrage sending method and device | |
CN106341731B (en) | Remote control key response method and device for smart television | |
CN104537005A (en) | Data processing method and device for webpage crawling | |
CN107330848A (en) | Image processing method, mobile terminal and storage device | |
CN106156605A (en) | The processing method and processing device of application permission | |
CN103581199A (en) | Method and system for showing services in client terminal under multi-screen interaction scene | |
CN109582834B (en) | Data risk prediction method and device | |
CN106201551A (en) | A kind of application program exits method and device | |
CN111078646B (en) | Method and system for grouping software based on operation data of Internet equipment | |
CN105302689B (en) | Intelligent management method and device for computer system | |
CN103902903A (en) | Malicious code analyzing method and system based on dynamic sandbox environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150715 |