CN103176828B - Delete the application of the residual method and device files - Google Patents

Delete the application of the residual method and device files Download PDF

Info

Publication number
CN103176828B
CN103176828B CN201310108958.8A CN201310108958A CN103176828B CN 103176828 B CN103176828 B CN 103176828B CN 201310108958 A CN201310108958 A CN 201310108958A CN 103176828 B CN103176828 B CN 103176828B
Authority
CN
China
Prior art keywords
folder
application
name
target
storage medium
Prior art date
Application number
CN201310108958.8A
Other languages
Chinese (zh)
Other versions
CN103176828A (en
Inventor
李涛
颜冬
王永杨
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to CN201310108958.8A priority Critical patent/CN103176828B/en
Publication of CN103176828A publication Critical patent/CN103176828A/en
Application granted granted Critical
Publication of CN103176828B publication Critical patent/CN103176828B/en

Links

Abstract

本发明公开了删除应用程序残留文件的方法及装置,其中,所述方法包括:当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径;根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称;当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载;如果是,则将该文件夹中的残留文件删除。 The present invention discloses a method and apparatus to remove residual files an application, wherein the method includes: when a terminal device to be deleted to save a target storage medium remaining application file, the application acquisition program stored on the target storage medium name / path created folder; depending on the application installation package preset correspondence relationship between the name / path name and folder, saved on the storage medium to determine the destination folder corresponding to the target application installation package; when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded; if so, the remaining file in the folder to delete. 通过本发明,可以降低文件夹被误删的概率。 By the present invention, it is possible to reduce the probability of folders accidentally deleted.

Description

删除应用程序残留文件的方法及装置 Delete the application of the residual method and device files

技术领域 FIELD

[0001] 本发明涉及终端设备中文件处理技术领域,具体涉及删除应用程序残留文件的方法及装置。 [0001] The present invention relates to a method and apparatus for document processing in the terminal device technical field, particularly relates to the application to delete the remaining files.

背景技术 Background technique

[0002] 许多Android应用程序会在移动终端的存储卡上创建自己应用程序专用的目录, 用来存放缓存文件、临时文件或者通过网络下载的视频、音频、书籍等媒体文件。 [0002] Many Android application will create their own application-specific directory on the memory card of a mobile terminal, used to store the cache files, temporary files, or through the network to download video, audio, books and other media files. 但是,当Android应用程序被卸载时,残留在存储卡上的文件不会被删除,而其中大部分文件对于用户来说是无用处的,属于垃圾文件。 However, when the Android application is uninstalled, remaining on the memory card files are not deleted, most of which files are useless for users, belonging junk files. 如果用户频繁的安装和卸载新软件,就会在存储卡产生大量的应用程序残留文件,不但占用存储卡空间,而且使存储卡的文件管理变得困难起来。 If you frequently install and uninstall new software applications will generate a lot of residual files on the memory card, not only take up memory card space, and the memory card file management more difficult. 因此,实现Android应用程序残留目录的识别与清理是十分必要的。 Therefore, it is necessary to achieve recognition and clean up residual directory of Android applications.

[0003] 目前主要的Android应用程序残留目录识别方法是通过包名和文件夹名的配对比较。 [0003] At present, Android application directory residue is identified by the package name and the folder name paired comparison. 其原理如下: The principle is as follows:

[0004] 1、每款Android应用程序都有一个唯一的包名,不与其他应用程序的包名冲突,可作为应用程序的唯一标识。 [0004] 1, each Android application has a unique package name, package name does not conflict with other applications, and can uniquely identify as an application.

[0005] 2、多数情况下,每款应用程序在存储卡上产生的文件一般会统一放在相应的文件夹内,文件夹名由应用程序产生,且一般情况下不会与其他应用程序产生的文件夹重名,即一般情况下,不同应用程序生成的文件夹名不会产生冲突。 [0005] 2, in most cases, an application file Each generated on the memory card will normally be unified in the corresponding folder, the folder name generated by the application, and will not produce with other applications in general folder the same name, that is, under normal circumstances, different application-generated folder name without conflict.

[0006] 在以上两点的前提下,现有技术可以通过人工或编写程序的方式,统计出目前市场上常见的应用程序包名与文件夹名的对应关系,并记录下来。 [0006] In the above two points the premise of the prior art can be manually or by programming the way, the statistics of the correspondence between the current common market on the application package name and the folder name, and recorded. 这样,当应用程序被卸载后,根据卸载应用的包名就可以查找到这款应用生成的文件夹名,根据文件夹名扫描存储卡目录,如果该文件夹名存在,则可以说明这款卸载的应用存在残留文件。 Thus, when the application is uninstalled, according to the package name to uninstall applications you can find this application generates a folder name, folder name based on the scan card catalog, if the folder name exists, you can explain this to uninstall the presence of residual file applications.

[0007] 目前的这种方法建立了软件包名和生成文件夹名的一一映射关系,从而实现对残留文件的清理。 [0007] This method currently has established one mapping package names and folder name generated in order to achieve clean up residual files. 然而,在实际应用中发现,现有技术在实现文件清理的过程中,误删一些不应该删除文件的几率会比较高。 However, in practical applications found in the prior art in achieving clean up the file, accidentally deleted some of the files should not be deleted probability will be higher.

发明内容 SUMMARY

[0008] 鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的删除应用程序残留文件的方法及装置,可以降低文件夹被误删的概率。 [0008] In view of the above problems, the present invention is proposed in order to overcome the above problems or to provide a solution to at least partially remove residual files application method and apparatus of the above problems, it is possible to reduce the probability of folders accidentally deleted.

[0009] 依据本发明的一个方面,提供了一种删除应用程序残留文件的方法,包括: [0009] According to one aspect of the present invention, there is provided a residual delete the application file, comprising:

[0010] 当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; [0010] When the need to remove the terminal device stored in the target storage medium remaining application file, acquires the name / path of the target file is saved on the storage medium application created folder;

[0011]根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称; [0011] The application installation package preset correspondence relationship between the name / path name and folder, saved on the storage medium to determine the destination folder corresponding to the target application, the installation package;

[0012] 当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; [0012] When a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded;

[0013]如果是,则将该文件夹中的残留文件删除。 [0013] If so, then the remaining files in the folder to delete.

[0014]可选地,所述当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取目标存储介质上保存的应用程序创建的文件夹的名称/路径包括: [0014] Alternatively, when the need to remove the terminal device stored in the target storage medium remaining application file, acquires the name / path of the file stored on the target storage medium application creates the folder comprising:

[0015]当监听到卸载某应用程序的事件时,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,获取目标存储介质上保存的该应用程序创建的文件夹的名称/路径; File [0015] when listening to the event uninstall an application, according to the application preferences, the installation package with the correspondence between the folder name / path to get the application stored on the target storage medium to create the folder name / path;

[0016] 所述根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称,包括: [0016] The preset application installation package folder name correspondence between the name / path, saved on the storage medium to determine the destination folder corresponding to the target application installation package, comprising a:

[0017] 根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的当前被卸载应用程序对应目标文件夹名称/路径对应的目标应用程序安装包名称。 [0017] The application installation package preset correspondence relationship between the name / path name and folder, determining the current application is unloaded saved on the storage medium corresponding to the target destination application folder name / path of the corresponding installation package .

[0018] 可选地,所述当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径包括: [0018] Alternatively, when the need to remove the terminal device stored in the target storage medium remaining application file, acquires the name / path of the file of each application program stored on the target storage medium to create the folder comprising:

[0019] 当监听到用户启动扫描所述目标存储介质上的文件夹的操作时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径; [0019] When the user starts listening to the scanning operation of the target file on the storage medium when the folder, get the name / path of the file of each application program stored on the target storage medium to create the folder;

[0020] 所述根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称,包括: [0020] The preset application installation package folder name correspondence between the name / path, saved on the storage medium to determine the destination folder corresponding to the target application installation package, comprising a:

[0021] 扫描所述目标存储介质,并根据预置的应用程序安装包名称与文件夹/路径名称之间的对应关系,确定存储介质上各个文件夹分别对应的目标应用程序安装包名称。 [0021] scanning the target storage medium, depending on the application and the installation package name preset correspondence relationship between the folder / path name, each folder is determined respectively corresponding to the target application, the installation package on a storage medium.

[0022] 可选地,所述扫描所述目标存储介质包括: [0022] Alternatively, the scanning of the target storage medium comprising:

[0023]当扫描到某文件夹时,判断其名称/路径是否出现在预置的白名单中,如果是,则跳过;其中,所述白名单中保存有不是残留文件夹的文件夹名称/路径。 [0023] When a scan to a folder, which determines the name / path appears in the whitelist preset, and if so, skip; wherein the whitelist is stored in the file is not a folder name of the residual /path.

[0024] 可选地,所述终端设备装载有Android操作系统。 [0024] Alternatively, the terminal device is loaded with the Android operating system.

[0025] 可选地,所述目标存储介质为所述终端设备在本机存储介质基础上扩展的独立存储介质。 [0025] Alternatively, the target storage medium for the terminal apparatus in the extended storage media based on a separate storage medium.

[0026] 根据本发明的另一方面,提供了一种删除应用程序残留文件的装置,包括: [0026] According to another aspect of the present invention, there is provided an apparatus for the application to delete the remaining files, comprising:

[0027] 文件夹名称获取单元,用于当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; [0027] The folder name obtaining unit, configured to, when the terminal device to be deleted to save a target storage medium remaining application file, acquires the name / path of the target file is saved on the storage medium application created folder;

[0028] 目标应用程序确定单元,用于根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称; [0029] 判断单元,用于当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; [0028] The target application determining unit, depending on the application for a preset correspondence relationship between the installation package name / folder path name, target application stored on the storage medium corresponding to the target folder, the installation package; [0029] determination means for, when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded;

[0030] 删除单元,用于如果是,则将该文件夹中的残留文件删除。 [0030] The deleting unit for, if so, the remaining file in the folder to delete.

[0031] 可选地,所述文件夹名称获取单元包括: [0031] Alternatively, the folder name obtaining unit comprises:

[0032] 第一监听子单元,用于当监听到卸载某应用程序的事件时,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,获取目标存储介质上保存的该应用程序创建的文件夹的名称/路径; [0032] The first monitor sub-unit, configured to, when the event listener to uninstall an application, the application in accordance with a preset correspondence relationship between the installation package name / folder path name, obtaining stored on the target storage medium the name of the file created by the application folder / path;

[0033] 所述目标应用程序确定单元包括: [0033] The target application determination unit comprises:

[0034] 第一确定子单元,用于根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的当前被卸载应用程序对应目标文件夹名称/路径对应的目标应用程序安装包名称。 [0034] a first determining subunit, for the application according to a preset correspondence relationship between the installation package name / folder path name, determines the current application is unloaded saved on the storage medium corresponding to the destination folder name / path corresponding to the target application installation package.

[0035] 可选地,所述文件夹名称获取单元包括: [0035] Alternatively, the folder name obtaining unit comprises:

[0036]第二监听子单元,用于当监听到用户启动扫描所述目标存储介质上的文件夹的操作时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径; When [0036] the second sub-monitor unit configured to monitor operation of the file on the user starts scanning the target folder storage medium, acquires the name / path of the file of each application program stored on the target storage medium to create the folder;

[0037] 所述目标应用程序确定单元包括: [0037] The target application determination unit comprises:

[0038]第二确定子单元,用于扫描所述目标存储介质,并根据预置的应用程序安装包名称与文件夹/路径名称之间的对应关系,确定存储介质上各个文件夹分别对应的目标应用程序安装包名称。 [0038] The second determining sub-unit, for scanning the target storage medium, and according to the preset application installation package folder name correspondence between the / path name of each file on the storage medium is determined respectively corresponding clip target application installation package name.

[0039] 可选地,所述第二确定子单元具体用于: [0039] Alternatively, the second determining sub-unit is configured to:

[0040] 当扫描到某文件夹时,判断其名称/路径是否出现在预置的白名单中,如果是,则跳过;其中,所述白名单中保存有不是残留文件夹的文件夹名称/路径。 [0040] When a scan to a folder, which determines the name / path appears in the whitelist preset, and if so, skip; wherein the whitelist is stored in the file is not a folder name of the residual /path.

[0041] 根据本发明实施例提供的删除应用程序残留文件的方法及装置,在需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取到目标存储介质上保存的各个应用程序创建的文件夹的名称之后,可以首先判断目标文件夹对应的目标应用程序,如果发现一个文件夹都应的目标应用程序为多个,则只有在这几个目标应用程序均己被卸载的情况下,才会对该文件夹进行删除,从而可以降低文件夹被误删的概率。 [0041] A method and apparatus remove application residual files according to an embodiment of the present invention, when the saved application program remaining files need to remove the terminal device a target storage medium, acquires the respective application programs stored on the target storage medium to create after the name of the folder can first determine the destination folder corresponding target application, if you find a folder should be the target for multiple applications, only the case of several target applications are already being unloaded in , the folder will be deleted, thereby reducing the probability of a folder is accidentally deleted.

[0042] 上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段, 而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。 [0042] The above description is only an overview of the technical solution of the present invention, in order to more fully understood from the present invention, but may be implemented in accordance with the contents of the specification, and in order to make the aforementioned and other objects, features and advantages of the present invention can be more apparent from the following specific embodiments cite Patent of the present invention.

附图说明 BRIEF DESCRIPTION

[0043] 通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。 [0043] By reading the following detailed description of preferred embodiments Hereinafter, a variety of other advantages and benefits to those of ordinary skill in the art will become apparent. 附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。 The drawings are only for purposes of illustrating a preferred embodiment and are not to be considered limiting of the present invention. 而且在整个附图中,用相同的参考符号表示相同的部件。 But throughout the drawings, like parts with the same reference symbols. 在附图中: In the drawings:

[0044] 图1示出了根据本发明一个实施例的方法的流程图;以及 [0044] FIG. 1 shows a flow diagram of the method according to one embodiment of the present invention; and

[0045] 图2示出了根据本发明一个实施例的装置的示意图。 [0045] FIG. 2 shows a schematic view of one embodiment of apparatus according to the present invention.

具体实施方式 Detailed ways

[0046] 下面将参照附图更详细地描述本公开的示例性实施例。 [0046] The following exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 While the exemplary embodiment shows an exemplary embodiment of the present disclosure in the drawings, it should be understood that the present disclosure may be implemented embodiments and should not be set forth herein to limit in various forms. 相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Rather, these embodiments are able to more thorough understanding of the present disclosure, and the scope of the present disclosure can be completely conveying to those skilled in the art.

[0047]首先需要说明的是,本发明人在实现本发明的过程中发现,现有技术中之所以经常出现文件被误删的情况,一个主要的原因在于:现有技术在删除应用程序残留文件时,是在一个假设的前提下进行的,该假设就是:应用程序与其建立的文件夹之间是一一对应的关系。 [0047] It should be noted first of all that, the present inventors have found that in the implementation of the present invention, where the file is accidentally deleted prior art often the reason, one major reason: to delete the application in the prior art residual when the file is done under the premise of a hypothesis, the hypothesis is this: is one to one relationship between the application and its build folder. 但是,实际情况是一个文件夹名可能对应的是多个应用程序包名,而不是唯一的应用程序包名。 However, the reality is that a corresponding folder name may be more than one application package name, but not the only application package name. 例如同一家厂商发布的几款应用程序可能会公用同一个文件夹,如果这样的情况出现,则使用一一映射的方法就会不够精确,并可能导致文件夹被误删的情况。 For example, one vendor released several applications may be public in the same folder, if this happens, one mapping method is used will be imprecise, and may lead to the case folder is accidentally deleted.

[0048]为此,本发明实施例提供了一种删除应用程序残留文件的方法,参见图丨,该方法可以包括以下步骤: [0048] To this end, an embodiment is provided a file delete the application method of the invention remaining, see Fig Shu, the method may comprise the steps of:

[0049] S101:当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; [0049] S101: When the terminal device to be deleted to save a target storage medium remaining application file, acquires the name / path of the target file is saved on the storage medium application created folder;

[0050]在本发明实施例中,终端设备一般是指转载有Android操作系统的终端设备。 [0050] In an embodiment of the present invention, the terminal equipment generally refers reproduced Android operating system terminal device. 目标存储介质一般是指终端设备在本机存储介质基础上扩展的独立存储介质,例如存储卡等。 Generally it refers to a target storage medium in the terminal device extended storage media based on a separate storage medium such as a memory card. 也就是说,扩展的独立存储介质是相对于本机存储介质而言的,本机存储介质也可以称为“主存储”或者“基本存储”,一般指硬件系统中板载的,不可拆卸的可重用存储设备,用于保存重要或者必须的文件和数据(如操作系统相关的可执行文件、库文件等)。 That is, separate storage medium is extended with respect to the local storage medium, the storage media may also be referred to as a "primary storage" or "basic storage" generally refers to onboard hardware systems, non-removable reusable storage device for storing important or necessary files and data (e.g., operating system-related executable files, libraries, etc.). 而扩展的独立存储介质一般是可插拔的存储设备,用于保存一些应用级程序生成的文件或者用户文件。 Extended storage medium and is generally independent of the removable storage device for storing a number of application level program generates a file or a user file. [0051]在实际应用中,删除终端设备的目标存储介质中保存的应用程序残留文件的时机可以有多种,例如,其中一种可以在卸载某个应用程序时。 [0051] In practical applications, the time saved to delete the terminal equipment of a target storage medium residual application file can have a variety, for example, one can uninstall an application program. 也就是说,可以对卸载应用程序的事件进行监控,如果发现某个应用程序已经被卸载,则可以对存储介质上包含的文件夹进行扫描,找到该应用程序对应的文件夹。 In other words, the event can be monitored to uninstall the application, if it is found that an application has been uninstalled, you can file contained on the memory media folder to scan, locate the file corresponding to the application folder. 其中,在扫描的过程中,可以首先根据预置的应用程序包名与文件夹名称/路径之间的对应关系,确定出当前被卸载的应用程序对应的文件夹名称/路径,然后在存储介质中查找名称匹配的文件夹。 Wherein, during the scan, it is possible according to the preset first application package file name and a correspondence between the name / path of the folder, the file is determined that the current corresponding to the application is unloaded folder name / path, then in the storage medium Find the folder names that match.

[0052]另一种时机可以是在用户启动对存储介质中的文件夹进行扫描的操作时,也就是说,可以对用户的启动操作进行监控,如果发现某用户通过按下用户界面上的“启动扫描” 等按钮等方式启动对目标存储介质的扫描,则可以获取目标存储介质上保存的各个应用程序创建的文件夹的名称,此时,相当于将目标存储介质上的各个文件夹名称都获取到,然后再判断哪些可以删除。 [0052] Another timing may be when a user starts the storage medium is scanned with a folder, that is, the user can monitor the startup operation, the event that a user on the user interface by pressing " start scan "button, etc., etc. to start scanning the target storage medium, you can get the name of each application file stored on the target storage medium to create the folder, in which case, each file on the target storage medium is equivalent to folder names get to, and then determine what can be deleted.

[0053] 需要说明的是,对于目标存储介质上存储的文件夹而言,其实有些文件夹并不是应用程序为了保存其下载的文件等而创建的,也就是说这些文件夹肯定不是应用程序的残留文件,不应该被删除。 [0053] It should be noted that, for the files stored on the target storage media folder, the folder is not in fact, some applications save their files to download, etc. created, that is to say these folders is certainly not the application the remaining files should not be deleted. 因此,为了进一步防止误删,也为了提高扫描的效率,还可以预先设置一白名单,该白名单中保存有已知的一定不是应用程序残留文件的文件夹名称列表。 Accordingly, in order to further prevent accidental deletion, and to improve scanning efficiency, may also be provided in advance a white list, the whitelist is stored in the file is not necessarily aware of the application of the remaining file folder name list. 这样,在上述第二种方式下,在对目标存储介质上的文件夹进行扫描时,每扫描到一个文件夹,都可以与该白名单里的文件夹名称进行比对,判断其是否出现在该白名单中,如果出现了,则直接跳过,也即不再对该文件夹进行任何的操作,继续对下一个文件夹进行判断。 Thus, in the above-described second embodiment, when a file on the target storage media cartridge scans, each scan to a folder, it can be aligned with the whitelist folder name, whether or not it appears in the whitelist, if present, the skip, i.e. the longer any operation folder, a folder continues to the next judgment.

[0054] S102:根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称; [0054] S102: The application installation package preset correspondence relationship between the name / path name and folder, saved on the storage medium to determine the destination folder corresponding to the target application, the installation package;

[0055] 在确定出目标文件夹之后,可以根据预先设置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定出目标文件夹对应的目标应用程序程序安装包名称。 [0055] After determining the destination folder, the application package is installed according to a preset correspondence relationship between the name / folder path name, it is determined that the target application program object corresponding to the folder, the installation package. 其中, 应用程序安装包名称与文件夹名称/路径之间的对应关系可以是预先通过收集、统计等方式来建立的,并且一个文件夹名称/路径可能会对应多个应用程序安装包名称。 Wherein the application installation package correspondence between the name / path of the folder name may be collected in advance, the way to build statistics, and a folder name / path may correspond to a plurality of applications, the installation package. 其中,对于前述第一种删除文件的时机而言,由于已知当前被卸载的应用程序是哪个,因此在步骤S101中确定出的目标文件夹应该也是唯一的一个,但是反过来,该文件夹对应的应用程序却可能不仅仅包含当前被卸载的应用程序,因此,这里还要继续利用预先获取到的应用程序包名与文件夹名称/路径之间的对应关系,判断一个该目标文件夹是否还对应有其他的应用程序。 Among them, for the aforementioned first opportunity to delete the file, since the currently known to be unloaded application which, it is determined in the step S101, the destination folder should also be the only one, but in turn, the folder corresponding application but may include not only the current application is unloaded, and therefore, there will continue to take advantage of the correspondence between the name / path in advance to get the application package name and folder, the target folder to determine whether a also corresponds to other applications. 例如,假设当前正在卸载的应用程序是程序A1,则在步骤S101中,通过查找应用程序包名与文件夹名称之间的对应关系,可以查出该应用程序A1对应的文件夹名称是a。 For example, assume that the current application is being uninstalled program A1, then in step S101, by searching the correspondence between the name of the application package name and folder, you can find out the application A1 corresponding folder name is a. 而此时,在本发明实施例中并不是直接将该名称为a的文件夹删除,而是首先判断该文件夹对应的目标应用程序是否为多个,例如,假设根据对应关系发现,该文件夹a对应的目标应用程序不仅包括应用程序A1,还包括应用程序A2、A3,则在本步骤S102中就是要获取到该应用程序A1、A2的包名。 By this time, this embodiment is not directly name of a folder is deleted in the present invention, but first determining whether the folder corresponding to the target application is a plurality of, for example, found that the correspondence relationship is assumed, the file clip a corresponding target application includes not only the application A1, further comprising the application A2, A3, then in step S102 is to present the acquired application A1, A2 package name.

[0056] 当然,对于前述第二种删除文件的时机而言,由于步骤S101中扫描出的目标文件夹可能会是多个,因此,针对各个文件夹,可以根据应用程序包名与文件夹名称/路径之间的对应关系,分别确定出各个文件夹对应的应用程序分别是哪个或者哪些。 [0056] Of course, the timing of the aforementioned second to delete the file, since the step S101 scanning the target folder might be more, therefore, for each folder, depending on the application package name and the folder name correspondence between the / paths determined respectively corresponding to each folder to which the application or which are. 例如,步骤S101 中发现目标文件夹a、b、c等,根据预先获知的对应关系,在步骤S102中确定出,目标文件夹a 对应有应用程序A1、A2及A3,目标文件夹b对应的应用程序只有B1,目标文件夹c对应的应用程序有C1及C2。 For example, in step S101, to find the target folder a, b, C, etc., according to the correspondence relation known in advance is determined in step S102 that the target folder a corresponds to an application program A1, A2 and A3, the target folder b corresponding only application B1, corresponding to the target folder c applications of C1 and C2.

[0057] S103:当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; [0057] S103: When a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded;

[0058]如果发现某文件夹对应有多个目标应用程序,则首先判断这多个目标应用程序是否均已被卸载,只有在这多个应用程序均已被卸载的情况下,其对应的同一个文件夹才可以被删除,否则就会造成误删。 [0058] If you find a folder corresponding to a plurality of target application, first determine whether this multiple target applications have been uninstalled, only in the case of multiple applications that have been unloaded, with the corresponding a folder can be deleted, otherwise it will cause accidental deletion. 例如,前述例子中的文件夹a,如果发现对应的目标应用程序A1已经被卸载,但是目标应用程序A2及A3尚未被卸载,则此时该文件夹a不应该作为应用程序残留文件而被删除。 For example, the example in a folder, if it is found the corresponding target application A1 has been uninstalled, but the target application A2 and A3 have not been unloaded, it is a case that the folder should not be deleted as application files residue . 又如,对于文件夹c,如果发现其对应的应用程序C1及C2均己被卸载, 则该文件夹c中保存的文件可以被看作是应用程序残留文件,因此该文件夹c可以被删除。 As another example, for c folder, if it is found the corresponding applications are C1 and C2 have been uninstalled, the folder to save the file c can be considered residues application files, so the folder can be deleted c . [0059] S104:如果是,则将该文件夹中的残留文件删除。 [0059] S104: If so, then the remaining files in the folder to delete.

[0060] 也即,对于一个文件夹对应多个应用程序的情况,如果发现文件夹对应的各个应用程序都已经被删除,则可以确定该文件夹中的文件己经是残留文件,对当前操作系统中的各个应用程序而言都己经是没有用处的,因此,可以将该文件夹删除。 [0060] That is, for the case of a folder corresponding to a plurality of applications, and if found the folder corresponding to each application have been deleted, it may be determined that a file folder is already residual files for the current operation For each application system are already useless, so you can delete the folder file.

[0061] 总之,在本发明实施例中,在需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取到目标存储介质上保存的各个应用程序创建的文件夹的名称之后,可以首先判断目标文件夹对应的目标应用程序,如果发现一个文件夹都应的目标应用程序为多个,则只有在这几个目标应用程序均已被卸载的情况下,才会对该文件夹进行删除,从而可以降低文件夹被误删的概率。 After [0061] In summary, in the embodiment of the present invention, when stored in a need to remove the terminal device the target storage medium application remaining documents, access to the file name of each application program stored on the target storage medium created folder can first, determine the target application corresponding to the destination folder, if you find a folder should be the target for multiple applications, only in the case of these have been the target application is uninstalled, will be the file folder deleted, thereby reducing the probability of a folder is accidentally deleted.

[0062] 与本发明实施例提供的删除应用程序残留文件的方法相对应,本发明实施例还提供了一种删除应用程序残留文件的装置,参见图2,该装置可以包括: [0062] Method remove residual files an application according to an embodiment of the present invention correspond to embodiments of the present invention further provides an apparatus for the application to delete the remaining files, see FIG. 2, the apparatus may comprise:

[0063] 文件夹名称获取单元201,用于当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; [0064]目标应用程序确定单元202,用于根据预置的应用程序安装包名称与文件夹名称/ 路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称; [0063] The folder name obtaining unit 201, configured to, when the terminal device to be deleted to save a target storage medium remaining application file, acquires the name / path of the target file is saved on the storage medium application created folder; [0064] the target application determining unit 202, depending on the application for a preset correspondence relationship between the installation package name / folder path name, target application stored on the storage medium corresponding to the target folder, the installation package ;

[0065] 判断单元2〇3,用于当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; [0065] 2〇3 determination unit, configured to, when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded;

[0066]删除单元2〇4,用于如果是,则将该文件夹中的残留文件删除。 [0066] 2〇4 deleting unit for, if so, the remaining file folder deleted.

[0067] 在实际应用中,删除终端设备的目标存储介质中保存的应用程序残留文件的时机可以有多种,例如,其中一种可以在卸载某个应用程序时,相应的,所述文件夹名称获取单元201可以包括: [0067] In practice, the timing of deleting the terminal device stored in the target storage medium, the application file can have a variety of residues, e.g., one may uninstall an application, accordingly, the folder name acquisition unit 201 may include:

[0068] 第一监听子单元,用于当监听到卸载某应用程序的事件时,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,获取目标存储介质上保存的该应用程序创建的文件夹的名称/路径; [0068] The first monitor sub-unit, configured to, when the event listener to uninstall an application, the application in accordance with a preset correspondence relationship between the installation package name / folder path name, obtaining stored on the target storage medium the name of the file created by the application folder / path;

[0069] 所述目标应用程序确定单元202包括: [0069] The target application determination unit 202 includes:

[0070]第一确定子单元,用于根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的当前被卸载应用程序对应目标文件夹名称/路径对应的目标应用程序安装包名称。 [0070] a first determining subunit, for the application according to a preset correspondence relationship between the installation package name / folder path name, determines the current application is unloaded saved on the storage medium corresponding to the destination folder name / path corresponding to the target application installation package.

[0071] 另一种时机可以是在用户启动对存储介质中的文件夹进行扫描的操作时,此时, 所述文件夹名称获取单元201可以包括: [0071] Another timing may be when a user starts the storage medium is scanned with a folder, in which case, the folder name acquisition unit 201 may include:

[0072]第二监听子单元,用于当监听到用户启动扫描所述目标存储介质上的文件夹的操作时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径; When [0072] the second sub-monitor unit configured to monitor operation of the file on the user starts scanning the target folder storage medium, acquires the name / path of the file of each application program stored on the target storage medium to create the folder;

[0073] 所述目标应用程序确定单元202可以包括: [0073] The target application determination unit 202 may include:

[0074]第二确定子单元,用于扫描所述目标存储介质,并根据预置的应用程序安装包名称与文件夹/路径名称之间的对应关系,确定存储介质上各个文件夹分别对应的目标应用程序安装包名称。 [0074] The second determining sub-unit, for scanning the target storage medium, and according to the preset application installation package folder name correspondence between the / path name of each file on the storage medium is determined respectively corresponding clip target application installation package name.

[0075] 为了进一步防止误删,也为了提高扫描的效率,还可以预先设置一白名单,该白名单中保存有已知的一定不是应用程序残留文件的文件夹名称列表,此时,所述第二确定子单元具体用于: [0075] In order to further prevent accidental deletion, and to improve scanning efficiency, may also be provided in advance a white list, the whitelist is stored in the file is not necessarily aware of the remaining applications the folder name list, at this time, the second determining sub-unit is configured to:

[0076]当扫描到某文件夹时,判断其名称/路径是否出现在预置的白名单中,如果是,则跳过;其中,所述白名单中保存有不是残留文件夹的文件夹名称/路径。 [0076] When a scan to a folder, which determines the name / path appears in the whitelist preset, and if so, skip; wherein the whitelist is stored in the file is not a folder name of the residual /path.

[0077]总之,在本发明实施例提供的上述装置中,在需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取到目标存储介质上保存的各个应用程序创建的文件夹的名称之后,可以首先判断目标文件夹对应的目标应用程序,如果发现一个文件夹都应的目标应用程序为多个,则只有在这几个目标应用程序均已被卸载的情况下,才会对该文件夹进行删除,从而可以降低文件夹被误删的概率。 [0077] In summary, in the apparatus according to an embodiment of the present invention, when the saved application program remaining file in the destination storage medium need to remove the terminal device, obtains a file of each application program stored on the target storage medium created folders after the name, you can first determine the target application corresponding to the destination folder, if you find a target application folder should be in the plural, only in the case of several target applications have been uninstalled, only to to delete the folder, which can reduce the probability of a folder is accidentally deleted.

[0078] 在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。 [0078] The algorithms and displays are not provided, the virtual system or other device inherently related to any particular computer. 各种通用系统也可以与基于在此的示教一起使用。 Various general-purpose systems may also be used with the teachings herein based. 根据上面的描述,构造这类系统所要求的结构是显而易见的。 According to the above description, the configuration of such a system requires a structure will be apparent. 此外,本发明也不针对任何特定编程语言。 Further, the present invention is not to any particular programming language. 应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。 It should be appreciated that a variety of programming languages ​​may be utilized to achieve the present invention described herein, the above description and specific language is made to the disclosure of preferred embodiments of the present invention.

[0079] 在此处所提供的说明书中,说明了大量具体细节。 [0079] In the description provided herein, numerous specific details are described. 然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。 However, it can be understood that the embodiments of the present invention may be practiced without these specific details. 在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In some examples, not shown in detail in well-known methods, structures and techniques, so as not to obscure the understanding of this description.

[0080] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0080] Similarly, it should be understood that the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects in the description of exemplary embodiments of the present invention, various features of the invention are sometimes grouped into a single together embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 However, the methods disclosed herein should not be interpreted as reflecting an intention: that the claimed invention requires more features than in each of the claims expressly recited. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 More specifically, as reflected in the book as the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. 因此, 遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Thus, the claims following the specific embodiments are hereby incorporated into this Detailed Description explicitly, with each claim itself as a separate embodiment of the present invention.

[0081] 本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 [0081] Those skilled in the art can understand may be made to change adaptively embodiment device module and provided them with one or more devices different from this embodiment of the. 可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。 The embodiments may be modules or units into one module or component or components or units, and in addition they can be divided into a plurality of sub-modules or sub-units or sub-assemblies. 除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。 Any method other than such features and / or process, or at least some of the units are mutually exclusive, any combination of the present specification (including the accompanying claims, abstract and drawings) All of the features disclosed in, or disclosed herein and such All process units or equipment combination. 除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Unless expressly stated otherwise, each feature of the present specification (including the accompanying claims, abstract and drawings) may be provided by the same disclosed, characterized equivalents or similar purpose may be substituted.

[0082] 此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。 [0082] Moreover, those skilled in the art will appreciate that although in some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant in the present within the scope of the invention and form different embodiments. 例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 For example, in one embodiment any forth in the following claims, it may be claimed in any combination used.

[0083] 本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。 Example [0083] The various components of the present invention may be implemented in hardware, or as software modules running on one or more processors, or in a combination thereof. 本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器①SP)来实现根据本发明实施例的删除应用程序残留文件的设备中的一些或者全部部件的一些或者全部功能。 Those skilled in the art should appreciate that a microprocessor or digital signal processor used in practice ①SP) implemented in accordance with some or all of the remaining functions of the device files to delete the application embodiment of the present invention, some or all of the components. 本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。 The present invention may also be implemented as a part or all of the device or apparatus programs for performing the methods described herein (e.g., computer programs and computer program products). 这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。 Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. 这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 Such signals can be downloaded from the Internet website, or provided on a carrier signal, or in any other form.

[0084] 应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 [0084] It should be noted that the embodiments of the present invention, the above-described embodiments illustrate rather than limit the invention, and those skilled in the art without departing from the scope of the appended claims may be devised alternative embodiments. 在权利要求中, 不应将位于括号之间的任何参考符号构造成对权利要求的限制。 In the claims, should not be limited by any reference signs located claimed configured to claims between parentheses. 单词“包含”不排除存在未列在权利要求中的元件或步骤。 The word "comprising" does not exclude the presence of elements or steps not listed in the appended claims. 位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。 Preceding an element of the word "a" or "an" does not exclude the presence of a plurality of such elements. 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。 The present invention by means of hardware comprising several distinct elements, and by means of a suitably programmed computer implemented. 在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。 Unit claims enumerating several means, several of these means may be embodied by the same item of hardware. 单词第一、第二、以及第三等的使用不表示任何顺序。 Word of the first, second, and third, etc. does not denote any order. 可将这些单词解释为名称。 These words can be interpreted as names.

Claims (8)

1. 一种删除应用程序残留文件的方法,包括: 当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; 在确定目标文件夹之后,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定所述的目标文件夹对应的目标应用程序安装包名称; 当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; 如果是,则将该文件夹中的残留文件删除; 所述当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取目标存储介质上保存的应用程序创建的文件夹的名称/路径包括: 当监听到卸载某应用程序的事件时,根据预置的应用程序安装包名称与文件夹名称/ 路径之间的对应关系,获取目标存储介质上保存 Remove residual An application file, comprising: when a terminal device to be deleted to save a target storage medium remaining application file, acquires the file name stored in the target storage medium, the application creates the folder / path; after determining the destination folder, the application according to a preset correspondence relationship between the installation package name / path name and folder, the target folder to determine a corresponding target application installation package; when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded; if so, the remaining file in the folder to delete; the need to remove the terminal when the destination storage device name / path of the medium when the remaining files saved in the application, to obtain an application stored on the target storage medium to create folders include: when listening to uninstall the event of an application, in accordance with the application pre-installed with the package name correspondence between the folder name / path, gets saved on the target storage medium 该应用程序创建的文件夹的名称/路径; 所述根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称,包括: 根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的当前被卸载应用程序对应目标文件夹名称/路径对应的目标应用程序安装包名称。 Name / path of the file folder created by the application; according to the preset application program, the installation package and the correspondence between the folder name / path, determines a target application stored on the storage medium corresponding to the target folder mounting package name, comprising: the installation package of the application preset correspondence relationship between the name / path name and folder, determining the current application is unloaded saved on the storage medium corresponding to the target destination application folder name / path of a corresponding mounting package name.
2. —种删除应用程序残留文件的方法,包括: 当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; 在确定目标文件夹之后,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定所述的目标文件夹对应的目标应用程序安装包名称; 当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均己卸载; 如果是,则将该文件夹中的残留文件删除; 所述当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径包括: 当监听到用户启动扫描所述目标存储介质上的文件夹的操作时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路 2. - species remaining file delete the application method, comprising: when a terminal device to be deleted to save a target storage medium remaining application file, acquires the file name stored in the target storage medium, the application creates the folder / path; after determining the destination folder, the application according to a preset correspondence relationship between the installation package name / path name and folder, the target folder to determine a corresponding target application installation package; when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application are already unloaded; if so, the remaining file in the folder to delete; the need to remove the terminal when the destination storage device when the media file stored in the application residues, obtain the name / path of the file of each application program stored on the target storage medium to create the folder comprising: when the user starts listening to the scanning operation of the target file on the storage medium when the clamp, obtaining name the file various applications stored on the target storage medium to create the folder / road 径; 所述根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的目标文件夹对应的目标应用程序安装包名称,包括: 扫描所述目标存储介质,并根据预置的应用程序安装包名称与文件夹/路径名称之间的对应关系,确定存储介质上各个文件夹分别对应的目标应用程序安装包名称。 Diameter; the application according to a preset correspondence relationship between the installation package name / path name and folder, stored on the storage medium to determine the destination folder corresponding to the target application installation package, comprising: scanning the target storage medium, depending on the application and the installation package name preset correspondence relationship between the folder / path name, each folder is determined respectively corresponding to the target application, the installation package on a storage medium.
3. 根据权利要求2所述的方法,所述扫描所述目标存储介质包括: 当扫描到某文件夹时,判断其名称/路径是否出现在预置的白名单中,如果是,则跳过; 其中,所述白名单中保存有不是残留文件夹的文件夹名称/路径。 3. The method according to claim 2, the scanning of the target storage medium comprising: when scanning to a folder, which determines the name / path appears in the whitelist preset, and if so, skip ; wherein the whitelist is stored in the file is not remaining folder name / path.
4.根据权利要求1至3任一项所述的方法,所述终端设备装载有Android操作系统。 4. The method according to any one of claims 1 to 3, the terminal device is loaded with the Android operating system.
5.根据权利要求1至3任一项所述的方法,所述目标存储介质为所述终端设备在本机存储介质基础上扩展的独立存储介质。 5. The method according to any one of claims 1 to 3, the target storage medium for the terminal apparatus in the extended storage media based on a separate storage medium.
6. —种删除应用程序残留文件的装置,包括: 文件夹名称获取单元,用于当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; 目标应用程序确定单元,用于在确定目标文件夹之后,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定所述的目标文件夹对应的目标应用程序安装包名称; 判断单元,用于当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; 删除单元,用于如果是,则将该文件夹中的残留文件删除; 所述文件夹名称获取单元包括: 第一监听子单元,用于当监听到卸载某应用程序的事件时,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,获取目标存储介质上保存 6. - means remove residual files and seed applications, comprising: a folder name obtaining unit, configured to, when the terminal device to be deleted to save a target storage medium remaining application file, acquisition application stored on the target storage medium name / path of the file folder created by the program; target application determining unit, after determining a target folder, the application according to the preset correspondence relationship between the installation package name / folder path name, determined according to target folder corresponding to the target application installation package; determination means for, when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded; deleting unit, If it is used, then the remaining files in the folder to delete; the folder name obtaining unit comprises: a first subunit listening, listening for the event when an application is uninstalled, application according to a preset installation package file name correspondence between the name / path of the folder, on a target storage medium for storing the acquired 该应用程序创建的文件夹的名称/路径; 所述目标应用程序确定单元包括: 第一确定子单元,用于根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定存储介质上保存的当前被卸载应用程序对应目标文件夹名称/路径对应的目标应用程序安装包名称。 Name / path of the application creates a folder; the target application determination unit comprises: a first determining subunit, for the application according to a preset correspondence relationship between the installation package name / folder path name, saved on the storage medium to determine the current application is unloaded corresponding target destination application folder name / path of the corresponding installation package.
7. —种删除应用程序残留文件的装置,包括: 文件夹名称获取单元,用于当需要删除终端设备的目标存储介质中保存的应用程序残留文件时,获取所述目标存储介质上保存的应用程序创建的文件夹的名称/路径; 目标应用程序确定单元,用于在确定目标文件夹之后,根据预置的应用程序安装包名称与文件夹名称/路径之间的对应关系,确定所述的目标文件夹对应的目标应用程序安装包名称; 判断单元,用于当某文件夹对应至少两个目标应用程序安装包名称时,判断所述至少两个目标应用程序是否均已卸载; 删除单元,用于如果是,则将该文件夹中的残留文件删除; 所述文件夹名称获取单元包括: 第二监听子单元,用于当监听到用户启动扫描所述目标存储介质上的文件夹的操作时,获取目标存储介质上保存的各个应用程序创建的文件夹的名称/路径 7. - means remove residual files and seed applications, comprising: a folder name obtaining unit, configured to, when the terminal device to be deleted to save a target storage medium remaining application file, acquisition application stored on the target storage medium name / path of the file folder created by the program; target application determining unit, after determining a target folder, the application according to the preset correspondence relationship between the installation package name / folder path name, determined according to target folder corresponding to the target application installation package; determination means for, when a folder corresponding to at least two target application installation package name, the determining whether the at least two target application have been unloaded; deleting unit, If it is used, then the remaining files in the folder to delete; the folder name obtaining unit comprises: a second sub-monitor unit configured to monitor the operation file on the user starts scanning the target folder storage medium when obtaining the file name of each application stored on the target storage medium to create the folder / path 所述目标应用程序确定单元包括: 第二确定子单元,用于扫描所述目标存储介质,并根据预置的应用程序安装包名称与文件夹/路径名称之间的对应关系,确定存储介质上各个文件夹分别对应的目标应用程序安装包名称。 The target application determining unit comprises: a second determining sub-unit, for scanning the target storage medium, depending on the application and the installation package name preset correspondence relationship between the folder / path name, it is determined on the storage medium individual folders corresponding to each of the target application installation package.
8. 根据权利要求7所述的装置,所述第二确定子单元具体用于: 当扫描到某文件夹时,判断其名称/路径是否出现在预置的白名单中,如果是,则跳过; 其中,所述白名单中保存有不是残留文件夹的文件夹名称/路径。 8. The apparatus according to claim 7, the second determining sub-unit is configured to: when scanning to a folder, which determines the name / path appears in the whitelist preset, and if so, then jumping therethrough; wherein the whitelist is stored in the file is not remaining folder name / path.
CN201310108958.8A 2013-03-29 2013-03-29 Delete the application of the residual method and device files CN103176828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310108958.8A CN103176828B (en) 2013-03-29 2013-03-29 Delete the application of the residual method and device files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310108958.8A CN103176828B (en) 2013-03-29 2013-03-29 Delete the application of the residual method and device files

Publications (2)

Publication Number Publication Date
CN103176828A CN103176828A (en) 2013-06-26
CN103176828B true CN103176828B (en) 2017-06-09

Family

ID=48636731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310108958.8A CN103176828B (en) 2013-03-29 2013-03-29 Delete the application of the residual method and device files

Country Status (1)

Country Link
CN (1) CN103176828B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324737A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Mobile terminal and method and device for moving data in mobile terminal
CN104424321A (en) * 2013-09-09 2015-03-18 腾讯科技(深圳)有限公司 File directory obtainment method and file directory obtainment device
CN103838601B (en) * 2013-11-29 2017-04-19 北京奇虎科技有限公司 The refuse data cleaning method and apparatus
CN104754002B (en) * 2013-12-30 2019-03-26 北京猎豹网络科技有限公司 Clear up method, apparatus, mobile terminal and the cloud server of file
CN103810437B (en) * 2014-03-04 2016-12-07 深圳市金立通信设备有限公司 A hidden application method and terminal
CN104899049B (en) * 2014-03-04 2018-10-16 北京金山安全软件有限公司 A document deletion method and apparatus
CN103942067B (en) * 2014-03-31 2017-11-03 广东欧珀移动通信有限公司 Method and device for smart devices automatically cleaning software installation package file
CN104102516A (en) * 2014-07-21 2014-10-15 北京金山安全软件有限公司 Method and device for uninstalling application programs
CN104133641A (en) * 2014-07-24 2014-11-05 深圳市同洲电子股份有限公司 External storage equipment file deleting method and device
CN104239104B (en) * 2014-09-17 2018-03-30 北京金山安全软件有限公司 App uninstall the application method, the device and the terminal
CN104331376B (en) * 2014-11-14 2018-07-27 北京奇虎科技有限公司 Method and apparatus for cleaning an installation package is stored in a mobile terminal
CN104536792A (en) * 2014-12-30 2015-04-22 北京奇虎科技有限公司 Method and device for eliminating application program residual files
CN104572943B (en) * 2014-12-30 2018-05-08 北京奇虎科技有限公司 Cleanup Method and apparatus for free installation
CN104636455B (en) * 2015-01-30 2018-03-02 腾讯科技(深圳)有限公司 The method of obtaining the mapping information and the application means
CN104965731B (en) * 2015-06-02 2018-05-01 广东欧珀移动通信有限公司 A data processing method and an electronic terminal
CN104915462A (en) * 2015-07-14 2015-09-16 魅族科技(中国)有限公司 File management method and system
CN105138604A (en) * 2015-08-07 2015-12-09 广东欧珀移动通信有限公司 Terminal data processing method and apparatus
CN105243102B (en) * 2015-09-17 2018-11-23 北京金山安全软件有限公司 A method for processing residual unload file, and a terminal device
CN105205152B (en) * 2015-09-23 2019-04-02 北京金山安全软件有限公司 The method, apparatus and electronic equipment of decision paths and packet name corresponding relationship
CN105205150A (en) * 2015-09-23 2015-12-30 北京金山安全软件有限公司 Method and device for judging corresponding relationships of routes and package names and electronic device
CN105095521B (en) * 2015-09-23 2018-07-13 北京金山安全软件有限公司 The method of determining the path with the package name correspondence relationship, and the electronic device apparatus
CN106557500A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Cleanup method and apparatus for uninstalling residual files, and terminal
CN106648720A (en) * 2015-11-02 2017-05-10 北京金山安全软件有限公司 Method, device and terminal for determining residual catalog cleaning type
CN106055372A (en) * 2016-06-30 2016-10-26 乐视控股(北京)有限公司 Method and device for uninstalling application
CN106484516A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 Deletion method and device for multiple application reference relations and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN102662667A (en) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 Software uninstalling method and device
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937990B (en) * 2012-10-30 2018-07-06 小米科技有限责任公司 Method and apparatus for removing documents

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN102662667A (en) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 Software uninstalling method and device
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device

Also Published As

Publication number Publication date
CN103176828A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
US8352937B2 (en) Streaming an application install package into a virtual environment
US20100154062A1 (en) Virus Scanning Executed Within a Storage Device to Reduce Demand on Host Resources
JP2014506708A (en) Multi-stage resume from Haibaneito
CN103092664B (en) Method and apparatus for processing a data file system Andrews
US8380678B2 (en) Tracking files which have been processed by a backup or a restore operation
CN100426298C (en) Method and system for cleaning garbage files
CN102411628B (en) Android system-based file scanning method and device
CN101853296A (en) Method and device for managing application program
CN100592298C (en) File synchronisation method and device
CN102982274B (en) Intelligent terminal management system and intelligent terminals
CN103577567A (en) Method for uninstalling application and deleting garbage file in Android system
US9235703B2 (en) Virus scanning in a computer system
CN103631620A (en) Method and device for processing application programs
CN103826215B (en) Root method and apparatus for performing rights management on the terminal device
CN102831035B (en) Method and apparatus for the backup information
CN102831173B (en) RAM-based extension method Android system, apparatus and terminal equipment
RU2012151502A (en) Service content based on the reputation of the declaration
CN103354931B (en) Find a system and method for anti-malware metadata
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
CN103500116A (en) Method and system for clearing data generated by application program
CN101546337A (en) Memory system and data access method
US20090138969A1 (en) Device and method for blocking autorun of malicious code
CN103095758B (en) A distributed file system and the file system method for processing data
CN102495771A (en) Terminal object classified backup and recovery methods based on cloud architecture
RU2014141581A (en) A method for identifying the mobile terminal and the mobile terminal

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01