CN111712806A - Method and device for clearing residual file and readable storage medium - Google Patents

Method and device for clearing residual file and readable storage medium Download PDF

Info

Publication number
CN111712806A
CN111712806A CN201780097105.5A CN201780097105A CN111712806A CN 111712806 A CN111712806 A CN 111712806A CN 201780097105 A CN201780097105 A CN 201780097105A CN 111712806 A CN111712806 A CN 111712806A
Authority
CN
China
Prior art keywords
application program
residual
database
file
residual file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201780097105.5A
Other languages
Chinese (zh)
Inventor
杨绪鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication Co Ltd
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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111712806A publication Critical patent/CN111712806A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method of clearing a residual file, the method comprising the steps of: in the process of installing or using the application program, when detecting that a new directory is created, saving an application program name corresponding to the new directory and a path of the new directory in a database (S10); establishing an association relation between the application program and a database corresponding to the application program (S20); and after the application program is unloaded, clearing the residual files in the database corresponding to the application program according to the association relation (S30). The method can improve the efficiency of cleaning the residual file and improve the performance of the mobile terminal and the user experience.

Description

Method and device for clearing residual file and readable storage medium
Technical Field
The present invention relates to the field of file cleaning technologies, and in particular, to a method and an apparatus for cleaning a residual file, and a computer-readable storage medium.
Background
At present, various application programs are installed in a mobile terminal to meet various requirements of a user, when a certain application program is uninstalled, due to the performance of an operating system of the mobile terminal or the installation characteristics of the application program, the condition of incomplete uninstallation often exists, so that residual files are left in the mobile terminal, which are accumulated day by day, a storage space of the mobile terminal, such as a memory card, is occupied by the residual files, which causes resource waste and affects performance, and for the condition, the user needs to manually delete the associated residual files after uninstalling the application. However, the manual search of the associated residual file by the user requires many user operation steps, and it is generally difficult for a user unskilled in operating the mobile terminal to find the location of the residual file, so that the manual cleaning of the residual file is inconvenient for the user operation.
Disclosure of Invention
The invention mainly aims to provide a method and equipment for clearing residual files and a computer readable storage medium, and aims to solve the technical problem that manual clearing of residual files is inconvenient for user operation.
In order to achieve the above object, the present invention provides a method for removing a residual file, including:
in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
establishing an incidence relation between the application program and a database corresponding to the application program;
and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
Optionally, after the step after the uninstalling the application program, the method further includes:
querying a residual file of the application program through a directory path associated with the unloaded application program name in a database;
and clearing the inquired residual file and updating the data in the database.
Optionally, the step of establishing an association relationship between the application program and the database corresponding to the application program includes:
acquiring the number of application programs accessing the database;
judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not;
and if the number of the application programs accessing the database is smaller than a preset value, establishing an association relation between the application programs and the database corresponding to the application programs.
Optionally, the step of removing the residual file in the database corresponding to the application program according to the association relationship includes:
acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of a residual file in the database;
judging whether the type of the residual file meets a preset condition or not;
if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved.
Optionally, after the step of establishing the association relationship between the application program and the database corresponding to the application program, the method further includes:
calculating the size of a directory file associated with each application program in a database;
sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files;
selecting a directory file pushed to a user according to the size sorting table of the directory files, and pushing the selected directory file and a corresponding application program to the user;
and cleaning the corresponding application program according to the received cleaning instruction.
In addition, in order to achieve the above object, the present invention further provides a device for removing a residual file, where the device for removing a residual file includes a processor, a network interface, a user interface, and a memory, and a program of the device for removing a residual file is stored in the memory; the processor is used for executing the residual file clearing device program to realize the following steps:
in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
establishing an incidence relation between the application program and a database corresponding to the application program;
and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having a residual file removal program stored thereon, where the residual file removal program, when executed by a processor, implements the steps of the residual file removal method as described above.
According to the method and the device for clearing the residual files and the computer readable storage medium, when a new directory is detected to be created in the process of installing or using the application program, the application program name corresponding to the new directory and the path of the new directory are stored in the database, the folder directory generated by each application program can be accurately monitored, the residual files corresponding to each application program are collected, and the accuracy of identifying the residual files of the application program is improved; then establishing an incidence relation between the application program and a database corresponding to the application program; after the application program is unloaded, the residual files in the database corresponding to the application program can be cleared according to the association relation without manually searching the residual files of the application program by a user and then clearing the residual files, so that the user experience is improved, the residual files of the mobile terminal are reduced, and the performance of the mobile terminal is improved at the same time.
Drawings
FIG. 1 is a flowchart illustrating a method for removing residual files according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for removing residual files according to a second embodiment of the present invention;
fig. 3 is a detailed flowchart illustrating steps of establishing an association relationship between the application program and the database corresponding to the application program in the third embodiment of the method for removing a residual file according to the present invention;
fig. 4 is a detailed flowchart of the step of establishing the association relationship to remove the residual file in the database corresponding to the application according to the fourth embodiment of the method for removing the residual file in the present invention;
FIG. 5 is a flowchart illustrating a method for removing residual files according to a fifth embodiment of the present invention;
fig. 6 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: in the process of installing or using the application program, when a new directory is detected to be created, the application program name corresponding to the new directory and the path of the new directory are stored in a database, so that the folder directory generated by each application program can be accurately monitored, the residual file corresponding to each application program is collected, and the accuracy of identifying the residual file of the application program is improved; then establishing an incidence relation between the application program and a database corresponding to the application program; after the application program is unloaded, the residual files in the database corresponding to the application program can be cleared according to the association relation without manually searching the residual files of the application program by a user and then clearing the residual files, so that the user experience is improved, the residual files of the mobile terminal are reduced, and the performance of the mobile terminal is improved at the same time.
In the embodiment of the invention, at present, various application programs are installed in the mobile terminal to meet various requirements of a user, when a certain application program is uninstalled, due to the performance of an operating system of the mobile terminal or the installation characteristics of the application program, the condition of incomplete uninstallation often exists, so that residual files are left in the mobile terminal, the residual files accumulate day by day, the storage space of the mobile terminal, such as a memory card, is occupied by the residual files, the resource waste is caused, and the performance is influenced. However, the manual search of the associated residual file by the user requires many user operation steps, and it is generally difficult for a user unskilled in operating the mobile terminal to find the location of the residual file, so that the manual cleaning of the residual file is inconvenient for the user operation.
In the process of installing or using the application program, when a new directory is detected to be created, the application program name corresponding to the new directory and the path of the new directory are stored in a database, so that the folder directory generated by each application program can be accurately monitored, the residual file corresponding to each application program is collected, and the accuracy of identifying the residual file of the application program is improved; then establishing an incidence relation between the application program and a database corresponding to the application program; after the application program is unloaded, the residual files in the database corresponding to the application program can be cleared according to the association relation without manually searching the residual files of the application program by a user and then clearing the residual files, so that the user experience is improved, the residual files of the mobile terminal are reduced, and the performance of the mobile terminal is improved at the same time.
The invention provides a method for clearing residual files.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for removing a residual file according to a first embodiment of the present invention.
In this embodiment, the method includes:
step S10, in the process of installing or using the application program, when detecting that a new directory is created, storing the application program name corresponding to the new directory and the path of the new directory into a database;
in this embodiment, after a certain application is installed in the mobile terminal, in the process of running the application, a folder is generated in the storage space of the mobile terminal, the folder stores data files read and written by the application, and these folders and data files are residual files, for example, a certain music player correspondingly generates a lyric folder and lyric files in the lyric folder in the storage space. At present, when an application is uninstalled, an operating system of a mobile terminal cannot identify which application in a storage space has been created, and thus cannot remove the folders and cannot remove corresponding data files, so that in the process of installing or using the application, when a new directory is detected to be created, an application name corresponding to the new directory and a path of the new directory can be saved in a database, and the application corresponding to the new directory can be identified later.
Step S20, establishing the incidence relation between the application program and the database corresponding to the application program;
in order to achieve the above object, after the application program name corresponding to the new directory and the path of the new directory are saved in the database, an association relationship between the application program of the new directory and the database corresponding to the application program needs to be established, so as to search for a residual file of the application program in the following.
And step S30, after the application program is uninstalled, clearing the residual file in the database corresponding to the application program according to the incidence relation.
After the incidence relation between the application program and the database corresponding to the application program is established, the application program can be monitored in real time or at regular time, if the situation that the application program is unloaded is monitored, the residual files in the database corresponding to the application program are removed according to the incidence relation after the application program is unloaded. Specifically, after the application program is uninstalled, the residual file of the application program can be directly searched according to the association relationship, and then the residual file is cleaned.
In the method for removing the residual file provided by the embodiment, in the process of installing or using the application program, when it is detected that a new directory is created, the application program name corresponding to the new directory and the path of the new directory are stored in the database, so that the folder directory generated by each application program can be accurately monitored, the residual file corresponding to each application program is collected, and the accuracy of identifying the residual file of the application program is improved; then establishing an incidence relation between the application program and a database corresponding to the application program; after the application program is unloaded, the residual files in the database corresponding to the application program can be cleared according to the association relation without manually searching the residual files of the application program by a user and then clearing the residual files, so that the user experience is improved, the residual files of the mobile terminal are reduced, and the performance of the mobile terminal is improved at the same time.
Further, referring to fig. 2, a second embodiment of the method for clearing residual files according to the present invention is proposed based on the first embodiment of the method for clearing residual files according to the present invention.
In this embodiment, the step S20 is further followed by:
step S40, inquiring the residual file of the application program through the directory path associated with the unloaded application program name in the database;
and step S50, clearing the inquired residual file and updating the data in the database.
In this embodiment, after the application program is uninstalled, the residual file of the application program may be automatically queried through the directory path associated with the name of the uninstalled application program in the database, and then the queried residual file is cleared and the data in the database is updated, so as to reduce the residual file in the database, or the user may manually query the residual file of the application program through the directory path associated with the name of the uninstalled application program in the database, which is not limited herein.
In the method for removing a residual file provided in this embodiment, a directory path associated with an uninstalled application name in a database is used to query the residual file of the application; and clearing the inquired residual files and updating the data in the database, so that the residual files of the mobile terminal are reduced, and the performance of the mobile terminal is improved.
Further, referring to fig. 3, a third embodiment of the method for clearing residual files according to the present invention is proposed based on the first embodiment of the method for clearing residual files according to the present invention.
In this embodiment, the step S20 includes:
step S21, obtaining the number of application programs accessing the database;
step S22, judging whether the number of the application programs accessing the database is less than a preset threshold value;
step S23, if the number of the application programs accessing the database is smaller than a preset value, establishing an association relationship between the application programs and the database corresponding to the application programs.
In this embodiment, before establishing an association relationship between an application program and a folder corresponding to the application program, first, the number of application programs accessing the database needs to be obtained, and then, whether the number of application programs accessing the database is smaller than a preset threshold value is judged; the preset threshold value can be 2, that is, when it is monitored that two or more processes of the application program access the same database, the database is a public database, and a file in the database cannot be used as a residual file; if the database is read and written by only one application program process after long-term monitoring, the database is only corresponding to the name of the application program, and therefore, when the number of the application programs accessing the database is smaller than a preset value, the incidence relation between the application programs and the database corresponding to the application programs is established.
In the method for removing the residual file provided by this embodiment, the number of the application programs accessing the database is obtained; then judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not; if the number of the application programs accessing the database is smaller than a preset value, establishing an incidence relation between the application programs and the database corresponding to the application programs, so that the public database is prevented from being deleted, and the accuracy of cleaning the residual file is further improved.
Further, referring to fig. 4, a fourth embodiment of the method for clearing residual files according to the present invention is proposed based on the first embodiment of the method for clearing residual files according to the present invention.
In this embodiment, the step S30 includes:
step S31, acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of the residual file in the database;
step S32, judging whether the type of the residual file meets the preset condition;
step S33, if the residual file meets the preset condition, the residual file is cleared;
step S34, if the residual file does not satisfy the preset condition, retaining the residual file.
In the embodiment, before the residual file is cleaned, in order to improve the experience of a user in using the mobile terminal, firstly, a database corresponding to the application program is obtained according to the incidence relation, the type of the residual file in the database is obtained, and then whether the type of the residual file meets a preset condition is judged; and if the residual file does not meet the preset condition, reserving the residual file. Specifically, the preset condition may be a residual file and not a file currently used by the operating system. In particular, the file currently used by the operating system may be a ring tone file, a wallpaper file, and the like. For example, if the type of the residual file is in jpg (JPEG, Joint Photographic Experts GROUP) format and the file name is desktop wallpaper, it indicates that although the file is a residual file, the file is not suitable for deletion, and if deleted, the desktop wallpaper may be rendered unusable; therefore, such files do not act as a residual file for the application in order to avoid affecting the user's use. It is understood that the corresponding file type may also be set as the preset condition according to other situations, and the above example is only illustrative and is not limited herein.
According to the method for clearing the residual file, before the residual file is cleared, the database corresponding to the application program is firstly obtained according to the incidence relation, the type of the residual file in the database is obtained, whether the type of the residual file meets the preset condition or not is judged, if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved, the phenomenon that a user cannot use the residual file after deleting the specific type of file is avoided, and therefore the experience of the user in using the mobile terminal is improved.
Further, referring to fig. 5, a fifth embodiment of the method for clearing residual files according to the present invention is proposed based on the first embodiment of the method for clearing residual files according to the present invention.
In this embodiment, the method further includes:
step S60, calculating the size of the directory file associated with each application program in the database;
step S70, sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files;
step S80, selecting the directory file pushed to the user according to the size sorting table of the directory file, and pushing the selected directory file and the corresponding application program to the user;
and step S90, cleaning the corresponding application program according to the received cleaning instruction.
In this embodiment, the application program name corresponding to the new directory and the path of the new directory are saved in the database; after the incidence relation between the application program and the database corresponding to the application program is established, the size of a directory file associated with each application program in the database can be calculated in real time or at regular time in the process that a user uses the application program; then sorting the sizes of the directory files obtained by calculation to obtain a directory file size sorting table; selecting directory files pushed to a user according to the directory file size sorting table, specifically, the sorting method can be descending sorting or ascending sorting, when the sorting method is descending sorting, the first ten directories in the directory file size sorting table can be selected as the directory files pushed to the user, application programs corresponding to the first ten directory files are extracted, and the selected directory files and the corresponding application programs are pushed to the user; the user can know which application programs occupy more storage space conveniently, and further, in the pushing process, important folder names contained in the pushed application programs can be further pushed to the user, so that the user is reminded to clean up carefully; and when a cleaning instruction sent by a user is received, cleaning the corresponding application program according to the received cleaning instruction.
In the method for removing the residual file provided by this embodiment, the size of the directory file associated with each application program in the database is calculated; sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files; then, selecting a directory file to be pushed to a user according to the size sorting table of the directory files, and pushing the selected directory file and a corresponding application program to the user; when the cleaning instruction is received, the corresponding application program is cleaned according to the received cleaning instruction, so that the user can conveniently perform slimming cleaning on the application program, the user experience is improved, and the performance of the mobile terminal is improved.
The invention further provides residual file removing equipment.
Referring to fig. 6, fig. 6 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 6, the clearing device of the residual file may include: a processor 1001, such as a CPU, a network interface 1002, a user interface 1003, and a memory 1004. Connection communication between these components may be realized by a communication bus. The network interface 1002 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (e.g., a WI-FI interface, a bluetooth interface, an infrared interface, etc., for connecting to a wireless network). The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface (e.g., for connecting a wired Keyboard, a wired mouse, etc.) and/or a wireless interface (e.g., for connecting a wireless Keyboard, a wireless mouse). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Optionally, the device for removing the residual file may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like.
Those skilled in the art will appreciate that the configuration of the residual document removal apparatus shown in FIG. 6 does not constitute a limitation of the residual document removal apparatus, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 6, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a clearing program of a residual file. The operating system is a program for managing and controlling hardware and software resources of the residual file cleaning equipment, and supports the running of a network communication module, a user interface module, a residual file cleaning program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the residual file removing apparatus shown in fig. 6, the network interface 1002 is mainly used for connecting to a database and performing data communication with the database; the user interface 1003 is mainly used to connect a client (which may be understood as a user side) and perform data communication with the client, for example, display information to the client through a window or receive operation information sent by the client; and the processor 1001 may be configured to execute a cleaning procedure of the residual file stored in the memory 1004 to implement the following steps:
in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
establishing an incidence relation between the application program and a database corresponding to the application program;
and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
Further, the processor 1001 is further configured to execute a clearing program of the residual file stored in the memory 1004 to implement the following steps:
querying a residual file of the application program through a directory path associated with the unloaded application program name in a database;
and clearing the inquired residual file and updating the data in the database.
Further, the processor 1001 is further configured to execute a clearing program of the residual file stored in the memory 1004 to implement the following steps:
acquiring the number of application programs accessing the database;
judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not;
and if the number of the application programs accessing the database is smaller than a preset value, establishing an association relation between the application programs and the database corresponding to the application programs.
Further, the processor 1001 is further configured to execute a clearing program of the residual file stored in the memory 1004 to implement the following steps:
acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of a residual file in the database;
judging whether the type of the residual file meets a preset condition or not;
if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved.
Further, the processor 1001 is further configured to execute a clearing program of the residual file stored in the memory 1004 to implement the following steps:
calculating the size of a directory file associated with each application program in a database;
sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files;
selecting a directory file pushed to a user according to the size sorting table of the directory files, and pushing the selected directory file and a corresponding application program to the user;
and cleaning the corresponding application program according to the received cleaning instruction.
The specific embodiment of the device for removing a residual file of the present invention is substantially the same as the embodiments of the method for removing a residual file described above, and will not be described herein again.
The present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
establishing an incidence relation between the application program and a database corresponding to the application program;
and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
Further, the one or more programs are executable by the one or more processors to also implement the steps of:
querying a residual file of the application program through a directory path associated with the unloaded application program name in a database;
and clearing the inquired residual file and updating the data in the database.
Further, the one or more programs are executable by the one or more processors to also implement the steps of:
acquiring the number of application programs accessing the database;
judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not;
and if the number of the application programs accessing the database is smaller than a preset value, establishing an association relation between the application programs and the database corresponding to the application programs.
Further, the one or more programs are executable by the one or more processors to also implement the steps of:
acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of a residual file in the database;
judging whether the type of the residual file meets a preset condition or not;
if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved.
Further, the one or more programs are executable by the one or more processors to also implement the steps of:
calculating the size of a directory file associated with each application program in a database;
sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files;
selecting a directory file pushed to a user according to the size sorting table of the directory files, and pushing the selected directory file and a corresponding application program to the user;
and cleaning the corresponding application program according to the received cleaning instruction.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the method and the apparatus for removing a residual file, and will not be described herein again.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

  1. A method for removing a residual file, the method comprising the steps of:
    in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
    establishing an incidence relation between the application program and a database corresponding to the application program;
    and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
  2. The method for removing a residual file according to claim 1, wherein said step after uninstalling said application program further comprises:
    querying a residual file of the application program through a directory path associated with the unloaded application program name in a database;
    and clearing the inquired residual file and updating the data in the database.
  3. The method for removing residual files according to claim 1, wherein the step of establishing the association relationship between the application program and the database corresponding to the application program comprises:
    acquiring the number of application programs accessing the database;
    judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not;
    and if the number of the application programs accessing the database is smaller than a preset value, establishing an association relation between the application programs and the database corresponding to the application programs.
  4. The method for removing residual files according to claim 1, wherein the step of removing the residual files in the database corresponding to the application program according to the association relationship comprises:
    acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of a residual file in the database;
    judging whether the type of the residual file meets a preset condition or not;
    if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved.
  5. The method for removing residual files according to claim 1, wherein after the step of establishing the association relationship between the application program and the database corresponding to the application program, the method further comprises:
    calculating the size of a directory file associated with each application program in a database;
    sorting the sizes of the directory files obtained by calculation to obtain a size sorting table of the directory files;
    selecting a directory file pushed to a user according to the size sorting table of the directory files, and pushing the selected directory file and a corresponding application program to the user;
    and cleaning the corresponding application program according to the received cleaning instruction.
  6. The equipment for clearing the residual file is characterized by comprising a processor, a network interface, a user interface and a memory, wherein a program of the equipment for clearing the residual file is stored in the memory; the processor is used for executing the residual file clearing device program to realize the following steps:
    in the process of installing or using an application program, when a new directory is detected to be created, storing an application program name corresponding to the new directory and a path of the new directory into a database;
    establishing an incidence relation between the application program and a database corresponding to the application program;
    and after the application program is unloaded, removing the residual files in the database corresponding to the application program according to the incidence relation.
  7. The apparatus for removing a residual file according to claim 6, wherein said processor is further configured to execute said residual file removing program to perform the steps of:
    querying a residual file of the application program through a directory path associated with the unloaded application program name in a database;
    and clearing the inquired residual file and updating the data in the database.
  8. The apparatus for removing a residual file according to claim 6, wherein said processor is further configured to execute said residual file removing program to perform the steps of:
    acquiring the number of application programs accessing the database;
    judging whether the number of the application programs accessing the database is smaller than a preset threshold value or not;
    and if the number of the application programs accessing the database is smaller than a preset value, establishing an association relation between the application programs and the corresponding folders of the application programs.
  9. The apparatus for removing a residual file according to claim 6, wherein said processor is further configured to execute said residual file removing program to perform the steps of:
    acquiring a database corresponding to the application program according to the incidence relation, and acquiring the type of a residual file in the database;
    judging whether the type of the residual file meets a preset condition or not;
    if the residual file meets the preset condition, the residual file is cleared, otherwise, the residual file is reserved.
  10. A computer-readable storage medium, on which a residual file clearing program is stored, which, when executed by a processor, implements the steps of the residual file clearing method according to any one of claims 1 to 5.
CN201780097105.5A 2017-09-21 2017-09-21 Method and device for clearing residual file and readable storage medium Pending CN111712806A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/102543 WO2019056237A1 (en) 2017-09-21 2017-09-21 Method for clearing residual files, device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN111712806A true CN111712806A (en) 2020-09-25

Family

ID=65810875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780097105.5A Pending CN111712806A (en) 2017-09-21 2017-09-21 Method and device for clearing residual file and readable storage medium

Country Status (2)

Country Link
CN (1) CN111712806A (en)
WO (1) WO2019056237A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817920A (en) * 2021-03-03 2021-05-18 深圳市知小兵科技有限公司 Distributed big data cleaning method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system
CN104133641A (en) * 2014-07-24 2014-11-05 深圳市同洲电子股份有限公司 External storage equipment file deleting method and device
CN104754002A (en) * 2013-12-30 2015-07-01 北京金山网络科技有限公司 File cleaning method and device, mobile terminal and cloud-side server
WO2015117426A1 (en) * 2014-07-24 2015-08-13 中兴通讯股份有限公司 File management method and device
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN105243102A (en) * 2015-09-17 2016-01-13 北京金山安全软件有限公司 Processing method and device for unloading residual file and terminal
CN106557500A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning uninstalled residual file and terminal
CN106648720A (en) * 2015-11-02 2017-05-10 北京金山安全软件有限公司 Method, device and terminal for determining cleaning type of residual directory

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092664B (en) * 2013-02-07 2016-08-03 珠海市君天电子科技有限公司 Processing method and device for data file of android system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files
CN104754002A (en) * 2013-12-30 2015-07-01 北京金山网络科技有限公司 File cleaning method and device, mobile terminal and cloud-side server
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN104133641A (en) * 2014-07-24 2014-11-05 深圳市同洲电子股份有限公司 External storage equipment file deleting method and device
WO2015117426A1 (en) * 2014-07-24 2015-08-13 中兴通讯股份有限公司 File management method and device
CN105243102A (en) * 2015-09-17 2016-01-13 北京金山安全软件有限公司 Processing method and device for unloading residual file and terminal
CN106557500A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning uninstalled residual file and terminal
CN106648720A (en) * 2015-11-02 2017-05-10 北京金山安全软件有限公司 Method, device and terminal for determining cleaning type of residual directory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817920A (en) * 2021-03-03 2021-05-18 深圳市知小兵科技有限公司 Distributed big data cleaning method

Also Published As

Publication number Publication date
WO2019056237A1 (en) 2019-03-28

Similar Documents

Publication Publication Date Title
CN108038114B (en) Path query method, terminal and computer readable storage medium
CN102929601B (en) A kind of application management method and device
CN108197311B (en) House source data aggregation display method, device and equipment and readable storage medium
RU2619195C2 (en) Method and device for finding a file in a storage unit and router
WO2013143391A1 (en) Method and system for cleaning up files on device
JP5652220B2 (en) File management apparatus and program
WO2015117426A1 (en) File management method and device
CN104461504A (en) Managing method of terminal application program
CN107577711B (en) Method and device for caching pictures
CN103577567A (en) Method for uninstalling application and deleting garbage file in Android system
CN110019038B (en) File reference analysis method, device, equipment and computer readable storage medium
CN105373595B (en) data self-classification storage method and terminal
WO2015103967A1 (en) Application categorization method, application categorization apparatus, and service server
CN109117153B (en) Application processing method, device, terminal and storage medium
CN109710571B (en) File analysis method, device and storage medium
US20170199889A1 (en) Method and device for identifying junk picture files
CN105260438A (en) File management method and electronic device
CN104331376A (en) Method and device for clearing installation package stored in mobile terminal
CN103164247A (en) Method and device for automatically repairing system application
CN104461505A (en) Terminal
CN107766488B (en) Information query method, terminal and computer readable storage medium
CN106557500B (en) Method and device for cleaning uninstalled residual file and terminal
CN111712806A (en) Method and device for clearing residual file and readable storage medium
CN103729400A (en) Method and device for browsing file system of mobile terminal
CN104572943B (en) Exempt from installation procedure method for cleaning and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination