CN106980661A - Method and device for cleaning data files in mobile terminal and electronic equipment - Google Patents

Method and device for cleaning data files in mobile terminal and electronic equipment Download PDF

Info

Publication number
CN106980661A
CN106980661A CN201710168053.8A CN201710168053A CN106980661A CN 106980661 A CN106980661 A CN 106980661A CN 201710168053 A CN201710168053 A CN 201710168053A CN 106980661 A CN106980661 A CN 106980661A
Authority
CN
China
Prior art keywords
software
data file
white list
blacklist
user
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.)
Granted
Application number
CN201710168053.8A
Other languages
Chinese (zh)
Other versions
CN106980661B (en
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710168053.8A priority Critical patent/CN106980661B/en
Publication of CN106980661A publication Critical patent/CN106980661A/en
Application granted granted Critical
Publication of CN106980661B publication Critical patent/CN106980661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • 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
    • G06F16/174Redundancy elimination performed by the file system

Abstract

The embodiment of the invention discloses a method and a device for cleaning data files in a mobile terminal and electronic equipment, wherein the method comprises the following steps: when an operation instruction for executing closing operation on the software R is detected, judging whether the software R is software included in a preset blacklist or not; under the condition that the software R is the software recorded in the blacklist, judging whether the size of a data file S of the software R exceeds a threshold value Y corresponding to the software R or not; when the size of the data file S exceeds the threshold value Y, popping up a first prompt window to prompt a user whether to delete the data file S of the software R or not; and acquiring a first instruction triggered by the operation of the first prompt window by the user, judging whether the first instruction is a deletion instruction for indicating the deletion operation of the data file S, and if so, deleting the data file S of the software R. By implementing the embodiment of the invention, the storage space of the mobile terminal can be cleaned conveniently and timely.

Description

A kind of method for cleaning, device and the electronic equipment of data in mobile terminal file
Technical field
The application is related to technical field of data processing, more particularly to a kind of method for cleaning of data in mobile terminal file, Device and electronic equipment.
Background technology
With the exploitation of software, the software installed in the mobile terminal such as mobile phone is more and more, the meeting during software use Data file is produced, the memory space that data file takes is increasing with the increase of software access times, works as mobile terminal In leave unused memory space it is less when, in order to ensure mobile terminal runnability, it is necessary to mobile terminal store file enter Row cleaning.
At present, when clearing up the file that mobile terminal is stored, cache file generally only in cleaning data file. Accounted for as shown in figure 1, Fig. 1 is a translation software (Merriam-Webster Dictionary, abbreviation MWD) in mobile terminal With the schematic diagram of memory space, as shown in Figure 1, MWD data file has 209MB, and cache file has 172KB, data file ratio The memory space that cache file takes is more a lot, and when user is again turned on software, cache file can be generated again, only clears up slow Deposit file mobile terminal cleaning space is played a part of it is less, it is therefore necessary to data file is cleared up, but had The data file of software saves some more important information, once the use of software can be influenceed by deleting, in addition, the usual nothing of user Method judges that the data file of which software is smaller on the use of software influence after deleting, therefore how to the data of mobile terminal kind It is the problem of needing to solve that file, which carries out cleaning,.
The content of the invention
The embodiments of the invention provide a kind of method for cleaning, device and the electronic equipment of data in mobile terminal file, energy Enough improve the cleaning efficiency and reliability of data in mobile terminal file.
First aspect of the embodiment of the present invention provides a kind of method for cleaning of data in mobile terminal file, methods described bag Include following steps:
Whether when detecting the operational order to software R execution shutoff operations, it is default black name to judge the software R The software that list includes, wherein, the software R is mounted any software in mobile phone, have recorded data in the blacklist File is adapted to the software being cleaned;
In the case of the software recorded during the software R is the blacklist, the data file S of the software R is judged Size whether exceed the corresponding threshold value Y of the software R;
In the case where the size of the data file S exceedes the threshold value Y, the first prompt window is ejected, user is pointed out It can choose whether to delete the data file S of the software R;
The first instruction that user operates the first prompt window triggering is obtained, judges whether first instruction is instruction The deletion instruction of deletion action is carried out to the data file S, if so, then deleting the data file S of the software R.
Optionally, in some possible embodiments of the invention, judge whether the software R is default black described Before the software that list includes, methods described also includes:
Whether judge the software R is software that default white list includes;
If so, then terminating clean-up process;Described judge whether the software R is default blacklist if it is not, just performing Including software.
Optionally, in some possible embodiments of the invention, methods described also includes
If the software R is neither in the blacklist nor in the white list, judge the data file S's Whether size exceedes generic threshold value T;
If so, then ejecting the second prompt window, user is pointed out to can choose whether to enter the data file S of the software R Row is deleted;Operation of the user to second prompt window is obtained, whether judge the operation is to indicate to the data file S The operation deleted, if so, then deleting the data file S of the software R.
Optionally, in some possible embodiments of the invention, the white list includes local white list, the white name in high in the clouds Single and personalized white list;The local white list is the white list being stored in the mobile terminal pre-set, institute It is the white list obtained from given server to state high in the clouds white list, and personalized white list is to operate the white of generation according to user List.
Optionally, in some possible embodiments of the invention, the software in the personalized white list includes software R′;The software R ' starts the software included for the blacklist, if after software R ' described in n times is closed recently, user couple The operation of the prompt window is all referring to the data file S progress deletion actions shown not to the software R ', then by the software R ' is transferred in the personalized white list by the blacklist, and the N is the integer more than 1.
Second aspect of the embodiment of the present invention provides a kind of cleaning plant of data file, and described device includes:
First processing units, for when detecting the operational order to software R execution shutoff operations, judging the software Whether R is software that default blacklist includes, wherein, the software R is mounted any software in mobile phone, described black The software that data file is adapted to be cleaned is have recorded in list;
Second processing unit, for being the blacklist in the software R in the case of a software recording, judge Whether the data file S of software R size exceedes the corresponding threshold value Y of the software R;
3rd processing unit, in the case of exceeding the threshold value Y in the size of the data file S, ejection prompting Window, points out user to can choose whether to delete the data file S of the software R;
Fourth processing unit, for obtaining operational order of the user to the prompt window, judges that the operational order is The no operational order deleted for instruction the data file S, if so, then deleting the data file S of the software R.
Optionally, in some possible embodiments of the invention, described device also includes:
First judging unit, in the first processing units judge whether the software R is default blacklist Including software before, whether judge the software R is software that default white list includes;
5th processing unit, if the judged result for first judging unit is yes, terminates clean-up process;If institute The judged result for stating the first judging unit is no, and the first processing units just judge whether the software R is default black name The software that list includes.
Optionally, in some possible embodiments of the invention, described device also includes:
Second judging unit, if sentencing for the software R neither in the blacklist nor in the blacklist Whether disconnected data file S size exceedes generic threshold value Y ';
6th processing unit, if the judged result for second judging unit is yes, ejects prompt window, points out User can choose whether to delete the data file S of the software R;Operation of the user to the prompt window is obtained, Whether be the operation that indicates delete the data file S, if so, then deleting the number of the software R if judging the operation According to file S.
Optionally, in some possible embodiments of the invention, the white list includes local white list, the white name in high in the clouds Single and personalized white list;The local white list is the white list being stored in the mobile terminal pre-set, institute It is the white list obtained from given server to state high in the clouds white list, and personalized white list is to operate the white of generation according to user List.
Optionally, in some possible embodiments of the invention, described device also includes:
7th processing unit, for after the software R ' that blacklist includes is closed in nearest n times, if user is to described The operation of prompt window does not carry out deletion action all referring to showing to the data file S of the software R ', then by the software R ' by The blacklist is transferred in the personalized white list, and the N is the integer more than 1.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, including:Processor, memory, communication interface and Bus;
The processor, the memory and the communication interface are connected by the bus and completed mutual lead to Letter;
The memory storage executable program code;
The processor is run by reading the executable program code stored in the memory can perform with described The corresponding program of program code, disappears for performing a kind of method for cleaning of data in mobile terminal file;Methods described includes Following steps:
Whether when detecting the operational order to software R execution shutoff operations, it is default black name to judge the software R The software that list includes, wherein, the software R is mounted any software in mobile phone, have recorded data in the blacklist File is adapted to the software being cleaned;
In the case of the software recorded during the software R is the blacklist, the data text of the software R is judged Whether part S size exceedes the corresponding threshold value Y of the software R;
In the case where the size of the data file S exceedes the threshold value Y, prompt window is ejected, points out user can be with Choose whether to delete the data file S of the software R;
Operational order of the user to the prompt window is obtained, whether judge the operational order is to indicate to the data The operational order that file S is deleted, if so, then deleting the data file S of the software R.
Fourth aspect of the embodiment of the present invention provides a kind of storage medium, wherein, the storage medium is used to store application program, The application program is used for the cleaning side for operationally performing a kind of data in mobile terminal file described in the embodiment of the present invention Method.
The aspect of the embodiment of the present invention the 5th provides a kind of application program, wherein, the application program is used to operationally perform A kind of method for cleaning of data in mobile terminal file described in the embodiment of the present invention.
The embodiment of the present invention, when software is closed, mobile terminal can be preliminary according to the information recorded in blacklist Judge whether to clear up the data file of pent software, if through the preliminary data for judging to determine to need to clear up the software File, then eject prompt window, and then whether user further performs deletion action to the data file of the software and confirm, If user confirms to need to carry out deletion action to the data file of the software, the data file of the software is deleted.Using this hair During the technical scheme cleaning data file that bright embodiment is provided, meeting automatic spring can be cleaned the software of data file, and Deletion action is just performed after confirming through user, the efficiency and reliability cleared up data file is so improved.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly or in background technology, below will be to present invention implementation The accompanying drawing used required in example or background technology is illustrated.
Fig. 1 is storage size schematic diagram shared by a software;
Fig. 2 is a kind of framework signal of cleaning system of data in mobile terminal file disclosed in embodiments of the invention Figure;
Fig. 3-a are a kind of flows of the method for cleaning of data in mobile terminal file disclosed in one embodiment of the present of invention Schematic diagram;
Fig. 3-b are the interface schematic diagrams of a mobile terminal disclosed in one embodiment of the present of invention;
Fig. 3-c are an interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 3-d are another interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 3-e are another interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 4-a are a kind of flows of the method for cleaning of data in mobile terminal file disclosed in another embodiment of the present invention Schematic diagram;
Fig. 4-b are the interface schematic diagrams of a mobile terminal disclosed in one embodiment of the present of invention;
Fig. 4-c are an interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 4-d are another interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 4-e are another interface schematic diagrams of mobile terminal disclosed in one embodiment of the present of invention;
Fig. 5 is a kind of structural representation of the cleaning plant of data file disclosed in one embodiment of the present of invention;
Fig. 6 is the structural representation of a kind of electronic equipment disclosed in one embodiment of the present of invention.
Embodiment
The embodiment of the present application is described with reference to the accompanying drawing in the embodiment of the present application.
The embodiment of the present application provides a kind of method for cleaning, device and the electronic equipment of data in mobile terminal file, energy Enough improve file clean-up efficiency and reliability.
Fig. 2 is referred to, Fig. 2 is a kind of frame of the cleaning system for data in mobile terminal file that the embodiment of the present application is provided Structure schematic diagram.As shown in Fig. 2 user 200 operates to mobile terminal 201, when the software in mobile terminal 201 is closed When, mobile terminal 201 judges whether the software is software in blacklist, if the software in blacklist, then ejection prompting Window, prompts the user to choose whether to perform deletion action to the data file of the software, if user 200 selects the number to the software Deletion action is performed according to file, then deletes the data file of the software, it is mobile whole in some possible embodiments of the invention End is before carrying out judging whether software is blacklist, and whether be software in white list, wherein white list if first judging the software Including the network white list by network 202 from given server 203 from acquisition, if software is not belonging to the software ability in white list Whether judge software is software in blacklist.Wherein mobile terminal 201 can be the terminal devices such as mobile phone, the embodiment of the present application Middle mobile terminal is described by taking mobile phone as an example.
Refering to Fig. 3, Fig. 3 is a kind of method for cleaning of data in mobile terminal file disclosed in the application one embodiment Schematic flow sheet, as shown in figure 3, the method for cleaning specifically includes following steps:
301st, whether when detecting the operational order to software R execution shutoff operations, it is default black name to judge software R The software that list includes, wherein, software R is mounted any software in mobile phone, and data file is have recorded in blacklist and is adapted to The software being cleaned.
Wherein, default blacklist can be the file preserved in the terminal, such as, blacklist can be installation kit The file included or the file obtained from given server or external equipment, include in this document Software identification, when detecting to software R execution shutoff operations, first obtains software R mark, then judges software R mark Whether it is some mark in blacklist.The mark of software can be the bag name of the installation kit of software, such as the mark of wechat can To be com.tencent.mm, the mark of Taobao can be com.taobao.taobao, and the mark of UC browsers can be Com.UCMobile.intl, if Taobao and UC browsers are the software in blacklist, blacklist includes the mark of Taobao Com.taobao.taobao, and UC browsers mark com.UCMobile.intl.If it should be understood that wechat is not black Software in list, then the mark com.tencent.mm of wechat be not included in blacklist.
302nd, in the case of the software recorded during software R is blacklist, judging software R data file S size is It is no to exceed the corresponding threshold value Y of software R.
It should be noted that different software can correspond to different threshold values, for example, software R1 threshold value can be 100Mb, software R2 threshold value can be 200Mb etc..It should be understood that the threshold value of different software can be the same or different.
303rd, in the case where data file S size exceedes threshold value Y, the first prompt window is ejected, user is pointed out selection Whether the data file S of the software R is deleted.
As an example it is assumed that the corresponding threshold value of Taobao is 150Mb, if software R is Taobao, and the corresponding mark of Taobao Com.taobao.taobao is located in blacklist, when Taobao closes, if the corresponding data file of Taobao exceedes threshold value 150Mb, If then ejecting prompt window shown in Fig. 3-b on mobile phone, the corresponding space of release Taobao is prompted the user whether.
It should be understood that the first prompt window can also be as shown in Fig. 3-d, display processing application software is washed in a pan in Fig. 3-d The total amount of precious shared memory space is 360Mb, and wherein the size of data file is 221Mb.
304th, the first instruction that user operates the triggering of the first prompt window is obtained, whether judge the first instruction is to indicate logarithm The deletion instruction of deletion action is carried out according to file S, if so, then deleting software R data file S.
If user chooses " Free up Memory " button in Fig. 3-b, deletion action is performed to the data file in Taobao.
It is understood that because data file potentially includes configuration information, accounts information of user etc., being risen in order to prudent See, before deletion action is performed to Taobao's data file, can further eject prompt window shown in Fig. 3-c, remind user Mobile phone Taobao is restored to initial mounting state, is confirmed whether to delete data file, if user chooses " continuation " in Fig. 3-c to press Key then performs deletion action to the data file of Taobao.It is understood that the prompt window further ejected can also be such as figure Shown in 3-e.
The embodiment of the present invention, when software is closed, mobile terminal can be preliminary according to the information recorded in blacklist Judge whether to clear up the data file of pent software, if through the preliminary data for judging to determine to need to clear up the software File, then eject prompt window, and then whether user further performs deletion action to the data file of the software and confirm, If user confirms to need to carry out deletion action to the data file of the software, the data file of the software is deleted.Using this hair During the technical scheme cleaning data file that bright embodiment is provided, meeting automatic spring can be cleaned the software of data file, and Deletion action is just performed after confirming through user, the efficiency and reliability cleared up data file is so improved.
Optionally, in some possible embodiments of the invention, judge whether the software R is default black described Before the software that list includes, methods described also includes:
Whether judge the software R is software that default white list includes;If so, then terminating clean-up process;If it is not, Just perform and described judge whether the software R is software that default blacklist includes.
For example, if white list includes the mark com.tencent.mm of wechat, when pent software R is micro- During letter, then terminate clean-up process, the data file to wechat in mobile phone is not processed.
Optionally, in some possible embodiments of the invention, method also includes
If software R is neither in blacklist nor in white list, judge data file S size whether more than general Threshold value T;If so, then ejecting the second prompt window, user is pointed out to can choose whether to perform deletion to software R data file S Operation, if so, then deleting software R data file.
For example, if generic threshold value T is 100Mb, if software R sentences neither in white list nor in blacklist Whether disconnected software R data file is more than 100Mb, the second prompt window is ejected if more than 100Mb, if being not above 100Mb Then the data file to software R is not processed.
It should be noted that in some possible embodiments of the invention,
White list includes local white list, high in the clouds white list and personalized white list;Local white list is to pre-set The white list preserved in mobile phone, the high in the clouds white list is the white list that is obtained from given server, personalized white name Single is the white list of the operation generation according to user.
Wherein, the software in personalized white list includes software R ';Software R ' starts the software included for blacklist, if After nearest n times software R ' is closed, user is to the operation of prompt window all referring to can not showing the data file S of the software R ' Software R ', then be transferred in personalized white list by row deletion action by blacklist, and N is the integer more than 1.Such as, if N is 2, If software R ' is Taobao, by taking the prompt window shown in Fig. 3-b as an example, if Taobao is when closing twice recently, if all ejecting Prompt window shown in similar Fig. 3-c, if user after the prompt window shown in similar Fig. 3-c is ejected twice recently, to carrying Show that the operation of window is all click on " cancelling " button, then Taobao by blacklist can be transferred to personalized white list.
Refering to Fig. 4-a, Fig. 4-a are a kind of cleaning sides of data in mobile terminal file disclosed in one embodiment of the invention The schematic flow sheet of method, in this embodiment, using software R as UC browsers, and UC browsers be blacklist in software exemplified by It is described.As depicted in fig. 4-a, the method for cleaning specifically includes following steps:
401st, mobile terminal detects UC browsers and is closed, and obtains the bag name com.UCMobile.intl of UC browsers.
402nd, judge whether include the bag name com.UCMobile.intl of UC browsers in local white list.
403rd, when not including the bag name com.UCMobile.intl of UC browsers in judging local white list, judge Whether the bag name com.UCMobile.intl of UC browser is included in the white list of high in the clouds.
Wherein, high in the clouds white list is the white list obtained from given server.It should be understood that some may in the present invention Embodiment in, can also set and the software in blacklist is updated by high in the clouds, for software newly developed, so White and black list can be updated in time, be conducive to timely and accurately determining whether to hold pent software Row deletes the operation of data file.
404th, when not including the bag name com.UCMobile.intl of UC browsers in judging high in the clouds white list, judge Whether the bag name com.UCMobile.intl of UC browser is included in personalized white list.
405th, when not including the bag name com.UCMobile.intl of UC browsers in judging personalized white list, sentence Whether the bag name com.UCMobile.intl of UC browser is included in disconnected blacklist.
406th, when to judge UC browsers be the software in blacklist, the corresponding threshold value of UC browsers is obtained.
407th, judge whether the size of the data file of UC browsers is more than the corresponding threshold value of UC browsers.
408th, when judging that the size of data file of UC browsers is more than the corresponding threshold value of UC browsers, ejection first Prompt window.
Wherein, the first prompt window is as shown in Fig. 4-b, and user can select Free up Memory (FREE SPACE) option, It can select to cancel (CANCLE) option.
If the 409, user chooses Free up Memory option in the first prompt window, the second prompt window is ejected, user is pointed out UC Browser will return to initial mounting state, be confirmed whether to delete.
Wherein, the second prompt window is as shown in Fig. 4-c, if user determines to delete the data file of UC browsers, can be with Choose and continue option, if user determines to cancel performs deletion action to the data file of UC browsers, cancellation choosing can be chosen .
410th, selection operation of the user to continuation option is obtained, instruction is deleted in triggering, deletes the data file of UC browsers.
It should be noted that when deleting the data file of UC browsers, the data volume of deletion can be shown in real time, such as scheme Shown in 4-d, Fig. 4-d are an interface display figures of mobile phone interface during deleting, and Fig. 4-e are that the data file of UC browsers is complete The prompt window shown after being deleted entirely, points out to have discharged 389Mb spaces by deleting the data file of UC browsers.
The embodiment of the present invention, when software is closed, mobile terminal can be preliminary according to the information recorded in blacklist Judge whether to clear up the data file of pent software, if through the preliminary data for judging to determine to need to clear up the software File, then eject prompt window, and then whether user further performs deletion action to the data file of the software and confirm, If user confirms to need to carry out deletion action to the data file of the software, the data file of the software is deleted.Using this hair During the technical scheme cleaning data file that bright embodiment is provided, meeting automatic spring can be cleaned the software of data file, and Deletion action is just performed after confirming through user, the efficiency and reliability cleared up data file is so improved.
Referring to Fig. 5, be a kind of cleaning plant 500 of data file provided in an embodiment of the present invention, specifically, Fig. 5 institutes The cleaning plant 500 for the data file shown can include:First processing units 501, the processing of second processing unit the 502, the 3rd are single Member 503 and fourth processing unit 504.
Wherein, first processing units 501 are used for the method for performing step 301 in the inventive method embodiment Fig. 3-a, first The embodiment of processing unit 501 may be referred to the corresponding description of step 301 in the inventive method embodiment Fig. 3-a, herein not Repeat again.
Second processing unit 502 is used for the method for performing step 302 in the inventive method embodiment Fig. 3-a, second processing The embodiment of unit 502 may be referred to the corresponding description of step 302 in the inventive method embodiment Fig. 3-a, no longer go to live in the household of one's in-laws on getting married herein State.
3rd processing unit 503 is used for the method for performing step 303 in the inventive method embodiment Fig. 3-a, the 3rd processing The embodiment of unit 503 may be referred to the corresponding description of step 303 in the inventive method embodiment Fig. 3-a, no longer go to live in the household of one's in-laws on getting married herein State.
Fourth processing unit 504 is used for the method for performing step 304 in the inventive method embodiment Fig. 3-a, fourth process The embodiment of unit 504 may be referred to the corresponding description of step 304 in the inventive method embodiment Fig. 3-a, no longer go to live in the household of one's in-laws on getting married herein State.
Optionally, in some possible embodiments of the invention, the cleaning plant of data file can also include:
First judging unit, in the first processing units judge whether the software R is default blacklist Including software before, whether judge the software R is software that default white list includes.
5th processing unit, if the judged result for first judging unit is yes, terminates clean-up process;If institute The judged result for stating the first judging unit is no, and the first processing units just judge whether the software R is default black name The software that list includes.
Optionally, in some possible embodiments of the invention, the cleaning plant of data file can also include:
Second judging unit, if sentencing for the software R neither in the blacklist nor in the blacklist Whether disconnected data file S size exceedes generic threshold value Y '.
6th processing unit, if the judged result for second judging unit is yes, ejects prompt window, points out User can choose whether to delete the data file S of the software R;Operation of the user to the prompt window is obtained, Whether be the operation that indicates delete the data file S, if so, then deleting the number of the software R if judging the operation According to file S.
It should be noted that white list includes local white list, high in the clouds white list and personalized white list;Described Ground white list is the white list being stored in the mobile terminal pre-set, and the high in the clouds white list is from given server The white list of upper acquisition, personalized white list is the white list of the operation generation according to user.
Optionally, in some possible embodiments of the invention, the cleaning plant of data file also includes:
7th processing unit, for after the software R ' that blacklist includes is closed in nearest n times, if user is to described The operation of prompt window does not carry out deletion action all referring to showing to the data file S of the software R ', then by the software R ' by The blacklist is transferred in the personalized white list, and the N is the integer more than 1.
The embodiment of the present invention, when software is closed, mobile terminal can be preliminary according to the information recorded in blacklist Judge whether to clear up the data file of pent software, if through the preliminary data for judging to determine to need to clear up the software File, then eject prompt window, and then whether user further performs deletion action to the data file of the software and confirm, If user confirms to need to carry out deletion action to the data file of the software, the data file of the software is deleted.Using this hair During the technical scheme cleaning data file that bright embodiment is provided, meeting automatic spring can be cleaned the software of data file, and Deletion action is just performed after confirming through user, the efficiency and reliability cleared up data file is so improved.
Referring to Fig. 6, Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention, the mobile terminal 600, it can include:
Processor 601, memory 602, communication interface 603 and bus 604;
Wherein, the processor 601, memory 602 and communication interface 603 are connected by bus 604 and completed each other Communication.
Memory 602 stores executable program code.
Processor 601 is held by reading the executable program code stored in the memory 602 to run with described The corresponding program of line program code, for performing a kind of method for cleaning of data in mobile terminal file.Wherein, it is a kind of mobile The method for cleaning of data in terminal file includes herein below:
Whether when detecting the operational order to software R execution shutoff operations, it is default black name to judge the software R The software that list includes, wherein, the software R is mounted any software in mobile phone, have recorded data in the blacklist File is adapted to the software being cleaned;
In the case of the software recorded during the software R is the blacklist, the data file S of the software R is judged Size whether exceed the corresponding threshold value Y of the software R;
In the case where the size of the data file S exceedes the threshold value Y, the first prompt window is ejected, user is pointed out Choose whether to delete the data file S of the software R;
The first instruction that user operates the first prompt window triggering is obtained, judges whether first instruction is instruction The deletion instruction of deletion action is carried out to the data file S, if so, then deleting the data file S of the software R.
Optionally, in some possible embodiments of the invention, judge whether the software R is default black described Before the software that list includes, methods described can also include:
Whether judge the software R is software that default white list includes;
If so, then terminating clean-up process;Described judge whether the software R is default blacklist if it is not, just performing Including software.
Optionally, in some possible embodiments of the invention, methods described can also include
If the software R is neither in the blacklist nor in the white list, judge the data file S's Whether size exceedes generic threshold value T;
If so, then ejecting the second prompt window, user is pointed out to can choose whether to enter the data file S of the software R Row is deleted;Operation of the user to second prompt window is obtained, whether judge the operation is to indicate to the data file S The operation deleted, if so, then deleting the data file S of the software R.
Optionally, in some possible embodiments of the invention, the white list includes local white list, the white name in high in the clouds Single and personalized white list;The local white list is the white list being stored in the mobile terminal pre-set, institute It is the white list obtained from given server to state high in the clouds white list, and personalized white list is to operate the white of generation according to user List.
Optionally, in some possible embodiments of the invention, the software in the personalized white list includes software R′;The software R ' starts the software included for the blacklist, if after software R ' described in n times is closed recently, user couple The operation of the prompt window is all referring to the data file S progress deletion actions shown not to the software R ', then by the software R ' is transferred in the personalized white list by the blacklist, and the N is the integer more than 1.
As can be seen that using technical scheme provided in an embodiment of the present invention, when software is closed, mobile terminal can be with Tentatively judged whether to clear up the data file of pent software according to the information recorded in blacklist, if through tentatively sentencing Disconnected determination needs to clear up the data file of the software, then ejects prompt window, then the data text of user further to the software Whether part, which performs deletion action, is confirmed, if user confirms to need to carry out deletion action to the data file of the software, is deleted Except the data file of the software.When clearing up data file using technical scheme provided in an embodiment of the present invention, meeting automatic spring can To be cleaned the software of data file, and deletion action is just performed after confirming through user, so improve and data file is entered The efficiency and reliability of row cleaning.
The embodiment of the present invention additionally provides a kind of storage medium, wherein, the storage medium is used to store application program, described Application program is used for the method for cleaning for operationally performing a kind of data in mobile terminal file described in the embodiment of the present invention.
The embodiment of the present invention additionally provides a kind of application program, wherein, the application program is used to operationally perform this hair A kind of method for cleaning of data in mobile terminal file described in bright embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
, can be by another way in several embodiments provided herein, it should be understood that disclosed device Realize.For example, device embodiment described above is schematical, such as the division of described unit, only a kind of logic Such as function is divided, and can have other dividing mode when actually realizing, multiple units or component can be combined or can collected Into to another system, or some features can be ignored, or not perform.Another, shown or discussed coupling each other Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be with It is electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above, above example is only to illustrate technical solution of the present invention, rather than its limitations;Although with reference to foregoing The present invention is described in detail embodiment, wherein, it will be understood by those within the art that:It still can be right Technical scheme described in foregoing embodiments is modified, or carries out equivalent substitution to which part technical characteristic;And this A little modifications are replaced, and the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of method for cleaning of data in mobile terminal file, it is characterised in that the described method comprises the following steps:
Detect the operational order of shutoff operation is performed to software R when, in judging whether the software R is default blacklist Including software, wherein, the software R is mounted any software in mobile phone, have recorded data file in the blacklist It is adapted to the software being cleaned;
In the case of the software that records during the software R is the blacklist, judge the software R data file S it is big It is small whether to exceed the corresponding threshold value Y of the software R;
In the case where the size of the data file S exceedes the threshold value Y, the first prompt window is ejected, user is pointed out selection Whether the data file S of the software R is deleted;
The first instruction that user operates the first prompt window triggering is obtained, whether judge first instruction is to indicate to institute The deletion instruction that data file S carries out deletion action is stated, if so, then deleting the data file S of the software R.
2. according to the method described in claim 1, it is characterised in that
It is described judge whether the software R is the software that default blacklist includes before, methods described also includes:
Whether judge the software R is software that default white list includes;
If so, then terminating clean-up process;Described judge whether the software R is that default blacklist includes if it is not, just performing Software.
3. method according to claim 2, it is characterised in that methods described also includes
If the software R is neither in the blacklist nor in the white list, the size of the data file S is judged Whether generic threshold value T is exceeded;
If so, then ejecting the second prompt window, user is pointed out to can choose whether to delete the data file S of the software R Remove;Operation of the user to second prompt window is obtained, whether judge the operation is to indicate to carry out the data file S The operation of deletion, if so, then deleting the data file S of the software R.
4. the method according to claim any one of 1-3, it is characterised in that
The white list includes local white list, high in the clouds white list and personalized white list;The local white list is advance The white list being stored in the mobile terminal set, the high in the clouds white list is the white name obtained from given server Single, personalized white list is the white list of the operation generation according to user.
5. method according to claim 4, it is characterised in that
Software in the personalized white list includes software R ';The software R ' start for the blacklist include it is soft Part, if after software R ' described in n times is closed recently, user is to the operation of the prompt window all referring to showing not to the software R ' Data file S carry out deletion action, then the software R ' is transferred in the personalized white list by the blacklist, institute It is the integer more than 1 to state N.
6. a kind of cleaning plant of data file, it is characterised in that described device includes:
First processing units, for when detecting the operational order to software R execution shutoff operations, judging that the software R is The no software included for default blacklist, wherein, the software R is mounted any software, the black name in mobile phone The software that data file is adapted to be cleaned is have recorded in list;
Second processing unit, for being the blacklist in the software R in the case of a software recording, judge described Whether software R data file S size exceedes the corresponding threshold value Y of the software R;
3rd processing unit, in the case of exceeding the threshold value Y in the size of the data file S, ejects prompt window, Prompt the user to choose whether to delete the data file S of the software R;
Fourth processing unit, for obtaining operational order of the user to the prompt window, judge the operational order whether be The operational order deleted the data file S is indicated, if so, then deleting the data file S of the software R.
7. device according to claim 6, it is characterised in that described device also includes:
First judging unit, for judging whether the software R is that default blacklist includes in the first processing units Software before, whether judge the software R is software that default white list includes;
5th processing unit, if the judged result for first judging unit is yes, terminates clean-up process;If described The judged result of one judging unit is no, during the first processing units just judge whether the software R is default blacklist Including software.
8. device according to claim 7, it is characterised in that described device also includes:
Second judging unit, if judging institute neither in the blacklist nor in the blacklist for the software R Whether the size for stating data file S exceedes generic threshold value Y ';
6th processing unit, if the judged result for second judging unit is yes, ejects prompt window, points out user It can choose whether to delete the data file S of the software R;Operation of the user to the prompt window is obtained, is judged Whether the operation is the operation for indicating to delete the data file S, if so, then deleting the data text of the software R Part S.
9. the device according to claim any one of 6-8, it is characterised in that
The white list includes local white list, high in the clouds white list and personalized white list;The local white list is advance The white list being stored in the mobile terminal set, the high in the clouds white list is the white name obtained from given server Single, personalized white list is the white list of the operation generation according to user.
10. a kind of electronic equipment, it is characterised in that including:Processor, memory, communication interface and bus;
The processor, the memory and the communication interface are connected by the bus and complete mutual communication;
The memory storage executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory The corresponding program of code, disappears for performing a kind of method for cleaning of data in mobile terminal file;Methods described includes following Step:
Detect the operational order of shutoff operation is performed to software R when, in judging whether the software R is default blacklist Including software, wherein, the software R is mounted any software in mobile phone, have recorded data file in the blacklist It is adapted to the software being cleaned;
In the case of the software recorded during the software R is the blacklist, the data file S of the software R is judged Size whether exceed the corresponding threshold value Y of the software R;
In the case where the size of the data file S exceedes the threshold value Y, prompt window is ejected, points out user to select Whether the data file S of the software R is deleted;
Operational order of the user to the prompt window is obtained, whether judge the operational order is to indicate to the data file The operational order that S is deleted, if so, then deleting the data file S of the software R.
CN201710168053.8A 2017-03-20 2017-03-20 Method and device for cleaning data files in mobile terminal and electronic equipment Active CN106980661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710168053.8A CN106980661B (en) 2017-03-20 2017-03-20 Method and device for cleaning data files in mobile terminal and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710168053.8A CN106980661B (en) 2017-03-20 2017-03-20 Method and device for cleaning data files in mobile terminal and electronic equipment

Publications (2)

Publication Number Publication Date
CN106980661A true CN106980661A (en) 2017-07-25
CN106980661B CN106980661B (en) 2020-10-09

Family

ID=59339535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710168053.8A Active CN106980661B (en) 2017-03-20 2017-03-20 Method and device for cleaning data files in mobile terminal and electronic equipment

Country Status (1)

Country Link
CN (1) CN106980661B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121666A (en) * 2017-11-16 2018-06-05 成都华为技术有限公司 The rubbish recovering method and device of a kind of flash memory
WO2019090725A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Terminal removing personal file of user on basis of user habits

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544035A (en) * 2013-10-21 2014-01-29 北京奇虎科技有限公司 Application clearing method and device for mobile terminal
KR20150025287A (en) * 2013-08-28 2015-03-10 주식회사 팬택 Apparatus and method for managing application storage area of mobile terminal
CN104462264A (en) * 2014-11-21 2015-03-25 北京奇虎科技有限公司 Method and device for clearing junk files in operating system
CN105159913A (en) * 2015-07-06 2015-12-16 北京金山安全软件有限公司 Method and device for determining file to be cleaned
US20160063009A1 (en) * 2014-09-03 2016-03-03 Verizon Patent And Licensing Inc. Proactively clearing digital storage
CN105653945A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Information processing method and device based on blacklist and electronic equipment
CN106022101A (en) * 2016-05-17 2016-10-12 广东欧珀移动通信有限公司 Application management method and terminal
CN106227744A (en) * 2016-07-12 2016-12-14 努比亚技术有限公司 Terminal document managing device, terminal and terminal document management method
CN106250462A (en) * 2016-07-28 2016-12-21 北京金山安全软件有限公司 Method and device for cleaning junk files and mobile device
CN106294773A (en) * 2016-08-11 2017-01-04 北京小米移动软件有限公司 Data clearing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150025287A (en) * 2013-08-28 2015-03-10 주식회사 팬택 Apparatus and method for managing application storage area of mobile terminal
CN103544035A (en) * 2013-10-21 2014-01-29 北京奇虎科技有限公司 Application clearing method and device for mobile terminal
US20160063009A1 (en) * 2014-09-03 2016-03-03 Verizon Patent And Licensing Inc. Proactively clearing digital storage
CN104462264A (en) * 2014-11-21 2015-03-25 北京奇虎科技有限公司 Method and device for clearing junk files in operating system
CN105159913A (en) * 2015-07-06 2015-12-16 北京金山安全软件有限公司 Method and device for determining file to be cleaned
CN105653945A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Information processing method and device based on blacklist and electronic equipment
CN106022101A (en) * 2016-05-17 2016-10-12 广东欧珀移动通信有限公司 Application management method and terminal
CN106227744A (en) * 2016-07-12 2016-12-14 努比亚技术有限公司 Terminal document managing device, terminal and terminal document management method
CN106250462A (en) * 2016-07-28 2016-12-21 北京金山安全软件有限公司 Method and device for cleaning junk files and mobile device
CN106294773A (en) * 2016-08-11 2017-01-04 北京小米移动软件有限公司 Data clearing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
楚留香59: "怎样清空安卓手机APP的数据让手机更流畅", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/03B2F78C11DCCA5EA337AE69.HTML》 *
泡沫之夏夏5: "手机如何清理和保护白名单", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/84B4F565EC689F60F6DA32C2.HTML?SPM=0.0.0.0.X36OB8》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019090725A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Terminal removing personal file of user on basis of user habits
CN110140117A (en) * 2017-11-10 2019-08-16 华为技术有限公司 Terminal is based on the automatic cleaning individual subscriber file of user's habit
CN110140117B (en) * 2017-11-10 2023-11-17 华为技术有限公司 Terminal automatically cleans personal files of users based on user habits
CN108121666A (en) * 2017-11-16 2018-06-05 成都华为技术有限公司 The rubbish recovering method and device of a kind of flash memory
CN108121666B (en) * 2017-11-16 2020-09-04 成都华为技术有限公司 Garbage recovery method and device for flash memory

Also Published As

Publication number Publication date
CN106980661B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN103488473B (en) A kind of management system and management method to application program for mobile terminal
CN104168177B (en) Method and device for presenting and browsing group messages in instant communication program
CN102830900B (en) Control method to set up and terminal unit
CN106991304A (en) The processing method and processing device of message
CN104426944B (en) Information feedback method, device and terminal
CN104601683B (en) A kind of file download management method and mobile terminal and communication system
CN104462979B (en) The automation dynamic testing method and device of a kind of application program
CN104966030B (en) information security processing method and device and mobile terminal
CN104169862B (en) A kind of information processing method and terminal device
CN106445604A (en) Clearing method and device for applications
CN106326137A (en) Memory optimization method and apparatus, and user equipment
CN106980661A (en) Method and device for cleaning data files in mobile terminal and electronic equipment
CN103164432A (en) Method of recovering mistakenly-deleted files and mobile terminal
CN108228571A (en) Generation method, device, storage medium and the terminal device of distich
CN106791036A (en) A kind of information processing method, device and mobile terminal
CN105991415A (en) Message pushing method and mobile terminal
CN108694413A (en) Adaptively sampled unbalanced data classification processing method, device, equipment and medium
CN104102411B (en) A kind of method for editing text and text editing apparatus
CN105425997B (en) A kind of user terminal restart after interface display method and user terminal
CN105930437A (en) Method and device for managing pictures in application program as well as terminal equipment
CN104065617B (en) A kind of harassing and wrecking email processing method, device and system
CN107623627A (en) A kind of information replying method and device, terminal and readable storage medium storing program for executing
CN103957307B (en) Information processing method and electronic equipment
CN109636378A (en) Account recognition methods and device, electronic equipment
CN110140117A (en) Terminal is based on the automatic cleaning individual subscriber file of user's habit

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
GR01 Patent grant
GR01 Patent grant