WO2019036913A1 - 电子终端的存储空间清理方法与电子终端 - Google Patents

电子终端的存储空间清理方法与电子终端 Download PDF

Info

Publication number
WO2019036913A1
WO2019036913A1 PCT/CN2017/098545 CN2017098545W WO2019036913A1 WO 2019036913 A1 WO2019036913 A1 WO 2019036913A1 CN 2017098545 W CN2017098545 W CN 2017098545W WO 2019036913 A1 WO2019036913 A1 WO 2019036913A1
Authority
WO
WIPO (PCT)
Prior art keywords
applications
cleaning
storage space
preset
electronic terminal
Prior art date
Application number
PCT/CN2017/098545
Other languages
English (en)
French (fr)
Inventor
纪廷廷
Original Assignee
深圳传音通讯有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to CN201780096167.4A priority Critical patent/CN111247504A/zh
Priority to PCT/CN2017/098545 priority patent/WO2019036913A1/zh
Publication of WO2019036913A1 publication Critical patent/WO2019036913A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials

Definitions

  • the present invention relates to an electronic terminal, and in particular to a storage space cleaning method and an electronic terminal of an electronic terminal.
  • An electronic terminal can be understood as a terminal having a processor and a memory.
  • the processor reads the code in the memory and can perform corresponding functions. Specifically, the operating system and the application under the operating system can be run. Data is stored in memory during the run.
  • the storage space of the electronic terminal is limited. Once the storage space is occupied too much, it will affect the storage of other data and the normal operation of the system.
  • the electronic terminal outputs the prompt and the storage space usage when the storage space is small, and further instructs the user to start the application to perform the cleaning operation, and cleans up with corresponding data.
  • the cleaning method is cumbersome and the user experience is poor. .
  • the invention provides a storage space cleaning method and an electronic terminal of an electronic terminal, so as to solve the technical problem that the cleaning method is relatively cumbersome and the user experience is not good.
  • a storage space cleaning method for an electronic terminal including:
  • N is an integer greater than or equal to 1.
  • the cleaning, for the storage data of the N applications in the preset program list includes:
  • the determining the clearing priorities of the N applications includes:
  • the determining the clearing priorities of the N applications includes:
  • the usage statistics parameter includes at least one of the following:
  • the usage statistics parameter is a statistical parameter used by the corresponding application to run in the foreground.
  • the determining the clearing priority of the N applications includes:
  • the clearing priorities of different applications belonging to different program categories are determined.
  • the first preset value is the same as the second preset value.
  • the method before the cleaning the stored information of the application in the preset program list, the method further includes:
  • an electronic terminal comprising:
  • a detecting module configured to detect that the remaining storage space is smaller than the first preset value
  • the cleaning module is configured to clean the stored data of the N applications in the preset program list; wherein N is an integer greater than or equal to 1.
  • an electronic terminal comprising: a memory, a processor, and a computer program, wherein the computer program is stored in the memory, the processor running the computer program to implement the first aspect and The first aspect of the various possible methods of designing the method.
  • a storage medium comprising: a readable storage medium and a computer program for implementing the method of the first aspect and various possible designs of the first aspect.
  • the storage space cleaning method and the electronic terminal of the electronic terminal provided by the present invention detect the remaining storage space The time is smaller than the first preset value, and the timing of the storage space cleaning is determined. At the same time, the storage data of the N applications in the preset program list is cleaned, thereby automatically cleaning the storage space, and since only the pre-cleaning is performed Setting the stored data of the application in the program list reduces the impact of cleanup on system and program operations.
  • FIG. 1 is a schematic diagram of an application scenario of the present invention
  • FIG. 2 is a schematic flow chart 1 of a method for cleaning a storage space of an electronic terminal according to the present invention
  • FIG. 3 is a second schematic flowchart of a method for cleaning a storage space of an electronic terminal according to the present invention.
  • step S23 in FIG. 3 is a schematic flow chart of step S23 in FIG. 3;
  • FIG. 5 is a schematic diagram 1 of an interface of a setting interface of an electronic terminal according to the present invention.
  • FIG. 6 is a second schematic diagram of an interface of a setting interface of an electronic terminal according to the present invention.
  • Figure 7 is a schematic structural view 1 of an electronic terminal of the present invention.
  • FIG. 8 is a second schematic structural diagram of an electronic terminal according to the present invention.
  • FIG. 9 is a third schematic structural diagram of an electronic terminal according to the present invention.
  • the electronic terminal can include a processor and a memory.
  • the processor can read the code in the memory, run the operating system, and the application under the operating system. Data is stored in memory during the run.
  • FIG. 2 is a schematic flowchart 1 of a method for cleaning a storage space of an electronic terminal according to the present invention. please refer to FIG. 2 The methods described include:
  • the storage space can be understood as the space in the memory for storing data, and the storage space can be understood by referring to the common sense in the field. Among them, the remaining storage space can also be understood as available storage space.
  • the first preset value can be a value set by any person.
  • S12 Clean the stored data of the N applications in the preset program list; where N is an integer greater than or equal to 1.
  • a list of preset programs which can be a preset list of applications determined by the user through interaction settings.
  • the terminal may determine the application in the list through the user's selection, or determine the application outside the list through the user's selection, and then use the application that is not selected by the user as the application in the preset program list.
  • the storage space cleaning method of the electronic terminal determines the timing of the storage space cleaning by detecting that the remaining storage space is smaller than the first preset value, and also passes the N applications in the preset program list.
  • the storage data is cleaned up, and the automatic cleaning of the storage space is realized, and since only the storage data of the application in the preset program list is cleaned, the impact of the cleaning on the system and the program operation is reduced.
  • FIG. 3 is a schematic flowchart 2 of a method for cleaning a storage space of an electronic terminal according to the present invention; referring to FIG. 3, the method includes:
  • the storage space can be understood as the space in the memory for storing data, and the storage space can be understood by referring to the common sense in the field. Among them, the remaining storage space can also be understood as available storage space.
  • the first preset value can be a value set by any person. Through the detection of the first preset value, the detection of the currently available storage space can be realized, and based on the detection, the trigger of the storage data cleaning can be implemented. Compared with the related related art, the embodiment can implement automatic cleaning of the storage space.
  • S23 Clean the stored data of the N applications in the preset program list; where N is an integer greater than or equal to 1.
  • a list of preset programs which can be a preset list of applications determined by the user through interaction settings.
  • the terminal may determine the application in the list through the user's selection, or determine the application outside the list through the user's selection, and then use the application that is not selected by the user as the application in the preset program list.
  • FIG. 5 is a schematic diagram 1 of an interface of a setting interface of an electronic terminal according to the present invention; referring to FIG. 5, the user can determine whether the corresponding application is automatically cleaned by clicking or sliding the selection in the column. When “Yes” is selected, it can be understood that the corresponding application is selected to be determined as an application in the preset list. Taking FIG. 5 as an example, the application b and the application in the preset list of the application d only clean up the data of the application b and the application d when performing the cleaning.
  • the threshold of the space cleaning can also be set through the interaction interface. As shown in FIG. 5, the available space cleaning threshold can be determined by sliding the slider, and the available space cleaning threshold can be understood as the first preset value. In other alternative embodiments, the determination of the spatial cleanup threshold can also be achieved by digital input.
  • the application in the preset list and the first preset value can be determined quickly and efficiently.
  • the electronic terminal After exiting the setting interface, the electronic terminal can automatically implement automatic cleaning based on the above selected application and the first preset value.
  • step S23 may include:
  • S232 Clean the storage data of the N applications in sequence according to the cleaning priority, until the remaining storage space is greater than a second preset value.
  • Clearing the priority can be understood as the order in which the data of different applications is cleaned when the remaining storage space is not greater than the second preset value. Specifically, the stored data of the application after the priority disaster is cleaned only when the storage data of the application with the prioritization is cleaned up.
  • the second preset value may be any preset value greater than or equal to the first preset value. In one embodiment, the second preset value may be the same as the first preset value.
  • the determining the clearing priority of the N applications may include:
  • the user's degree of dependence or preference for different applications can be more accurately reflected, and based on the cleaned-up priorities achieved, the user's preferences or needs can be more closely matched.
  • the above embodiment is mainly for an application running in the background, if the background running time is long, it can be understood that it is idle for a long time, so compared with an application running in the background for a short time, Applications that have a long run time in the background are less likely to be used, so data from applications that have been running in the background for a long time can be processed first.
  • step S231 Can include:
  • the first period can be a preset arbitrary period parameter. In the specific implementation process, the first period can be enumerated as one month.
  • usage statistics parameter may be a statistical parameter used by the corresponding application in a manner that is run in the foreground.
  • the quantified data can be used to characterize the usage of the application level. According to the usage, the user's dependence or preference on different applications can be more accurately reflected. Based on the cleanup priority achieved by this, Meet the user's preferences or needs.
  • the statistical parameters can be enumerated to include at least one of the following: usage frequency; recent usage time, and cumulative usage time.
  • usage frequency a parameter that specifies the frequency of use, the time of recent use, and the length of accumulated usage.
  • the use of the statistical parameter includes only the frequency of use; the usage statistical parameter includes only the most recently used time; the usage statistical parameter includes only the cumulative usage duration; the usage statistical parameter includes both the usage frequency and the most recently used time;
  • the parameters include both the frequency of use and the cumulative usage time; the usage statistics include both the most recently used time and the cumulative usage time, and the usage statistics include both the frequency of use, the time of the most recent usage, and the cumulative usage time.
  • the different types of parameters may have different parameter priorities, and specifically, according to the size of the usage statistics parameters of the L applications in the first period.
  • the clearing priorities of the L applications may include:
  • the cleaning priority of the multiple applications is determined according to the size of the second type of parameters, wherein the first type of parameters and the second type of parameters are different types of usage statistical parameters. And the parameters of the first type of parameters have higher priority than the second type of parameters.
  • the first type of parameters and the second type of parameters can be understood as two types of parameters that characterize the priority of adjacent parameters.
  • the cleaning priority level cannot be determined by the two types of parameters. It is also possible to determine the cleanup priorities of multiple applications by repeating the above steps multiple times.
  • the priority of the parameter is higher than the cumulative usage time, then: compare the usage frequency of each application to determine the cleaning priority. If multiple applications are used at the same frequency, you can further compare the cumulative usage time of multiple applications. Determine their cleanup priorities.
  • the parameter of the most recently used time has a higher priority than the accumulated usage time.
  • the determining the clearing priority of the N applications may include:
  • the clearing priorities of different applications belonging to different program categories are determined.
  • the program category can be any preset category, which can be confirmed by the default classification method, or can be confirmed by the artificially set classification manner, and different program categories have different preset category order.
  • Program categories can be listed including social, business, and sports. For example, if the first application belongs to the social class, the second application and the third application belong to the business class, the fourth application belongs to the sports class, and the social class order is higher than the business class, the business class. The order of the categories is higher than that of the sports class; then the cleaning priority of the first application is higher than that of the second application and the third application, and the cleaning priority of the second application and the third application is higher than the fourth application;
  • the cleanup priority of the second application and the second application may be the same. In the specific implementation process, for the same cleanup priority application, the cleanup priority may be further determined by other alternatives.
  • FIG. 6 is a second schematic diagram of an interface of a setting interface of an electronic terminal according to the present invention. Please refer to 6. After selecting "Yes" in the Custom Category Order column, you can customize the priority of different program categories by dragging different preset categories.
  • each category by clicking the edit button of each category, the name of each program category and the application in it can be further set, and the corresponding program category can be deleted by clicking the delete button, or by adding a class. Do not button, add a new program category.
  • different program categories can be used as a criterion for distinguishing the cleanup priorities.
  • the method can be generally applied to various applications, and the categories can be any categories preset by humans, and can be arbitrarily set in the specific implementation process.
  • the program category can be based on the properties of the program itself, or not based on the properties of the program itself.
  • the application range of the method is effectively expanded.
  • this embodiment can be combined with any other prioritized approach without creating a conflict.
  • the M applications, the L applications, and the applications under the K program categories only indicate that the logic for determining the cleanup priority is different, and does not indicate that it is a different application, which may actually be N applications. Any application selected in the program.
  • the length of time running in the background, the usage statistics, and the program category can be understood as different logics for determining the cleanup priority. Those skilled in the art can select one of the logics to determine the cleanup priority of the application, or select at least two of them. The logic determines the cleanup priorities of the application.
  • the logical priorities of the different logics can be distinguished, and then different logics are used according to different logical priorities. For example, if you select the length of the background running, and the logic of the program category, and the logical priority of the program category is higher than the running time of the background, only the cleaning of multiple applications is determined according to the logic of the program category. When the priorities are the same, the time of background running is used to further determine the cleaning priority of the same multiple applications.
  • different weighting values may be determined for different logics, and then the priority order determined by different logics is taken as a sub-priority order, and each sub-priority order is multiplied by a corresponding weighting value and then added, which can be calculated.
  • the priority values for each application are obtained, and finally the priorities of the final different applications are determined based on the priority values.
  • the diversity of the cleaning priority order can be effectively improved to meet more kinds of requirements, and the cleaning priority is more closely related to the user's preferences and habits.
  • the storage space cleaning method of the electronic terminal determines the timing of the storage space cleaning by detecting that the remaining storage space is smaller than the first preset value, and also passes the N applications in the preset program list.
  • the storage data is cleaned up, and the automatic cleaning of the storage space is realized, and since only the storage data of the application in the preset program list is cleaned, the impact of the cleaning on the system and the program operation is reduced.
  • FIG. 7 is a schematic structural diagram 1 of an electronic terminal according to the present invention. referring to FIG. 7, the electronic terminal includes:
  • the detecting module 301 is configured to detect that the remaining storage space is smaller than the first preset value
  • the cleaning module 302 is configured to clean the stored data of the N applications in the preset program list; where N is an integer greater than or equal to 1.
  • the electronic terminal provided by the embodiment determines the timing of the storage space cleaning by detecting that the remaining storage space is smaller than the first preset value, and also clears the storage data of the N applications in the preset program list.
  • the automatic cleaning of the storage space is realized, and since only the storage data of the application in the preset program list is cleaned, the impact of the cleaning on the system and the running of the program is reduced.
  • FIG. 8 is a schematic structural diagram 2 of an electronic terminal according to the present invention. referring to FIG. 8, the electronic terminal includes:
  • the detecting module 401 is configured to detect that the remaining storage space is smaller than the first preset value
  • the cleaning module 403 is configured to clean the stored data of the N applications in the preset program list; wherein N is an integer greater than or equal to 1.
  • the cleaning module 403 is specifically configured to:
  • the cleaning module 403 is specifically configured to:
  • the cleaning module 403 is specifically configured to:
  • the usage statistics parameter includes at least one of the following:
  • the usage statistics parameter is a statistical parameter used by the corresponding application in a manner that is run in the foreground. number.
  • the cleaning module 403 is specifically configured to:
  • the clearing priorities of different applications belonging to different program categories are determined.
  • the first preset value is the same as the second preset value.
  • the terminal further includes:
  • the confirmation module 402 is configured to confirm that the N applications are currently running in the background or not running.
  • the electronic terminal provided by the embodiment determines the timing of the storage space cleaning by detecting that the remaining storage space is smaller than the first preset value, and also clears the storage data of the N applications in the preset program list.
  • the automatic cleaning of the storage space is realized, and since only the storage data of the application in the preset program list is cleaned, the impact of the cleaning on the system and the running of the program is reduced.
  • FIG. 9 is a schematic structural diagram 3 of an electronic terminal according to the present invention.
  • the electronic terminal 50 includes: a processor 51 and a memory 52; wherein:
  • the memory 52 is configured to store a computer program, and the memory may also be a flash memory.
  • the processor 51 is configured to execute an execution instruction of the memory storage to implement each step in the above method. For details, refer to the related description in the foregoing method embodiments.
  • the memory 52 can be either stand-alone or integrated with the processor 51.
  • the electronic terminal 50 may further include:
  • a bus 53 is provided for connecting the memory 52 and the processor 51.
  • the embodiment provides a readable storage medium.
  • the readable storage medium stores execution instructions.
  • the electronic terminal executes the methods provided by the various embodiments described above.
  • the embodiment provides a program product including an execution instruction stored in a readable storage medium.
  • At least one processor of the electronic terminal can read the execution instructions from a readable storage medium, and the at least one processor executes the execution instructions such that the electronic terminal implements the methods provided by the various embodiments described above.
  • the electronic terminal provided in this embodiment determines that the remaining storage space is smaller than the first preset value.
  • the timing of the storage space cleaning, at the same time, through the cleaning of the storage data of the N applications in the preset program list, the automatic cleaning of the storage space is realized, and only the storage data of the application in the preset program list is cleaned up. Reduces the impact of cleanup on system and program operations.

Abstract

一种电子终端的存储空间清理方法与电子终端,包括:检测到剩余存储空间小于第一预设值(S11);对预设程序名单中的N个应用程序的存储数据进行清理(S12);其中,N为大于或等于1的整数。该方案通过检测到剩余存储空间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。

Description

电子终端的存储空间清理方法与电子终端 技术领域
本申请涉及一种电子终端,尤其涉及一种电子终端的存储空间清理方法与电子终端。
背景技术
电子终端,可以理解为具有处理器和存储器的终端,处理器读取存储器中的代码,可以执行相应的功能,具体的,可以运行操作系统,以及操作系统下的应用程序。在运行过程中,会在存储器中存储数据。
然而,电子终端的存储空间有限,一旦存储空间占用过多,会影响其他数据的存储,以及系统的正常运行。
现有的相关技术中,电子终端在存储空间较小时输出提示以及存储空间使用情况,进而可以指示用户启动应用程序实施清理操作,以相应的数据进行清理,该清理方式比较繁琐,用户体验不佳。
发明内容
本发明提供了一种电子终端的存储空间清理方法与电子终端,以解决清理方式比较繁琐,用户体验不佳的技术问题。
根据本发明的第一方面,提供了一种电子终端的存储空间清理方法,包括:
检测到剩余存储空间小于第一预设值;
对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
可选的,所述对预设程序名单中的N个应用程序的存储数据进行清理,包括:
确定所述N个应用程序的清理优先次序;
根据所述清理优先次序依次清理所述N个应用程序的存储数据,直至所述剩余存储空间大于第二预设值。
可选的,若所述N个应用程序中包括在后台运行的M个应用程序,则:所述确定所述N个应用程序的清理优先次序,包括:
根据所述M个应用程序在后台运行的时间的长短,确定所述M个应用程序的清理优先次序,其中,M为大于或等于1,且小于或等于N的整数。
可选的,若所述N个应用程序中包括预设第一期间内被使用过的L个应用程序,则:所述确定所述N个应用程序的清理优先次序,包括:
根据所述L个应用程序在所述第一期间内的使用统计参数的大小,确定所述L个应用程序的清理优先次序,其中L为大于或等于1,且小于或等于N的整数。
可选的,所述使用统计参数包括以下至少之一:
使用频率;
最近使用时间;
累积使用时长。
可选的,所述使用统计参数为对应的应用程序以前台运行的方式被使用的统计参数。
可选的,所述确定所述N个应用程序的清理优先次序,包括:
根据预设的K个程序类别,确定所述N个应用程序中每个应用程序所属的程序类别;
根据所述K个程序类别的预设类别次序,确定分别属于不同程序类别的不同应用程序的清理优先次序。
可选的,所述第一预设值与所述第二预设值相同。
可选的,所述对预设程序名单中的应用程序的存储信息进行清理之前,还包括:
确认所述N个应用程序当下在后台运行或未运行。
根据本发明的第二方面,提供了一种电子终端,包括:
检测模块,用于检测到剩余存储空间小于第一预设值;
清理模块,用于对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
根据本发明的第三发明,提供了一种电子终端,包括:存储器、处理器以及计算机程序,所述计算机程序存储在所述存储器中,所述处理器运行所述计算机程序实现第一方面及第一方面各种可能的设计所述的方法。
根据本发明的第四方面,提供了一种存储介质,包括:可读存储介质和计算机程序,所述计算机程序用于实现第一方面及第一方面各种可能的设计所述的方法。
本发明提供的电子终端的存储空间清理方法与电子终端,通过检测到剩余存储空 间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明应用场景的示意图;
图2是本发明一电子终端的存储空间清理方法的流程示意图一;
图3是本发明一电子终端的存储空间清理方法的流程示意图二;
图4是图3中步骤S23的流程示意图;
图5是本发明一电子终端的设置界面的界面示意图一;
图6是本发明一电子终端的设置界面的界面示意图二;
图7是本发明一电子终端的结构示意图一;
图8是本发明一电子终端的结构示意图二;
图9是本发明一电子终端的结构示意图三。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1是本发明应用场景的示意图,电子终端可以包括处理器与存储器,处理器可以读取存储器中的代码,运行操作系统,以及操作系统下的应用程序。在运行过程中,会在存储器中存储数据。
实施例1
图2是本发明一电子终端的存储空间清理方法的流程示意图一;请参考图2,所 述的方法包括:
S11:检测到剩余存储空间小于第一预设值。
存储空间,可以理解为存储器中用以存储数据的空间,可以参照领域内的常识对存储空间进行理解。其中,剩余存储空间,也可以理解为可用存储空间。第一预设值,可以为任意人为设置的数值。
S12:对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
预设程序名单,可以为用户通过交互设置确定的应用程序的预设名单。具体实施过程中,终端可以通过用户的选择确定名单中的应用程序,也可以通过用户的选择确定名单外的应用程序,进而将用户未选择的应用程序作为预设程序名单中的应用程序。
本实施例提供的电子终端的存储空间清理方法,通过检测到剩余存储空间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
实施例2
图3是本发明一电子终端的存储空间清理方法的流程示意图二;请参考图3,所述方法,包括:
S21:检测到剩余存储空间小于第一预设值。
存储空间,可以理解为存储器中用以存储数据的空间,可以参照领域内的常识对存储空间进行理解。其中,剩余存储空间,也可以理解为可用存储空间。
第一预设值,可以为任意人为设置的数值。通过第一预设值的检测,可以实现当前可用存储空间的检测,基于检测,可以实现存储数据清理的触发。相较于现有的相关技术,本实施例可以实现存储空间的自动清理。
S22:确认所述N个应用程序当下在后台运行或未运行。通过该实施方式,可以避免数据清理对当下前台运行的应用程序的运行产生冲突。
S23:对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
预设程序名单,可以为用户通过交互设置确定的应用程序的预设名单。具体实施过程中,终端可以通过用户的选择确定名单中的应用程序,也可以通过用户的选择确定名单外的应用程序,进而将用户未选择的应用程序作为预设程序名单中的应用程序。
图5是本发明一电子终端的设置界面的界面示意图一;请参考图5,可以用户对是否自动清理一栏中的点击或滑动选择,确定对应的应用程序是否配置为可自动清理,具体的,当选择“是”时,可以理解为对应的应用程序被选择确定为预设名单中的应用程序。以图5为例,应用程序b与应用程序d预设名单中的应用程序,在进行清理的时候仅对应用程序b与应用程序d的数据进行清理。同时,请参考图5,还可以通过交互界面设置空间清理的阈值,以图5为例,可以通过滑动滑块确定可用空间清理阈值,该可用空间清理阈值可以理解为第一预设值。在其他可选实施方式中,也可以通过数字的输入实现空间清理阈值的确定。
通过以上实施方式,可以快捷、高效地确定预设名单中的应用程序,以及第一预设值。退出设置界面后,电子终端可以自动实现基于以上所选应用程序和第一预设值的自动清理。
图4是图3中步骤S23的流程示意图;请参考图4,步骤S23可以包括:
S231:确定所述N个应用程序的清理优先次序。
S232:根据所述清理优先次序依次清理所述N个应用程序的存储数据,直至所述剩余存储空间大于第二预设值。
清理优先次序,可以理解为:当剩余存储空间未大于第二预设值的情况下,清理不同应用程序的数据时的先后次序。具体可以为:仅当优先次序在先的应用程序的存储数据清理完毕,才清理优先次序灾后的应用程序的存储数据。
第二预设值,可以为预设的任意大于或等于第一预设值的数值。其中一种实施方式中,第二预设值可以与第一预设值相同。
其中一种实施方式中,若所述N个应用程序中包括在后台运行的M个应用程序,则:所述确定所述N个应用程序的清理优先次序,即步骤S231,可以包括:
根据所述M个应用程序在后台运行的时间的长短,确定所述M个应用程序的清理优先次序,其中,M为大于或等于1,且小于或等于N的整数。
通过以上量化的数据,可以较为准确地反应用户对不同应用程序的依赖程度或偏好,基于此所实现的清理优先次序,可以更符合用户的偏好或需求。同时,由于以上实施方式主要针对后台运行的应用程序,对于此,如若后台运行时间较长,可以理解为其被闲置的时间较长,故而,相较于在后台运行时间较短的应用程序,后台运行时间较长的应用程序被使用的概率较小,所以,可以先对后台运行时间较长的应用程序的数据进行处理。通过以上清理优先次序的确定,可以在清理数据时更具针对性,也 可有利于保护使用概率较高的应用程序的存储数据。
其中一种实施方式中,若所述N个应用程序中包括预设第一期间内被使用过的L个应用程序,则:所述确定所述N个应用程序的清理优先次序,即步骤S231,可以包括:
根据所述L个应用程序在所述第一期间内的使用统计参数的大小,确定所述L个应用程序的清理优先次序,其中L为大于或等于1,且小于或等于N的整数。
第一期间,可以为预设的任意期间参数。具体实施过程中,第一期间可以列举为一个月。
使用统计参数,可以为任意表征对应用程序的使用情况的参数。其中一种实施方式中,所述使用统计参数可以为对应的应用程序以前台运行的方式被使用的统计参数。
通过使用统计参数,可以利用量化的数据对应用程度的使用情况进行表征,根据使用情况,可以较为准确地反应用户对不同应用程序的依赖程度或偏好,基于此所实现的清理优先次序,可以更符合用户的偏好或需求。
使用统计参数可以列举包括以下至少之一:使用频率;最近使用时间,以及累积使用时长。其中的使用频率、最近使用时间、累积使用时长可以理解为不同类的参数。
具体地,可以包括以下几种情况:使用统计参数仅包括使用频率;使用统计参数仅包括最近使用时间;使用统计参数仅包括累积使用时长;使用统计参数同时包括使用频率和最近使用时间;使用统计参数同时包括使用频率和累积使用时长;使用统计参数同时包括最近使用时间和累积使用时长,以及使用统计参数同时包括使用频率、最近使用时间,以及累积使用时长。
若使用统计时间同时包括不止一类参数,则,不同类的参数可以具有不同的参数优先级,具体地,根据所述L个应用程序在所述第一期间内的使用统计参数的大小,确定所述L个应用程序的清理优先次序,可以包括:
若多个应用程序的第一类参数的大小相同,则根据第二类参数的大小确定多个应用程序的清理优先等级,其中,第一类参数和第二类参数为不同类的使用统计参数,且第一类参数的参数优先级高于第二类参数。
其中,第一类参数与第二类参数,可以理解为表征相邻参数优先级的两类参数,具体实施过程中,若参数包括不止两类,且通过两类参数依旧无法确定清理优先等级,也可以通过多次重复以上步骤确定多个应用程序的清理优先次序。
其中一种举例中,若使用统计参数包括使用频率与累积使用时长,且使用频率的 参数优先级高于累积使用时长,则:先比较各应用程序的使用频率,进而确定清理优先次序,若其中多个应用程序的使用频率相同,则可进一步比较多个应用程序的累积使用时长,以确定其清理优先次序。
另一种举例中,若使用统计参数同时包括使用频率、最近使用时间和累积使用时长,且使用频率的参数优先级高于最近使用时间,最近使用时间的参数优先级高于累积使用时间,则:先比较各应用程序的使用频率,若其中多个应用程序的使用频率相同,则可进一步比较多个应用程序的最近使用时间;若其中仍有不止一个应用程序的最近使用时间相同,则可进一步比较不止一个应用程序的累积使用时长,以确定其清理优先次序。
其中一种实施方式中,所述确定所述N个应用程序的清理优先次序,即步骤S231,可以包括:
根据预设的K个程序类别,确定所述N个应用程序中每个应用程序所属的程序类别;
根据所述K个程序类别的预设类别次序,确定分别属于不同程序类别的不同应用程序的清理优先次序。
程序类别,可以为任意的预设类别,其可以为通过默认的分类方式确认的,也可以为通过人为设置的分类方式确认的,且不同的程序类别之间具有不同的预设类别次序。
程序类别可以列举包括社交类、商务类和运动类。以此三类为例,若其中第一应用程序属于社交类,第二应用程序和第三应用程序属于商务类,第四应用程序属于运动类,且社交类类别次序高于商务类,商务类的类别次序高于运动类;则第一应用程序的清理优先次序高于第二应用程序与第三应用程序,第二应用程序与第三应用程序的清理优先次序高于第四应用程序;第二应用程序与第二应用程序的清理优先次序可以为相同的,在具体实施过程中,对于相同清理优先次序的应用程序,还可以通过其他可选方案的方式进一步确定其清理优先次序。
图6是本发明一电子终端的设置界面的界面示意图二。请参考6,在将自定义类别次序一栏选择为“是”之后,可以通过拖拽不同的预设类别,可以自定义确定不同程序类别的优先次序。
进一步的,通过点击各类别的编辑按钮,可以进一步设置每个程序类别的名称及其中的应用程序,通过点击删除按钮,可以删除对应的程序类别,也可以通过添加类 别按钮,添加新的程序类别。
通过以上实施方式,能够以不同的程序类别作为区分清理优先次序的标准,该方式可以普遍适用于各种应用程序,由于其类别可以为人为预设的任意类别,具体实施过程中,可以任意设置为第一类、第二类、第三类等,以对应用程序的优先次序进行人为的区分,可见,程序类别,可以程序本身的属性为依据,也可以不以程序本身的属性为依据。该实施方式下,有效拓展了所述方法的应用范围。此外,该实施方式可以与任意其他区分优先次序的方式相结合,而不至于产生冲突。
此外,其中的M个应用程序、L个应用程序以及K个程序类别下的应用程序,仅表示确定清理优先次序的逻辑具有不同,不表示其为不同的应用程序,其实际可以为N个应用程序中选择的任意的应用程序。
后台运行的时间的长短、使用统计参数,以及程序类别,可以理解为确定清理优先次序的不同逻辑,本领域技术人员可以选择其中之一逻辑确定应用程序的清理优先次序,也可以选择其中至少两个逻辑确定应用程序的清理优先次序。
具体实施过程中,若选择其中至少两个逻辑确定应用程序的清理优先次序,可以区分不同逻辑的逻辑优先级,进而根据不同的逻辑优先级使用不同的逻辑。例如:若选择其中的后台运行的时间长短,以及程序类别两个逻辑,且程序类别的逻辑优先级高于后台运行的时间长短,则,仅当根据程序类别的逻辑确定多个应用程序的清理优先次序相同时,才利用后台运行的时间进一步确定相同的多个应用程序的清理优先次序。
另一具体实施过程中,还可针对不同的逻辑确定不同的加权值,进而将以不同逻辑确定的优先次序作为子优先次序,各子优先次序分别乘以对应的加权值后相加,可以计算得到每个应用程序的优先次序数值,最终根据优先次序数值确定最终的不同应用程序的优先次序。
通过以上逻辑的单独使用或组合,可以有效提高清理优先次序选择的多样性,以满足更多样的需求,也更有利于使得清理优先次序更贴近用户的偏好与习惯。
本实施例提供的电子终端的存储空间清理方法,通过检测到剩余存储空间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
实施例3
图7是本发明一电子终端的结构示意图一;请参考图7,所述的电子终端,包括:
检测模块301,用于检测到剩余存储空间小于第一预设值;
清理模块302,用于对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
本实施例提供的电子终端,通过检测到剩余存储空间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
实施例4
图8是本发明一电子终端的结构示意图二;请参考图8,所述的电子终端,包括:
检测模块401,用于检测到剩余存储空间小于第一预设值;
清理模块403,用于对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
可选的,所述清理模块403,具体用于:
确定所述N个应用程序的清理优先次序;
根据所述清理优先次序依次清理所述N个应用程序的存储数据,直至所述剩余存储空间大于第二预设值。
可选的,若所述N个应用程序中包括在后台运行的M个应用程序,则:所述清理模块403,具体用于:
根据所述M个应用程序在后台运行的时间的长短,确定所述M个应用程序的清理优先次序,其中,M为大于或等于1,且小于或等于N的整数。
可选的,若所述N个应用程序中包括预设第一期间内被使用过的L个应用程序,则:所述清理模块403,具体用于:
根据所述L个应用程序在所述第一期间内的使用统计参数的大小,确定所述L个应用程序的清理优先次序,其中L为大于或等于1,且小于或等于N的整数。
可选的,所述使用统计参数包括以下至少之一:
使用频率;
最近使用时间;
累积使用时长。
可选的,所述使用统计参数为对应的应用程序以前台运行的方式被使用的统计参 数。
可选的,所述清理模块403,具体用于:
根据预设的K个程序类别,确定所述N个应用程序中每个应用程序所属的程序类别;
根据所述K个程序类别的预设类别次序,确定分别属于不同程序类别的不同应用程序的清理优先次序。
可选的,所述第一预设值与所述第二预设值相同。
可选的,所述的终端,还包括:
确认模块402,用于确认所述N个应用程序当下在后台运行或未运行。
本实施例提供的电子终端,通过检测到剩余存储空间小于第一预设值,确定了存储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
实施例5
图9是本发明一电子终端的结构示意图三,请参考图9,所述的电子终端50,包括:处理器51以及存储器52;其中:
存储器52,用于存储计算机程序,该存储器还可以是flash(闪存)。
处理器51,用于执行存储器存储的执行指令,以实现上述方法中的各个步骤。具体可以参见前面方法实施例中的相关描述。
可选地,存储器52既可以是独立的,也可以跟处理器51集成在一起。
当所述存储器52是独立于处理器51之外的器件时,所述电子终端50还可以包括:
总线53,用于连接所述存储器52和处理器51。
实施例6
本实施例提供一种可读存储介质,可读存储介质中存储有执行指令,当电子终端的至少一个处理器执行该执行指令时,电子终端执行上述的各种实施方式提供的方法。
实施例7
本实施例提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。电子终端的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得电子终端实施上述的各种实施方式提供的方法。
本实施例提供的电子终端,通过检测到剩余存储空间小于第一预设值,确定了存 储空间清理的时机,同时,还通过对预设程序名单中的N个应用程序的存储数据进行清理,实现了存储空间的自动清理,且由于仅清理预设程序名单中的应用程序的存储数据,降低了清理对系统及程序运行的影响。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种电子终端的存储空间清理方法,其特征在于,包括:
    检测到剩余存储空间小于第一预设值;
    对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
  2. 根据权利要求1所述的方法,其特征在于,所述对预设程序名单中的N个应用程序的存储数据进行清理,包括:
    确定所述N个应用程序的清理优先次序;
    根据所述清理优先次序依次清理所述N个应用程序的存储数据,直至所述剩余存储空间大于第二预设值。
  3. 根据权利要求2所述的方法,其特征在于,若所述N个应用程序中包括在后台运行的M个应用程序,则:所述确定所述N个应用程序的清理优先次序,包括:
    根据所述M个应用程序在后台运行的时间的长短,确定所述M个应用程序的清理优先次序,其中,M为大于或等于1,且小于或等于N的整数。
  4. 根据权利要求2所述的方法,其特征在于,若所述N个应用程序中包括预设第一期间内被使用过的L个应用程序,则:所述确定所述N个应用程序的清理优先次序,包括:
    根据所述L个应用程序在所述第一期间内的使用统计参数的大小,确定所述L个应用程序的清理优先次序,其中L为大于或等于1,且小于或等于N的整数。
  5. 根据权利要求4所述的方法,其特征在于,所述使用统计参数包括以下至少之一:
    使用频率;
    最近使用时间;
    累积使用时长。
  6. 根据权利要求4所述的方法,其特征在于,所述使用统计参数为对应的应用程序以前台运行的方式被使用的统计参数。
  7. 根据权利要求2所述的方法,其特征在于,所述确定所述N个应用程序的清理优先次序,包括:
    根据预设的K个程序类别,确定所述N个应用程序中每个应用程序所属的程序类别;
    根据所述K个程序类别的预设类别次序,确定分别属于不同程序类别的不同应用程序的清理优先次序。
  8. 根据权利要求2至7任一项所述的方法,其特征在于,所述第一预设值与所述第二预设值相同。
  9. 根据权利要求1至7任一项所述的方法,其特征在于,所述对预设程序名单中的应用程序的存储信息进行清理之前,还包括:
    确认所述N个应用程序当下在后台运行或未运行。
  10. 一种电子终端,其特征在于,包括:
    检测模块,用于检测到剩余存储空间小于第一预设值;
    清理模块,用于对预设程序名单中的N个应用程序的存储数据进行清理;其中,N为大于或等于1的整数。
PCT/CN2017/098545 2017-08-22 2017-08-22 电子终端的存储空间清理方法与电子终端 WO2019036913A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780096167.4A CN111247504A (zh) 2017-08-22 2017-08-22 电子终端的存储空间清理方法与电子终端
PCT/CN2017/098545 WO2019036913A1 (zh) 2017-08-22 2017-08-22 电子终端的存储空间清理方法与电子终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098545 WO2019036913A1 (zh) 2017-08-22 2017-08-22 电子终端的存储空间清理方法与电子终端

Publications (1)

Publication Number Publication Date
WO2019036913A1 true WO2019036913A1 (zh) 2019-02-28

Family

ID=65439368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098545 WO2019036913A1 (zh) 2017-08-22 2017-08-22 电子终端的存储空间清理方法与电子终端

Country Status (2)

Country Link
CN (1) CN111247504A (zh)
WO (1) WO2019036913A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220427A (zh) * 2013-04-16 2013-07-24 广东欧珀移动通信有限公司 手机后台程序清理方法及手机
CN104298613A (zh) * 2014-09-29 2015-01-21 广州金山网络科技有限公司 一种系统内存的清理方法及终端设备
CN105335099A (zh) * 2015-09-25 2016-02-17 深圳市金立通信设备有限公司 一种内存清理方法及终端
CN105468416A (zh) * 2015-11-30 2016-04-06 魅族科技(中国)有限公司 一种应用程序清理的方法及终端
CN106293924A (zh) * 2015-05-20 2017-01-04 Tcl集团股份有限公司 安卓系统的内存管理方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677977B (zh) * 2013-12-19 2017-05-17 贝壳网际(北京)安全技术有限公司 清理移动终端中临时文件的方法、装置和移动终端
CN105739955A (zh) * 2014-12-09 2016-07-06 中兴通讯股份有限公司 一种终端应用程序清理的方法及装置
CN106371904A (zh) * 2016-08-29 2017-02-01 宇龙计算机通信科技(深圳)有限公司 一种应用程序进程清理方法及移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220427A (zh) * 2013-04-16 2013-07-24 广东欧珀移动通信有限公司 手机后台程序清理方法及手机
CN104298613A (zh) * 2014-09-29 2015-01-21 广州金山网络科技有限公司 一种系统内存的清理方法及终端设备
CN106293924A (zh) * 2015-05-20 2017-01-04 Tcl集团股份有限公司 安卓系统的内存管理方法及装置
CN105335099A (zh) * 2015-09-25 2016-02-17 深圳市金立通信设备有限公司 一种内存清理方法及终端
CN105468416A (zh) * 2015-11-30 2016-04-06 魅族科技(中国)有限公司 一种应用程序清理的方法及终端

Also Published As

Publication number Publication date
CN111247504A (zh) 2020-06-05

Similar Documents

Publication Publication Date Title
KR102355481B1 (ko) 반복된 액션에 대한 스마트 어시스트
JP6088667B2 (ja) メモリクリーニング方法及び装置、並びに端末装置
CN107861812B (zh) 一种内存清理方法
US20180210795A1 (en) Data backup method and data processing system
CN106294206B (zh) 一种缓存数据处理方法以及装置
WO2015027905A1 (zh) 一种对移动终端应用程序的管理系统及管理方法
CN105847554A (zh) 一种移动终端异常关机的数据处理方法及移动终端
JP2018528517A (ja) 詐欺的ソフトウェアプロモーションを検出するための方法、装置、及びシステム
TW201348955A (zh) 行動裝置之記憶體管理方法和系統
CN109377173A (zh) 一种流程处理方法、电子设备及存储介质
CN107147724A (zh) 一种消息推送方法、服务器及计算机可读存储介质
WO2015184880A1 (zh) 一种排列图标的方法和用户终端
CN104219561A (zh) 一种离线视频的清理方法和用户设备
CN105893471B (zh) 一种数据处理方法及电子设备
EP4158479A1 (en) Alert rule evaluation for monitoring of late arriving data
WO2019036913A1 (zh) 电子终端的存储空间清理方法与电子终端
CN107958024B (zh) 会话合并方法、装置和计算机设备
CN106066966B (zh) 冻结应用的显示方法、冻结应用的显示装置和终端
CN113055984B (zh) 终端控制方法、装置、移动终端及存储介质
CN111638892A (zh) 一种优化应用更新排序的方法、装置、系统及存储介质
CN103605563A (zh) 用于避免误操作的系统和方法
KR101478327B1 (ko) 시스템 최적화 모니터링 및 오동작 방지 장치, 방법 및 컴퓨터 판독 가능한 기록 매체
WO2023082569A1 (zh) 视频信息提取方法及装置
CN116185624A (zh) 一种硬盘的垃圾回收方法、装置、计算机设备及存储介质
WO2015196975A1 (zh) 一种生成用户名的方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17922367

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17922367

Country of ref document: EP

Kind code of ref document: A1