CN104965731A - Data processing method and electronic terminal - Google Patents

Data processing method and electronic terminal Download PDF

Info

Publication number
CN104965731A
CN104965731A CN201510296189.8A CN201510296189A CN104965731A CN 104965731 A CN104965731 A CN 104965731A CN 201510296189 A CN201510296189 A CN 201510296189A CN 104965731 A CN104965731 A CN 104965731A
Authority
CN
China
Prior art keywords
file
identity information
electric terminal
folder
destination
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
CN201510296189.8A
Other languages
Chinese (zh)
Other versions
CN104965731B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510296189.8A priority Critical patent/CN104965731B/en
Publication of CN104965731A publication Critical patent/CN104965731A/en
Application granted granted Critical
Publication of CN104965731B publication Critical patent/CN104965731B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiments of the invention disclose a data processing method and an electronic terminal. The method comprises: an electronic terminal determines whether a target application creates a folder during installation or running; if yes, the electronic terminal creates an identity information file in the folder, wherein the identity information file carries identity information that corresponds to the target application; when the electronic terminal detects that the target application is uninstalled, the electronic terminal traverses folders in an external storage to find a target folder, wherein the target folder comprises the identity information file that carries the identity information of the target application; and the electronic terminal deletes the target folder. According to the invention, residual files can be quickly and thoroughly deleted after software is uninstalled.

Description

A kind of data processing method and electric terminal
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of data processing method and electric terminal.
Background technology
The application of electric terminal in our life is more and more extensive, greatly facilitates our life.User can produce mass data in the exterior storage at electric terminal in the process of installing this application program and this application program of use, and after user's later stage unloads the application program that is in most cases, these data are otiose to user, in order to prevent the useful information of user from losing, electric terminal also can not initiatively delete these data.Time has been grown, and the residual data in electric terminal will be cumulative, until take whole external memory space.
In time external memory space being carried out to artificial cleaning, often during which file of None-identified, useful which is useless, and causes Stub File by complete deletion, cannot delete some vital documents even by mistake.
Summary of the invention
The embodiment of the invention discloses a kind of data processing method and electric terminal, Stub File during software unloading can be deleted fast up hill and dale.
First aspect, the embodiment of the present invention provides a kind of data processing method, and the method comprises:
Electric terminal judges the destination application whether newly-built file when installing or run;
If so, then described electric terminal sets up identity information file in described file, and wherein, described identity information file carries identity information corresponding to described destination application;
After described electric terminal detects that described destination application is unloaded, travel through file in described exterior storage to find out destination folder, wherein, the identity information file of the identity information carrying described destination application is included in described destination folder;
Described electric terminal deletes described destination folder.
In conjunction with first aspect, in the first possible implementation of first aspect, described electric terminal sets up identity information file in described file, comprising:
Described electric terminal judges the identity information file whether comprising the identity information carrying described destination application in the parent folder belonging to described file;
If not, then described electric terminal sets up identity information file in described file.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, file in the described exterior storage of described traversal with after finding out destination folder, and before the described destination folder of described deletion, also comprises:
Described electric terminal judges whether to comprise in described destination folder identity information corresponding at least two different application programs;
If not, then the step of the described destination folder of described deletion is performed.
In conjunction with the first possible implementation of first aspect or first aspect, in the third possible implementation of first aspect, described in described file, set up identity information file after, and file in the described exterior storage of described traversal is with before finding out destination folder, also comprises:
Receive the data detection command of user's input;
Respond described data detection command, whether unloadedly detect described destination application.
In conjunction with the first possible implementation of first aspect or first aspect, in the 4th kind of possible implementation of first aspect, described electric terminal deletes described destination folder, comprising:
Judge in described destination folder, whether to comprise the video file being greater than preset data threshold value;
When judged result is for being, exports information and selecting for user;
Receive the data scrubbing instruction that user inputs according to described information;
Respond described data scrubbing instruction, delete described destination folder.
Second aspect, embodiments provides a kind of electric terminal, and this electric terminal comprises:
First judging unit, for judging the destination application whether newly-built file when installing or run;
Setting up unit, for when the judged result of described first judging unit is for being, setting up identity information file in described file, wherein, described identity information file carries identity information corresponding to described destination application;
Search unit, after detecting that described destination application is unloaded when described electric terminal, travel through file in described exterior storage to find out destination folder, wherein, in described destination folder, include the identity information file of the identity information carrying described destination application;
Delete cells, for deleting described destination folder.
In conjunction with second aspect, in the first possible implementation of second aspect, described unit of setting up comprises:
First judgment sub-unit, for judging the identity information file whether comprising the identity information carrying described destination application in the parent folder belonging to described file;
Set up subelement, for when the judged result of described first judgment sub-unit is no, in described file, set up identity information file.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, described electric terminal also comprises:
Second judging unit, for judging whether to comprise in described destination folder identity information corresponding at least two different application programs, when judged result is no, triggers described delete cells and deleting described file destination.
In conjunction with the first possible implementation of second aspect or second aspect, in the third possible implementation of second aspect, described electric terminal also comprises:
Receiving element, for receiving the data detection command of user's input;
Whether unloaded response unit, for responding described data detection command, detect described destination application.
In conjunction with the first possible implementation of second aspect or second aspect, in the 4th kind of possible implementation of second aspect, described delete cells comprises:
Whether the second judgment sub-unit, comprise for judging the video file being greater than preset data threshold value in described destination folder;
Export subelement, for when the judged result of described second judgment sub-unit is for being, exports information and selecting for user;
Receive subelement, for receiving the data scrubbing instruction that user inputs according to described information;
Response subelement, for responding described data scrubbing instruction, deletes described destination folder.
By implementing the embodiment of the present invention, electric terminal first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, file in traversal exterior storage to find out the file comprising above-mentioned file, and is deleted, rubbish residual after effectively having cleared up application program unloading.
Further, when also comprising above-mentioned file in the parent folder judging newly-generated file, then no longer in newly-generated file, set up above-mentioned file, because electric terminal can clear up parent folder naturally when carrying out garbage-cleaning, the new folder be present in parent folder also can be deleted; Before Delete Folder, first judge the identity information that whether also there are other application programs in file, if then reserved folder is for other application programs; Analyze the file in file, when comprising larger video file in file, whether inquiry user also needs Delete Folder, to avoid the file deleting user's storage by mistake.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data processing method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of another data processing method that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of electric terminal that the embodiment of the present invention provides;
Fig. 3 A is a kind of structural representation setting up unit that the embodiment of the present invention provides;
Fig. 3 B be the embodiment of the present invention provide by a kind of structural representation of electric terminal;
Fig. 4 is the structural representation of another electric terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of another electric terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.In addition, term " first ", " second ", " the 3rd " and " the 4th " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
Electric terminal described in the embodiment of the present invention can be mobile phone, panel computer, notebook computer, palm PC, mobile internet device (MID, mobile internet device), wearable device (such as intelligent watch (as iWatch etc.), Intelligent bracelet, passometer etc.) or other can the terminal device of installation and deployment instant messaging applications client.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of data processing method that the embodiment of the present invention provides, and the method includes but not limited to following steps.
Step S102: electric terminal judges the destination application whether newly-built file when installing or run.
Particularly, the bag management service (PackageManagerService) in electric terminal is one of system service, can realize the services such as the parsing to destination application, installation, renewal, movement, unloading, monitoring.In this step, electric terminal can be monitored destination application by bag management service and whether install operation in execution, when listening to installation targets application program, monitors whether newly-built file in installation process further; Electric terminal can also by after assuring reason services listen destination application and installing, whether newly-built file in the process run.
Step S103: if so, then electric terminal sets up identity information file in file, wherein, identity information file carries identity information corresponding to destination application.
Particularly, when electric terminal is after monitoring the file in exterior storage, judge destination application in the process of installing or run during newly-built file, electric terminal generates an identity information file, then this identity information file is added in above-mentioned file, or when electric terminal by pre-set identity information file add in above-mentioned file.Wherein, the identity information of destination application is contained in this identity information file, this identity information is equivalent to a unique identity, distinguish for intended application and other are applied, for example, PackageName.txt file is set up in above-mentioned file, the application No. ID 010101 (i.e. identity information) of destination application is comprised in this file, in other words, during each application program new folder, capital is the file that this application program sets up a PackageName.txt by name, for different application programs, ID difference in PackageName.txt file.
Further, the form that above-mentioned identity information file exists includes but not limited to that the forms such as .txt .doc .html .xml, identity information file can also exist with the form of hidden file, can preset according to actual needs particularly.
In the optional scheme of one, electric terminal sets up identity information file in file, comprising: electric terminal judges the identity information file whether comprising the identity information carrying destination application in the parent folder belonging to file; If not, then electric terminal sets up identity information file in file.
Particularly, after judging that file is the newly-built file of destination application, judge the identity information whether having destination application in the parent folder of this file further, if there has been the identity information of destination application in parent folder, no longer in above-mentioned file, add identity information file, if there is no the identity information of destination application in parent folder, in above-mentioned file, add identity information file.
For example, when detecting newly-built file b under path/sdcard/a/, the identity information file of destination application whether is had under first judging file a, if have (as the file PackageName.txt under path/sdcard/a/, and in PackageName.txt No. ID is corresponding with destination application), then do not need the identity information file setting up destination application in file b, if no, then need the identity information file setting up destination application in file b.
Step S104: after electric terminal detects that destination application is unloaded, the file in traversal exterior storage, to find out destination folder, wherein, includes the identity information file of the identity information carrying destination application in destination folder.
Particularly, whether electric terminal can detect intended application unloaded, and the action of detection can by external trigger, and such as, user clicks the virtual push button " garbage-cleaning " on electric terminal display interface; Also automatically can trigger when judging that the parameter in electric terminal reaches preset standard, such as, when judging that exterior storage remaining space is less than preset value, or when reaching default clearance time point etc.After detecting that destination application is unloaded, each file in electric terminal traversal exterior storage, first judge whether comprise identity information file in this file, when find out comprise identity information file time, judge that whether identity information in identity information file is the identity information of destination application further, if so, be then destination folder by the folder identifier comprising destination application.
Step S105: electric terminal deletes destination folder.
Particularly, electric terminal deletes the file being designated file destination.Deletion before, electric terminal can also export delete prompting, delete to make user to be confirmed whether, when receive user input be used to indicate the instruction of deletion after, electric terminal delete file destination.
In the data processing method described by Fig. 1, electric terminal first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, file in traversal exterior storage to find out the file comprising above-mentioned file, and is deleted, rubbish residual after effectively having cleared up application program unloading.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another data processing method that the embodiment of the present invention provides, and the method includes but not limited to following steps.
Step S202: electric terminal judges the destination application whether newly-built file when installing or run.
Particularly, the bag management service (PackageManagerService) in electric terminal is one of system service, can realize the services such as the parsing to destination application, installation, renewal, movement, unloading, monitoring.In this step, electric terminal can be monitored destination application by bag management service and whether install operation in execution, when listening to installation targets application program, monitors whether newly-built file in installation process further; Electric terminal can also by after assuring reason services listen destination application and installing, whether newly-built file in the process run.
Step S203: if so, then electric terminal sets up identity information file in file, wherein, identity information file carries identity information corresponding to destination application.
Particularly, when electric terminal is after monitoring the file in exterior storage, judge destination application in the process of installing or run during newly-built file, electric terminal generates an identity information file, then this identity information file is added in above-mentioned file, or when electric terminal by pre-set identity information file add in above-mentioned file.Wherein, the identity information of destination application is contained in this identity information file, this identity information is equivalent to a unique identity, distinguish for intended application and other are applied, for example, PackageName.txt file is set up in above-mentioned file, the application No. ID 010101 (i.e. identity information) of destination application is comprised in this file, in other words, during each application program new folder, capital is the file that this application program sets up a PackageName.txt by name, for different application programs, ID difference in PackageName.txt file.
Further, the form that above-mentioned identity information file exists includes but not limited to that the forms such as .txt .doc .html .xml, identity information file can also exist with the form of hidden file, can preset according to actual needs particularly.
In the optional scheme of one, electric terminal sets up identity information file in file, comprising: electric terminal judges the identity information file whether comprising the identity information carrying destination application in the parent folder belonging to file; If not, then electric terminal sets up identity information file in file.
Particularly, after judging that file is the newly-built file of destination application, judge the identity information whether having destination application in the parent folder of this file further, if there has been the identity information of destination application in parent folder, no longer in above-mentioned file, add identity information file, if there is no the identity information of destination application in parent folder, in above-mentioned file, add identity information file.
For example, when detecting newly-built file b under path/sdcard/a/, the identity information file of destination application whether is had under first judging file a, if have (as the file PackageName.txt under path/sdcard/a/, and in PackageName.txt No. ID is corresponding with destination application), then do not need the identity information file setting up destination application in file b, if no, then need the identity information file setting up destination application in file b.
Step S204: after electric terminal detects that destination application is unloaded, the file in traversal exterior storage, to find out destination folder, wherein, includes the identity information file of the identity information carrying destination application in destination folder.
Particularly, whether electric terminal can detect intended application unloaded, and the action of detection can by external trigger, and such as, user clicks the virtual push button " garbage-cleaning " on electric terminal display interface; Also automatically can trigger when judging that the parameter in electric terminal reaches preset standard, such as, when judging that exterior storage remaining space is less than preset value, or when reaching default clearance time point etc.After detecting that destination application is unloaded, each file in electric terminal traversal exterior storage, first judge whether comprise identity information file in this file, when find out comprise identity information file time, judge that whether identity information in identity information file is the identity information of destination application further, if so, be then destination folder by the folder identifier comprising destination application.
Step S205: electric terminal judges whether to comprise in destination folder identity information corresponding at least two different application programs.
Particularly, when electric terminal identifies after file destination adds, judge except comprising identity information corresponding to destination application, whether also to comprise identity information corresponding to other application programs in destination folder further, when judging the identity information also comprising other application programs, then follow-uply this file not to be processed, when judging the identity information not comprising other application programs, then perform subsequent step.
For example, suppose QQ and micro-letter two methods program have been installed in electric terminal, No. ID of the application program that QQ is corresponding is 000001, No. ID of the application program that micro-letter is corresponding is 000002, file c under path/sdcard/a/ sets up when being and installing QQ, the identity information file PackageName.txt simultaneously set up under file c, No. ID 000001 is had in PackageName.txt, file c is for depositing the chat record of QQ application program, follow-up when installing micro-letter application program, the chat record of micro-letter is also kept in file c, therefore electric terminal has also added PackageName.txt to by No. ID 000002.After application program QQ unloads from terminal, terminal can find out the file c comprising No. ID 000001, and Delete Folder c is understood in step afterwards, but, just c is also for depositing the chat content of micro-letter for file, and after file c deletes, the function of micro-letter is by imperfection, therefore, the identity information file corresponding to the application program judging whether to comprise in file c except destination application is needed herein.
Step S206: when judging that destination folder only comprises identity information corresponding to destination application, judge whether comprise the video file being greater than preset data threshold value in destination folder.
Particularly, when judging that destination folder only comprises identity information corresponding to destination application, then can determine that in step afterwards, delete destination folder can not have an impact to other application programs.In actual applications, larger video file in exterior storage normally user store file, after deletion destination application, user may for retain this video file consideration and be reluctant delete destination folder, therefore, judge whether there is larger video file in destination folder in this step.
Step S207: when judged result is for being, exports information and selects for user.
Particularly, when judging there is larger video file in destination folder, exporting information to user, selecting whether clear up destination folder to point out user.Such as, export a prompt window, in this window, have two virtual push buttons " deletion " and " cancellation ", when user clicks " deletion ", then have input cleaning instruction to electric terminal, when user clicks " cancellation ", then have input to electric terminal and cancel cleaning instruction.
Step S208: receive the data scrubbing instruction that user inputs according to information.
Step S209: response data cleaning instruction, deletes destination folder.
Particularly, when receive user's input according to prompting input for delete destination folder cleaning instruction after, electric terminal responds this instruction, deletes in electric terminal in destination folder.
In the data processing method described by Fig. 2, electric terminal first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, file in traversal exterior storage to find out the file comprising above-mentioned file, and is deleted, rubbish residual after effectively having cleared up application program unloading.
Further, when also comprising above-mentioned file in the parent folder judging newly-generated file, then no longer in newly-generated file, set up above-mentioned file, because electric terminal can clear up parent folder naturally when carrying out garbage-cleaning, the new folder be present in parent folder also can be deleted; Before Delete Folder, first judge the identity information that whether also there are other application programs in file, if then reserved folder is for other application programs; Analyze the file in file, when comprising larger video file in file, whether inquiry user also needs Delete Folder, to avoid the file deleting user's storage by mistake.
The above-mentioned method illustrating the embodiment of the present invention, for the ease of implementing the such scheme of the embodiment of the present invention better, correspondingly, provided below is the electric terminal of the embodiment of the present invention.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of electric terminal 30 that the embodiment of the present invention provides, this electric terminal 30 can comprise the first judging unit 302, sets up unit 303, search unit 304 and delete cells 305, wherein, and being described in detail as follows of unit.
First judging unit 302 is for judging the destination application whether newly-built file when installing or run.
Particularly, the bag management service (PackageManagerService) in electric terminal 30 is one of system service, can realize the services such as the parsing to destination application, installation, renewal, movement, unloading, monitoring.In this step, the first judging unit 302 can be monitored destination application by bag management service and whether install operation in execution, when listening to installation targets application program, monitors whether newly-built file in installation process further; First judging unit 302 can also by after assuring reason services listen destination application and installing, whether newly-built file in the process run.
Setting up unit 303 for when the judged result of the first judging unit 302 is for being, setting up identity information file in file, wherein, identity information file carries identity information corresponding to destination application.
Particularly, when the first judging unit 302 is after monitoring the file in exterior storage, judge destination application in the process of installing or run during newly-built file, set up unit 303 and generate an identity information file, then this identity information file is added in above-mentioned file, or set up unit 303 by pre-set identity information file add in above-mentioned file.Wherein, the identity information of destination application is contained in this identity information file, this identity information is equivalent to a unique identity, distinguish for intended application and other are applied, for example, PackageName.txt file is set up in above-mentioned file, the application No. ID 010101 (i.e. identity information) of destination application is comprised in this file, in other words, during each application program new folder, capital is the file that this application program sets up a PackageName.txt by name, for different application programs, ID difference in PackageName.txt file.
Further, the form that above-mentioned identity information file exists includes but not limited to that the forms such as .txt .doc .html .xml, identity information file can also exist with the form of hidden file, can preset according to actual needs particularly.
Search unit 304 for after electric terminal 30 detects that destination application is unloaded, file in traversal exterior storage is to find out destination folder, wherein, the identity information file of the identity information carrying destination application is included in destination folder.
Particularly, first whether detection intended application is unloaded to search unit 304 meeting, and the action of detection can by external trigger, and such as, user clicks the virtual push button " garbage-cleaning " on electric terminal 30 display interface; Also automatically can trigger when judging that the parameter in electric terminal 30 reaches preset standard, such as, when judging that exterior storage remaining space is less than preset value, or when reaching default clearance time point etc.After detecting that destination application is unloaded, search unit 304 and travel through each file in exterior storage, first judge whether comprise identity information file in this file, when find out comprise identity information file time, judge that whether identity information in identity information file is the identity information of destination application further, if so, be then destination folder by the folder identifier comprising destination application.
Delete cells 305 is for deleting destination folder.
Particularly, delete cells 305 deletes the file being designated file destination.Deletion before, delete cells 305 can also export delete prompting, delete to make user to be confirmed whether, when receive user input be used to indicate the instruction of deletion after, delete cells 305 deletes file destination.
In the optional scheme of one, the structure setting up unit 303 as shown in Figure 3A, in figure 3 a, can also be set up unit 303 and comprises the first judgment sub-unit 3031 and set up subelement 3032, wherein, the first judgment sub-unit 3031 and set up being described below of subelement 3032.
First judgment sub-unit 3031 is for judging the identity information file whether comprising the identity information carrying destination application in the parent folder belonging to file.
Set up subelement 3032 for when the judged result of the first judgment sub-unit 3031 is no, in file, set up identity information file.
Particularly, after the first judgment sub-unit 302 judges that file is the newly-built file of destination application, the identity information whether having destination application in the parent folder of this file is judged by the first judgment sub-unit 3031, if there has been the identity information of destination application in parent folder, no longer in above-mentioned file, add identity information file, if do not have the identity information of destination application in parent folder, the first judgment sub-unit 3031 triggering is set up subelement 3032 and set up identity information file in above-mentioned file.
For example, when under the first judging unit 302 judges path/sdcard/a/ during newly-built file b, whether the first judgment sub-unit 3031 has the identity information file of destination application under judging file a, if have (as the file PackageName.txt under path/sdcard/a/, and in PackageName.txt No. ID is corresponding with destination application), then do not need the identity information file setting up destination application in file b, if no, then set up the identity information file that destination application set up by subelement 3032 in file b.
In another optional scheme, electric terminal 30 can also structure as shown in Figure 3 B, in figure 3b, electric terminal 30 is except comprising the first judging unit 302, setting up unit 303, searching except unit 304 and delete cells 305, also comprise receiving element 307 and response unit 308, wherein, being described in detail as follows of receiving element 307 and response unit 308.
Receiving element 307 is for receiving the data detection command of user's input.
Response unit 308 detects instruction for response data, whether unloadedly detects destination application.
It should be noted that, in embodiments of the present invention, the specific implementation of unit can also the corresponding corresponding description with reference to the embodiment of the method shown in Fig. 1.
In the electric terminal 30 described by Fig. 3, electric terminal 30 first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, file in traversal exterior storage to find out the file comprising above-mentioned file, and is deleted, rubbish residual after effectively having cleared up application program unloading.
Refer to Fig. 4, Fig. 4 is the structural representation of another electric terminal 30 that the embodiment of the present invention provides, this electric terminal 30 is except comprising the first judging unit 302 shown in Fig. 3, set up unit 303, search outside unit 304 and delete cells 305, the second judging unit 306 can also be comprised, and delete cells 305 can comprise the second judgment sub-unit 3051, export subelement 3052, receive subelement 3053 and response subelement 3054, wherein, second judging unit 306, second judgment sub-unit 3051, export subelement 3052, receive subelement 3053 and respond being described in detail as follows of subelement 3054.
Second judging unit 306 is for judging whether to comprise in destination folder identity information corresponding at least two different application programs, when judged result is no, triggers the second judgment sub-unit 3051 and judge in destination folder, whether to comprise the video file being greater than preset data threshold value.
Particularly, identify after file destination adds when searching unit 304, judge except comprising identity information corresponding to destination application, whether also to comprise identity information corresponding to other application programs in destination folder by the second judging unit 306, when judging the identity information also comprising other application programs, then follow-uply this file not to be processed, when judging the identity information not comprising other application programs, then trigger the second judgment sub-unit 3051 and judge in destination folder, whether to comprise the video file being greater than preset data threshold value.
For example, suppose QQ and micro-letter two methods program have been installed in electric terminal 30, No. ID of the application program that QQ is corresponding is 000001, No. ID of the application program that micro-letter is corresponding is 000002, file c under path/sdcard/a/ sets up when being and installing QQ, the identity information file PackageName.txt simultaneously set up under file c, No. ID 000001 is had in PackageName.txt, file c is for depositing the chat record of QQ application program, follow-up when installing micro-letter application program, the chat record of micro-letter is also kept in file c, therefore electric terminal 30 has also added PackageName.txt to by No. ID 000002.After application program QQ unloads from terminal, search unit 304 and find out the file c comprising No. ID 000001, then trigger output subelement 3052 and perform subsequent step (namely deleting), but, just c is also for depositing the chat content of micro-letter for file, and after file c deletes, the function of micro-letter is by imperfection, therefore, the identity information file that the second judgment sub-unit 3051 is corresponding to the application program judging whether to comprise in file c except destination application is needed herein.
Exporting subelement 3052 for when the judged result of the second judgment sub-unit 3051 is for being, exporting information and selecting for user.
Particularly, when the second judgment sub-unit 3051 judges there is larger video file in destination folder, trigger output subelement 3052 and export information to user, select whether clear up destination folder to point out user.Such as, export a prompt window, two virtual push buttons " deletion " and " cancellation " is had in this window, when user clicks " deletion ", then have input cleaning instruction to output subelement 3052, when user clicks " cancellation ", then have input to output subelement 3052 and cancel cleaning instruction.
Receive the data scrubbing instruction that subelement 3053 inputs according to information for receiving user.
Response subelement 3054, for response data cleaning instruction, deletes destination folder.
Particularly, when response subelement 3054 receive user's input according to prompting input for delete destination folder cleaning instruction after, response subelement 3054 responds this instruction, is deleted by destination folder from electric terminal 30.
It should be noted that, in embodiments of the present invention, the specific implementation of unit can also the corresponding corresponding description with reference to the embodiment of the method shown in Fig. 2.
In the electric terminal 30 described by Fig. 4, electric terminal 30 first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, file in traversal exterior storage to find out the file comprising above-mentioned file, and is deleted, rubbish residual after effectively having cleared up application program unloading.
Further, when also comprising above-mentioned file in the parent folder judging newly-generated file, then no longer in newly-generated file, set up above-mentioned file, because electric terminal 30 can clear up parent folder naturally when carrying out garbage-cleaning, the new folder be present in parent folder also can be deleted; Before Delete Folder, first judge the identity information that whether also there are other application programs in file, if then reserved folder is for other application programs; Analyze the file in file, when comprising larger video file in file, whether inquiry user also needs Delete Folder, to avoid the file deleting user's storage by mistake.
Please refer to Fig. 5, the structural representation of another electric terminal 50 that the embodiment of the present invention provides during Fig. 5, this electric terminal 50 can comprise: at least one processor 501, such as CPU, at least one network interface 504, user interface 503, storer 505, at least one communication bus 502 and display screen 506.Wherein, communication bus 502 is for realizing the connection communication between these assemblies.Wherein, user interface 503 can comprise display screen (Displ5y) 506, and optional user interface 503 can also comprise wireline interface, the wave point of standard.Communication interface 504 optionally can comprise wireline interface (as data line interface, cable interface etc.), the wave point (as WI-FI interface, blue tooth interface, near-field communication interface) of standard.Storer 505 can be high speed R5M storer, also can be non-labile storer (non-vol5tile memory), such as at least one magnetic disk memory.Storer 505 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 501.As shown in Figure 5, operating system, network communication module, Subscriber Interface Module SIM and data processor can be comprised as in a kind of storer 505 of computer-readable storage medium.
In the electric terminal 50 shown in Fig. 5, communication interface 504 is mainly used in connection second terminal, carries out data communication with the second terminal; And processor 501 may be used for calling the data processor stored in storer 505, and perform following operation:
Electric terminal judges the intended application whether newly-built file when installing or run;
If so, then described electric terminal sets up identity information file in described file, and wherein, described identity information file carries identity information corresponding to described destination application;
After described electric terminal detects that described destination application is unloaded, travel through file in described exterior storage to find out destination folder, wherein, the identity information file of the identity information carrying described destination application is included in described destination folder;
Described electric terminal deletes described destination folder.
Further, described electric terminal sets up identity information file in described file, comprising:
Described electric terminal judges the identity information file whether comprising the identity information carrying described destination application in the parent folder belonging to described file;
If not, then described electric terminal sets up identity information file in described file.
Further, the file in the described exterior storage of described traversal with after finding out destination folder, and before the described destination folder of described deletion, also comprises:
Described electric terminal judges whether to comprise in described destination folder identity information corresponding at least two different application programs;
If not, then the step of the described destination folder of described deletion is performed.
Further, described in described file, set up identity information file after, and file in the described exterior storage of described traversal is with before finding out destination folder, also comprises:
Receive the data detection command of user's input;
Respond described data detection command, whether unloadedly detect described destination application.
Further, described electric terminal deletes described destination folder, comprising:
Judge in described destination folder, whether to comprise the video file being greater than preset data threshold value;
When judged result is for being, exports information and selecting for user;
Receive the data scrubbing instruction that user inputs according to described information;
Respond described data scrubbing instruction, delete described destination folder.
In sum, by implementing the embodiment of the present invention, electric terminal first judges whether in installation or runs application and stylishly generate file, if, in this file, then set up a file corresponding with this application program, follow-up after detecting that this application program is unloaded, the file in traversal exterior storage is to find out the file comprising above-mentioned file, and deleted, rubbish residual after effectively having cleared up application program unloading.
Further, when also comprising above-mentioned file in the parent folder judging newly-generated file, then no longer in newly-generated file, set up above-mentioned file, because electric terminal can clear up parent folder naturally when carrying out garbage-cleaning, the new folder be present in parent folder also can be deleted; Before Delete Folder, first judge the identity information that whether also there are other application programs in file, if then reserved folder is for other application programs; Analyze the file in file, when comprising larger video file in file, whether inquiry user also needs Delete Folder, to avoid the file deleting user's storage by mistake.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a data processing method, is characterized in that, comprising:
Electric terminal judges the destination application whether newly-built file when installing or run;
If so, then described electric terminal sets up identity information file in described file, and wherein, described identity information file carries identity information corresponding to described destination application;
After described electric terminal detects that described destination application is unloaded, travel through file in described exterior storage to find out destination folder, wherein, the identity information file of the identity information carrying described destination application is included in described destination folder;
Described electric terminal deletes described destination folder.
2. method according to claim 1, is characterized in that, described electric terminal sets up identity information file in described file, comprising:
Described electric terminal judges the identity information file whether comprising the identity information carrying described destination application in the parent folder belonging to described file;
If not, then described electric terminal sets up identity information file in described file.
3. method according to claim 1 and 2, is characterized in that, the file in the described exterior storage of described traversal with after finding out destination folder, and before the described destination folder of described deletion, also comprises:
Described electric terminal judges whether to comprise in described destination folder identity information corresponding at least two different application programs;
If not, then the step of the described destination folder of described deletion is performed.
4. method according to claim 1 and 2, is characterized in that, described in described file, set up identity information file after, and file in the described exterior storage of described traversal is with before finding out destination folder, also comprises:
Electric terminal receives the data detection command of user's input;
Electric terminal responds described data detection command, whether unloadedly detects described destination application.
5. method according to claim 1 and 2, is characterized in that, described electric terminal deletes described destination folder, comprising:
Judge in described destination folder, whether to comprise the video file being greater than preset data threshold value;
When judged result is for being, exports information and selecting for user;
Receive the data scrubbing instruction that user inputs according to described information;
Respond described data scrubbing instruction, delete described destination folder.
6. an electric terminal, is characterized in that, comprising:
First judging unit, for judging the destination application whether newly-built file when installing or run;
Setting up unit, for when the judged result of described first judging unit is for being, setting up identity information file in described file, wherein, described identity information file carries identity information corresponding to described destination application;
Search unit, after detecting that described destination application is unloaded when described electric terminal, travel through file in described exterior storage to find out destination folder, wherein, in described destination folder, include the identity information file of the identity information carrying described destination application;
Delete cells, for deleting described destination folder.
7. electric terminal according to claim 6, is characterized in that, described unit of setting up comprises:
First judgment sub-unit, for judging the identity information file whether comprising the identity information carrying described destination application in the parent folder belonging to described file;
Set up subelement, for when the judged result of described first judgment sub-unit is no, in described file, set up identity information file.
8. the electric terminal according to claim 6 or 7, is characterized in that, also comprises:
Second judging unit, for judging whether to comprise in described destination folder identity information corresponding at least two different application programs, when judged result is no, triggers described delete cells and deleting described file destination.
9. the electric terminal according to claim 6 or 7, is characterized in that, also comprises:
Receiving element, for receiving the data detection command of user's input;
Whether unloaded response unit, for responding described data detection command, detect described destination application.
10. the electric terminal according to claim 6 or 7, is characterized in that, described delete cells comprises:
Whether the second judgment sub-unit, comprise for judging the video file being greater than preset data threshold value in described destination folder;
Export subelement, for when the judged result of described second judgment sub-unit is for being, exports information and selecting for user;
Receive subelement, for receiving the data scrubbing instruction that user inputs according to described information;
Response subelement, for responding described data scrubbing instruction, deletes described destination folder.
CN201510296189.8A 2015-06-02 2015-06-02 A kind of data processing method and electric terminal Expired - Fee Related CN104965731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510296189.8A CN104965731B (en) 2015-06-02 2015-06-02 A kind of data processing method and electric terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510296189.8A CN104965731B (en) 2015-06-02 2015-06-02 A kind of data processing method and electric terminal

Publications (2)

Publication Number Publication Date
CN104965731A true CN104965731A (en) 2015-10-07
CN104965731B CN104965731B (en) 2018-05-01

Family

ID=54219766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510296189.8A Expired - Fee Related CN104965731B (en) 2015-06-02 2015-06-02 A kind of data processing method and electric terminal

Country Status (1)

Country Link
CN (1) CN104965731B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912671A (en) * 2016-04-12 2016-08-31 努比亚技术有限公司 Method and device for cleaning up useless files
CN107273401A (en) * 2017-04-21 2017-10-20 捷开通讯(深圳)有限公司 Management method, mobile device and the storage device of application data file
CN107943387A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of document handling method and mobile terminal
WO2019036912A1 (en) * 2017-08-22 2019-02-28 深圳传音通讯有限公司 Junk file processing method for electronic terminal, and electronic terminal
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN113626391A (en) * 2021-08-27 2021-11-09 四川虹美智能科技有限公司 Processing method for cache file of operating system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968551B2 (en) * 2001-06-11 2005-11-22 John Hediger System and user interface for generation and processing of software application installation instructions
CN102937990A (en) * 2012-10-30 2013-02-20 北京小米科技有限责任公司 Method and device for cleaning files
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103092664A (en) * 2013-02-07 2013-05-08 珠海市君天电子科技有限公司 Processing method and device of data file of android system
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system
CN103631934A (en) * 2013-12-06 2014-03-12 贝壳网际(北京)安全技术有限公司 Garbage-file detecting method and device
CN104660825A (en) * 2015-03-09 2015-05-27 陈健强 Method and system for deleting application of smart mobile phone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968551B2 (en) * 2001-06-11 2005-11-22 John Hediger System and user interface for generation and processing of software application installation instructions
CN102937990A (en) * 2012-10-30 2013-02-20 北京小米科技有限责任公司 Method and device for cleaning files
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103092664A (en) * 2013-02-07 2013-05-08 珠海市君天电子科技有限公司 Processing method and device of data file of android system
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system
CN103631934A (en) * 2013-12-06 2014-03-12 贝壳网际(北京)安全技术有限公司 Garbage-file detecting method and device
CN104660825A (en) * 2015-03-09 2015-05-27 陈健强 Method and system for deleting application of smart mobile phone

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912671A (en) * 2016-04-12 2016-08-31 努比亚技术有限公司 Method and device for cleaning up useless files
CN107273401A (en) * 2017-04-21 2017-10-20 捷开通讯(深圳)有限公司 Management method, mobile device and the storage device of application data file
WO2019036912A1 (en) * 2017-08-22 2019-02-28 深圳传音通讯有限公司 Junk file processing method for electronic terminal, and electronic terminal
CN111263936A (en) * 2017-08-22 2020-06-09 深圳传音通讯有限公司 Electronic terminal and junk file processing method thereof
CN107943387A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of document handling method and mobile terminal
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN109871361B (en) * 2018-11-26 2023-05-23 北京乐我无限科技有限责任公司 File uploading method and device, electronic equipment and readable storage medium
CN113626391A (en) * 2021-08-27 2021-11-09 四川虹美智能科技有限公司 Processing method for cache file of operating system
CN113626391B (en) * 2021-08-27 2023-04-14 四川虹美智能科技有限公司 Processing method for cache file of operating system

Also Published As

Publication number Publication date
CN104965731B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104965731A (en) Data processing method and electronic terminal
US20180183651A1 (en) Content push method and server, and terminal
CN103019687B (en) Methods of exhibiting and device for pop window information
CN102831035A (en) Information backup method and device
US8819587B1 (en) Methods of managing items in a shared workspace
CN106055976B (en) File detection method and sandbox controller
CN104536792A (en) Method and device for eliminating application program residual files
CN105373419A (en) Background application operation method and system
CN105471935B (en) Information prompting method and device
CN106022101A (en) Application management method and terminal
CN105574163A (en) File processing method and device and electronic equipment
CN105893471B (en) Data processing method and electronic equipment
US20220245256A1 (en) System and Method for Attributing User Behavior from Multiple Technical Telemetry Sources
CN104750523A (en) Information processing method and electronic equipment
CN104239091A (en) File cleaning method and device and terminal
CN104216996A (en) File information display method and device
CN103530549B (en) File/applied program processing method on communication terminal and device
CN103514396A (en) Processing method and device for file / application program on mobile communication terminal
CN105243102A (en) Processing method and device for unloading residual file and terminal
CN105243324A (en) Method and device for identifying malicious software in user terminal and user terminal
WO2018136154A1 (en) System and method of performing memory data collection for memory forensics in a computing device
CN107203417A (en) A kind of data clearing method, relevant apparatus and electronic equipment
CN103530550A (en) Method and device for processing document/application program on mobile communication terminal
CN115328496A (en) File generation method and device
CN105677408A (en) Application deletion method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180501