WO2017177698A1 - 一种清理进程的方法、装置及存储介质 - Google Patents
一种清理进程的方法、装置及存储介质 Download PDFInfo
- Publication number
- WO2017177698A1 WO2017177698A1 PCT/CN2016/108722 CN2016108722W WO2017177698A1 WO 2017177698 A1 WO2017177698 A1 WO 2017177698A1 CN 2016108722 W CN2016108722 W CN 2016108722W WO 2017177698 A1 WO2017177698 A1 WO 2017177698A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- function
- list
- cleanup
- state
- Prior art date
Links
Images
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/44594—Unloading
Definitions
- the invention relates to a computer network technology, in particular to a method, a device and a storage medium for cleaning up a process.
- the above practice is a relatively "static" cleanup.
- the usage status of each application process is constantly changing when the user uses the electronic device. Therefore, the process that needs to be cleaned is also dynamically changed.
- the user needs to frequently modify the protected state of the application, that is, frequently modify the white list, in order to adapt to the changing usage scenario, which is not only cumbersome to operate, easy to operate, but also time consuming and laborious.
- a new process cleaning technology is needed, which can dynamically determine whether the related process needs to be cleaned according to the user's usage status, without requiring too many settings by the user, and can prevent the process from being manually cleaned up, thereby further effectively solving the problem of slowness of the electronic device card and improving user experience.
- the present invention provides a process cleaning method, apparatus, and storage medium, and dynamically determines whether a related process needs to be cleaned according to a user usage condition, which not only prevents a useful process from being cleaned up by mistake, but also can be changed according to the change. Use the scene to dynamically clean up the process.
- the present invention provides a method for cleaning up a process, including: obtaining a running process of all applications; monitoring a current state of use of each application, and determining an application that has a function item being used as currently requiring temporary protection. Application; cleans up the process and keeps the process of the application that needs temporary protection on cleanup.
- the method further includes: presetting a package name and group information of each application, where the group information corresponds to hardware and function classification attributes of the application; and monitoring current process usage status of each application to determine current needs Temporary protection applications, including: detecting the function items currently in use; comparing the function items being used with each application according to the package name and grouping information of each application, if any one, two or more functions of the application The item is in use to determine that the application is in use.
- the method further includes: configuring a protected list of the application;
- the process of the application that needs to be temporarily protected is retained in the process of cleaning up, specifically: the process corresponding to the protected list and the process of the application requiring temporary protection are reserved, and other processes are cleaned up.
- the method when the foreground process cleanup function is enabled, includes: enumerating all the function items that can be detected in real time, determining the use status of each of the function items, filtering out the function items being used, and forming the use status function items.
- a list enumerating the package names of the applications corresponding to the running process, comparing the application with the function items in the usage status function item list according to the grouping information of the application, and determining whether the function item corresponding to the application is in use Status; if the corresponding function item is in the use state and the process is running, the process is identified as not cleaned; when the corresponding function item is not in use, the process is kept in the default state; the process is manually cleaned, and Reserved for processes that are identified as not being cleaned up when cleaned up.
- the method further includes: after modifying the process to not clean up the state, giving a prompt in the process information of the process to remind the user.
- the method includes: acquiring a package name of all running processes and their applications; determining an application including a network cache backup function item according to the application package name and the grouping information, and collecting the The process list of the application; determining whether the network cache backup function corresponding to each process in the process list is in use, and if so, adding the process to the process automatic cleanup ignore list, the process automatically clearing the process in the ignore list It will be ignored during automatic cleanup; the process is automatically cleaned up, and the corresponding process in the automatic cleanup ignore list is retained during the cleanup.
- the method further includes: when detecting that the electronic device enters a black screen state, triggering the background process cleaning function.
- the network cache backup function of each process in the process list is in use, including: obtaining a traffic change value of the application corresponding to the process within a specified time, and determining whether the traffic change value is greater than a preset. Threshold, if yes, indicates the cache of the application The backup function is in use; otherwise, it indicates that the application's cache backup feature is not in use.
- An apparatus for cleaning a process comprising: a process management module, a usage state determination module, wherein
- the state determination module is configured to monitor the current process usage status of each application, and determine an application that needs temporary protection at present;
- a process management module configured to acquire a running process of all applications; and configured to clean up the process, and retain, in the cleaning, the process of the application that needs to be temporarily protected determined by the usage state determining module.
- the device further includes: an application classification knowledge base configured to preset and save a package name and group information of each application, where the group information is used to describe hardware and function classification attributes of the application; a module configured to detect a function item currently being used; compare the function item being used with each application according to the package name and group information of each application in the application classification knowledge base, if any one or two of the applications Or multiple function items are in use to determine that the application is in use.
- an application classification knowledge base configured to preset and save a package name and group information of each application, where the group information is used to describe hardware and function classification attributes of the application
- a module configured to detect a function item currently being used; compare the function item being used with each application according to the package name and group information of each application in the application classification knowledge base, if any one or two of the applications Or multiple function items are in use to determine that the application is in use.
- the device further includes: a protected list control module configured to configure and maintain a protected list of the application; the process management module configured to: the process corresponding to the protected list and the need for temporary protection The process of the application is retained, cleaning up other processes.
- a protected list control module configured to configure and maintain a protected list of the application
- the process management module configured to: the process corresponding to the protected list and the need for temporary protection The process of the application is retained, cleaning up other processes.
- the process management module is further configured to enable the foreground process cleanup function; and, when the foreground process cleanup function is enabled, configured to determine, in the use state determination module, that the corresponding function item is in use If the process is running, the process is identified as not being cleaned; when the corresponding function item is not in the use state, the process is kept as the default state; and configured to manually clean up the process according to the state of the process;
- the determining module is configured to enumerate all the function items that can be detected in real time when the foreground process cleanup function is enabled, determine the usage status of each of the function items, filter out the function items being used, and form a list of the use status function items. ; enumerate the package names of all applications corresponding to the running process, according to The grouping information of the application compares the application with the function item in the usage status function item list, and determines whether the function item corresponding to the application is in the use state.
- the process cleaning module is further configured to prompt a user in the process information of the process to notify the user after modifying the process to the non-cleaning state.
- the process management module is further configured to enable the background process cleanup function; and, when the background process cleanup function is enabled, configured to obtain the package name of all running processes and their applications; and, configured to be in the
- the process is added to the process automatic cleanup ignore list, and the processes in the automatic cleanup ignore list are ignored in the automatic cleanup; and configured to be according to the process
- the automatic cleanup ignores the list automatic cleanup process is configured to determine, when the background process cleanup function is enabled, the application including the network cache backup function item and collect the application process according to the application package name and the grouping information. a list; determining whether a network cache backup function corresponding to each process in the process list is in use.
- the process management module is configured to trigger and start the background process cleanup function when detecting that the electronic device enters a black screen state.
- the usage state determining module is configured to: obtain a traffic change value of the application corresponding to the process within a predetermined time, and determine whether the traffic change value is greater than a preset threshold, and if yes, indicate the application The cache backup feature is in use; otherwise, it indicates that the application's cache backup feature is not in use.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the cleaning process.
- the embodiment of the present invention can monitor the current state of use of each application, determine an application that needs temporary protection, and selectively clean the process according to an application that needs temporary protection.
- the relevant process can be dynamically determined according to the user's usage status. Whether it needs to be cleaned up, on the basis of effectively solving the problem of slowness of the electronic device card, it also overcomes the defect that the process is easy to be cleaned up, improves the efficiency and accuracy of the process cleaning, and does not require too many settings by the user, thereby effectively improving the user experience.
- FIG. 1 is a schematic flowchart of a process cleaning method according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of a process cleaning apparatus according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a process for cleaning a process commonly used in multiple scenarios according to an embodiment of the present invention
- FIG. 4 is a schematic flowchart of a process of cleaning a foreground process according to an embodiment of the present invention
- FIG. 5 is a schematic flowchart of a background process cleaning process according to an embodiment of the present invention.
- an embodiment of the present invention provides a method for cleaning a process, and the method may include the following steps:
- Step 101 Obtain a running process of all applications
- Step 102 Presetting a package name and group information of each application, where the group information corresponds to hardware and function classification attributes of the application;
- Step 103 Monitor the current process usage status of each application, and determine an application that needs temporary protection at present;
- the monitoring the current usage status of each application to determine an application currently being used includes: monitoring hardware usage of the electronic device, detecting a function item currently being used; and changing a package name according to each application (different device platforms) The package name of the same application may be different) and the grouping information, the function item being used is compared with each application, and if any one, two or more function items of the application are being used, it is determined that the application is in use .
- Step 104 Clean up the process and keep the process of the application requiring temporary protection when cleaning.
- the method may further include: configuring a protected list of the application; the cleaning process, and retaining, in the cleaning, the process of the application requiring temporary protection, specifically: according to the protected list and current needs Temporarily protected applications that selectively clean up the process.
- the protected list is actually a static list. Based on the system default configuration or the user default configuration, commonly used more important applications can be included in the protected list. When the process is cleaned, the corresponding process in the protected list will be preferred. In order not to clean up the state.
- the cleaning policy of the process can be dynamically adjusted according to the actual application state of the electronic device without excessive setting by the user, and the effective solution is effectively solved.
- the problem of the process being cleaned up is further solved, and the user is not required to participate too much, and the user experience is also improved.
- an embodiment of the present invention further provides a process cleaning apparatus, where the apparatus may include: a process management module, a protected list control module, an application classification knowledge base, and a usage status determination module.
- the state determination module is configured to monitor the current process usage status of each application, determine an application that needs temporary protection, and the process management module is configured to obtain a running process of all applications; and, the cleaning process, and the cleaning process The process retention of the application requiring temporary protection determined by the state determination module is retained.
- the application classification knowledge base is configured to preset and save the package name and group information of each application, and the group information is used to describe the hardware and function classification attributes of the application.
- the apparatus may further include: a protected list control module configured to configure and maintain a protected list of applications.
- the protected list control module mainly maintains a static list, which is the protected list, which includes preset commonly used applications that need to be protected, to avoid application processes being cleaned up, and common preset applications. There are key applications such as WeChat and Weibo, and subsequent users of this list can modify according to their actual usage.
- the process management module is configured to selectively clean the process according to the protected list and the application that is currently required to be temporarily protected by the use status determination module.
- the process management module is mainly configured to obtain a running process of all installed applications, and selectively cleans the process according to the protected list control module and the usage state determining module.
- the state determination module is mainly configured to monitor the usage of the hardware of the electronic device, combine the application classification knowledge base, find the corresponding application, and determine which applications are actually being used by the user, thereby determining which application processes are needed. Temporary protection to dynamically adjust process cleanup strategies while avoiding process cleanups.
- the usage status determining module is configured to monitor hardware usage of the electronic device, and detect a function item currently being used; and according to the package name and group information of each application in the application classification knowledge base, the information is to be used. The functional items are compared with the respective applications, and if any one, two or more functional items of the application are in use, it is determined that the application is in use.
- process cleanup is divided into two scenarios: front-end manual cleanup and background automatic cleanup. More often, the background automatic cleanup process is required. For example, when the electronic device is black, the automatic process cleanup is started.
- the usage state determination module of the embodiment of the present invention can be used not only as a background cleaning process, but also as a reference for the user to manually clean up the process, so that the user can selectively clean up the process as needed.
- the process management module is configured to enable the foreground process cleanup function; and, when the foreground process cleanup function is enabled, configured to determine, in the use state determination module, that the corresponding function item is in use If the process is running, the process is marked as not cleaned; when the corresponding function item is not in the use state, the process is kept as the default state; and configured to manually clean up the process according to the state of the process;
- the status determination module is configured to enumerate all the function items that can be detected in real time when the foreground process cleanup function is enabled, determine the usage status of each of the function items, filter out the function items being used, and form a use status function item.
- the process cleaning module is further configured to prompt a user in the process information of the process to notify the user after modifying the process to not clean up the state.
- the process management module is configured to enable the background process cleanup function; and, when the background process cleanup function is enabled, configured to obtain the package name of all running processes and their applications; and, configured to When the network cache backup function corresponding to the process is in use, the process is added to the process automatic cleanup ignore list, and the processes in the automatic cleanup ignore list are ignored during automatic cleanup; and configured to be
- the process automatically cleans up the ignore list automatic cleanup process; using the state determination module, configured to be in the background
- the process cleanup function is enabled, determining, according to the package name and the grouping information of the application, the application that includes the network cache backup function item, and collecting the process list of the application; determining whether the network cache backup function corresponding to each process in the process list is use.
- the process management module is configured to trigger and start the background process cleanup function when detecting that the electronic device enters a black screen state.
- the usage status determining module is configured to: obtain a traffic change value of the application corresponding to the process within a specified time, determine whether the traffic change value is greater than a preset threshold, and if yes, indicate that the application cache backup The feature is in use; otherwise, it indicates that the application's cache backup feature is not in use.
- the apparatus of the embodiments of the present invention may be configured for use in an electronic device, the electronic device including the apparatus for the above-described cleaning process.
- the electronic device may be any terminal device, such as a mobile terminal (mobile phone, tablet computer, wearable device, etc.), a client (such as a teller machine, etc.), and will not be described again.
- This embodiment describes the specific implementation process of the cleanup process in the general scenario.
- the method may include the following steps:
- Step 301 Presetting the package name of each application and its grouping information
- the package name of each application and its corresponding grouping information may be pre-configured in the electronic device, and may be configured in the form of a list.
- the grouping information is used to describe the hardware and function classification attributes of the application.
- the GPS chip corresponds to all map navigation applications
- the audio hardware corresponds to all listening, radio and music applications
- the cache download application using traffic the flashlight and video application using LED
- the near field communication using Bluetooth and infrared Related applications, etc.
- Step 302 List the running processes of all installed applications of the electronic device
- the general application can be obtained through the platform interface after applying the relevant permission, and the running process is saved or presented in the form of a process list.
- Step 303 Traversing the process list
- Step 304 Detect whether the related function or hardware is in use
- the function items may include audio functions (corresponding to listening to books, radio, recording, music playing, etc.), traffic buffering functions (corresponding to video buffering, software downloading, news caching, etc.), navigation functions (corresponding to map navigation, etc.) and many more.
- audio functions corresponding to listening to books, radio, recording, music playing, etc.
- traffic buffering functions corresponding to video buffering, software downloading, news caching, etc.
- navigation functions corresponding to map navigation, etc.
- Step 305 Determine, according to the grouping information of the application corresponding to the process, whether the function item is in use.
- Step 306 If the application corresponding function item is in use, the process is not cleaned, continue to step 307; if the application corresponding function item is not in use state, proceed to step 308;
- step 308 For example, if the process of the navigation application is running and its navigation function (GPS) is also running, the cleanup is ignored for the navigation process.
- GPS navigation function
- the listening music radio station application is running, while the audio is in the active state, the process intelligently ignores the cleanup, otherwise proceeds to step 308;
- Step 307 Determine whether the process list is traversed, if not, return to step 303, and if yes, end the entire process;
- Step 308 Clean up the process, save the memory and CPU occupancy of the electronic device, and do not affect the user's use.
- the specific implementation process of the foreground cleaning process may include the following steps.
- Step 401 enumerate all the functional items that can be detected in real time
- the function items in the current electronic device that can be detected in real time are searched, and all the function items found are listed in the form of a list.
- the function items include but are not limited to the current desktop function of the electronic device, the audio function being played, the map function being navigated, etc. Wait;
- Step 402 Determine, for each function item, the usage status of the interface through an interface provided by the platform;
- the electronic device does not currently support such a determination function
- the corresponding function may be added by means of software extension, and the specific implementation process may be implemented based on related technologies, and will not be described again.
- Step 403 Filter out the function items that are being used, and form a list of usage status function items
- Step 404 enumerate the package names of all applications corresponding to the running process
- Step 405 Corresponding processing is performed on the application and the usage status function item list to determine whether the function item of the application is being used. If yes, step 406 is performed; otherwise, step 407 is performed;
- the application and the function item in the usage status function item list are associated according to the package name and the grouping information of the application.
- the navigation function is associated with the map application because its grouping information describes that its function item involves navigation and the navigation function is in use.
- Step 406 If the corresponding function item is in the use state, and the current application corresponding process is running, modify the current application process to not clean up the state, and give corresponding prompts, step 408;
- the process of the map application is automatically modified to not clean up the state, and a prompt message "Navigate” is marked on the process information to remind the user that the process may be cleaned up.
- a prompt message "Navigate” is marked on the process information to remind the user that the process may be cleaned up.
- Step 407 If the corresponding function item is not in the use state, the current application process is kept as the default state;
- the process of the map application is running, but the navigation function is not in use at present, and the process of the map application is configured to be cleaned/not cleaned according to the default cleanup state preset by the user or the system.
- Step 408 Determine whether all processes have been processed. If not, continue with the steps. 405, if yes, proceed to step 409;
- Step 409 Clearing the cleaned state process from the list of ongoing processes, and ignoring the process in the non-cleaned state;
- Step 410 End all processes.
- the cleanup state (protected state) of a set of commonly used applications and their corresponding classifications can be preset.
- the main categories are map navigation, music radio listening, network backup, recovery and transmission of mail, and so on.
- the non-functional application process can be processed in a default manner.
- the automatic cleaning process at the front desk has high real-time requirements. It is suitable for detecting those faster authentication functions, giving descriptive prompts and default cleanup status for the application process. Users can clean up the process based on these prompts and the default cleanup status.
- the implementation process of the background automatic cleaning may mainly include the following steps:
- Step 501 The electronic device system enters a black screen, and triggers a process of automatically cleaning the background process
- Step 502 If the function of the automatic cleaning process after the black screen is on, continue; otherwise Go to step 511 to end all processes;
- Step 503 Obtain a package name of all running processes and their applications
- Step 504 Determine, according to the application package name and grouping information preset by the system, whether it belongs to the "network cache backup" type application; if it is to continue to the next step, if not, then according to the prior art;
- Step 505 Collect a list of processes of all currently running "network cache backup" applications of the electronic device, record the current time, and record the data consumed by the current application and the wifi traffic value;
- Step 507 Waiting for a predetermined time, for example, 10 seconds, once again recording the data consumed by the current application and the value of the wifi traffic;
- Step 508 Subtract the flow value obtained in step 507 from the flow value obtained in step 507 for each process in the process list in step 505, to obtain the current application consumption value in the specified time period;
- Step 509 Determine whether the current application consumption value is greater than a preset value. If the flow value is greater than a preset threshold, such as 1M, the application caches data in the background, and the application process is added to the process automatic cleanup ignore list. ;
- Step 510 Clean up the process, ignoring the process in the "process automatic cleanup ignore list";
- Step 511 The process ends.
- the process in the process of accelerating the electronic device, whether the foreground or the background is used, the process can be cleaned more intelligently, which avoids the user not setting the white list pain of the process, and avoids the user frequently modifying the white list of the process. trouble.
- the "killing" process can be effectively avoided by using the embodiment of the present invention, and the process can be dynamically adjusted based on the usage state of the electronic device.
- the clean-up status overcomes the shortcomings of the existing program that relies too much on the “white list”.
- the application classification knowledge base in the device for cleaning up the process in the embodiment of the present invention may be implemented by a memory, and the process management module, the use state determination module, and the protected list control module may all be implemented by a processor, and may also be implemented by a specific Logic circuit implementation; wherein the server on the processor electronic device, in practical applications, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate Array (FPGA), etc.
- CPU central processing unit
- MPU microprocessor
- DSP digital signal processor
- FPGA field programmable gate Array
- the method of the above cleaning process is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
- the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
- a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the foregoing cleaning process of the embodiment of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种清理进程的方法,包括:获取所有应用的运行进程;监测当前各个应用,将有功能项正在使用的应用确定为当前正需要临时保护的应用;清理进程,并在清理时将所述需要临时保护的应用的进程保留。还公开了一种清理进程的装置及存储介质,能够根据用户使用状况动态判定相关进程是否需要被清理,在有效解决电子设备卡慢问题的基础上,还克服了进程容易误清理的缺陷,提高了进程清理的效率和准确性,并且无需用户过多设置,有效提升了用户体验。
Description
本发明涉及计算机网络技术,尤指一种清理进程的方法、装置及存储介质。
根据第三方的调研数据显示,有77%的Android用户承认自己曾遭遇过电子设备变慢的影响,百度搜索“Android+卡慢”,也有超过460万条结果。在业内,Android电子设备一直有着“越用越慢”的口碑,这个现象甚至超出了硬件范畴——很多中高端Android电子设备在硬件参数上都优于同一代iPhone,但是它们仍然会在使用半年到一年的时间后进入“欠流畅”的状态。
要解决电子设备卡慢的问题就需要及时对电子设备的进程进行清理。目前,清理进程的通常做法是将所有正在运行的进程列出来,然后通过预置的一套黑白名单给出一个缺省是否清理的状态,然后由用户手动选择哪些应用的进程清理或者按默认状态“一键清理”甚至是自动“后台加速”。
上述做法存在的问题是,如果用户不会或者不想设置白名单,很有可能某些需要临时保护的应用会被误清理,如正在听书的应用、正在缓存视频电影的应用、或者正在导航的地图类应用,这些应用的特征是使用时一旦被误清理就会极大的影响用户使用体验,不使用时则会在后台运行占用大量的CPU、内存等资源甚至严重消耗流量,需要被及时清理掉。因此,上述做法要么会过度保护进程,不能及时清理掉不需要的进程,而这些进程占用CPU及内存资源则导致电子设备卡慢;要么过度清理进程,导致正在使用的进程被误清理,从而严重影响用户的使用体验,甚至造成一些应
用或系统的功能性问题。此外,由于使用场景是动态变化的,
此外,上述做法是一种相对“静态”的清理。而大多数场景下,用户使用电子设备时各应用进程的使用状态是不断变化的,因此,需要清理的进程也是在动态变化的。使用上述做法,用户需要频繁修改应用程序的受保护状态即频繁修改上述白名单,才能适应不断变化的使用场景,不仅操作繁琐,容易误操作,而且费时费力。
因此,需要一种新的进程清理技术,能够根据用户使用状况动态判定相关进程是否需要被清理,无需用户过多设置,并且能够防止进程误清理,从而进一步有效解决电子设备卡慢的问题,提升用户体验。
发明内容
为了解决上述技术问题,本发明提供了一种进程清理方法、装置及存储介质,根据用户使用状况动态判定相关进程是否需要被清理,不仅能够防止有用的进程被误清理,而且能够根据不断变化的使用场景动态清理进程。
为了达到本发明目的,本发明提供了一种清理进程的方法,包括:获取所有应用的运行进程;监测当前各个应用的进程使用状态,将有功能项正在使用的应用确定为当前需要临时保护的应用;清理进程,并在清理时将所述需要临时保护的应用的进程保留。
上述方案中,所述方法还包括:预置各个应用的包名和分组信息,所述分组信息对应于所述应用的硬件及功能分类属性;所述监测当前各个应用的进程使用状态,确定当前需要临时保护的应用,包括:检测当前正在使用的功能项;根据各个应用的包名及分组信息,将正在使用的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用正在使用。
上述方案中,所述方法还包括:配置应用的受保护名单;所述清理进
程,并在清理时将所述需要临时保护的应用的进程保留,具体为:将所述受保护名单对应的进程以及所述需要临时保护的应用的进程保留,清理其他进程。
上述方案中,前台进程清理功能开启时,所述方法包括:列举所有能够实时检测的功能项,针对每个所述功能项判定其使用状态,过滤出正在使用的功能项,形成使用状态功能项列表;列举所有正在运行进程所对应应用的包名,根据所述应用的分组信息将所述应用与使用状态功能项列表中的功能项进行对比处理,确定所述应用对应的功能项是否在使用状态;对应的功能项处于使用状态且所述进程正在运行,则标识所述进程为不清理的状态;对应的功能项不在使用状态时,则保持所述进程为默认状态;手动清理进程,并在清理时将标识为不清理的进程保留。
上述方案中,所述方法还包括:在修改所述进程为不清理状态后,在所述进程的进程信息中给出提示以提醒用户。
其中,在后台进程清理功能开启时,所述方法包括:获取所有正在运行的进程及其应用的包名;根据应用的包名及分组信息,确定包含网络缓存备份功能项的应用并收集所述应用的进程列表;判断所述进程列表中每个进程对应的网络缓存备份功能是否正在使用,如果是,则将所述进程加入到进程自动清理忽略列表,所述进程自动清理忽略列表中的进程在自动清理时将被忽略;自动清理进程,在清理时将所述进程自动清理忽略列表中对应的进程保留。
上述方案中,所述方法还包括:检测到电子设备进入黑屏状态时,触发所述后台进程清理功能。
上述方案中,判断所述进程列表中每个进程的网络缓存备份功能是否正在使用,包括:获取所述进程对应的应用在规定时间内的流量变化值,判断所述流量变化值是否大于预设阈值,如果是,则表明所述应用的缓存
备份功能正在使用;否则,表明所述应用的缓存备份功能不在使用状态。
一种清理进程的装置,所述装置包括:进程管理模块、使用状态判定模块;其中,
使用状态判定模块,配置为监测当前各个应用的进程使用状态,确定当前需要临时保护的应用;
进程管理模块,配置为获取所有应用的运行进程;以及,配置为清理进程,并在清理时将所述使用状态判定模块确定的需要临时保护的应用的进程保留。
上述方案中,所述装置还包括:应用分类知识库,配置为预置并保存各个应用的包名及分组信息,所述分组信息用于描述应用的硬件及功能分类属性;所述使用状态判定模块,配置为检测当前正在使用的功能项;根据所述应用分类知识库中各个应用的包名及分组信息,将正在使用的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用正在使用。
上述方案中,所述装置还包括:受保护名单控制模块,配置为配置并维护应用的受保护名单;所述进程管理模块,配置为将所述受保护名单对应的进程以及所述需要临时保护的应用的进程保留,清理其他进程。
上述方案中,所述进程管理模块,还配置为开启前台进程清理功能;以及,在所述前台进程清理功能开启时,配置为在所述使用状态判定模块判定对应的功能项处于使用状态且所述进程正在运行,则标识所述进程为不清理的状态;对应的功能项不在使用状态时,则保持所述进程为默认状态;以及,配置为根据所述进程的状态手动清理进程;使用状态判定模块,配置为在所述前台进程清理功能开启时,列举所有能够实时检测的功能项,针对每个所述功能项判定其使用状态,过滤出正在使用的功能项,形成使用状态功能项列表;列举所有正在运行进程所对应应用的包名,根据所述
应用的分组信息将所述应用与使用状态功能项列表中的功能项进行对比处理,确定所述应用对应的功能项是否在使用状态。
上述方案中,所述进程清理模块,还配置为在修改所述进程为不清理状态后,在所述进程的进程信息中给出提示以提醒用户。
上述方案中,进程管理模块,还配置为开启后台进程清理功能;以及,在所述后台进程清理功能开启时,配置为获取所有正在运行的进程及其应用的包名;以及,配置为在所述进程对应的网络缓存备份功能正在使用时,将所述进程加入到进程自动清理忽略列表,所述进程自动清理忽略列表中的进程在自动清理时将被忽略;以及,配置为根据所述进程自动清理忽略列表自动清理进程;使用状态判定模块,配置为在所述后台进程清理功能开启时,根据应用的包名及分组信息,确定包含网络缓存备份功能项的应用并收集所述应用的进程列表;判断所述进程列表中每个进程对应的网络缓存备份功能是否正在使用。
上述方案中,所述进程管理模块,配置为在检测到电子设备进入黑屏状态时,触发并开启所述后台进程清理功能。
上述方案中,所述使用状态判定模块,配置为:获取所述进程对应的应用在规定时间内的流量变化值,判断所述流量变化值是否大于预设阈值,如果是,则表明所述应用的缓存备份功能正在使用;否则,表明所述应用的缓存备份功能不在使用状态。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述的清理进程的方法。
与现有技术相比,本发明实施例能够监测当前各个应用的进程使用状态,确定当前需要临时保护的应用,并根据当前需要临时保护的应用,有选择性的清理所述进程。如此,能够根据用户使用状况动态判定相关进程
是否需要被清理,在有效解决电子设备卡慢问题的基础上,还克服了进程容易误清理的缺陷,提高了进程清理的效率和准确性,并且无需用户过多设置,有效提升了用户体验。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为本发明实施例进程清理方法的流程示意图;
图2为本发明实施例进程清理装置的组成结构示意图;
图3为本发明实施例通用于多种场景的进程清理流程示意图;
图4为本发明实施例前台进程清理的流程示意图;
图5为本发明实施例后台进程清理的流程示意图。
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
实施例一
如图1所示,本发明实施例提供了一种进程清理方法,所述方法主要可以包括如下步骤:
步骤101:获取所有应用的运行进程;
步骤102:预置各个应用的包名和分组信息,所述分组信息对应于所述应用的硬件及功能分类属性;
步骤103:监测当前各个应用的进程使用状态,确定当前需要临时保护的应用;
进一步地,所述监测当前各个应用的进程使用状态,确定当前正在使用的应用,包括:监控电子设备的硬件使用情况,检测当前正在使用的功能项;根据各个应用的包名(不同的装置平台同一应用的包名可能有所不同)及分组信息,将正在使用的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用正在使用。
步骤104:清理进程,并在清理时将所述需要临时保护的应用的进程保留。
进一步地,所述方法还可以包括:配置应用的受保护名单;所述清理进程,并在清理时将所述需要临时保护的应用的进程保留,具体为:根据所述受保护名单以及当前需要临时保护的应用,选择性的清理所述进程。这里,受保护名单实际为一个静态列表,基于系统默认配置或者用户默认配置,可以将常用的比较重要的应用列入该受保护名单中,在进程清理时受保护名单中应用对应的进程将优选为不清理状态。
本发明实施例通过判断电子设备主要功能是否正在使用,从而判定相关应用对应的进程是否需要临时保护,无需用户过多设置即可根据电子设备的实际应用状况动态调整进程的清理策略,在有效解决电子设备卡慢问题的基础上,还进一步解决了进程误清理的问题,且不需要用户过多参与,也同时提升了用户体验。
实施例二
如图2所示,本发明实施例还提供了一种进程清理装置,所述装置可以包括:进程管理模块、受保护名单控制模块、应用分类知识库和使用状态判定模块。其中,使用状态判定模块,配置为监测当前各个应用的进程使用状态,确定当前需要临时保护的应用;进程管理模块,配置为获取所有应用的运行进程;以及,清理进程,并在清理时将所述使用状态判定模块确定的需要临时保护的应用的进程保留。应用分类知识库,配置为预置并保存各个应用的包名及分组信息,所述分组信息用于描述应用的硬件及功能分类属性。
这里,所述装置还可以包括:受保护名单控制模块,配置为配置并维护应用的受保护名单。受保护名单控制模块主要是维护一个静态列表,该静态列表即为所述受保护名单,其中包含有预置的常用的需要重点保护的应用,避免应用的进程被清理,常见的预置的应用有微信、微博等重点应用,该列表后续用户可以根据自己的实际使用情况进行修改。
实际应用中,所述进程管理模块,配置为根据所述受保护名单以及所述使用状态判定模块确定的当前需要临时保护的应用,选择性的清理所述进程。其中,进程管理模块主要配置为获取所有已安装的应用的运行进程,根据受保护名单控制模块及使用状态判定模块来有选择性的清理进程。
实际应用中,使用状态判定模块主要配置为监控电子设备的硬件的使用情况,结合应用分类知识库,找到对应的应用,进而判定哪些应用确实是用户当前正在使用的,进而判定哪些应用的进程需要临时性保护,以动态调整进程清理策略并同时避免进程误清理。具体地,所述使用状态判定模块,配置为监控电子设备的硬件使用情况,检测当前正在使用的功能项;根据所述应用分类知识库中各个应用的包名及分组信息,将正在使用
的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用正在使用。
一般情况下,进程清理分为前台手动清理和后台自动清理两种场景,更多的时候,需要后台自动清理进程,比如在电子设备黑屏的时候,启动自动进程清理。本发明实施例的使用状态判定模块不仅可以用作后台清理进程,而且可以用作用户手动清理进程时参考,方便用户根据需要有选择性的清理进程。
对于前台手动清理场景:所述进程管理模块,配置为开启前台进程清理功能;以及,在所述前台进程清理功能开启时,配置为在所述使用状态判定模块判定对应的功能项处于使用状态且所述进程正在运行,则标识所述进程为不清理的状态;对应的功能项不在使用状态时,则保持所述进程为默认状态;以及,配置为根据所述进程的状态手动清理进程;使用状态判定模块,配置为在所述前台进程清理功能开启时,列举所有能够实时检测的功能项,针对每个所述功能项判定其使用状态,过滤出正在使用的功能项,形成使用状态功能项列表;列举所有正在运行进程所对应应用的包名,根据所述应用的分组信息将所述应用与使用状态功能项列表中的功能项进行对比处理,确定所述应用对应的功能项是否在使用状态。这里,所述进程清理模块,还配置为在修改所述进程为不清理状态后,在所述进程的进程信息中给出提示以提醒用户。
对于后台自动清理场景:进程管理模块,配置为开启后台进程清理功能;以及,在所述后台进程清理功能开启时,配置为获取所有正在运行的进程及其应用的包名;以及,配置为在所述进程对应的网络缓存备份功能正在使用时,将所述进程加入到进程自动清理忽略列表,所述进程自动清理忽略列表中的进程在自动清理时将被忽略;以及,配置为根据所述进程自动清理忽略列表自动清理进程;使用状态判定模块,配置为在所述后台
进程清理功能开启时,根据应用的包名及分组信息,确定包含网络缓存备份功能项的应用并收集所述应用的进程列表;判断所述进程列表中每个进程对应的网络缓存备份功能是否正在使用。所述进程管理模块,配置为在检测到电子设备进入黑屏状态时,触发并开启所述后台进程清理功能。所述使用状态判定模块,具体配置为:获取所述进程对应的应用在规定时间内的流量变化值,判断所述流量变化值是否大于预设阈值,如果是,则表明所述应用的缓存备份功能正在使用;否则,表明所述应用的缓存备份功能不在使用状态。
本发明实施例的装置可以配置在电子设备中使用,所述电子设备包括上述清理进程的装置。实际应用中,电子设备可以是任何终端设备,如移动终端(手机、平板电脑、可穿戴设备等)、客户端(如柜员机等),不再一一赘述。
实施例三
本实施例针对通用场景下清理进程的具体实现过程进行详细说明。
如图3所示,具体可以包括如下步骤:
步骤301:预置各个应用的包名及其分组信息;
具体地,可以在电子设备中预先配置各个应用的包名及其对应的分组信息,可以以列表的形式配置。其中,分组信息用于描述应用的硬件及功能分类属性。例如,GPS芯片对应所有地图导航类应用,音频硬件对应所有听书、电台及音乐类的应用;使用流量的缓存下载类应用;使用LED的手电筒、录像类应用;使用蓝牙、红外的近场通信相关应用等。
步骤302:列举电子设备所有已安装应用的正在运行的进程;
这里,一般应用在申请相关权限后可以通过平台接口获取,将正在运行的进程以进程列表的形式保存或呈现。
步骤303:遍历进程列表;
步骤304:检测相关功能或硬件是否在使用;
例如,检测时,功能项可以包括音频功能(对应听书、电台、录音、音乐播放等)、流量缓存功能(对应视频缓存、软件下载、新闻缓存功能等)、导航功能(对应地图导航等)等等。实际应用,根据用户需求,还有电子设备本身的应用特性,可以对功能项再进行细分后实时监测,以做到精确判断,确保进程清理的准确性。
步骤305:根据进程所对应应用的分组信息,确定其功能项是否正在使用。
步骤306:如果应用对应的功能项正在使用,则该进程不清理,继续步骤307;如果应用对应的功能项不在使用状态,则继续步骤308;
例如,导航类应用的进程正在运行,同时其导航功能(GPS)也正在运行,则针对导航进程智能忽略清理。听书音乐电台类应用正在运行,同时音频正处于激活状态,则该进程智能忽略清理,否则转入步骤308;
步骤307:判断进程列表是否遍历完成,如果没有,返回步骤303,如果是,则结束整个流程;
步骤308:清理该进程,节约电子设备的内存和CPU占有率,又不影响用户使用。
实施例三
以下对前台手动清理场景下本发明实施例清理进程方法的具体实现做针对性的细化。如图4所示,前台清理进程的具体实现过程可以包括如下步骤;
步骤401:列举所有能够实时检测的功能项;
这里,查找当前电子设备中所有能够被实时检测使用状态的功能项,以列表的形式将查找的所有功能项列举出来。其中,功能项包括但不限于电子设备当前桌面功能,正在播放的音频功能,正在导航的地图功能等
等;
步骤402:针对每个功能项,通过平台提供的接口判定其使用状态;
实际应用中,如果电子设备的当前不支持这种判定功能,可以通过软件扩展的方式增加相应功能,具体实现过程可以基于相关技术实现,不再赘述。
步骤403:过滤出正在使用的功能项,形成使用状态功能项列表;
步骤404:列举所有正在运行进程所对应应用的包名;
步骤405:将应用与使用状态功能项列表进行对应处理,确定所述应用的功能项是否正在使用,如果是,执行步骤406,否则,执行步骤407;
具体地,根据应用的包名及分组信息,将应用和使用状态功能项列表中的功能项对应起来。
例如,对于地图应用,由于其分组信息中描述其功能项涉及导航,而导航功能处于使用状态,那么将导航功能与地图应用对应起来。
步骤406:如果对应的功能项处于使用状态,且当前应用所对应进程正在运行,则修改当前应用的进程为不清理状态,并给出相应的提示,执行步骤408;
例如,地图应用的进程正在运行,而导航功能也正在使用,则自动修改地图应用的进程为不清理状态,并在该进程信息上标示“正在导航”的提示信息,提醒用户该进程被清理可能导致导航功能停止;
步骤407:如果对应的功能项不在使用状态,则将当前应用的进程保持为默认状态;
例如,地图应用的进程正在运行,但是目前导航功能不在使用状态,则地图应用的进程按用户或系统预置的默认清理状态进行配置清理/不清理。
步骤408:判断是否所有进程都已处理完成,如果不是,则继续步骤
405,如果是,则继续步骤409;
步骤409:将清理状态的进程从正在进行的进程列表中清除,对于非清理状态的进程则忽略;
步骤410:结束所有流程。
如下表1所示,为前台手动清理场景下的进程列表示例。
应用 | 大小 | 使用状态 |
酷狗音乐 | 100M | 正在播放音乐 |
小米桌面 | 90M | 当前桌面 |
百度地图 | 80M | 正在导航 |
腾讯视频 | 70M | 正在缓存视频 |
*** | **M | 正在*** |
表1
实际应用中,可以预置一套常用应用的清理状态(受保护状态)和它们所对应的分类,主要分类有地图导航类,音乐电台听书类、网络备份恢复传输邮件类等等。
本发明实施例中,对于非功能性的应用进程可以按默认方式进行处理。前台自动清理进程实时性要求较高,适合检测那些较快速的鉴定功能,针对应用进程给出描述性的提示和缺省的清理状态。用户可以根据这些提示和缺省清理状态进行进程清理。
实施例四
以下对后台自动清理场景下本发明实施例清理进程方法的具体实现做针对性的细化。如图5所示,后台自动清理的实施过程主要可以包括如下步骤:
步骤501:电子设备系统进入黑屏,触发后台自动清理进程的流程;
步骤502:如果黑屏后自动清理进程的功能为开,则继续;否则直接
转到步骤511,结束所有流程;
步骤503:获取所有正在运行的进程及其应用的包名;
步骤504:根据系统预置的应用包名及分组信息,判断其是否属于“网络缓存备份”类应用;如果是继续下一步,如果否,则按现有技术处理;
步骤505:收集电子设备目前所有正在运行的“网络缓存备份”类应用的进程列表,记取当前时间,记下当前应用所耗的数据及wifi流量值;
步骤507:等待规定时间比如10秒钟,再一次记下当前应用所耗的数据及wifi流量值;
步骤508:将步骤505所述进程列表的每个进程在步骤507得到的流量值减去步骤506得到的流量值,得到所述规定时间段内当前应用所耗流量值;
步骤509:判断当前应用所耗流量值是否大于预设值,如果该流量值大于预设阀值如1M,则说明该应用在后台缓存数据,则将该应用的进程加入到进程自动清理忽略列表;
步骤510:清理进程,忽略“进程自动清理忽略列表”中的进程;
步骤511:流程结束。
后台自动清理的优势在于对实时性要求不高,所以可以做一些比较耗时的功能检测,比如后台在缓存数据的功能检测,可能需要检测在10秒甚至更长的时间范围哪些应用在消耗流量(数据流量或wifi),然后供清理进程时参考。
本发明实施例,在电子设备加速的过程中,不管是前台还是后台,都可以较为智能的进行进程清理,既避免了用户不会设置进程白名单痛苦,又避免了用户频繁修改进程白名单的麻烦。并且,通过本发明实施例还可以有效的避免“误杀”进程,能够基于电子设备的使用状态动态调整进程
的清理状态,克服了现有方案过分依赖“白名单”的弊端。
本发明实施例中提出的清理进程的装置中的应用分类知识库可以由存储器实现,进程管理模块、使用状态判定模块和受保护名单控制模块都可以通过处理器来实现,当然也可通过具体的逻辑电路实现;其中所述处理器电子设备上的服务器,在实际应用中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。
本发明实施例中,如果以软件功能模块的形式实现上述清理进程的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述清理进程的方法。
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
Claims (17)
- 一种清理进程的方法,包括:获取所有应用的运行进程;监测当前各个应用的进程使用状态,将有功能项正在使用的应用确定为当前需要临时保护的应用;清理进程,并在清理时将所述需要临时保护的应用的进程保留。
- 根据权利要求1所述的方法,其中,所述方法还包括:预置各个应用的包名和分组信息,所述分组信息对应于所述应用的硬件及功能分类属性;所述监测当前各个应用的进程使用状态,将有功能项正在使用的应用确定为当前需要临时保护的应用,包括:检测当前正在使用的功能项;根据各个应用的包名及分组信息,将正在使用的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用需要临时受保护。
- 根据权利要求1所述的方法,其中,所述方法还包括:配置应用的受保护名单;所述清理进程,并在清理时将所述需要临时保护的应用的进程保留,具体为:将所述受保护名单对应的进程以及所述需要临时保护的应用的进程保留,清理其他进程。
- 根据权利要求2或3所述的方法,其中,前台进程清理功能开启时,所述方法包括:列举所有能够检测当前在用的功能项,针对每个所述功能项判定其使用状态,过滤出正在使用的功能项,形成使用状态功能项列表;列举所有正在运行进程所对应应用的包名,根据所述应用的分组信息 将所述应用与使用状态功能项列表中的功能项进行对比处理,确定所述应用对应的功能项是否在使用状态;对应的功能项处于使用状态且所述进程正在运行,则标识所述进程为不清理的状态;对应的功能项不在使用状态时,则保持所述进程为默认状态;手动清理进程,并在清理时将标识为不清理的进程保留。
- 根据权利要求4所述的方法,其中,所述方法还包括:在修改所述进程为不清理状态后,在所述进程的进程信息中给出提示以提醒用户。
- 根据权利要求2或3所述的方法,其中,在后台进程清理功能开启时,所述方法包括:获取所有正在运行的进程及其应用的包名;根据应用的包名及分组信息,确定包含网络缓存备份功能项的应用并收集所述应用的进程列表;判断所述进程列表中每个进程对应的网络缓存备份功能是否正在使用,如果是,则将所述进程加入到进程自动清理忽略列表,所述进程自动清理忽略列表中的进程在自动清理时将被忽略;自动清理进程,在清理时将所述进程自动清理忽略列表中对应的进程保留。
- 根据权利要求6所述的方法,其中,所述方法还包括:检测到电子设备进入黑屏状态时,触发所述后台进程清理功能。
- 根据权利要求6所述的方法,其中,判断所述进程列表中每个进程的网络缓存备份功能是否正在使用,包括:获取所述进程对应的应用在规定时间内的流量变化值,判断所述流量变化值是否大于预设阈值,如果是,则表明所述应用的缓存备份功能正在使用;否则,表明所述应用的缓存备份功能不在使用状态。
- 一种清理进程的装置,所述装置包括:进程管理模块、使用状态判定模块;其中,所述使用状态判定模块,配置为监测当前各个应用的进程使用状态,确定当前需要临时保护的应用;所述进程管理模块,配置为获取所有应用的运行进程;以及,配置为清理进程,并在清理时将所述使用状态判定模块确定的需要临时保护的应用的进程保留。
- 根据权利要求9所述的装置,其中,所述装置还包括:应用分类知识库,配置为预置并保存各个应用的包名及分组信息,所述分组信息用于描述应用的硬件及功能分类属性;所述使用状态判定模块,配置为检测当前正在使用的功能项;根据所述应用分类知识库中各个应用的包名及分组信息,将正在使用的功能项与各个应用进行对比处理,如果应用的任何一个、两个或多个功能项正在使用,则确定所述应用正在使用。
- 根据权利要求9所述的装置,其中,所述装置还包括:受保护名单控制模块,配置为配置并维护应用的受保护名单;所述进程管理模块,配置为将所述受保护名单对应的进程以及所述需要临时保护的应用的进程保留,清理其他进程。
- 根据权利要求9所述的装置,其中,所述进程管理模块,还配置为开启前台进程清理功能;以及,在所述前台进程清理功能开启时,配置为在所述使用状态判定模块判定对应的功能项处于使用状态且所述进程正在运行,则标识所述进程为不清理的状态;对应的功能项不在使用状态时,则保持所述进程为默认状态;以及,配置为根据所述进程的状态手动清理进程;使用状态判定模块,配置为在所述前台进程清理功能开启时,列举所有能够实时检测的功能项,针对每个所述功能项判定其使用状态,过滤出正在使用的功能项,形成使用状态功能项列表;列举所有正在运行进程所对应应用的包名,根据所述应用的分组信息将所述应用与使用状态功能项列表中的功能项进行对比处理,确定所述应用对应的功能项是否在使用状态。
- 根据权利要求12所述的装置,其中,所述进程清理模块,还配置为在修改所述进程为不清理状态后,在所述进程的进程信息中给出提示以提醒用户。
- 根据权利要求9所述的装置,其中,进程管理模块,还配置为开启后台进程清理功能;以及,在所述后台进程清理功能开启时,配置为获取所有正在运行的进程及其应用的包名;以及,配置为在所述进程对应的网络缓存备份功能正在使用时,将所述进程加入到进程自动清理忽略列表,所述进程自动清理忽略列表中的进程在自动清理时将被忽略;以及,配置为根据所述进程自动清理忽略列表自动清理进程;使用状态判定模块,配置为在所述后台进程清理功能开启时,根据应用的包名及分组信息,确定包含网络缓存备份功能项的应用并收集所述应用的进程列表;判断所述进程列表中每个进程对应的网络缓存备份功能是否正在使用。
- 根据权利要求14所述的装置,其中,所述进程管理模块,配置为在检测到电子设备进入黑屏状态时,触发并开启所述后台进程清理功能。
- 根据权利要求14所述的装置,其中,所述使用状态判定模块,配置为:获取所述进程对应的应用在规定时间内的流量变化值,判断所述流量变化值是否大于预设阈值,如果是,则表明所述应用的缓存备份功能正 在使用;否则,表明所述应用的缓存备份功能不在使用状态。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至8任一项所述的清理进程的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP16898510.9A EP3444721A4 (en) | 2016-04-14 | 2016-12-06 | METHOD AND APPARATUS FOR DELETING A PROCESS AND STORAGE MEDIUM |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610232104.4A CN107301059A (zh) | 2016-04-14 | 2016-04-14 | 一种清理进程的方法及装置 |
CN201610232104.4 | 2016-04-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017177698A1 true WO2017177698A1 (zh) | 2017-10-19 |
Family
ID=60041324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/108722 WO2017177698A1 (zh) | 2016-04-14 | 2016-12-06 | 一种清理进程的方法、装置及存储介质 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3444721A4 (zh) |
CN (1) | CN107301059A (zh) |
WO (1) | WO2017177698A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861812A (zh) * | 2017-10-30 | 2018-03-30 | 江西博瑞彤芸科技有限公司 | 一种内存清理方法 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304263A (zh) * | 2018-01-18 | 2018-07-20 | 硕诺科技(深圳)有限公司 | 一种操作系统后台进程查杀方法、系统及存储装置 |
CN114296907A (zh) * | 2020-09-21 | 2022-04-08 | 华为技术有限公司 | 进程管控的方法和装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530235A (zh) * | 2013-10-18 | 2014-01-22 | 北京奇虎科技有限公司 | 移动终端中清理内存的方法及装置 |
US8656478B1 (en) * | 2008-07-15 | 2014-02-18 | Zscaler, Inc. | String based detection of proxy communications |
CN104142844A (zh) * | 2014-08-18 | 2014-11-12 | 广东欧珀移动通信有限公司 | 一种清理移动终端进程的方法及装置 |
CN105138381A (zh) * | 2015-09-21 | 2015-12-09 | 北京奇虎科技有限公司 | 移动终端自启进程的清理方法及装置 |
CN105159770A (zh) * | 2015-09-21 | 2015-12-16 | 天脉聚源(北京)传媒科技有限公司 | 一种进程的管理方法及装置 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152740B (zh) * | 2011-01-04 | 2016-05-18 | 北京奇虎科技有限公司 | 一种用于移动终端的防监听方法及系统 |
US8578394B2 (en) * | 2011-09-09 | 2013-11-05 | Microsoft Corporation | Exempting applications from suspension |
CN103914342A (zh) * | 2013-01-06 | 2014-07-09 | 联想(北京)有限公司 | 一种电子设备程序控制方法、系统及电子设备 |
CN104778031A (zh) * | 2014-01-09 | 2015-07-15 | 腾讯科技(深圳)有限公司 | 进程清理方法和装置 |
CN105468441A (zh) * | 2014-08-28 | 2016-04-06 | 中兴通讯股份有限公司 | 任务进程的处理方法及装置 |
CN104238882A (zh) * | 2014-09-10 | 2014-12-24 | 北京金山安全软件有限公司 | 通知栏的管理方法、装置及移动终端 |
-
2016
- 2016-04-14 CN CN201610232104.4A patent/CN107301059A/zh active Pending
- 2016-12-06 EP EP16898510.9A patent/EP3444721A4/en not_active Withdrawn
- 2016-12-06 WO PCT/CN2016/108722 patent/WO2017177698A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8656478B1 (en) * | 2008-07-15 | 2014-02-18 | Zscaler, Inc. | String based detection of proxy communications |
CN103530235A (zh) * | 2013-10-18 | 2014-01-22 | 北京奇虎科技有限公司 | 移动终端中清理内存的方法及装置 |
CN104142844A (zh) * | 2014-08-18 | 2014-11-12 | 广东欧珀移动通信有限公司 | 一种清理移动终端进程的方法及装置 |
CN105138381A (zh) * | 2015-09-21 | 2015-12-09 | 北京奇虎科技有限公司 | 移动终端自启进程的清理方法及装置 |
CN105159770A (zh) * | 2015-09-21 | 2015-12-16 | 天脉聚源(北京)传媒科技有限公司 | 一种进程的管理方法及装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3444721A4 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861812A (zh) * | 2017-10-30 | 2018-03-30 | 江西博瑞彤芸科技有限公司 | 一种内存清理方法 |
CN107861812B (zh) * | 2017-10-30 | 2022-01-11 | 北京博瑞彤芸科技股份有限公司 | 一种内存清理方法 |
Also Published As
Publication number | Publication date |
---|---|
EP3444721A1 (en) | 2019-02-20 |
EP3444721A4 (en) | 2019-12-25 |
CN107301059A (zh) | 2017-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10509842B2 (en) | Method and device for refreshing news list | |
WO2017177698A1 (zh) | 一种清理进程的方法、装置及存储介质 | |
US8345891B2 (en) | Intelligent selective system mute | |
US10482276B2 (en) | User permission allocation method and device | |
WO2019085642A1 (zh) | 勿扰模式的实现方法与设备 | |
KR20060129873A (ko) | 휴대단말기의 메모리 정리 방법 | |
CN104199784B (zh) | 一种基于分级存储的数据迁移方法及装置 | |
US9015841B2 (en) | Method and apparatus for virus scanning | |
WO2017020781A1 (zh) | 省电处理方法、装置、移动终端和云端服务器 | |
WO2016183918A1 (zh) | 存储空间处理方法及装置 | |
WO2017096771A1 (zh) | 应用缓存数据的存储控制方法及装置 | |
CN103246568A (zh) | 一种通过手机设置应用优先级的方法和装置 | |
WO2017067476A1 (zh) | Mac地址处理方法及装置 | |
US20180239839A1 (en) | Method and Apparatus for Identifying To-Be-Cleaned Data, and Electronic Device | |
TW201621623A (zh) | 內存清理系統、方法及終端設備 | |
US20170235812A1 (en) | Automated aggregation of social contact groups | |
WO2019062419A1 (zh) | 应用清理方法、装置、存储介质及电子设备 | |
WO2016000545A1 (zh) | 图片类垃圾文件的识别方法、装置和电子设备 | |
WO2016145804A1 (zh) | 一种数据处理和装置 | |
CN106844236A (zh) | 终端设备的数据存储方法和装置 | |
CN104199708A (zh) | 一种系统清理方法、设备和移动终端 | |
US10291740B2 (en) | Method and apparatus for determining application to be recommended | |
WO2021068515A1 (zh) | 存储系统中数据管理方法和装置 | |
CN110968483A (zh) | 业务数据采集方法、装置及电子设备 | |
CN108536512B (zh) | 界面切换方法、装置及终端设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2016898510 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2016898510 Country of ref document: EP Effective date: 20181114 |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16898510 Country of ref document: EP Kind code of ref document: A1 |