CN105404537B - A kind of discharging method and device of application program - Google Patents

A kind of discharging method and device of application program Download PDF

Info

Publication number
CN105404537B
CN105404537B CN201510984826.0A CN201510984826A CN105404537B CN 105404537 B CN105404537 B CN 105404537B CN 201510984826 A CN201510984826 A CN 201510984826A CN 105404537 B CN105404537 B CN 105404537B
Authority
CN
China
Prior art keywords
file
information
destination application
caused
application program
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.)
Active
Application number
CN201510984826.0A
Other languages
Chinese (zh)
Other versions
CN105404537A (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology 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 Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN201510984826.0A priority Critical patent/CN105404537B/en
Publication of CN105404537A publication Critical patent/CN105404537A/en
Application granted granted Critical
Publication of CN105404537B publication Critical patent/CN105404537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of discharging methods of application program, comprising: when detecting operational objective application program, obtain the destination application in the process of running caused by the first file the first the file information;First the file information is saved into preset file record information;When detecting that first the file information according to recorded in the file record information determines the first file caused by the destination application when unloading to the destination application;Cleaning file is carried out according to first file.The embodiment of the invention also discloses a kind of discharge mechanisms of application program.Using the present invention, can when destination application is unloaded to destination application in the process of running caused by file clear up.

Description

A kind of discharging method and device of application program
Technical field
The present invention relates to electronic technology field more particularly to the discharging methods and device of a kind of application program.
Background technique
With the development of science and technology, in order to meet the needs of user's routine work and amusement, the intelligence such as computer, mobile phone is eventually It holds the application program that can be installed more and more, a large amount of application program may be installed so as to cause terminal.In order to not influence end The normal operation at end, user need to unload the application program not used, to discharge the memory space of system, improve eventually The operational efficiency at end.
At present when unloading to application program, terminal is only that deletion application is carried out under the installation directory of application program Program.But application program is also possible to generate file in the process of running and be stored under other storage catalogues, so that eventually End can not delete all associated files of application program when unloading application program.After terminal is used for a long time, Will appear the increasing situation in space that this class file occupies, and these files can occupied terminal a large amount of memory spaces, lead It causes terminal card machine occur, ran slow situation, and affected user to the normal use of other useful files.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing the discharging method and device of a kind of application program. Can destination application unload when to destination application in the process of running caused by file clear up.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of discharging methods of application program, comprising:
When detecting operational objective application program, obtain the destination application in the process of running caused by the First the file information of one file;
First the file information is saved into preset file record information;
When detect the destination application is unloaded when, according to institute recorded in the file record information The first the file information is stated, determines the first file caused by the destination application;
Cleaning file is carried out according to first file.
Wherein, it when detecting operational objective application program, obtains the destination application and is produced in the process of running Include: before first the file information of the first raw file
When installation targets application program, the destination application generated second file during the installation process is obtained The second the file information;
Second the file information is saved into preset file record information.
Wherein, described when installation targets application program, produced by obtaining the destination application during the installation process The second the file information of the second file include:
When installation targets application program, the mount message of the destination application is obtained;
According to the mount message obtain the destination application during the installation process caused by the second file the Two the file informations.
Wherein, it is described when detect the destination application is unloaded when, according in the file record information First the file information recorded, determines the first file caused by the destination application further include:
When detect the destination application is unloaded when, according to institute recorded in the file record information The first the file information and second the file information are stated, determines the first file and determination caused by the destination application Second file caused by the destination application.
Wherein, first the file information includes the store path information of the first file identification and the first file, and described Two the file informations include the store path information of the second file identification and the second file;
It is described when detect the destination application is unloaded when, according to recorded in the file record information First the file information and second the file information, determine the first file caused by the destination application and Determine that the second file caused by the destination application includes:
When detect the destination application is unloaded when, looked into according to the store path information of first file Look for corresponding first file of first file identification;
When searching corresponding first file of first file identification, the is determined caused by the destination application One file;
According to corresponding second file of the second file identification described in the store path information searching of second file;
When searching corresponding second file of second file identification, the is determined caused by the destination application Two files.
It is wherein, described that cleaning file is carried out according to first file further include:
Cleaning file is carried out according to first file and second file.
Wherein, it is described according to first file and second file carry out cleaning file include:
Delete first file and second file.
Wherein, it is described carried out according to first file and second file include: before cleaning file
The page is selected according to first file and second file generated;
The selection page is exported, so that user carries out selecting file for clearance according to the selection page;
Wherein, it is described according to first file and second file carry out cleaning file include:
When receiving selection cleaning instruction of the user for the selection page input, determined according to the selection instruction File for clearance;
Delete the file for clearance.
Another aspect of the present invention also provides a kind of discharge mechanism of application program, comprising:
First acquisition unit is being transported for when detecting operational objective application program, obtaining the destination application First the file information of the first file caused by during row;
First storage unit, for saving first the file information into preset file record information;
Determination unit, for when detect the destination application is unloaded when, according to the file record believe First the file information recorded in breath, determines the first file caused by the destination application;
Unit is cleared up, for carrying out cleaning file according to first file.
Wherein, described device includes:
Second acquisition unit, for obtaining the destination application in installation process when installation targets application program In caused by the second file the second the file information;
Second storage unit, for saving second the file information into preset file record information.
Wherein, the second acquisition unit includes:
First obtains subelement, for when installation targets application program, obtaining the installation letter of the destination application Breath;
Second obtains subelement, for obtaining destination application institute during the installation process according to the mount message Second the file information of the second file generated.
Wherein, the determination unit also particularly useful for:
When detect the destination application is unloaded when, according to institute recorded in the file record information The first the file information and second the file information are stated, determines the first file and determination caused by the destination application Second file caused by the destination application.
Wherein, first the file information includes the store path information of the first file identification and the first file, and described Two the file informations include the store path information of the second file identification and the second file;
The determination unit includes:
First search subelement, for when detect the destination application is unloaded when, according to described first Corresponding first file of first file identification described in the store path information searching of file;
First determines subelement, for determining the mesh when corresponding first file of lookup first file identification Mark the first file caused by application program;
Second searches subelement, for the second file identification according to the store path information searching of second file Corresponding second file;
Second determines subelement, for determining the mesh when corresponding second file of lookup second file identification Mark the second file caused by application program.
Wherein, the cleaning unit also particularly useful for:
Cleaning file is carried out according to first file and second file.
Wherein, the cleaning unit also particularly useful for:
Delete first file and second file.
Wherein, described device further include:
Generation unit, for selecting the page according to first file and second file generated;
Output unit, for exporting the selection page so that user select according to the selection page it is for clearance File;
Wherein, the cleaning unit includes:
Third determines subelement, for when receive user for it is described selection the page input selection cleaning instruction when, File for clearance is determined according to the selection instruction;
Subelement is deleted, for deleting the file for clearance.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention is by when detecting operational objective application program, obtaining destination application in operational process In caused by the first file the first the file information, and the first the file information is saved into preset file record information, When terminal monitoring is to when unloading destination application, the first the file information according to recorded in file record information, Determine the first file caused by destination application, so that terminal carries out cleaning file according to the first file, this makes terminal Can destination application unload when to destination application in the process of running caused by the first file clear up, generate The occupied memory space of first file out improves terminal operating efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of first embodiment flow diagram of the discharging method of application program provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow diagram of the discharging method of application program provided in an embodiment of the present invention;
Fig. 3 is a kind of 3rd embodiment flow diagram of the discharging method of application program provided in an embodiment of the present invention;
Fig. 4 is a kind of first embodiment structure chart of the discharge mechanism of application program provided in an embodiment of the present invention;
Fig. 5 is a kind of second embodiment structure chart of the discharge mechanism of application program provided in an embodiment of the present invention;
Fig. 6 is a kind of 3rd embodiment structure chart of the discharge mechanism of application program provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Executing subject in the embodiment of the present invention can be terminal, described terminal can include: mobile phone, computer, plate The intelligent terminals such as computer, palm PC or mobile internet device (Mobile Internet Device, MID), above-mentioned end End is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
It is a kind of discharging method first embodiment process signal of application program provided in an embodiment of the present invention referring to Fig. 1 Figure.A kind of discharging method of application program of the embodiment of the present invention includes the following steps:
S100 obtains destination application institute in the process of running when detecting operational objective application program First the file information of the first file generated.
In embodiments of the present invention, destination application may include common application program, such as browser, cleaning application Deng destination application can also be that plug-in unit etc. needs to rely on the application program of other applications, such as the flash of browser Plug-in unit.
In embodiments of the present invention, when terminal receives starting destination application instruction, terminal can start operation mesh Mark application program simultaneously detects operational objective application program.When terminal detects operational objective application program, terminal can be monitored Whether destination application produces the first file in the process of running, wherein the first file can be destination application fortune The file generated in the file or destination application operational process downloaded during row.Terminal monitoring target application journey Whether sequence produces the first file in the process of running may is that and be used under the installation directory of terminal monitoring destination application The history file for saving the file information of destination application downloading, when terminal monitoring has modification to history file When, terminal can determine that destination application produces the first file.In a particular application, as being a sudden peal of thunder when destination application When, history file can be the TaskDb.dat file under sudden peal of thunder installation directory, wherein the storage of TaskDb.dat file Path may is that C: Program Files (x86) Thunder Network Thunder Profiles TaskDb.dat. When destination application is Cheetah Browser, history file can be the History under Cheetah Browser installation directory File, wherein the store path of History file may is that %localappdata% liebao User Data Default History。
In embodiments of the present invention, when terminal monitoring to destination application produces the first file, terminal can obtain mesh Mark application program in operation caused by the first file the first the file information.Wherein, the first file can be target application The file of program downloading.First the file information can be the storage road of the first file corresponding first file identification and the first file Diameter information, the first file identification can be the mark that the title of the first file, ID of the first file etc. are used to identify the first file. Specifically, terminal can be obtained in history file by query statement when terminal monitoring has modification to history file Content, according in history file content obtain destination application caused by the first file the first file letter Breath.
In embodiments of the present invention, the first file can be the files such as file, document, picture or video.
S101 saves first the file information into preset file record information.
In embodiments of the present invention, terminal can create first for recording the first file caused by destination application The file record information of the file information, wherein file record information can be database file or XML (Extensible Markup Language, extensible markup language) files such as file.When terminal gets destination application in operational process In caused by the first file the first file information when, the information of the first file can be added to file record information by terminal In.In a particular application, it may is that the file record information of terminal preset can be unstall.dat file, this document can be with It is stored under the installation directory of destination application or under the catalogue that other are specified.When terminal passes through monitoring objective application program When history file gets the first the file information, the first the file information can be added in file record information and carry out by terminal It saves.
S102, when detect the destination application is unloaded when, remembered according in the file record information First the file information of record, determines the first file caused by the destination application.
In embodiments of the present invention, when terminal receives the instruction unloaded to destination application, terminal is to mesh Mark application program is unloaded.Wherein, terminal, which carries out unloading to destination application, may is that terminal to destination application File under installation directory is deleted, and the registry entry added in destination application installation process is deleted, from And it realizes terminal and destination application is unloaded.
In embodiments of the present invention, terminal detects that carrying out unloading to destination application can be terminal and detect to mesh Mark application program has been unloaded.Wherein, terminal detects that having carried out unloading to destination application includes: that terminal receives use When the monitoring instruction that family operation generates, terminal carries out the core registration table of detection terminal, when terminal monitoring is in core registration table In do not have store destination application registration information when, terminal can determine and unload to destination application.Such as: when with When the rubbish that family starts terminal clears up scanning function, terminal produces monitoring instruction.
In embodiments of the present invention, when terminal, which is detected, to be unloaded to destination application, storage is can be read in terminal File record information, and recorded the first the file information is read from file record information, to obtain the first file letter The store path information of breath the first included file identification and the first file.Terminal can be according to the first file identification and the first text The store path information of part is scanned terminal, determines destination application generated first file in the process of running.
S103 carries out cleaning file according to first file.
In embodiments of the present invention, when terminal determines destination application generated first file in the process of running When, terminal can delete the first file to carry out cleaning file, and further, terminal can also be selected from the first file and need to carry out First file of cleaning is cleared up, to produce the occupied memory space of the first file, improves the operational efficiency of terminal.
The embodiment of the present invention is by when detecting operational objective application program, obtaining destination application in operational process In caused by the first file the first the file information, and the first the file information is saved into preset file record information, When terminal monitoring is to when unloading destination application, the first the file information according to recorded in file record information, Determine the first file caused by destination application, so that terminal carries out cleaning file according to the first file, this makes terminal Can destination application unload when to destination application in the process of running caused by the first file clear up, generate The occupied memory space of first file out improves terminal operating efficiency.
It referring to fig. 2, is a kind of discharging method second embodiment process signal of application program provided in an embodiment of the present invention Figure.A kind of discharging method of application program of the embodiment of the present invention includes the following steps:
S200, when installation targets application program, obtain the destination application during the installation process caused by the Second the file information of two files.
In embodiments of the present invention, destination application is during installation, and destination application can generate and to end The second file is discharged in the catalogue at end, wherein the second file can be file needed for application program operational process, including can Execute file, database file and picture etc..
In embodiments of the present invention, when detecting terminal installation targets application program, terminal can monitoring objective application journey The installation process of sequence and obtain destination application during the installation process caused by the second file the second the file information, In, the second the file information can be the store path information of the second file corresponding second file identification and the second file, and second File identification can be the mark that the title of the second file, ID of the second file etc. are used to identify the second file.Terminal obtains the Two the file informations may is that terminal obtains the mount message of destination application, and terminal obtains target application according to mount message Program during the installation process caused by the second file the second the file information.Wherein, mount message can record target application journey Second the file information of the second file that sequence is generated needed for installation process.
S201 saves second the file information into preset file record information.
In embodiments of the present invention, file record information file record information as described in embodiment one.Work as terminal Get destination application during the installation process caused by the second file the second file information when, terminal can be by second The information of file is added in file record information.In a particular application, it may is that the file record information of terminal preset can be with It is unstall.dat file, this document can store under the installation directory of destination application or under other specified catalogues. When terminal gets the second the file information by the mount message of destination application, terminal can add the second the file information It is saved into file record information.
S202 obtains the destination application and is produced in the process of running when detecting operational objective application program First the file information of the first raw file.
S203 saves first the file information into preset file record information.
S204, when detect the destination application is unloaded when, remembered according in the file record information Record first the file information and second the file information, determine the first file caused by the destination application with And determine the second file caused by the destination application.
In embodiments of the present invention, when terminal, which is detected, to be unloaded to destination application, storage is can be read in terminal File record information.When file record information record has the first the file information and the second the file information, terminal is remembered from file It records and reads first recorded the second the file information of the file information in information, to obtain first included by the first the file information Second file identification included by the store path information and the second the file information of file identification and the first file and the second text The store path information of part.Terminal can be searched according to the store path information of the first file identification and the first file, be determined Destination application generated first file, and the storage according to the second file identification and the second file in the process of running Routing information is searched, and determines destination application generated second file during the installation process.
S205 carries out cleaning file according to first file and second file.
In embodiments of the present invention, when terminal determine destination application in the process of running caused by the first file and Destination application during the installation process caused by the second file when, terminal can delete the first file and the second file to carry out File is cleared up, further, terminal can also select the file that need to be cleared up from the first file and the second file and carry out clearly Reason, to produce the occupied memory space of file, improves the operational efficiency of terminal.
Wherein, step S201, the specific implementation content of step S202 and step S203 referring also in above embodiments one Step S100, step S101 and step S102 specific implementation content, herein without repeating.
The embodiment of the present invention is by obtaining the destination application during the installation process when installation targets application program Second the file information is saved into profile record information, works as detection by the second the file information of generated second file When to operational objective application program, obtain destination application in the process of running caused by the second file the first file letter Breath, the second the file information is saved into preset file record information, and is carried out when detecting to the destination application When unloading, first the file information and second the file information according to recorded in the file record information are determined Second file caused by first file caused by the destination application and the determining destination application, according to First file and second file carry out cleaning file, this makes terminal can be when destination application is unloaded to target Application program in the process of running caused by the first file and destination application during the installation process caused by the second text Part is cleared up, to produce the first file and the occupied memory space of the second file, improves terminal operating efficiency.
It is a kind of discharging method 3rd embodiment process signal of application program provided in an embodiment of the present invention referring to Fig. 3 Figure.A kind of discharging method of application program of the embodiment of the present invention includes the following steps:
S300, when installation targets application program, obtain the destination application during the installation process caused by the Second the file information of two files.
S301 saves second the file information into preset file record information.
S302 obtains the destination application and is produced in the process of running when detecting operational objective application program First the file information of the first raw file.
S303 saves first the file information into preset file record information.
S304, when detect the destination application is unloaded when, remembered according in the file record information Record first the file information and second the file information, determine the first file caused by the destination application with And determine the second file caused by the destination application.
S305 selects the page according to first file and second file generated.
In embodiments of the present invention, the selection page may include the file identification of the first file and the second file.Select the page It can carry out enumerating file identification, or file identification is shown by tabular form.Wherein, file identification can be the first file and Title, ID of second file etc..
In embodiments of the present invention, the selection page may also include operational controls, and optionally, terminal can be in the every of the selection page An operational controls, the operational controls that can be such as chosen are provided which on a file identification.
S306 exports the selection page.
In embodiments of the present invention, when terminal generate selection the page when, terminal can pop up the selection page so that user according to The selection page carries out selecting file for clearance.Select the page on can displaying target application program during the installation process caused by First file produced by second file and operational process.When user, which determines, to delete some file, user can be grasped The operational controls made on the corresponding file identification of file are confirmed, in the operational controls that can be provided on the selection page such as user It carries out choosing the corresponding file identification of file for clearance that need to be cleared up.
S307 refers to when receiving selection cleaning instruction of the user for the selection page input according to the selection It enables and determines file for clearance.
In embodiments of the present invention, when user carries out operation acknowledgement for the operational controls provided on the selection page, eventually End can get the selection that the selection page generates and clear up instruction.Wherein, it is corresponding can to carry file for clearance for selection cleaning instruction File identification.
In embodiments of the present invention, when terminal obtains selection cleaning instruction, terminal can be taken according to selection cleaning instruction The corresponding file identification of file for clearance of band determines file for clearance.
S308 deletes the file for clearance.
In embodiments of the present invention, when terminal determines file for clearance, terminal can delete file for clearance, thus The occupied memory space of file for clearance is produced, the operational efficiency of terminal is improved.
Wherein, step S300, the specific implementation content of step 301, step S302, step S303 and step S304 can be found in The specific implementation content of step S200, step S201, step S202, step S203 and step S204 in above embodiments two, Herein without repeating.
The terminal of the embodiment of the present invention is by selecting the page, output according to first file and second file generated The selection page, and when receiving selection cleaning instruction of the user for the selection page input, according to the selection Instruction determines file for clearance, deletes the file for clearance, this using terminal can to the first file and the second file into Row is optional to be deleted, and improves user experience, and can produce the occupied memory space of file, improves the operation effect of terminal Rate.
Referring to fig. 4, be a kind of application program provided in an embodiment of the present invention discharge mechanism first embodiment structure chart. Device described in the embodiment of the present invention includes:
First acquisition unit 100 exists for when detecting operational objective application program, obtaining the destination application First the file information of the first file caused by operational process;
First storage unit 200, for saving first the file information into preset file record information;
Determination unit 300, for when detect the destination application is unloaded when, according to the file record First the file information recorded in information, determines the first file caused by the destination application;
Unit 400 is cleared up, for carrying out cleaning file according to first file.
In embodiments of the present invention, the discharge mechanism of described application program concretely terminal, can also be in terminal Some functional module, explanation will simply be described by taking terminal as an example below.
In embodiments of the present invention, destination application may include common application program, such as browser, cleaning application Deng destination application can also be that plug-in unit etc. needs to rely on the application program of other applications, such as the flash of browser Plug-in unit.
In embodiments of the present invention, when terminal receives starting destination application instruction, terminal can start operation mesh Mark application program simultaneously detects operational objective application program.When terminal detects operational objective application program, terminal can be monitored Whether destination application produces the first file in the process of running, wherein the first file can be destination application fortune The file generated in the file or destination application operational process downloaded during row.Terminal monitoring target application journey Whether sequence produces the first file in the process of running may is that and be used under the installation directory of terminal monitoring destination application The history file for saving the file information of destination application downloading, when terminal monitoring has modification to history file When, terminal can determine that destination application produces the first file.In a particular application, as being a sudden peal of thunder when destination application When, history file can be the TaskDb.dat file under sudden peal of thunder installation directory, wherein the storage of TaskDb.dat file Path may is that C: Program Files (x86) Thunder Network Thunder Profiles TaskDb.dat. When destination application is Cheetah Browser, history file can be the History under Cheetah Browser installation directory File, wherein the store path of History file may is that %localappdata% liebao User Data Default History。
In embodiments of the present invention, the first file is produced when first acquisition unit 100 monitors destination application, the One acquiring unit 100 can obtain destination application in operation caused by the first file the first the file information.Wherein, One file can be the file of destination application downloading.First the file information can be corresponding first files-designated of the first file Know and the store path information of the first file, the first file identification can be the title of the first file, ID of the first file etc. and use In the mark for identifying the first file.Specifically, when first acquisition unit 100 monitors that history file has modification, first Acquiring unit 100 can obtain the content in history file by query statement, be obtained according to the content in history file Obtain the first the file information of the first file caused by destination application.
In embodiments of the present invention, the first file can be the files such as file, document, picture or video.
In embodiments of the present invention, terminal can create first for recording the first file caused by destination application The file record information of the file information, wherein file record information can be database file or XML (Extensible Markup Language, extensible markup language) files such as file.When first acquisition unit 100 gets destination application When the information of the first file of the first file caused by the process of running, the first storage unit 200 can be by the first file Information is added in file record information.In a particular application, it may is that the file record information of terminal preset can be Unstall.dat file, this document can store under the installation directory of destination application or under other specified catalogues.When When first acquisition unit 100 gets the first the file information by the history file of monitoring objective application program, first is protected First the file information can be added in file record information and save by memory cell 200.
In embodiments of the present invention, when terminal receives the instruction unloaded to destination application, terminal is to mesh Mark application program is unloaded.Wherein, terminal, which carries out unloading to destination application, may is that terminal to destination application File under installation directory is deleted, and the registry entry added in destination application installation process is deleted, from And it realizes terminal and destination application is unloaded.
In embodiments of the present invention, terminal detects that carrying out unloading to destination application can be terminal and detect to mesh Mark application program has been unloaded.Wherein, terminal detects that having carried out unloading to destination application includes: that terminal receives use When the monitoring instruction that family operation generates, terminal carries out the core registration table of detection terminal, when terminal monitoring is in core registration table In do not have store destination application registration information when, terminal can determine and unload to destination application.Such as: when with When the rubbish that family starts terminal clears up scanning function, terminal produces monitoring instruction.
In embodiments of the present invention, when determination unit 300, which is detected, to be unloaded to destination application, determination unit 300 can be read the file record information of storage, and the first recorded the file information is read from file record information, to obtain Take the store path information of the first file identification and the first file included by the first the file information.Determination unit 300 can basis The store path information of first file identification and the first file is scanned terminal, determines destination application in operational process In caused by the first file.
In embodiments of the present invention, determine destination application in the process of running when determination unit 300 caused by the When one file, cleaning unit 400 can delete the first file to carry out cleaning file, and further, cleaning unit 400 can also be from the The first file that selecting in one file need to be cleared up is cleared up, so that it is empty to produce the occupied storage of the first file Between, improve the operational efficiency of terminal.
The embodiment of the present invention is by when detecting operational objective application program, obtaining destination application in operational process In caused by the first file the first the file information, and the first the file information is saved into preset file record information, When terminal monitoring is to when unloading destination application, the first the file information according to recorded in file record information, Determine the first file caused by destination application, so that terminal carries out cleaning file according to the first file, this makes terminal Can destination application unload when to destination application in the process of running caused by the first file clear up, generate The occupied memory space of first file out improves terminal operating efficiency.
It is a kind of second embodiment structure chart of the discharge mechanism of application program provided in an embodiment of the present invention referring to Fig. 5. Device described in the embodiment of the present invention, comprising:
First acquisition unit 100, the first storage unit 200, determination unit 300 and cleaning unit 400.
Wherein, described device further include:
Second acquisition unit 500, for obtaining the destination application and installing when installation targets application program Second the file information of the second file caused by journey.
Second storage unit 600, for saving second the file information into preset file record information.
Wherein, above-mentioned determination unit 300 also particularly useful for:
When detect the destination application is unloaded when, according to institute recorded in the file record information The first the file information and second the file information are stated, determines the first file and determination caused by the destination application Second file caused by the destination application.
Wherein, above-mentioned cleaning unit 400 also particularly useful for:
Cleaning file is carried out according to first file and second file.
Wherein, above-mentioned cleaning unit 400 also particularly useful for:
Delete first file and second file.
In embodiments of the present invention, for destination application during installation, destination application can be to the mesh of terminal The second file is generated in record, wherein the second file can be file needed for application program operational process, including executable text Part, database file and picture etc..
In embodiments of the present invention, when second acquisition unit 500 detects terminal installation targets application program, terminal can The installation process of monitoring objective application program and obtain destination application during the installation process caused by the second file the Two the file informations, wherein the second the file information can be the storage of the second file corresponding second file identification and the second file Routing information, the second file identification can be the mark that the title of the second file, ID of the second file etc. are used to identify the second file Know.Second acquisition unit 500, which obtains the second the file information, may is that second acquisition unit 500 obtains the peace of destination application Information is filled, second acquisition unit 500 obtains destination application generated second text during the installation process according to mount message Second the file information of part.Wherein, mount message can record second that destination application is generated needed for installation process Second the file information of file.
In embodiments of the present invention, file record information file record information as described in embodiment one.When second Acquiring unit 500 get destination application during the installation process caused by the second file the second file information when, The information of second file can be added in file record information by the second storage unit 600.In a particular application, it may is that end Preset file record information is held to can be unstall.dat file, this document can store the installation in destination application Under catalogue or under catalogue that other are specified.When second acquisition unit 500 gets by the mount message of destination application When two the file informations, the second the file information can be added in file record information and save by the second storage unit 600.
In embodiments of the present invention, when determination unit 300, which is detected, to be unloaded to destination application, determination unit 300 can be read the file record information of storage.When file record information record has the first the file information and the second the file information, Determination unit 300 reads first recorded the second the file information of the file information from file record information, to obtain first Included by the store path information and the second the file information of first file identification and the first file included by the file information The store path information of second file identification and the second file.Determination unit 300 can be according to the first file identification and the first file Store path information searched, determine destination application in the process of running caused by the first file, and according to The store path information of second file identification and the second file is searched, and determines that destination application is produced during the installation process The second raw file.
In embodiments of the present invention, determine destination application in the process of running when determination unit 300 caused by the One file and destination application during the installation process caused by the second file when, cleaning unit 400 can delete the first file With the second file to carry out cleaning file, further, cleaning unit 400 can also be selected from the first file and the second file The file that need to be cleared up is cleared up, to produce the occupied memory space of file, improves the operational efficiency of terminal.
Wherein, the second acquisition unit 500 includes:
First obtains subelement, for when installation targets application program, obtaining the installation letter of the destination application Breath;
Second obtains subelement, for obtaining destination application institute during the installation process according to the mount message Second the file information of the second file generated.
Wherein, the determination unit 300 includes:
First search subelement, for when detect the destination application is unloaded when, according to described first Corresponding first file of first file identification described in the store path information searching of file;
First determines subelement, for determining the mesh when corresponding first file of lookup first file identification Mark the first file caused by application program;
Second searches subelement, for the second file identification according to the store path information searching of second file Corresponding second file;
Second determines subelement, for determining the mesh when corresponding second file of lookup second file identification Mark the second file caused by application program.
It is understood that the function of each functional module of the unit in the terminal of the present embodiment can be according to above method reality The method specific implementation in example is applied, specific implementation process is referred to the associated description of above method embodiment, herein no longer It is repeated.
The embodiment of the present invention is by obtaining the destination application during the installation process when installation targets application program Second the file information is saved into profile record information, works as detection by the second the file information of generated second file When to operational objective application program, obtain destination application in the process of running caused by the second file the first file letter Breath, the second the file information is saved into preset file record information, and is carried out when detecting to the destination application When unloading, first the file information and second the file information according to recorded in the file record information are determined Second file caused by first file caused by the destination application and the determining destination application, according to First file and second file carry out cleaning file, this makes terminal can be when destination application is unloaded to target Application program in the process of running caused by the first file and destination application during the installation process caused by the second text Part is cleared up, to produce the first file and the occupied memory space of the second file, improves terminal operating efficiency.
It is a kind of 3rd embodiment structure chart of the discharge mechanism of application program provided in an embodiment of the present invention referring to Fig. 6. Device described in the embodiment of the present invention, comprising:
First acquisition unit 100, the first storage unit 200, determination unit 300 and cleaning unit 400, second acquisition unit 500 and second storage unit 600.
Wherein, described device further include:
Generation unit 700, for selecting the page according to first file and second file generated.
Output unit 800, for exporting the selection page, so that user is selected according to the selection page to clear The file of reason.
The cleaning unit 400 includes:
Third determines subelement 10, for when receive user for it is described selection the page input selection cleaning instruction When, file for clearance is determined according to the selection instruction.
Subelement 20 is deleted, for deleting the file for clearance.
In embodiments of the present invention, the selection page that generation unit 700 generates may include the first file and the second file File identification.The selection page can carry out enumerating file identification, or show file identification by tabular form.Wherein, files-designated Knowledge can be title, ID of the first file and the second file etc..
In embodiments of the present invention, the selection page may also include operational controls, and optionally, terminal can be in the every of the selection page An operational controls, the operational controls that can be such as chosen are provided which on a file identification.
In embodiments of the present invention, when generation unit 700 generates the selection page, output unit 800 can pop up selection page Face, so that user carries out selecting file for clearance according to the selection page.Selection the page on can displaying target application program pacifying First file produced by second file caused by during dress and operational process.Some file is carried out when user determines When deletion, user can the operational controls on the corresponding file identification of operation file confirm, as user can be on the selection page It carries out choosing the corresponding file identification of file for clearance that need to be cleared up in the operational controls of offer.
In embodiments of the present invention, when user carries out operation acknowledgement for the operational controls provided on the selection page, the Three determine that subelement 10 can get the selection that the selection page generates and clear up instruction.Wherein, selection cleaning instruction can carry for clearance The corresponding file identification of file.
In embodiments of the present invention, when third determines that subelement 10 obtains selection cleaning instruction, third determines subelement 10 can determine file for clearance according to the entrained corresponding file identification of file for clearance of selection cleaning instruction.
In embodiments of the present invention, when third determines that subelement 10 determines file for clearance, deleting subelement 20 can File for clearance is deleted, to produce the occupied memory space of file for clearance, improves the operational efficiency of terminal.
It is understood that the function of each functional module of the unit in the terminal of the present embodiment can be according to above method reality The method specific implementation in example is applied, specific implementation process is referred to the associated description of above method embodiment, herein no longer It is repeated.
The terminal of the embodiment of the present invention is by selecting the page, output according to first file and second file generated The selection page, and when receiving selection cleaning instruction of the user for the selection page input, according to the selection Instruction determines file for clearance, deletes the file for clearance, this using terminal can to the first file and the second file into Row is optional to be deleted, and improves user experience, and can produce the occupied memory space of file, improves the operation effect of terminal Rate.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (18)

1. a kind of discharging method of application program, which is characterized in that the described method includes:
When detecting operational objective application program, monitor described for saving under the installation directory of the destination application The history file of the file information of destination application downloading, when monitoring that the history file has modification, really The fixed destination application produces the first file, obtain the destination application in the process of running caused by first First the file information of file;
First the file information is saved into preset file record information;
When detect the destination application is unloaded when, described according to recorded in the file record information One the file information determines the first file caused by the destination application;
Cleaning file is carried out according to first file.
2. the method as described in claim 1, which is characterized in that when detecting operational objective application program, obtain the mesh Mark application program in the process of running caused by the first file the first the file information before include:
When installation targets application program, obtain the destination application during the installation process caused by the second file the Two the file informations;
Second the file information is saved into preset file record information.
3. method according to claim 2, which is characterized in that it is described when installation targets application program, obtain the target Application program during the installation process caused by the second the file information of the second file include:
When installation targets application program, the mount message of the destination application is obtained;
According to the mount message obtain the destination application during the installation process caused by the second file second text Part information.
4. method according to claim 2, which is characterized in that described ought detect unloads the destination application When, first the file information, determines produced by the destination application according to recorded in the file record information The first file further include:
When detect the destination application is unloaded when, described according to recorded in the file record information One the file information and second the file information determine described in the first file caused by the destination application and determination Second file caused by destination application.
5. method as claimed in claim 4, which is characterized in that first the file information includes the first file identification and first The store path information of file, second the file information include the store path information of the second file identification and the second file;
It is described when detect the destination application is unloaded when, according to institute recorded in the file record information The first the file information and second the file information are stated, determines the first file and determination caused by the destination application Second file caused by the destination application includes:
When detect the destination application is unloaded when, according to the store path information searching institute of first file State corresponding first file of the first file identification;
When corresponding first file of lookup first file identification, the first text caused by the destination application is determined Part;
According to corresponding second file of the second file identification described in the store path information searching of second file;
When corresponding second file of lookup second file identification, the second text caused by the destination application is determined Part.
6. method as claimed in claim 5, which is characterized in that it is described according to first file carry out cleaning file also wrap It includes:
Cleaning file is carried out according to first file and second file.
7. method as claimed in claim 6, which is characterized in that described to be carried out according to first file and second file Clearing up file includes:
Delete first file and second file.
8. the method for claim 7, which is characterized in that described to be carried out according to first file and second file Include: before cleaning file
The page is selected according to first file and second file generated;
The selection page is exported, so that user carries out selecting file for clearance according to the selection page.
9. method according to claim 8, which is characterized in that described to be carried out according to first file and second file Clearing up file includes:
When receiving selection cleaning instruction of the user for the selection page input, instruction is cleared up according to the selection and is determined File for clearance;
Delete the file for clearance.
10. a kind of discharge mechanism of application program, which is characterized in that described device includes:
First acquisition unit, for when detecting operational objective application program, monitoring the installation mesh of the destination application The history file of the lower the file information for saving the destination application downloading of record, when monitoring that the history remembers When record file has modification, determines that the destination application produces the first file, obtain the destination application and running First the file information of the first file caused by the process;
First storage unit, for saving first the file information into preset file record information;
Determination unit, for when detect the destination application is unloaded when, according in the file record information First the file information recorded, determines the first file caused by the destination application;
Unit is cleared up, for carrying out cleaning file according to first file.
11. device as claimed in claim 10, which is characterized in that described device includes:
Second acquisition unit, for obtaining destination application institute during the installation process when installation targets application program Second the file information of the second file generated;
Second storage unit, for saving second the file information into preset file record information.
12. device as claimed in claim 11, which is characterized in that the second acquisition unit includes:
First obtains subelement, for obtaining the mount message of the destination application when installation targets application program;
Second obtains subelement, produced by obtaining the destination application during the installation process according to the mount message The second file the second the file information.
13. device as claimed in claim 11, which is characterized in that the determination unit also particularly useful for:
When detect the destination application is unloaded when, described according to recorded in the file record information One the file information and second the file information determine described in the first file caused by the destination application and determination Second file caused by destination application.
14. device as claimed in claim 13, which is characterized in that first the file information includes the first file identification and the The store path information of one file, second the file information include the store path letter of the second file identification and the second file Breath;
The determination unit includes:
First search subelement, for when detect the destination application is unloaded when, according to first file Store path information searching described in corresponding first file of the first file identification;
First determines subelement, for determining that the target is answered when corresponding first file of lookup first file identification The first file caused by program;
Second searches subelement, corresponding for the second file identification according to the store path information searching of second file The second file;
Second determines subelement, for determining that the target is answered when corresponding second file of lookup second file identification The second file caused by program.
15. device as claimed in claim 14, which is characterized in that the cleaning unit also particularly useful for:
Cleaning file is carried out according to first file and second file.
16. device as claimed in claim 15, which is characterized in that the cleaning unit also particularly useful for:
Delete first file and second file.
17. device as claimed in claim 16, which is characterized in that described device further include:
Generation unit, for selecting the page according to first file and second file generated;
Output unit, for exporting the selection page, so that user carries out selecting text for clearance according to the selection page Part.
18. device as claimed in claim 17, which is characterized in that the cleaning unit includes:
Third determines subelement, for when receive user for it is described selection the page input selection cleaning instruction when, according to The selection cleaning instruction determines file for clearance;
Subelement is deleted, for deleting the file for clearance.
CN201510984826.0A 2015-12-24 2015-12-24 A kind of discharging method and device of application program Active CN105404537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510984826.0A CN105404537B (en) 2015-12-24 2015-12-24 A kind of discharging method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510984826.0A CN105404537B (en) 2015-12-24 2015-12-24 A kind of discharging method and device of application program

Publications (2)

Publication Number Publication Date
CN105404537A CN105404537A (en) 2016-03-16
CN105404537B true CN105404537B (en) 2019-08-06

Family

ID=55470037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510984826.0A Active CN105404537B (en) 2015-12-24 2015-12-24 A kind of discharging method and device of application program

Country Status (1)

Country Link
CN (1) CN105404537B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656743B (en) * 2017-09-28 2021-04-16 努比亚技术有限公司 Application unloading method, terminal and readable storage medium
CN108170854A (en) * 2018-01-19 2018-06-15 广东欧珀移动通信有限公司 File clean-up method, apparatus, storage medium and mobile terminal
CN109189406A (en) * 2018-07-27 2019-01-11 努比亚技术有限公司 A kind of application management method, terminal and computer readable storage medium
CN112199336A (en) * 2020-09-29 2021-01-08 珠海豹好玩科技有限公司 Method and device for cleaning junk files in Linux system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631603A (en) * 2013-12-16 2014-03-12 北京奇虎科技有限公司 Software cleaning method and system
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment
CN105159710A (en) * 2012-03-31 2015-12-16 北京奇虎科技有限公司 Software uninstalling method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100983572B1 (en) * 2006-02-14 2010-09-24 후지쯔 가부시끼가이샤 Patch applying device and program
CN102004877B (en) * 2010-11-19 2013-01-23 珠海市君天电子科技有限公司 Method for monitoring source of computer virus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159710A (en) * 2012-03-31 2015-12-16 北京奇虎科技有限公司 Software uninstalling method and apparatus
CN103631603A (en) * 2013-12-16 2014-03-12 北京奇虎科技有限公司 Software cleaning method and system
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment

Also Published As

Publication number Publication date
CN105404537A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN105404537B (en) A kind of discharging method and device of application program
CN104866510B (en) Method and device for removing residual file and method and device for establishing feature library of residual file
Abraham et al. Spanning the length scales in dynamic simulation
US20130276126A1 (en) Website scanning device and method
CN107247722B (en) File scanning method and device and intelligent terminal
CN102880714A (en) File deleting method and file deleting device
CN105893471B (en) Data processing method and electronic equipment
JP4233564B2 (en) Data processing apparatus, data processing program and recording medium
CN104503839B (en) Computing device optimization method and device based on audio
CN113076288A (en) File processing method and device, electronic equipment and storage medium
Schoen et al. IMPULSE: A display oriented editor for STROBE
CN111090623B (en) Data auditing method and device, electronic equipment and storage medium
CN106210905A (en) Video playing method, device and terminal
CN104915425A (en) Method and device for retrieving file content
CN117130697A (en) Method and device for fixing application on taskbar
CN109857623A (en) Service performance analysis method, device and electronic equipment based on journal file
CN110020378A (en) The content delivery method and device of video website
CN114416731A (en) Data storage method, data reading method, data storage device, electronic device and medium
CN111049887A (en) Download control method, system and storage medium based on dynamic search strategy
CN114629895B (en) File fragment breakpoint continuous transmission method, device, terminal equipment and medium
CN109918153B (en) Page opening method and device and page content retrieval method and device
CN109446166B (en) Method for detecting file directory, computer readable storage medium and terminal device
KR20070023188A (en) A Method for Managing Files with Additional Management Information
CN117478743A (en) Data caching method, device, equipment and medium for balancing freshness and access frequency
WO2006134526A2 (en) Method and device of tracking file transfer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20181228

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant