WO2019036912A1 - Junk file processing method for electronic terminal, and electronic terminal - Google Patents
Junk file processing method for electronic terminal, and electronic terminal Download PDFInfo
- Publication number
- WO2019036912A1 WO2019036912A1 PCT/CN2017/098542 CN2017098542W WO2019036912A1 WO 2019036912 A1 WO2019036912 A1 WO 2019036912A1 CN 2017098542 W CN2017098542 W CN 2017098542W WO 2019036912 A1 WO2019036912 A1 WO 2019036912A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- junk
- applications
- file object
- electronic terminal
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Definitions
- the deleting module 411 is configured to delete the junk file.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Certains modes de réalisation de la présente invention concernent un procédé de traitement de fichiers poubelle pour un terminal électronique, et le terminal électronique. Le procédé comporte les étapes consistant à: obtenir des informations de programme source d'un objet de fichier, les informations de programme source étant utilisées pour indiquer N programmes d'application s'exécutant activement lorsque l'objet de fichier est créé, et N étant un entier supérieur ou égal à 1; déterminer que les N programmes d'application ont été désinstallés; déterminer l'objet de fichier en tant que fichier poubelle; et supprimer le fichier poubelle. La précision de sélection du fichier poubelle est assurée.Some embodiments of the present invention relate to a trash file processing method for an electronic terminal, and the electronic terminal. The method includes the steps of: obtaining source program information of a file object, the source program information being used to indicate N application programs actively executing when the file object is created, and N being an integer greater than or equal to 1; determine that the N application programs have been uninstalled; determine the file object as a garbage file; and delete the trash file. The accuracy of selection of the trash file is ensured.
Description
本发明涉及电子终端,尤其涉及一种电子终端的垃圾文件处理方法与电子终端。The present invention relates to an electronic terminal, and in particular to a garbage file processing 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. During the run, file objects are created in memory, which can include folders or files.
随着终端的使用,会在存储器中留下垃圾文件,现有的相关技术中,可以通过文件的后缀名、名称、路径位置等选定垃圾文件,进而进行处理,然而,由于后缀名、名称、路径位置等均依赖于先验的经验,若经验有误,则会造成垃圾文件的误删,可见,其准确性有所欠缺。With the use of the terminal, garbage files are left in the memory. In the related related art, the junk file can be selected by the file suffix name, name, path location, etc., and then processed, however, due to the suffix name and name The location of the path depends on the prior experience. If the experience is wrong, it will cause the accidental deletion of the junk file. It can be seen that its accuracy is lacking.
发明内容Summary of the invention
本发明提供了一种电子终端的垃圾文件处理方法与电子终端,以解决准确性有所欠缺的问题。The invention provides a garbage file processing method and an electronic terminal of an electronic terminal, so as to solve the problem that the accuracy is lacking.
根据本发明的第一方面,提供了一种电子终端的垃圾文件处理方法,包括:According to a first aspect of the present invention, a method for processing a junk file of an electronic terminal includes:
获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于1的整数;Obtaining source program information of a file object, where the source program information is used to indicate N applications that are actively running when the file object is created; wherein N is an integer greater than or equal to 1;
确定所述N个应用程序已被卸载;Determining that the N applications have been uninstalled;
将所述文件对象确定为垃圾文件;Determining the file object as a junk file;
删除所述垃圾文件。Delete the junk file.
可选的,所述获取文件对象的来源程序信息之前,包括:Optionally, before the obtaining the source program information of the file object, the method includes:
监听到所述文件对象的创建; Listening to the creation of the file object;
确定所述文件对象被创建时活跃运行的应用程序,以得到并存储所述来源程序信息。An application that is actively running when the file object is created is determined to obtain and store the source program information.
可选的,所述活跃运行的N个应用程序包括以下至少之一:Optionally, the N applications that are actively running include at least one of the following:
前台运行的应用程序;An application running in the foreground;
内存占用最多的K个应用程序,其中,K为大于或等于1,且小于或等于N的整数;K applications with the most memory usage, where K is an integer greater than or equal to 1, and less than or equal to N;
处理器占用率最高的L个应用程序,其中,L为大于或等于1,且小于或等于N的整数。L applications with the highest processor utilization, where L is an integer greater than or equal to 1, and less than or equal to N.
可选的,若所述文件对象为文件夹,则:所述将所述文件对象确定为垃圾文件之前,还包括:Optionally, if the file object is a folder, before the determining the file object as a junk file, the method further includes:
确定所述文件夹中的所有文件对象均为垃圾文件,或确认所述文件夹为空。Make sure all file objects in the folder are junk files, or confirm that the folder is empty.
可选的,所述删除所述垃圾文件之前,还包括:Optionally, before the deleting the junk file, the method further includes:
输出所述垃圾文件的信息;Outputting information of the junk file;
接收删除确认信息;所述删除确认信息用于指示确认删除所述垃圾文件。Receiving deletion confirmation information; the deletion confirmation information is used to instruct to confirm deletion of the junk file.
可选的,所述垃圾文件的信息包括所述来源程序信息。Optionally, the information of the junk file includes the source program information.
可选的,所述删除所述垃圾文件之前,还包括:延迟预设的第一时间。Optionally, before the deleting the junk file, the method further includes: delaying the preset first time.
根据本发明的第二方面,提供了一种电子终端,包括:According to a second aspect of the present invention, an electronic terminal is provided, comprising:
第一获取模块,用于获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于1的整数;a first acquiring module, configured to acquire source program information of a file object, where the source program information is used to indicate N applications that are actively running when the file object is created; wherein N is an integer greater than or equal to 1;
第一确定模块,用于确定所述N个应用程序已被卸载;a first determining module, configured to determine that the N applications have been uninstalled;
第二确定模块,将所述文件对象确定为垃圾文件;a second determining module, determining the file object as a junk file;
删除模块,删除所述垃圾文件。Delete the module and delete the junk file.
根据本发明的第三方面,提供了一种电子终端,包括:存储器、处理器以及计算机程序,所述计算机程序存储在所述存储器中,所述处理器运行所述计算机程序执行第一方面及第一方面各种可能的设计所述的方法。According to a third aspect of the present invention, there is provided 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 perform the first aspect and The first aspect of the various possible methods of designing the method.
根据本发明的第四方面,提供了一种存储介质,包括:可读存储介质和计算机程序,所述计算机程序用于实现第一方面及第一方面各种可能的设计所述的方法。According to a fourth aspect of the present invention, there is provided 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.
本发明提供的电子终端的垃圾文件处理方法与电子终端,通过获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;以及:确定所述N个应用程序已被卸载;并将所述文件对象确定为垃圾文件;实现了垃圾文件的选定,由于N个应用程序活跃运行时创建的文件对象可理解为对应的N个应用程序中至少之一应用程序需要使用的,当对应的应用程序均被卸载时,该文件对象可理解为不会 再被使用,故而,将其确定为垃圾文件,保证了垃圾文件选定的准确性。The garbage file processing method and the electronic terminal of the electronic terminal provided by the present invention acquires source program information of a file object, the source program information is used to indicate N application programs that are actively running when the file object is created; and: determining The N applications have been uninstalled; and the file object is determined to be a junk file; the selection of the junk file is realized, and the file object created when the N applications are actively running can be understood as the corresponding N applications. At least one of the applications needs to be used, and when the corresponding application is uninstalled, the file object can be understood as not It is used again, so it is determined as a junk file, which ensures the accuracy of the junk file selection.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明一电子终端的垃圾文件处理方法的流程示意图一;1 is a schematic flowchart 1 of a method for processing a junk file of an electronic terminal according to the present invention;
图2为本发明一电子终端的垃圾文件处理方法的流程示意图二;2 is a second schematic flowchart of a method for processing a junk file of an electronic terminal according to the present invention;
图3为本发明一电子终端的结构示意图一;3 is a schematic structural view 1 of an electronic terminal according to the present invention;
图4为本发明一电子终端的结构示意图二;4 is a schematic structural view 2 of an electronic terminal according to the present invention;
图5为本发明一电子终端的结构示意图三。FIG. 5 is a schematic structural diagram 3 of an electronic terminal according to the present invention.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例1Example 1
图1为本发明一电子终端的垃圾文件处理方法的流程示意图一;请参考图1,所述的方法包括:1 is a schematic flowchart 1 of a method for processing a junk file of an electronic terminal according to the present invention; referring to FIG. 1, the method includes:
S101:获取文件对象的来源程序信息。S101: Acquire source program information of the file object.
来源程序信息,可以理解为用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于1的整数。文件对象,可以为文件,也可以为文件夹。The source program information can be understood as N applications for indicating that the file object is actively running when it is created; wherein N is an integer greater than or equal to one. File objects, which can be files or folders.
活跃运行的N个应用程序,可以为创建文件对象时记录确定的,也可以根据创建文件对象的时间查询终端运行的历史记录,从而确定的。应用程序的数量N,可以是唯一的一个,也可以是同时运行的多个,也可以为在M个运行中的应用程序中根据任意方式确定的N个,其中,M为大于N的整数。The N applications that are actively running can be determined for the record when the file object is created, or can be determined by querying the history of the terminal operation according to the time when the file object is created. The number N of applications may be the only one, or may be multiple running at the same time, or may be N determined in any of the M running applications, where M is an integer greater than N.
S102:确定所述N个应用程序已被卸载。 S102: Determine that the N applications have been uninstalled.
S103:将所述文件对象确定为垃圾文件;S103: Determine the file object as a junk file;
垃圾文件,可以理解为被系统标识为可被删除的文件。A junk file can be understood as a file that is identified by the system as being deleteable.
S104:删除所述垃圾文件。S104: Delete the junk file.
本实施例提供的电子终端的垃圾文件处理方法,通过获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;以及:确定所述N个应用程序已被卸载;并将所述文件对象确定为垃圾文件;实现了垃圾文件的选定,由于N个应用程序活跃运行时创建的文件对象可理解为对应的N个应用程序中至少之一应用程序需要使用的,当对应的应用程序均被卸载时,该文件对象可理解为不会再被使用,故而,将其确定为垃圾文件,保证了垃圾文件选定的准确性。The garbage file processing method of the electronic terminal provided by the embodiment, by acquiring source program information of the file object, the source program information is used to indicate N applications that are actively running when the file object is created; and: determining the N applications have been uninstalled; the file object is determined to be a junk file; the junk file is selected, and the file object created when the N applications are actively running can be understood as at least corresponding to the N applications. One of the applications needs to be used. When the corresponding application is uninstalled, the file object can be understood as no longer being used. Therefore, it is determined as a junk file, which ensures the accuracy of the junk file selection.
实施例2Example 2
图2为本发明一电子终端的垃圾文件处理方法的流程示意图二;请参考图2,所述的方法包括:2 is a schematic flowchart 2 of a method for processing a junk file of an electronic terminal according to the present invention; referring to FIG. 2, the method includes:
S201:监听到文件对象的创建。S201: Listening to the creation of a file object.
S202:确定所述文件对象被创建时活跃运行的应用程序,以得到所述来源程序信息。S202: Determine an application that is actively running when the file object is created, to obtain the source program information.
通过对文件对象创建的监听,可以实时确定文件对象创建时活跃运行的应用程序,通过该方式选定的活跃运行的应用程序,较为准确。Through the monitoring of the file object creation, it is possible to determine in real time the application that is actively running when the file object is created, and the actively running application selected by this method is more accurate.
S203:获取文件对象的来源程序信息。S203: Acquire source program information of the file object.
来源程序信息,可以理解为用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于1的整数。文件对象,可以为文件,也可以为文件夹。The source program information can be understood as N applications for indicating that the file object is actively running when it is created; wherein N is an integer greater than or equal to one. File objects, which can be files or folders.
活跃运行的N个应用程序,可以为创建文件对象时记录确定的,也可以根据创建文件对象的时间查询终端运行的历史记录,从而确定的。应用程序的数量N,可以是唯一的一个,也可以是同时运行的多个,也可以为在M个运行中的应用程序中根据任意方式确定的N个,其中,M为大于N的整数。The N applications that are actively running can be determined for the record when the file object is created, or can be determined by querying the history of the terminal operation according to the time when the file object is created. The number N of applications may be the only one, or may be multiple running at the same time, or may be N determined in any of the M running applications, where M is an integer greater than N.
步骤S203可以由用户检索垃圾文件或删除垃圾文件的请求发起实施。也可确定活跃运行的应用程序后自动实施。Step S203 may be initiated by the user requesting to retrieve the junk file or delete the junk file. It can also be determined automatically after an actively running application.
其中一种实施方式中,所述活跃运行的N个应用程序包括以下至少之一:In one implementation manner, the N applications that are actively running include at least one of the following:
前台运行的应用程序;An application running in the foreground;
内存占用最多的K个应用程序,其中,K为大于或等于1,且小于或等于N的整数;K applications with the most memory usage, where K is an integer greater than or equal to 1, and less than or equal to N;
处理器占用率最高的L个应用程序,其中,L为大于或等于1,且小于或等于N的整 数。L applications with the highest processor utilization, where L is greater than or equal to 1, and less than or equal to N number.
对于其中K与L的取值,可以依据对活跃运行的N个应用程序的定义的不同而发生变化。通过以上实施方式,可以有效确定需要使用文件对象的应用程序,或应用程序的范围,进而使得针对文件对象的删除更准确、更具有针对性。For the values of K and L, it can be changed according to the definition of the N applications that are actively running. Through the above embodiments, the application that needs to use the file object, or the scope of the application, can be effectively determined, thereby making the deletion of the file object more accurate and more targeted.
S204:确定所述N个应用程序已被卸载。S204: Determine that the N applications have been uninstalled.
具体实施过程中,可以通过查阅卸载记录确定,也可直接查询对应的N个应用程序是否还在。只要实现了确定已卸载,则不脱离本发明的范围。During the specific implementation process, it can be determined by consulting the uninstallation record, or directly query whether the corresponding N applications are still in use. As long as the determination has been made to uninstall, it does not depart from the scope of the invention.
S205:判断文件对象是否为文件夹。S205: Determine whether the file object is a folder.
若确定文件对象为文件夹,由于文件夹下可能还有其他文件对象,所以,若有其他文件对象,可以实施步骤S206:确定所述文件夹中的其他文件对象均为垃圾文件。若无文件对象,则无需实施步骤S206,可实施后续步骤。其也可理解为在确定文件对象为文件夹且确认文件夹下无其他文件对象后,可实施后续步骤。If it is determined that the file object is a folder, since there may be other file objects under the folder, if there are other file objects, step S206 may be implemented: determining that other file objects in the folder are junk files. If there is no file object, step S206 need not be implemented, and the subsequent steps can be implemented. It can also be understood that after determining that the file object is a folder and there are no other file objects under the confirmation folder, the subsequent steps can be implemented.
S207:将所述文件对象确定为垃圾文件。S207: Determine the file object as a junk file.
垃圾文件,可以理解为被系统标识为可被删除的文件。具体实施过程中,也可同时将以其他方式选定的文件对象确定为垃圾文件,由于本实施例并不确认非垃圾文件,所以本实施例的方案并不与领域内的其他确定垃圾文件的实施方式相抵触。A junk file can be understood as a file that is identified by the system as being deleteable. In the specific implementation process, the file object selected in other manners may be determined as a junk file at the same time. Since the non-spam file is not confirmed in this embodiment, the solution in this embodiment does not correspond to other junk files in the field. The implementation is in conflict.
S208:输出所述垃圾文件的信息。S208: Output information of the junk file.
垃圾文件的信息,可以为有关被确定为垃圾文件的文件对象的任意信息,可以列举包括创建时间、大小、使用频率等等。其中一种实施方式中,可以包括所述来源程序信息。具体实施过程中,可以通过终端的输出装置输出该信息。输出装置可以为显示屏、语音输出装置或数据传输接口等。The information of the junk file may be any information about a file object determined to be a junk file, and may include, for example, creation time, size, frequency of use, and the like. In one embodiment, the source program information may be included. In the specific implementation process, the information can be output through the output device of the terminal. The output device can be a display screen, a voice output device, or a data transmission interface.
S209:接收删除确认信息。S209: Receive deletion confirmation information.
删除确认信息,用于指示确认删除所述垃圾文件。具体实施过程中,可以通过终端的输入装置输入删除确认信息,具体可以为用户在对话框中的点击操作产生。删除确认信息,也可理解为用于表示用户同意删除所述垃圾文件的信息。Delete confirmation information to indicate confirmation to delete the junk file. During the specific implementation process, the deletion confirmation information may be input through the input device of the terminal, which may be generated by a click operation of the user in the dialog box. The deletion confirmation information can also be understood as information indicating that the user agrees to delete the junk file.
在其他可选实施例中,也可无需用户确认,而直接进行垃圾文件的删除。In other alternative embodiments, the deletion of the junk file can also be performed directly without user confirmation.
S210:延迟预设的第一时间。S210: Delay the preset first time.
第一时间,可以理解为预设的任意时间。可以列举为一天、两天。通过第一时间的延迟,可以避免用户重新安装软件时再次新建文件夹,节约了操作流程。其可以列举应用于用户误卸载软件的场景下。在其他可选实施例中,也可不延迟第一时间,以节约终端的存 储空间。The first time can be understood as any preset time. Can be listed as one day, two days. Through the delay of the first time, it is possible to prevent the user from newly creating a new folder when reinstalling the software, which saves the operation process. It can be enumerated in the scenario where the user accidentally uninstalls the software. In other optional embodiments, the first time may not be delayed to save the terminal. Storage space.
S211:删除所述垃圾文件。S211: Delete the junk file.
本实施例提供的电子终端的垃圾文件处理方法,通过获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;以及:确定所述N个应用程序已被卸载;并将所述文件对象确定为垃圾文件;实现了垃圾文件的选定,由于N个应用程序活跃运行时创建的文件对象可理解为对应的N个应用程序中至少之一应用程序需要使用的,当对应的应用程序均被卸载时,该文件对象可理解为不会再被使用,故而,将其确定为垃圾文件,保证了垃圾文件选定的准确性。The garbage file processing method of the electronic terminal provided by the embodiment, by acquiring source program information of the file object, the source program information is used to indicate N applications that are actively running when the file object is created; and: determining the N applications have been uninstalled; the file object is determined to be a junk file; the junk file is selected, and the file object created when the N applications are actively running can be understood as at least corresponding to the N applications. One of the applications needs to be used. When the corresponding application is uninstalled, the file object can be understood as no longer being used. Therefore, it is determined as a junk file, which ensures the accuracy of the junk file selection.
实施例3Example 3
图3为本发明一电子终端的结构示意图一;请参考图3,所述的终端包括:3 is a schematic structural diagram 1 of an electronic terminal according to the present invention; referring to FIG. 3, the terminal includes:
第一获取模块301,用于获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于1的整数。The first obtaining
第一确定模块302,用于确定所述N个应用程序已被卸载。The first determining
第二确定模块303,用于将所述文件对象确定为垃圾文件。The second determining
删除模块304,用于删除所述垃圾文件。The deleting
本实施例提供的电子终端,通过获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;以及:确定所述N个应用程序已被卸载;并将所述文件对象确定为垃圾文件;实现了垃圾文件的选定,由于N个应用程序活跃运行时创建的文件对象可理解为对应的N个应用程序中至少之一应用程序需要使用的,当对应的应用程序均被卸载时,该文件对象可理解为不会再被使用,故而,将其确定为垃圾文件,保证了垃圾文件选定的准确性。The electronic terminal provided in this embodiment obtains source program information of a file object, where the source program information is used to indicate N applications that are actively running when the file object is created; and: determining that the N applications have been Being unloaded; determining the file object as a junk file; implementing the selection of the junk file, since the file object created when the N applications are actively running can be understood as at least one of the corresponding N applications needs When used, when the corresponding application is uninstalled, the file object can be understood as no longer being used, so it is determined as a junk file, which ensures the accuracy of the junk file selection.
实施例4Example 4
图4为本发明一电子终端的结构示意图二,请参考图4,所述的终端,包括:4 is a schematic structural diagram 2 of an electronic terminal according to the present invention. Referring to FIG. 4, the terminal includes:
监听模块401,用于监听到文件对象的创建。The
得到模块402,用于确定所述文件对象被创建时活跃运行的应用程序,以得到所述来源程序信息。The obtaining
第一获取模块403,用于获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;其中,N为大于过或等于的整数;a first obtaining
第一确定模块404,用于确定所述N个应用程序已被卸载;a first determining
第一判断模块405,用于判断文件对象是否为文件夹。
The first determining
第三确定模块406,用于定所述文件夹中的其他文件对象均为垃圾文件。若无文件对象。The third determining
输出模块407,用于将所述文件对象确定为垃圾文件。The
接收模块408,用于输出所述垃圾文件的信息。The receiving
第二确定模块409,用于将所述文件对象确定为垃圾文件。The second determining
延迟模块410,用于延迟预设的第一时间。The
删除模块411,用于删除所述垃圾文件。The deleting
本实施例提供的电子终端,通过获取文件对象的来源程序信息,所述来源程序信息用于指示所述文件对象被创建时活跃运行的N个应用程序;以及:确定所述N个应用程序已被卸载;并将所述文件对象确定为垃圾文件;实现了垃圾文件的选定,由于N个应用程序活跃运行时创建的文件对象可理解为对应的N个应用程序中至少之一应用程序需要使用的,当对应的应用程序均被卸载时,该文件对象可理解为不会再被使用,故而,将其确定为垃圾文件,保证了垃圾文件选定的准确性。The electronic terminal provided in this embodiment obtains source program information of a file object, where the source program information is used to indicate N applications that are actively running when the file object is created; and: determining that the N applications have been Being unloaded; determining the file object as a junk file; implementing the selection of the junk file, since the file object created when the N applications are actively running can be understood as at least one of the corresponding N applications needs When used, when the corresponding application is uninstalled, the file object can be understood as no longer being used, so it is determined as a junk file, which ensures the accuracy of the junk file selection.
实施例5Example 5
图5为本发明一电子终端的结构示意图三,请参考图5,所述的电子终端50,包括:处理器51以及存储器52;其中:FIG. 5 is a schematic structural diagram 3 of an electronic terminal according to the present invention. Referring to FIG. 5, the
存储器52,用于存储计算机程序,该存储器还可以是flash(闪存)。The
处理器51,用于执行存储器存储的执行指令,以实现上述方法中的各个步骤。The
具体可以参见前面方法实施例中的相关描述。For details, refer to the related description in the foregoing method embodiments.
可选地,存储器52既可以是独立的,也可以跟处理器51集成在一起。Alternatively, the
当所述存储器52是独立于处理器51之外的器件时,所述电子终端50还可以包括:When the
总线53,用于连接所述存储器52和处理器51。A
实施例6Example 6
本实施例提供一种可读存储介质,可读存储介质中存储有执行指令,当电子终端的至少一个处理器执行该执行指令时,电子终端执行上述的各种实施方式提供的方法。The embodiment provides a readable storage medium. The readable storage medium stores execution instructions. When at least one processor of the electronic terminal executes the execution instruction, the electronic terminal executes the methods provided by the various embodiments described above.
实施例7Example 7
本实施例提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。电子终端的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得电子终端实施上述的各种实施方式提供的方法。 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.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.
Claims (9)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/098542 WO2019036912A1 (en) | 2017-08-22 | 2017-08-22 | Junk file processing method for electronic terminal, and electronic terminal |
| CN201780096162.1A CN111263936A (en) | 2017-08-22 | 2017-08-22 | Electronic terminal and junk file processing method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/098542 WO2019036912A1 (en) | 2017-08-22 | 2017-08-22 | Junk file processing method for electronic terminal, and electronic terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019036912A1 true WO2019036912A1 (en) | 2019-02-28 |
Family
ID=65439374
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/098542 Ceased WO2019036912A1 (en) | 2017-08-22 | 2017-08-22 | Junk file processing method for electronic terminal, and electronic terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111263936A (en) |
| WO (1) | WO2019036912A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110928474A (en) * | 2019-09-20 | 2020-03-27 | 捷开通讯(深圳)有限公司 | Junk file cleaning method and device, storage medium and terminal |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9098370B2 (en) * | 2010-11-08 | 2015-08-04 | Cbs Interactive, Inc. | Apparatus and methods for improving uninstall process |
| CN104965731A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Data processing method and electronic terminal |
| CN105335367A (en) * | 2014-05-30 | 2016-02-17 | 北京金山安全软件有限公司 | Method, device and server for determining application program associated with file directory |
| CN105404663A (en) * | 2015-11-10 | 2016-03-16 | 广东欧珀移动通信有限公司 | A method and system for displaying an Android device file list |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104035857B (en) * | 2014-06-25 | 2017-01-18 | 珠海市君天电子科技有限公司 | System junk cleaning performance detecting method and device |
| CN104536792A (en) * | 2014-12-30 | 2015-04-22 | 北京奇虎科技有限公司 | Method and device for eliminating application program residual files |
| CN106708912B (en) * | 2015-11-18 | 2021-06-25 | 中兴通讯股份有限公司 | Junk file identification and management method, identification device, management device and terminal |
-
2017
- 2017-08-22 CN CN201780096162.1A patent/CN111263936A/en active Pending
- 2017-08-22 WO PCT/CN2017/098542 patent/WO2019036912A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9098370B2 (en) * | 2010-11-08 | 2015-08-04 | Cbs Interactive, Inc. | Apparatus and methods for improving uninstall process |
| CN105335367A (en) * | 2014-05-30 | 2016-02-17 | 北京金山安全软件有限公司 | Method, device and server for determining application program associated with file directory |
| CN104965731A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Data processing method and electronic terminal |
| CN105404663A (en) * | 2015-11-10 | 2016-03-16 | 广东欧珀移动通信有限公司 | A method and system for displaying an Android device file list |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110928474A (en) * | 2019-09-20 | 2020-03-27 | 捷开通讯(深圳)有限公司 | Junk file cleaning method and device, storage medium and terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111263936A (en) | 2020-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103176828B (en) | Delete the method and device of application program Stub File | |
| CN107247722B (en) | File scanning method and device and intelligent terminal | |
| CN109669709A (en) | A kind of data migration method and data mover system of the upgrading of block chain | |
| CN109542462B (en) | System environment deployment method, storage medium and server | |
| CN111158597A (en) | Metadata reading method, device, electronic device and storage medium | |
| WO2019161620A1 (en) | Application dependency update method, terminal and device, and storage medium | |
| CN106250180A (en) | A kind of ODEX optimal control method and mobile terminal | |
| CN105373595A (en) | Data automatic sorting storage method and terminal | |
| CN106484779B (en) | File operation method and device | |
| US20170141922A1 (en) | Incremental upgrade method and system for file | |
| WO2019036912A1 (en) | Junk file processing method for electronic terminal, and electronic terminal | |
| CN111625500B (en) | File snapshot method and device, electronic equipment and storage medium | |
| CN110018999B (en) | File management method and system, electronic equipment and storage medium | |
| CN104572943B (en) | Exempt from installation procedure method for cleaning and device | |
| CN107526840A (en) | File system snapshot querying method, device and computer-readable recording medium | |
| JP6507940B2 (en) | Software development support program, software development support device, and software development support method | |
| CN106649756A (en) | Log synchronization method and device | |
| CN102981721A (en) | A method, device and mobile terminal for deleting an application program | |
| CN106201601A (en) | A kind of file clean-up method, electronic equipment and server | |
| CN108845953B (en) | Interface testing method and device | |
| CN107798104A (en) | A kind of catalog management method, device, equipment and computer-readable recording medium | |
| CN105511932A (en) | Application unloading method and device | |
| CN110019026B (en) | File cleaning method and device | |
| CN104699765A (en) | Data saving method and mobile terminal | |
| CN108108172A (en) | A kind of application management method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17922106 Country of ref document: EP Kind code of ref document: A1 |