CN106201595A - The cleaning control method of a kind of application program and device - Google Patents
The cleaning control method of a kind of application program and device Download PDFInfo
- Publication number
- CN106201595A CN106201595A CN201610505825.8A CN201610505825A CN106201595A CN 106201595 A CN106201595 A CN 106201595A CN 201610505825 A CN201610505825 A CN 201610505825A CN 106201595 A CN106201595 A CN 106201595A
- Authority
- CN
- China
- Prior art keywords
- cleaning
- application program
- application
- installation location
- strategy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/62—Uninstallation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明涉及计算机领域,公开了一种应用程序的清理控制方法及装置,以解决现有技术中对应用程序的清理控制不够精确的技术问题。该方法包括:在针对第一应用程序进行清理时,可以首先获取第一应用程序在电子设备上的安装位置,然后通过安装位置确定出在电子设备针对第一应用程序进行清理的清理策略,也即是说,并非通过第一应用程序的默认清理策略对第一应用程序进行清理,而是基于第一应用程序的安装位置进行灵活控制,故而达到了对清理策略控制更加精确的技术效果。
The invention relates to the field of computers, and discloses an application program cleaning control method and device to solve the technical problem of inaccurate application program cleaning control in the prior art. The method includes: when cleaning the first application program, first obtain the installation location of the first application program on the electronic device, and then determine the cleaning strategy for cleaning the first application program on the electronic device through the installation location, and also That is to say, the first application program is not cleaned up through the default cleaning policy of the first application program, but is flexibly controlled based on the installation location of the first application program, so the technical effect of more precise control over the cleaning policy is achieved.
Description
技术领域technical field
本发明涉及计算机领域,尤其涉及一种应用程序的清理控制方法及装置。The invention relates to the field of computers, in particular to a method and device for cleaning and controlling application programs.
背景技术Background technique
随着科学技术的不断发展,电子技术也得到了飞速的发展,电子产品的种类也越来越多,人们也享受到了科技发展带来的各种便利。现在人们可以通过各种类型的移动终端,享受随着科技发展带来的舒适生活。例如,智能手机、平板电脑等移动终端已经成为人们生活中一个重要的组成部分,用户可以使用智能手机、平板电脑等移动终端来听音乐、玩游戏等等,以减轻现代快节奏生活所带来的压力。With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products, and people have also enjoyed various conveniences brought by the development of science and technology. Now people can enjoy the comfortable life brought by the development of science and technology through various types of mobile terminals. For example, mobile terminals such as smartphones and tablet computers have become an important part of people's lives. Users can use mobile terminals such as smartphones and tablet computers to listen to music, play games, etc., to alleviate the burden of modern fast-paced life. pressure.
通常情况下,电子设备上可以安装多种应用程序,而由于电子设备的存储空间有限,故而需要对电子设备上所安装的应用程序进行清理,现有技术中针对应用程序进行清理的策略往往写死在应用程序上,只能按照单一的清理策略对应用程序进行清理,故而无法实现精确的控制。Usually, various application programs can be installed on the electronic device, and since the storage space of the electronic device is limited, it is necessary to clean up the application programs installed on the electronic device. The strategies for cleaning up the application programs in the prior art are often written Dead on the application, the application can only be cleaned according to a single cleaning strategy, so precise control cannot be achieved.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的应用程序的清理控制方法及装置。In view of the above problems, the present invention is proposed to provide a cleaning control method and device for application programs that overcome the above problems or at least partially solve the above problems.
本发明的一个方面,提供了一种应用程序的清理控制方法,包括:One aspect of the present invention provides a cleaning control method for an application program, including:
确定第一应用程序在电子设备上的安装位置;determining the installation location of the first application program on the electronic device;
通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。A cleaning policy for cleaning the first application program on the electronic device is determined through the installation location.
可选的,所述确定第一应用程序在电子设备上的安装位置,包括:Optionally, the determining the installation location of the first application program on the electronic device includes:
查找所述第一应用程序在所述电子设备上的PE可移植的可执行文件;Find a PE-portable executable file of the first application program on the electronic device;
将所述PE可移植的可执行文件所在位置作为所述第一应用程序的所述安装位置。The location of the PE portable executable file is used as the installation location of the first application program.
可选的,所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略,包括:Optionally, the determining the cleaning strategy for cleaning the first application program on the electronic device through the installation location includes:
通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;determining the identification information of the first application program through the PE portable executable file;
通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略。The cleaning policy is obtained by searching through the identification information and the installation location in the cleaning policy set containing each application program.
可选的,所述通过所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略,包括:Optionally, the obtaining the cleaning policy by searching through the installation location in the cleaning policy set containing each application program includes:
判断所述安装位置是否位于预定安装位置;judging whether the installation location is located at a predetermined installation location;
如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;If the installation location is located at the predetermined installation location, determine the cleaning strategy for cleaning the first type of files from the cleaning strategy set;
如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。If the installation location is not located at the predetermined installation location, determine the cleaning strategy for cleaning the second type of files from the cleaning strategy set, the first type of files are incomplete with the second type of files same.
可选的,在所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略之后,所述方法还包括:Optionally, after the cleaning policy for cleaning the first application program on the electronic device is determined through the installation location, the method further includes:
基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;determining a set of files to be cleaned up when the first application is cleaned based on a snapshot of files generated when the first application is installed on the electronic device;
对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。Cleaning up the file types corresponding to the cleaning policy in the file set to be cleaned up.
可选的,所述方法还包括:Optionally, the method also includes:
获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。Obtaining the label information determined by the server for the first application and provided to the user, the label information being used to determine the PE-portable executable file based on the first application on the M electronic devices , M is a positive integer.
可选的,所述标签信息通过以下方式获得:Optionally, the tag information is obtained in the following ways:
从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据和/或所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;Determine the program behavior data of the first application on the M electronic devices and/or the M from the PE portable executable files of the first application on the M electronic devices User behavior data generated by a user of an electronic device for the first application program;
基于所述程序行为数据和/或所述用户行为数据确定出所述标签信息。The label information is determined based on the program behavior data and/or the user behavior data.
可选的,所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略,包括:Optionally, the determining the cleaning strategy for cleaning the first application program on the electronic device through the installation location includes:
将所述安装位置发送至服务器,以通过服务器确定出所述清理策略;或者,Send the installation location to a server, so as to determine the cleaning strategy through the server; or,
通过所述安装位置在预存的清理策略集合中查找获得所述清理策略。The cleaning strategy is obtained by searching the pre-stored cleaning strategy set through the installation location.
可选的,在所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略之后,所述方法还包括:Optionally, after the cleaning policy for cleaning the first application program on the electronic device is determined through the installation location, the method further includes:
如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;If the cleaning strategy has a priority, determine whether the priority of the cleaning strategy is higher than the priority of the default cleaning strategy;
若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;If so, clean up the first application on the electronic device through the cleanup policy;
若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。If not, clean up the first application program on the electronic device according to the default cleanup policy.
可选的,所述方法包括:Optionally, the method includes:
基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息和/或清理全面信息确定出所述清理策略的优先级。The priority of the cleaning strategy is determined based on the cleaning error information and/or the cleaning comprehensive information of cleaning the first application program on each electronic device through the cleaning strategy.
本发明的第二方面,提供一种应用程序的清理控制装置,包括:A second aspect of the present invention provides an application cleaning control device, including:
第一确定模块,用于确定第一应用程序在电子设备上的安装位置;A first determination module, configured to determine the installation location of the first application program on the electronic device;
第二确定模块,用于通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。The second determining module is configured to determine a cleaning strategy for cleaning the first application program on the electronic device through the installation location.
可选的,所述第一确定模块,包括:Optionally, the first determination module includes:
第一查找单元,用于查找所述第一应用程序在所述电子设备上的PE可移植的可执行文件;A first search unit, configured to search for a PE-portable executable file of the first application program on the electronic device;
第一确定单元,用于将所述PE可移植的可执行文件所在位置作为所述第一应用程序的所述安装位置。The first determining unit is configured to use the location of the PE portable executable file as the installation location of the first application program.
可选的,所述第二确定模块,包括:Optionally, the second determination module includes:
第二确定单元,用于通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;a second determining unit, configured to determine the identification information of the first application program through the PE portable executable file;
第二查找单元,用于通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略。The second searching unit is configured to search in a cleaning policy set containing various application programs according to the identification information and the installation location to obtain the cleaning policy.
可选的,所述第二查找单元,包括:Optionally, the second search unit includes:
判断子单元,用于判断所述安装位置是否位于预定安装位置;A judging subunit, configured to judge whether the installation location is at a predetermined installation location;
第一确定子单元,用于如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;A first determining subunit, configured to determine the cleaning policy for cleaning files of the first type from the cleaning policy set if the installation location is located at the predetermined installation location;
第二确定子单元,用于如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。The second determining subunit is configured to determine the cleaning policy for cleaning the second type of files from the cleaning policy set if the installation location is not located at the predetermined installation location, and the first type of files is the same as The second type of files are not identical.
可选的,所述装置还包括:Optionally, the device also includes:
第三确定模块,用于基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;A third determining module, configured to determine a set of files to be cleaned when cleaning the first application based on a snapshot of files generated when the first application is installed on the electronic device;
第一清理模块,用于对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。The first cleaning module is configured to clean up the file types corresponding to the cleaning policy in the file set to be cleaned up.
可选的,所述装置还包括:Optionally, the device also includes:
获得模块,用于获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。An obtaining module, configured to obtain label information determined by the server for the first application and provided to the user, the label information being used for portability of the PEs on M electronic devices based on the first application The executable file is determined, and M is a positive integer.
可选的,所述装置还包括:Optionally, the device also includes:
第四确定模块,用于从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据和/或所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;A fourth determining module, configured to determine the program behavior of the first application on the M electronic devices from the PE portable executable files of the first application on the M electronic devices data and/or user behavior data generated by users of the M electronic devices for the first application;
第五确定模块,用于基于所述程序行为数据和/或所述用户行为数据确定出所述标签信息。The fifth determining module is configured to determine the tag information based on the program behavior data and/or the user behavior data.
可选的,所述第二确定模块,用于:Optionally, the second determination module is configured to:
将所述安装位置发送至服务器,以通过服务器确定出所述清理策略;或者,Send the installation location to a server, so as to determine the cleaning strategy through the server; or,
通过所述安装位置在预存的清理策略集合中查找获得所述清理策略。The cleaning strategy is obtained by searching the pre-stored cleaning strategy set through the installation location.
可选的,所述装置还包括:Optionally, the device also includes:
判断模块,用于如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;A judging module, configured to judge whether the priority of the cleaning strategy is higher than that of the default cleaning strategy if the cleaning strategy has a priority;
第二清理模块,用于若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;The second cleaning module is configured to, if yes, clean up the first application program on the electronic device through the cleaning strategy;
第三清理模块,用于若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。A third cleaning module, configured to, if not, clean up the first application program on the electronic device according to the default cleaning strategy.
可选的,所述装置包括:Optionally, the device includes:
第六确定模块,用于基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息和/或清理全面信息确定出所述清理策略的优先级。The sixth determination module is configured to determine the priority of the cleaning strategy based on the cleaning error information and/or the cleaning comprehensive information of cleaning the first application program on each electronic device through the cleaning strategy.
本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
由于在本发明实施例中,在针对第一应用程序进行清理时,可以首先获取第一应用程序在电子设备上的安装位置,然后通过安装位置确定出在电子设备针对第一应用程序进行清理的清理策略,也即是说,并非通过第一应用程序的默认清理策略对第一应用程序进行清理,而是基于第一应用程序的安装位置进行灵活控制,故而达到了对清理策略控制更加精确的技术效果。Because in the embodiment of the present invention, when cleaning up the first application program, the installation location of the first application program on the electronic device can be obtained first, and then the location where the electronic device is cleaning up the first application program can be determined through the installation location. The cleaning strategy, that is to say, does not clean up the first application program through the default cleaning strategy of the first application program, but performs flexible control based on the installation location of the first application program, thus achieving more precise control over the cleaning strategy technical effect.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的应用程序的清理控制方法的流程图;FIG. 1 shows a flow chart of a cleaning control method for an application program according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的应用程序的清理控制装置的结构图。Fig. 2 shows a structural diagram of an application cleaning control device according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本发明实施例提供了一种应用程序的清理控制方法及装置,用以解决现有技术中对应用程序的清理控制不够精确的技术问题。Embodiments of the present invention provide an application program cleaning control method and device to solve the technical problem of inaccurate application program cleaning control in the prior art.
本申请实施例中的技术方案为解决上述技术问题总体思路如下:The technical solution in the embodiment of the application is to solve the above-mentioned technical problems. The general idea is as follows:
在针对第一应用程序进行清理时,可以首先获取第一应用程序在电子设备上的安装位置,然后通过安装位置确定出在电子设备针对第一应用程序进行清理的清理策略,也即是说,并非通过第一应用程序的默认清理策略对第一应用程序进行清理,而是基于第一应用程序的安装位置进行灵活控制,故而达到了对清理策略控制更加精确的技术效果。When cleaning the first application program, the installation location of the first application program on the electronic device can be obtained first, and then the cleaning strategy for cleaning the first application program on the electronic device can be determined through the installation location, that is to say, The first application program is not cleaned up through the default cleaning policy of the first application program, but is flexibly controlled based on the installation location of the first application program, so the technical effect of more precise control over the cleaning policy is achieved.
第一方面,本发明实施例提供一种应用程序的清理控制方法,请参考图1,包括:In the first aspect, an embodiment of the present invention provides a cleaning control method for an application program, please refer to FIG. 1 , including:
步骤S101:确定第一应用程序在电子设备上的安装位置;Step S101: Determine the installation location of the first application program on the electronic device;
步骤S102:通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。Step S102: Determine a cleaning strategy for cleaning the first application program on the electronic device according to the installation location.
举例来说,该方案应用于电子设备中,该电子设备例如为:手机、平板电脑、笔记本电脑等等。其中,电子设备可以将包含第一应用程序的安装位置的相关信息发送至服务器,由服务器基于该安装位置确定出对第一应用程序进行清理的清理策略,然后将其发送至电子设备;电子设备上也可以预存针对各个应用程序进行清理的清理策略集合,电子设备在确定出第一应用程序的安装位置之后,直接通过该安装位置在预存的清理策略集合中查找获得针对第一应用程序进行清理的清理策略。For example, the solution is applied to electronic equipment, such as mobile phone, tablet computer, notebook computer and so on. Wherein, the electronic device may send relevant information including the installation location of the first application to the server, and the server determines a cleaning strategy for cleaning the first application based on the installation location, and then sends it to the electronic device; A set of cleaning strategies for cleaning each application may also be pre-stored on the Internet. After the electronic device determines the installation location of the first application, it directly searches the pre-stored cleaning strategy set through the installation location to obtain the cleaning strategy for the first application. cleanup strategy.
该方案可以应用于单个应用程序的清理过程中,例如:用户希望卸载电子设备上所安装的浏览器A,则可以先选择浏览器A,然后执行清理操作(例如:点击清理按钮、产生清理手势等等),则第一应用程序可以为浏览器A,后续可以通过步骤S101~步骤S102所获得的清理策略实现对浏览器A的清理;该方案也可以应用多个应用程序的清理过程中,例如:用户通过电子设备所携带的应用程序管理软件扫描出电子设备上所安装的应用程序,然后从中选择部分应用程序(例如:浏览器A、音乐播放器B、微博C等等),接着执行清理操作,则用户所选择出的应用程序可以分别作为第一应用程序,后续可以通过步骤S101~S102所提供的方案分别确定出针对用户所选择出的各个应用程序的清理策略,然后针对这些应用程序分别进行清理。This solution can be applied to the cleaning process of a single application program. For example, if the user wishes to uninstall browser A installed on the electronic device, he can first select browser A, and then perform a cleaning operation (for example: click a cleaning button, generate a cleaning gesture etc.), then the first application program can be browser A, and the subsequent cleaning strategy for browser A can be realized through the cleaning strategy obtained in steps S101 to S102; this solution can also be applied to the cleaning process of multiple application programs, For example: the user scans the application programs installed on the electronic equipment through the application program management software carried by the electronic equipment, and then selects some application programs (for example: browser A, music player B, microblog C, etc.), and then When the cleaning operation is performed, the application program selected by the user can be used as the first application program respectively, and then the cleaning strategies for each application program selected by the user can be respectively determined through the solutions provided in steps S101-S102, and then for these Apps are cleaned up individually.
步骤S101中,可以通过以下步骤获得第一应用程序在电子设备上的安装位置:查找所述第一应用程序在所述电子设备上的PE(Portable Executable:可移植的可执行)文件;将所述PE文件所在位置作为所述第一应用程序的所述安装位置。In step S101, the installation location of the first application program on the electronic device can be obtained through the following steps: searching for the PE (Portable Executable: portable executable) file of the first application program on the electronic device; The location of the PE file is used as the installation location of the first application program.
举例来说,可以通过注册表Uninstall项或开机启动项等位置查找第一应用程序的PE文件,进而获取第一应用程序的安装位置及对应的PE文件;或者通过桌面快捷方式,开始菜单快捷方式、计划任务、服务项等常用入口查找第一应用程序的PE文件,进而获取第一应用程序的安装位置及PE文件等等,当然,还可以通过其他方式获取第一应用程序的安装位置,本发明实施例不再详细列举,并且不作限制。For example, you can search for the PE file of the first application program through the registry Uninstall item or the startup item, and then obtain the installation location of the first application program and the corresponding PE file; or use the desktop shortcut, start menu shortcut , scheduled tasks, service items and other common entries to search for the PE file of the first application, and then obtain the installation location of the first application and the PE file, etc. Of course, other methods can also be used to obtain the installation location of the first application. The invention embodiments are not listed in detail and are not limited.
PE文件通常为操作系统上的程序文件,例如:EXE(executable program:可执行)文件、DLL(Dynamic Link Library:动态链接库)文件、OCX(Object Linking andEmbedding:对象类别扩充组件)文件、SYS(SYSTEM:系统)文件、COM(Component ObjectModel:组件对象模型)文件等等。PE files are usually program files on the operating system, such as: EXE (executable program: executable) files, DLL (Dynamic Link Library: dynamic link library) files, OCX (Object Linking and Embedding: Object Class Extensions) files, SYS ( SYSTEM: system) files, COM (Component ObjectModel: Component Object Model) files, and so on.
PE文件可以包括以下一种或多种信息:消息摘要信息(例如:MD5信息)、图标信息、签名信息、文件大小、创建时间、访问时间、修改时间、版本号、是否捆绑别的应用程序、是否存在流氓行为(例如:锁定主页、弹出广告、后台执行各种不合法操作等等)。其中,如果电子设备将安装位置发送至服务器,然后由服务器生成对第一应用程序进行清理的清理策略的话,则电子设备可以直接将所获得安装位置发送至服务器;电子设备也可以将第一应用程序的安装位置和PE文件生成日志文件,然后将日志文件发送至到服务器,服务器在接收到该日志文件之后,从该日志文件中提取出第一应用程序的安装位置。PE files can include one or more of the following information: message digest information (for example: MD5 information), icon information, signature information, file size, creation time, access time, modification time, version number, whether to bundle other applications, Whether there are rogue behaviors (for example: locking the homepage, popping up advertisements, performing various illegal operations in the background, etc.). Wherein, if the electronic device sends the installation location to the server, and then the server generates a cleaning policy for cleaning the first application, the electronic device can directly send the obtained installation location to the server; the electronic device can also send the first application The installation location of the program and the PE file generate a log file, and then send the log file to the server, and after receiving the log file, the server extracts the installation location of the first application program from the log file.
步骤S102中,在具体实施过程中,可以预先存储有针对各个应用程序进行清理的清理策略集合,该清理策略集合可以为数据库,也可以为对应关系列表,该清理策略集合中包含有至少一个应用程序以及其对应的清理策略,可以通过每个应用程序的程序名或者其他参数(例如:图标编号、版本号等)以及应用程序的安装位置在在该清理策略集合中查找到对应应用程序的清理策略。In step S102, in the specific implementation process, a set of cleaning policies for cleaning up each application may be pre-stored. The set of cleaning policies may be a database or a list of corresponding relationships. The set of cleaning policies includes at least one application Programs and their corresponding cleaning policies can be found in the cleaning policy set by the program name or other parameters (such as icon number, version number, etc.) of each application and the installation location of the application. Strategy.
又或者,可以首先通过每个应用程序的程序名或者其他参数(例如:图标编号、版本号等)在该清理策略集合中查找获得对应应用程序所包含的所有清理策略,然后通过该应用程序的安装位置在应用程序的所有清理策略中查找获得对应的应用程序的清理策略。Alternatively, you can first search through the program name or other parameters (for example: icon number, version number, etc.) The installation location searches all cleanup policies of the application to obtain the corresponding cleanup policy of the application.
而作为一种可选的实施例,所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略,包括:通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得第一应用程序的清理策略。As an optional embodiment, the determining the cleaning policy for cleaning the first application program on the electronic device through the installation location includes: using the PE portable executable file Determining the identification information of the first application program; searching through the identification information and the installation location in the cleaning policy set containing each application program to obtain the cleaning policy of the first application program.
举例来说,有些应用程序可能安装于不同的电子设备时,其程序名称或者其他参数(例如:图标编号、版本号等等)可能会发生变化,故而导致可能无法准确在清理策略库中查找获得对应的清理策略,因此可以首先通过第一应用程序的PE文件准确的确定出第一应用程序的标识信息(该标识信息用于唯一标识第一应用程序),然后再通过该标识信息和安装位置在清理策略集合中查找获得对应的清理策略。其中,可以通过标识信息和安装位置同时在清理策略集合中进行匹配,进而获得标识信息和安装位置都匹配的清理策略作为第一应用程序的清理策略;也可以先通过标识信息在清理策略集合中进行查找获得该标识信息所对应的所有清理策略,然后通过安装位置在该标识信息所对应的所有清理策略中查找获得与安装位置对应的清理策略。For example, when some applications may be installed on different electronic devices, their program names or other parameters (such as: icon number, version number, etc.) may change, so it may not be possible to accurately find them in the cleanup policy library Corresponding cleanup strategy, therefore, the identification information of the first application program (the identification information is used to uniquely identify the first application program) can be accurately determined through the PE file of the first application program, and then through the identification information and the installation location Search in the cleanup policy set to obtain the corresponding cleanup policy. Wherein, the identification information and the installation location can be matched in the cleaning strategy set at the same time, and then the cleaning strategy that both the identification information and the installation location match can be obtained as the cleaning strategy of the first application program; Perform a search to obtain all the cleaning strategies corresponding to the identification information, and then search through the installation location among all the cleaning strategies corresponding to the identification information to obtain the cleaning strategy corresponding to the installation location.
其中,可以通过第一应用程序的程序名称、图标信息、签名信息、文件大小等信息来确定出第一应用程序的标识信息,例如,有些应用程序其图标信息不会发生变化,则可以设置一个图标信息所对应的图标标识库;有些应用程序其签名信息不会发生变化,则可以设置一个签名信息对应的签名标识库等等,有些应用程序其程序名称+文件大小能够唯一表征该应用程序,则可以设置一个程序名称+文件大小所对应的标识库等等,然后通过第一应用程序的各个参数在各个标识库中进行查找,例如:通过第一应用程序的图标信息在图标标识库中进行查找,如果查找到对应的标识信息,则将查找到的标识信息作为第一应用程序的标识信息,停止继续查找;如果查找不到对应的标识信息,则通过第一应用程序的签名信息在签名标识库中继续查找,直至查找到第一应用程序的标识信息位置。Among them, the identification information of the first application program can be determined through information such as the program name, icon information, signature information, and file size of the first application program. For example, if the icon information of some application programs does not change, you can set a The icon identification library corresponding to the icon information; some applications whose signature information will not change, you can set a signature identification library corresponding to the signature information, etc., some applications whose program name + file size can uniquely represent the application, Then you can set a logo library corresponding to the program name+file size, etc., and then search in each logo library through each parameter of the first application program, for example: use the icon information of the first application program to search in the icon logo library Search, if the corresponding identification information is found, use the found identification information as the identification information of the first application program, and stop searching; if the corresponding identification information cannot be found, use the signature information of the first application program to sign Continue searching in the identification library until the identification information position of the first application is found.
由于在上述方案中,可以通过第一应用程序的标识信息唯一的标识第一应用程序,因此能够更加精确的查找到第一应用程序所对应的清理策略。In the above solution, the first application program can be uniquely identified by the identification information of the first application program, so the cleaning policy corresponding to the first application program can be found more accurately.
步骤S102中,通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略时,可以采用多种方式,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。In step S102, when determining the cleaning strategy for cleaning the first application program on the electronic device through the installation location, various methods can be adopted, and two of them are listed below for introduction. Of course, in specific During implementation, it is not limited to the following two situations.
确定清理策略的方式一:判断所述安装位置是否位于预定安装位置;如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。Method 1 of determining the cleaning strategy: judging whether the installation location is located at a predetermined installation location; if the installation location is located at the predetermined installation location, determine the cleaning strategy for cleaning the first type of files from the cleaning strategy set strategy; if the installation location is not located in the predetermined installation location, determine the cleaning strategy for cleaning the second type of files from the cleaning strategy set, the first type of files and the second type of files Not exactly the same.
举例来说,该预定安装位置例如包括:系统关键的安装位置,例如:系统根目录、Program Files根目录、Programs Files(x86)根目录等等。安装在这些目录下的文件,如果清理策略不合适的话,往往会导致删除系统文件,导致系统出现故障,故而为了防止这种情况,可以针对第一应用程序是否安装于预定安装位置,采取不同的清理策略。For example, the predetermined installation location includes: key installation locations of the system, such as: system root directory, Program Files root directory, Programs Files (x86) root directory, and so on. Files installed in these directories, if the cleanup strategy is not appropriate, will often lead to deletion of system files, resulting in system failures, so in order to prevent this situation, you can take different measures for whether the first application is installed in the predetermined installation location. Cleanup strategy.
其中,在针对应用程序进行清理时,其清理策略例如包括:删除指定文件夹、删除指定文件、删除注册表、删除驱动、删除服务项、删除输入法等等。进而在具体实施过程中,第一类文件例如包括:单个文件、文件夹、注册表、驱动、服务项、输入法等等;第二类文件例如包括:驱动、服务项、输入法等等,其中,第一类文件与第二类文件中至少有部分文件不同,例如:所包含的文件不同、所包含的文件夹不同等等。Wherein, when cleaning the application program, the cleaning strategy includes, for example: deleting a specified folder, deleting a specified file, deleting a registry, deleting a driver, deleting a service item, deleting an input method, and the like. Furthermore, in the specific implementation process, the first type of file includes, for example: a single file, folder, registry, driver, service item, input method, etc.; the second type of file includes, for example: driver, service item, input method, etc. Among them, at least some files in the first type of files are different from the second type of files, for example, the included files are different, the included folders are different, and so on.
举例来说,如果应用程序安装时安装于自己的目录(也就是说并未安装于预定安装位置),例如:浏览器A安装在%ProgramFiles%\BrowserA\目录下,这属于正常安装的应用程序,则可以确定第二类文件包括:BrowserA目录及其子目录中的文件和文件夹、以及指向这个安装位置的注册表项及快捷方式,从而在通过清理策略对第一应用程序进行清理时可以将BrowserA目录及其子目录中的文件和文件夹等全部删除,然后将指向这个安装位置的注册表项及快捷方式等删除。For example, if the application is installed in its own directory during installation (that is, it is not installed in the predetermined installation location), for example: Browser A is installed in the %ProgramFiles%\BrowserA\ directory, which is a normally installed application , then it can be determined that the second type of files includes: the files and folders in the BrowserA directory and its subdirectories, as well as the registry entries and shortcuts pointing to this installation location, so that when the first application program is cleaned up through the cleaning strategy Delete all the files and folders in the BrowserA directory and its subdirectories, and then delete the registry entries and shortcuts pointing to this installation location.
而如果应用程序安装于预定安装位置,例如:浏览器A如果安装在了磁盘根目录(如C:\),没有生成属于自己的专有目录,所有的文件都放到了C盘目录下,这样就不能按照安装位置进行删除了,否则会把系统文件夹和其他程序进行删除,导致系统和其他程序文件丢失,此时的清理策略所对应的第一类文件例如包括:该应用程序自己的文件及子文件夹,在清理策略中就会指定各个具体的文件,防止误删除,然后删除对应的注册表和快捷方式等。And if the application program is installed in the predetermined installation location, for example: if browser A is installed in the root directory of the disk (such as C:\), there is no exclusive directory of its own, and all files are placed in the C disk directory, so It cannot be deleted according to the installation location, otherwise the system folder and other programs will be deleted, resulting in the loss of system and other program files. The first type of files corresponding to the cleaning strategy at this time include, for example: the files of the application itself And subfolders, each specific file will be specified in the cleanup policy to prevent accidental deletion, and then delete the corresponding registry and shortcuts.
确定清理策略的方式二:确定第一应用程序的安装位置与清理策略的对应关系;通过当前获得的第一应用程序的安装位置在对应关系中查找获得对应的清理策略。The second way of determining the cleaning strategy is to determine the corresponding relationship between the installation location of the first application program and the cleaning strategy; to obtain the corresponding cleaning strategy by searching the corresponding relationship through the currently obtained installation location of the first application program.
举例来说,可以将电子设备的存储空间划分为多个区域,例如:系统盘ProgramFiles根目录、系统盘非Program Files根目录、非系统盘等等,然后针对每个区域可以设置不同的清理策略,如表1所示:For example, the storage space of an electronic device can be divided into multiple areas, such as: the root directory of Program Files on the system disk, the root directory of non-Program Files on the system disk, the non-system disk, etc., and then different cleaning strategies can be set for each area ,As shown in Table 1:
进而在确定出第一应用程序在电子设备上的安装位置之后,可以确定该安装位置属于那个安装区域,然后通过安装区域查找获得对应的清理策略。Furthermore, after the installation location of the first application program on the electronic device is determined, it can be determined which installation area the installation location belongs to, and then the corresponding cleanup strategy can be obtained by searching the installation area.
其中,在基于步骤S102确定出在电子设备上对第一应用程序进行清理的清理策略之后,可以按照清理策略对电子设备上的第一应用程序进行清理,。Wherein, after the cleaning policy for cleaning the first application program on the electronic device is determined based on step S102, the first application program on the electronic device may be cleaned according to the cleaning policy.
在具体实施过程中,可以通过以下步骤实现对电子设备上的第一应用程序的清理:基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。In the specific implementation process, the cleaning of the first application program on the electronic device can be realized through the following steps: based on the snapshot of the file generated when the first application program is installed on the electronic device A collection of files to be cleaned up when the application is cleaning up; cleaning up the file types in the collection of files to be cleaned up that correspond to the cleaning policy.
举例来说,通常情况下,在第一应用程序安装时,可以通过电子设备的工具生成对应的快照,快照中包含安装第一应用程序时生成了哪些文件,以及这些文件所在的位置,从快照中可以直接提取出所生成的文件,这些生成的文件即构成待清理文件集合,其中,可以在第一应用程序安装之后就通过快照获得对应的待清理文件,也可以在对第一应用程序进行清理时,基于快照获得对应的待清理文件,本发明实施例不作限制。例如,安装360安全浏览器,它会把产生如下文件:For example, under normal circumstances, when the first application is installed, a corresponding snapshot can be generated by a tool of the electronic device. The snapshot includes which files are generated when the first application is installed, and where these files are located. From the snapshot The generated files can be directly extracted from the file, and these generated files constitute a set of files to be cleaned. Among them, the corresponding files to be cleaned can be obtained through a snapshot after the installation of the first application program, or can be cleaned up after the first application program is installed. , the corresponding to-be-cleaned file is obtained based on the snapshot, which is not limited in this embodiment of the present invention. For example, if you install 360 Safe Browser, it will generate the following files:
%AppData%\360se6\%AppData%\360se6\
%Desktop%\360安全浏览器.lnk%Desktop%\360 Safe Browser.lnk
HKEY_CURRENT_USER\Software\360\360se6HKEY_CURRENT_USER\Software\360\360se6
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\360se6HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\360se6
……
等。Wait.
在获得待清理文件之后,就可以通过清理策略对第一应用程序进行清理。After the file to be cleaned is obtained, the first application program can be cleaned through a cleaning policy.
针对上面的360安全浏览器我们可以生成对应的清理策略:For the 360 Safe Browser above, we can generate the corresponding cleaning strategy:
删除文件夹:%AppData%\360se6\Delete folder: %AppData%\360se6\
删除文件:%Desktop%\360安全浏览器.lnkDelete the file: %Desktop%\360 Safe Browser.lnk
删除注册表:Delete the registry:
HKEY_CURRENT_USER\Software\360\360se6HKEY_CURRENT_USER\Software\360\360se6
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\360se6HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\360se6
等。Wait.
作为一种可选的实施例,在基于清理策略对第一应用程序清理完后,还可以增加反查机制,根据删除的文件和文件夹在电子设备上一些常用位置进行反查。例如:对电子设备上的桌面快捷方式、开始菜单快捷方式、注册表中服务项、开机启动项、CLSID、AppPath、Uninstall项等进行反查,如果它这些位置指向的PE文件所在位置,是我们要删除的文件或者文件夹,则将这些位置的快捷方式和注册表项删除,还给用户一个干净的系统。As an optional embodiment, after the first application program is cleaned based on the cleaning policy, a reverse search mechanism may also be added to perform reverse search on some commonly used locations on the electronic device according to deleted files and folders. For example: check the desktop shortcuts, start menu shortcuts, service items in the registry, startup items, CLSID, AppPath, Uninstall items, etc. on the electronic device. If these locations point to the location of the PE file, it is our For files or folders to be deleted, delete the shortcuts and registry entries of these locations, and return the user to a clean system.
作为一种可选的实施例,在所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略之后,所述方法还包括:As an optional embodiment, after the cleaning policy for cleaning the first application program on the electronic device is determined through the installation location, the method further includes:
如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;If the cleaning strategy has a priority, determine whether the priority of the cleaning strategy is higher than the priority of the default cleaning strategy;
若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;If so, clean up the first application on the electronic device through the cleanup policy;
若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。If not, clean up the first application program on the electronic device according to the default cleanup policy.
举例来说,默认清理策略是指在早期针对应用程序生成的清理规则(例如:在安装应用程序时生成的清理规则),根据应用程序安装和使用时生成的文件和注册表生成的删除对应的文件、文件夹、注册表、服务项等的写死的本地库规则。每一个软件对应一个相应的库。每一个软件有一个唯一的软件ID,每个软件ID对应唯一的清理规则。即一个软件对应本地唯一的一个清理规则。它一般和软件安装在正常的路径下差别不大,只是规则写的比较复杂,把所有的文件和子文件夹和注册表项都包含在内,并且通常情况下,默认清理策略没有反查机制。For example, the default cleanup policy refers to the cleanup rules generated for the application in the early stage (for example: the cleanup rules generated when the application is installed), according to the files generated when the application is installed and used and the corresponding deleted files generated by the registry. Hard-coded native library rules for files, folders, registry, service items, etc. Each software corresponds to a corresponding library. Each software has a unique software ID, and each software ID corresponds to a unique cleaning rule. That is, one piece of software corresponds to a unique local cleanup rule. It is generally not much different from the software installed in the normal path, but the rules are more complicated, including all files, subfolders and registry entries, and usually, the default cleaning strategy does not have a reverse check mechanism.
在具体实施过程中,,在电子设备上针对各个应用程序会存在默认清理策略,基于本发明实施例中的方案可以基于第一应用程序的安装位置获得其对应的清理策略,在针对第一应用程序存在两种清理策略的情况下,则需要选择其中一种清理策略对第一应用程序进行清理。其中,可以设置默认清理策略的优先级为一固定值(例如:1、2等等),而针对基于安装位置所确定出的清理策略,其优先级则处于可调状态,其中可以通过多种方式对基于安装位置所确定出的清理策略的优先级进行调整,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况,另外,在不冲突的情况下,以下两种情况可以组合使用。In the specific implementation process, there will be a default cleaning strategy for each application program on the electronic device. Based on the solution in the embodiment of the present invention, the corresponding cleaning strategy can be obtained based on the installation location of the first application program. If there are two cleaning strategies for the program, one of the cleaning strategies needs to be selected to clean the first application program. Among them, the priority of the default cleaning policy can be set to a fixed value (for example: 1, 2, etc.), and for the cleaning policy determined based on the installation location, its priority is in an adjustable state, which can be through a variety of way to adjust the priority of the cleaning strategy determined based on the installation location. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations. In addition, if there is no conflict, The following two cases can be used in combination.
第一种,基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息确定出所述清理策略的优先级。The first method is to determine the priority of the cleaning strategy based on the cleaning error information of cleaning the first application program on each electronic device through the cleaning strategy.
举例来说,可以首先确定出多台实验中的电子设备,这些电子设备上安装有第一应用程序,服务器可以将当前清理策略分配给这些电子设备,然后由这些电子设备通过该清理策略对第一应用程序进行清理,在清理结束之后,通过专业人员判断在对第一应用程序进行清理时,是否存在误删情况,如果存在误删情况,则上报至服务器,由服务器基于误删情况确定出清理错误信息,该清理错误信息例如为错误率或者错误严重程度等等,错误率可以通过清理出现错误的电子设备数量除以总电子设备数量获得;错误严重程度可以通过判断误删的文件是否为系统文件确定,如果其为系统文件,则说明错误严重程度较高,否则,说明错误严重程度较低等等。针对基于安装位置所产生的清理策略,可以为其设置一个默认的优先级(例如:2、1.5等等),然后基于清理错误信息对其优先级进行调整,例如:如果不存在清理错误信息,则保持其优先级不变;如果存在清理错误信息,则视严重程度降低其优先级等等。For example, a plurality of electronic devices in the experiment can be determined first, and the first application program is installed on these electronic devices, and the server can assign the current cleaning strategy to these electronic devices, and then these electronic devices use the cleaning strategy to perform the first application program. One application program is cleaned up. After the cleaning is completed, professionals judge whether there is any accidental deletion when cleaning the first application program. If there is any accidental deletion, it will be reported to the server. Clean up error information, such as error rate or error severity, etc., the error rate can be obtained by dividing the number of electronic devices with errors by the total number of electronic devices; the error severity can be determined by judging whether the mistakenly deleted files are System file determination, if it is a system file, the error severity is high, otherwise, the error severity is low, etc. For the cleaning strategy based on the installation location, you can set a default priority (for example: 2, 1.5, etc.), and then adjust its priority based on the cleaning error information, for example: if there is no cleaning error information, Keep its priority unchanged; if there is a cleanup error message, reduce its priority according to the severity, etc.
第二种,基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理清理全面信息确定出所述清理策略的优先级。The second type is to determine the priority of the cleaning strategy based on the comprehensive information on cleaning and cleaning of the first application program on each electronic device through the cleaning strategy.
举例来说,针对清理全面信息其与清理错误信息类似,清理全面信息例如包括:清理全面率,同样可以为基于安装位置所确定的清理策略设置一个默认的优先级(例如:2、3等等),然后基于清理全面率对其进行调整,例如:如果清理全面率为100%,则不改变该优先级;如果90%≤清理全面率<100%,则可以将该优先级降低一个梯度(例如:降低0.5);如果80%≤清理全面率<80%,则可以将该优先级降低两个梯度(例如:降低2*0.5)以此类推。For example, cleaning up comprehensive information is similar to cleaning up error information. Cleaning up comprehensive information includes, for example: cleaning up the comprehensive rate. It is also possible to set a default priority (for example: 2, 3, etc.) for the cleaning strategy determined based on the installation location. ), and then adjust it based on the cleaning comprehensive rate, for example: if the cleaning comprehensive rate is 100%, the priority will not be changed; if 90%≤clearing comprehensive rate<100%, then the priority can be reduced by a gradient ( For example: reduce by 0.5); if 80%≤cleaning comprehensive rate<80%, then the priority can be reduced by two gradients (for example: reduce by 2*0.5) and so on.
在上述方案中,可以从两种清理策略中选择出一种清理策略对第一应用程序进行清理,故而达到了对第一应用程序的清理方式更加多样化的技术效果。In the above solution, one of the two cleaning strategies can be selected to clean the first application program, thus achieving a technical effect of more diverse cleaning methods for the first application program.
作为一种可选的实施例,所述方法还包括:获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。As an optional embodiment, the method further includes: obtaining label information determined by the server for the first application and provided to the user, where the label information is used to The PE portable executable file on an electronic device is determined, and M is a positive integer.
在上述方案中,可以通过PE文件为第一应用程序确定出标签信息,而不是采用默认的标签信息,故而达到了所确定出的第一应用程序的标签信息更加精确的技术效果。In the above solution, the tag information for the first application can be determined through the PE file instead of using the default tag information, thus achieving the technical effect that the determined tag information of the first application is more accurate.
在具体实施过程中,在通过PE文件确定出第一应用程序的标签信息时,可以采用多种参数,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况,另外,在不冲突的情况下,以下两种情况可以组合使用。In the specific implementation process, when the label information of the first application program is determined through the PE file, various parameters can be used, and two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two cases , In addition, the following two cases can be used in combination if there is no conflict.
第一种,所述标签信息通过以下方式获得:从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据;通过程序行为数据确定出所述标签信息。First, the label information is obtained in the following manner: from the PE portable executable files of the first application on the M electronic devices, it is determined that the first application is on the M electronic devices The program behavior data on the electronic device; the label information is determined through the program behavior data.
举例来说,服务器可以通过分析第一应用程序在各个电子设备上的PE文件确定出第一应用程序在各个电子设备上的程序行为数据,该程序行为数据例如包括:是否捆绑有其他应用程序、是否在后台偷偷运行、是否存在其他流氓行为(例如:软件自启、偷跑流量等等),针对各个程序行为可以对应不同的标签信息,例如:如果第一应用程序捆绑由其他应用程序,则其对应的标签信息例如为:捆绑插件;如果第一应用程序在后台偷偷运行,则对应的标签信息例如为:后台运行;如果第一应用程序存在自启情况,则其标签信息例如为:软件自启,如果第一应用程序存在偷跑流量情况,则其标签信息例如为:偷跑流量等等,当然针对偷跑流量、软件自启、捆绑软件等情况,其标签信息又可以综合为流氓软件。其中,针对每一种程序行为服务器都可以获得其对应的标签信息,然后将其发送至电子设备;因为显示标签信息的区域有限,故而也可以针对每种标签信息统计其对应的程序行为出现次数,然后基于出现次数从高到低对各个标签信息进行排序,最后获取排序位于前几位(例如:2位、3位等等)的标签信息,并将其提供给电子设备。For example, the server can determine the program behavior data of the first application program on each electronic device by analyzing the PE files of the first application program on each electronic device. The program behavior data includes, for example: whether other applications are bundled, Whether it is running secretly in the background, whether there are other rogue behaviors (such as: software self-starting, sneaking traffic, etc.), different label information can be corresponding to each program behavior, for example: if the first application is bundled by other applications, then The corresponding label information is, for example: bundled plug-in; if the first application is secretly running in the background, the corresponding label information is, for example: running in the background; if the first application is self-starting, its label information is, for example: software Self-starting, if the first application program has sneaking traffic, its label information is, for example: sneaking traffic, etc. Of course, for sneaking traffic, software self-starting, bundled software, etc., its label information can be integrated into rogue software. Among them, for each type of program behavior, the server can obtain its corresponding label information, and then send it to the electronic device; because the area for displaying label information is limited, it can also count the number of occurrences of its corresponding program behavior for each type of label information , and then sort the tag information from high to low based on the number of occurrences, and finally obtain the tag information in the top positions (for example: 2, 3, etc.), and provide it to the electronic device.
基于上述方案,达到了可以基于第一应用程序的程序行为数据确定出第一应用程序的标签信息的技术效果,因此可以通过第一应用程序的标签信息对第一应用程序在电子设备上的行为进行提示。Based on the above solution, the technical effect of determining the label information of the first application program based on the program behavior data of the first application program is achieved, so the behavior of the first application program on the electronic device can be determined through the label information of the first application program Prompt.
第二种,从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;基于所述用户行为数据确定出所述标签信息。The second method is to determine the user behaviors generated by the users of the M electronic devices for the first application program from the PE portable executable files of the first application program on the M electronic devices data; determining the tag information based on the user behavior data.
举例来说,用户行为数据例如包括:最后使用时间、使用次数、安装时间等等。该标签信息可以直接为用户行为数据,例如:最后使用时间为3天前、用户共使用5次、安装时间为1个月前等等;该标签信息也可以为基于用户行为数据所确定的其他标签信息,例如:如果最后使用时间距离当前时间大于预设时间值(例如:半个月、1个月等等),则可以确定出标签信息为“用户很久没有使用”,又例如,如果用户使用次数小于预设次数(例如:3次、5次等等),则可以确定出标签信息为“用户很少使用”等等。For example, user behavior data includes: last use time, use times, installation time and so on. The label information can be directly user behavior data, for example: the last use time was 3 days ago, the user used it 5 times in total, the installation time was 1 month ago, etc.; the label information can also be other information determined based on user behavior data. Tag information, for example: if the last use time is greater than the preset time value (for example: half a month, 1 month, etc.), the tag information can be determined as "the user has not used it for a long time", and for example, if the user If the number of times of use is less than the preset number of times (for example: 3 times, 5 times, etc.), it can be determined that the tag information is "the user seldom uses it" and so on.
基于上述方案,达到了可以基于用户针对第一应用程序的用户行为数据确定出第一应用程序的标签信息的技术效果,因此可以通过第一应用程序的标签信息对用户对其的使用情况进行提示。Based on the above scheme, the technical effect of determining the label information of the first application program based on the user behavior data of the user for the first application program is achieved, so that the user can be prompted about its usage through the label information of the first application program .
另外,在具体实施过程中,还可以基于PE文件产生针对是否对第一应用程序进行清理的提示信息,例如,可以通过PE文件判断第一应用程序是否存在流氓行为(例如:捆绑软件、软件自启、弹出广告、偷跑流量等等),如果存在这些流氓行为的话,则可以产生建议清理第一应用程序的提示信息,该提示信息例如为“第一应用程序对电子设备存在不利影响,建议立刻卸载”;又或者,可以通过用户针对第一应用程序的情况来判断是否清理第一应用程序,例如:可以判断用户上次使用第一应用程序的使用时间距离当前时间是否大于预设时间值(例如:半个月、1个月等等),如果大于预设时间值,则产生建议删除第一应用程序的提示信息,该提示信息例如为“用户很久没有使用该应用程序,建议删除”,又例如,判断用户使用第一应用程序的使用次数是否小于预设次数(例如:3次、5次等等),如果小于,则产生建议清理第一应用程序的提示信息,该提示信息例如为“用户很少使用该应用程序,建议清理该应用程序”等等,当然,该提示信息还可以为其他提示信息,也可以基于其他原则产生,本发明实施例不再详细列举,并且不作限制。In addition, in the specific implementation process, it is also possible to generate prompt information on whether to clean up the first application program based on the PE file. activation, pop-up advertisements, stealing traffic, etc.), if there are these rogue behaviors, a prompt message suggesting cleaning up the first application program may be generated. Uninstall immediately"; or, the user can judge whether to clean up the first application according to the situation of the first application, for example: it can be judged whether the user's last usage time of the first application is greater than the preset time value from the current time (For example: half a month, 1 month, etc.), if it is greater than the preset time value, then generate a prompt message suggesting to delete the first application, such as "the user has not used this application for a long time, it is recommended to delete" , as another example, determine whether the number of times the user uses the first application program is less than a preset number of times (for example: 3 times, 5 times, etc.), if less than, then generate a prompt message suggesting cleaning the first application program, the prompt message for example It is "the user rarely uses this application program, it is recommended to clean up this application program" and so on. Of course, the prompt information can also be other prompt information, and can also be generated based on other principles, which are not listed in detail in the embodiment of the present invention and are not limited. .
第二方面,基于同一发明构思,本发明实施例提供一种应用程序的清理控制装置,请参考图2,包括:In the second aspect, based on the same inventive concept, an embodiment of the present invention provides an application cleaning control device, please refer to Figure 2, including:
第一确定模块20,用于确定第一应用程序在电子设备上的安装位置;The first determination module 20 is configured to determine the installation location of the first application program on the electronic device;
第二确定模块21,用于通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。The second determining module 21 is configured to determine a cleaning strategy for cleaning the first application program on the electronic device through the installation location.
可选的,所述第一确定模块20,包括:第一查找单元,用于查找所述第一应用程序在所述电子设备上的PE可移植的可执行文件;第一确定单元,用于将所述PE可移植的可执行文件所在位置作为所述第一应用程序的所述安装位置。Optionally, the first determination module 20 includes: a first search unit, configured to search for a PE-portable executable file of the first application program on the electronic device; a first determination unit, configured to The location of the PE portable executable file is used as the installation location of the first application program.
可选的,所述第二确定模块21,包括:第二确定单元,用于通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;第二查找单元,用于通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略。Optionally, the second determination module 21 includes: a second determination unit, configured to determine the identification information of the first application program through the PE portable executable file; a second search unit, configured to The cleaning policy is obtained by searching through the identification information and the installation location in the cleaning policy set containing each application program.
可选的,所述第二查找单元,包括:判断子单元,用于判断所述安装位置是否位于预定安装位置;第一确定子单元,用于如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;第二确定子单元,用于如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。Optionally, the second search unit includes: a judging subunit, configured to judge whether the installation location is located at a predetermined installation location; a first determining subunit, configured to, if the installation location is located at the predetermined installation location, Determine the cleaning strategy for cleaning the first type of files from the cleaning strategy set; the second determining subunit is used to select from the cleaning strategy set if the installation location is not located at the predetermined installation location The cleaning strategy for cleaning the files of the second type is determined, and the files of the first type are not completely the same as the files of the second type.
可选的,所述装置还包括:第三确定模块,用于基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;第一清理模块,用于对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。Optionally, the apparatus further includes: a third determining module, configured to determine, based on a snapshot of a file generated when the first application is installed on the electronic device, when the first application is cleaned A collection of files to be cleaned; a first cleaning module configured to clean up the file types corresponding to the cleaning policy in the collection of files to be cleaned.
可选的,所述装置还包括:获得模块,用于获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。Optionally, the device further includes: an obtaining module, configured to obtain tag information determined by the server for the first application and provided to the user, the tag information is used to The PE portable executable file on an electronic device is determined, and M is a positive integer.
可选的,所述装置还包括:第四确定模块,用于从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据和/或所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;第五确定模块,用于基于所述程序行为数据和/或所述用户行为数据确定出所述标签信息。Optionally, the apparatus further includes: a fourth determining module, configured to determine from the PE-portable executable files of the first application on the M electronic devices that the first application is The program behavior data on the M electronic devices and/or the user behavior data generated by the users of the M electronic devices for the first application program; the fifth determination module is configured to use the program behavior data and /or the user behavior data determines the tag information.
可选的,所述第二确定模块21,用于:将所述安装位置发送至服务器,以通过服务器确定出所述清理策略;或者,通过所述安装位置在预存的清理策略集合中查找获得所述清理策略。Optionally, the second determination module 21 is configured to: send the installation location to a server, so as to determine the cleaning strategy through the server; or, obtain the The cleanup strategy.
可选的,所述装置还包括:判断模块,用于如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;第二清理模块,用于若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;第三清理模块,用于若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。Optionally, the device further includes: a judging module, configured to determine whether the priority of the cleaning strategy is higher than that of the default cleaning strategy if the cleaning strategy has a priority; a second cleaning module, configured to , cleaning up the first application program on the electronic device through the cleaning strategy; a third cleaning module, configured to, if not, clean up the first application program on the electronic device according to the default cleaning strategy The program cleans up.
可选的,所述装置包括:第六确定模块,用于基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息和/或清理全面信息确定出所述清理策略的优先级。Optionally, the apparatus includes: a sixth determining module, configured to determine the above-mentioned The priority of the cleanup policy.
由于本发明第二方面所介绍的应用程序的清理控制装置为实施本发明实施例第一方面所介绍的应用程序的清理控制方法所采用的装置,基于本发明实施例第一方面所介绍的应用程序的清理控制方法,本领域所属技术人员能够了解该装置的具体结构及变形,故而在此不再赘述,凡是实施本发明实施例第一方面所介绍的应用程序的清理控制方法所采用的装置,都属于本发明实施例所欲保护的范围。Since the application cleaning control device introduced in the second aspect of the present invention is a device used to implement the application cleaning control method introduced in the first aspect of the embodiments of the present invention, based on the application described in the first aspect of the embodiments of the present invention For the program cleaning control method, those skilled in the art can understand the specific structure and deformation of the device, so it will not be repeated here. Any device used to implement the application program cleaning control method introduced in the first aspect of the embodiment of the present invention , all belong to the intended protection scope of the embodiments of the present invention.
本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
根据本发明实施例所提供的应用程序的清理控制方法,在针对第一应用程序进行清理时,可以首先获取第一应用程序在电子设备上的安装位置,然后通过安装位置确定出在电子设备针对第一应用程序进行清理的清理策略,也即是说,并非通过第一应用程序的默认清理策略对第一应用程序进行清理,而是基于第一应用程序的安装位置进行灵活控制,故而达到了对清理策略控制更加精确的技术效果。According to the application cleaning control method provided in the embodiments of the present invention, when cleaning the first application, the installation location of the first application on the electronic device can be obtained first, and then the electronic device can be determined based on the installation location. The cleaning strategy for the first application to clean up, that is to say, the first application is not cleaned up through the default cleaning strategy of the first application, but is flexibly controlled based on the installation location of the first application, thus achieving Controls more precise technical effects on cleanup strategies.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. And form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网关、代理服务器、系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the gateway, proxy server, and system according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了,A1、一种应用程序的清理控制方法,包括:The present invention discloses, A1, a cleaning control method for an application program, comprising:
确定第一应用程序在电子设备上的安装位置;determining the installation location of the first application program on the electronic device;
通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。A cleaning policy for cleaning the first application program on the electronic device is determined through the installation location.
A2、如A1所述的方法,其特征在于,所述确定第一应用程序在电子设备上的安装位置,包括:A2, the method as described in A1, is characterized in that, described determining the installation location of the first application program on the electronic device includes:
查找所述第一应用程序在所述电子设备上的PE可移植的可执行文件;Find a PE-portable executable file of the first application program on the electronic device;
将所述PE可移植的可执行文件所在位置作为所述第一应用程序的所述安装位置。The location of the PE portable executable file is used as the installation location of the first application program.
A3、如A2所述的方法,其特征在于,所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略,包括:A3. The method as described in A2, wherein the cleaning strategy for cleaning the first application program on the electronic device is determined through the installation location, including:
通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;determining the identification information of the first application program through the PE portable executable file;
通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略。The cleaning policy is obtained by searching through the identification information and the installation location in the cleaning policy set containing each application program.
A4、如A3所述的方法,其特征在于,所述通过所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略,包括:A4. The method as described in A3, wherein the step of obtaining the cleaning strategy by searching in the cleaning strategy set containing each application program through the installation location includes:
判断所述安装位置是否位于预定安装位置;judging whether the installation location is located at a predetermined installation location;
如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;If the installation location is located at the predetermined installation location, determine the cleaning strategy for cleaning the first type of files from the cleaning strategy set;
如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。If the installation location is not located at the predetermined installation location, determine the cleaning strategy for cleaning the second type of files from the cleaning strategy set, the first type of files are incomplete with the second type of files same.
A5、如A4所述的方法,其特征在于,在所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略之后,所述方法还包括:A5. The method as described in A4, wherein after the cleaning strategy for cleaning the first application program on the electronic device is determined through the installation location, the method further includes:
基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;determining a set of files to be cleaned up when the first application is cleaned based on a snapshot of files generated when the first application is installed on the electronic device;
对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。Cleaning up the file types corresponding to the cleaning policy in the file set to be cleaned up.
A6、如A2所述的方法,其特征在于,所述方法还包括:A6, the method as described in A2, is characterized in that, described method also comprises:
获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。Obtaining the label information determined by the server for the first application and provided to the user, the label information being used to determine the PE-portable executable file based on the first application on the M electronic devices , M is a positive integer.
A7、如A6所述的方法,其特征在于,所述标签信息通过以下方式获得:A7, the method as described in A6, is characterized in that, described tag information is obtained by the following methods:
从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据和/或所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;Determine the program behavior data of the first application on the M electronic devices and/or the M from the PE portable executable files of the first application on the M electronic devices User behavior data generated by a user of an electronic device for the first application program;
基于所述程序行为数据和/或所述用户行为数据确定出所述标签信息。The label information is determined based on the program behavior data and/or the user behavior data.
A8、如A2-A7任一所述的方法,其特征在于,所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略,包括:A8. The method according to any one of A2-A7, wherein the cleaning strategy for cleaning the first application program on the electronic device is determined through the installation location, including:
将所述安装位置发送至服务器,以通过服务器确定出所述清理策略;或者,Send the installation location to a server, so as to determine the cleaning strategy through the server; or,
通过所述安装位置在预存的清理策略集合中查找获得所述清理策略。The cleaning strategy is obtained by searching the pre-stored cleaning strategy set through the installation location.
A9、如A2-A7任一所述的方法,其特征在于,在所述通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略之后,所述方法还包括:A9. The method according to any one of A2-A7, characterized in that, after the cleaning strategy for cleaning the first application program on the electronic device is determined through the installation location, the method Also includes:
如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;If the cleaning strategy has a priority, determine whether the priority of the cleaning strategy is higher than the priority of the default cleaning strategy;
若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;If so, clean up the first application on the electronic device through the cleanup strategy;
若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。If not, clean up the first application program on the electronic device according to the default cleanup policy.
A10、如A9所述的方法,其特征在于,所述方法包括:A10, the method as described in A9, is characterized in that, described method comprises:
基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息和/或清理全面信息确定出所述清理策略的优先级。The priority of the cleaning strategy is determined based on the cleaning error information and/or the cleaning comprehensive information of cleaning the first application program on each electronic device through the cleaning strategy.
B11、一种应用程序的清理控制装置,包括:B11. A cleaning control device for an application program, comprising:
第一确定模块,用于确定第一应用程序在电子设备上的安装位置;A first determination module, configured to determine the installation location of the first application program on the electronic device;
第二确定模块,用于通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的清理策略。The second determining module is configured to determine a cleaning strategy for cleaning the first application program on the electronic device through the installation location.
B12、如B11所述的装置,其特征在于,所述第一确定模块,包括:B12, the device as described in B11, is characterized in that, described first determining module comprises:
第一查找单元,用于查找所述第一应用程序在所述电子设备上的PE可移植的可执行文件;A first search unit, configured to search for a PE-portable executable file of the first application program on the electronic device;
第一确定单元,用于将所述PE可移植的可执行文件所在位置作为所述第一应用程序的所述安装位置。The first determining unit is configured to use the location of the PE portable executable file as the installation location of the first application program.
B13、如B12所述的装置,其特征在于,所述第二确定模块,包括:B13, the device as described in B12, is characterized in that, described second determination module comprises:
第二确定单元,用于通过所述PE可移植的可执行文件确定出所述第一应用程序的标识信息;a second determining unit, configured to determine the identification information of the first application program through the PE portable executable file;
第二查找单元,用于通过所述标识信息和所述安装位置在包含各个应用程序的清理策略集合中查找获得所述清理策略。The second searching unit is configured to search in a cleaning policy set containing various application programs according to the identification information and the installation location to obtain the cleaning policy.
B14、如B13所述的装置,其特征在于,所述第二查找单元,包括:B14, the device as described in B13, is characterized in that, the second search unit includes:
判断子单元,用于判断所述安装位置是否位于预定安装位置;A judging subunit, configured to judge whether the installation location is at a predetermined installation location;
第一确定子单元,用于如果所述安装位置位于所述预定安装位置,从所述清理策略集合中确定出对第一类文件进行清理的所述清理策略;A first determining subunit, configured to determine the cleaning policy for cleaning files of the first type from the cleaning policy set if the installation location is located at the predetermined installation location;
第二确定子单元,用于如果所述安装位置不位于所述预定安装位置,从所述清理策略集合中确定出对第二类文件进行清理的所述清理策略,所述第一类文件与所述第二类文件不完全相同。The second determining subunit is configured to determine the cleaning policy for cleaning the second type of files from the cleaning policy set if the installation location is not located at the predetermined installation location, and the first type of files is the same as The second type of files are not identical.
B15、如B14所述的装置,其特征在于,所述装置还包括:B15, the device as described in B14, is characterized in that, described device also comprises:
第三确定模块,用于基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;A third determining module, configured to determine a set of files to be cleaned when cleaning the first application based on a snapshot of files generated when the first application is installed on the electronic device;
第一清理模块,用于对所述待清理文件集合中与所述清理策略所对应的文件类型进行清理。The first cleaning module is configured to clean up the file types corresponding to the cleaning policy in the file set to be cleaned up.
B16、如B12所述的装置,其特征在于,所述装置还包括:B16, the device as described in B12, is characterized in that, described device also comprises:
获得模块,用于获得服务器为所述第一应用程序确定的用于提供给用户的标签信息,所述标签信息用于基于所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件确定,M为正整数。An obtaining module, configured to obtain label information determined by the server for the first application and provided to the user, the label information being used for portability of the PEs on M electronic devices based on the first application The executable file is determined, and M is a positive integer.
B17、如B16所述的装置,其特征在于,所述装置还包括:B17, the device as described in B16, is characterized in that, described device also comprises:
第四确定模块,用于从所述第一应用程序在M个电子设备上的所述PE可移植的可执行文件中确定出所述第一应用程序在所述M个电子设备上的程序行为数据和/或所述M个电子设备的用户针对所述第一应用程序所产生的用户行为数据;A fourth determining module, configured to determine the program behavior of the first application on the M electronic devices from the PE portable executable files of the first application on the M electronic devices data and/or user behavior data generated by users of the M electronic devices for the first application;
第五确定模块,用于基于所述程序行为数据和/或所述用户行为数据确定出所述标签信息。The fifth determining module is configured to determine the tag information based on the program behavior data and/or the user behavior data.
B18、如B12-B17任一所述的装置,其特征在于,所述第二确定模块,用于:B18. The device as described in any one of B12-B17, wherein the second determination module is used for:
将所述安装位置发送至服务器,以通过服务器确定出所述清理策略;或者,Send the installation location to a server, so as to determine the cleaning strategy through the server; or,
通过所述安装位置在预存的清理策略集合中查找获得所述清理策略。The cleaning strategy is obtained by searching the pre-stored cleaning strategy set through the installation location.
B19、如B12-B17任一所述的装置,其特征在于,所述装置还包括:B19. The device as described in any one of B12-B17, wherein the device also includes:
判断模块,用于如果所述清理策略存在优先级,判断所述清理策略的优先级是否高于默认清理策略的优先级;A judging module, configured to judge whether the priority of the cleaning strategy is higher than that of the default cleaning strategy if the cleaning strategy has a priority;
第二清理模块,用于若是,通过所述清理策略对所述电子设备上的所述第一应用程序进行清理;The second cleaning module is configured to, if yes, clean up the first application program on the electronic device through the cleaning policy;
第三清理模块,用于若否,按照所述默认清理策略对所述电子设备上的所述第一应用程序进行清理。A third cleaning module, configured to, if not, clean up the first application program on the electronic device according to the default cleaning policy.
B20、如B19所述的装置,其特征在于,所述装置包括:B20, the device as described in B19, is characterized in that, described device comprises:
第六确定模块,用于基于通过所述清理策略对各个电子设备上的所述第一应用程序进行清理的清理错误信息和/或清理全面信息确定出所述清理策略的优先级。The sixth determination module is configured to determine the priority of the cleaning strategy based on the cleaning error information and/or the cleaning comprehensive information of cleaning the first application program on each electronic device through the cleaning strategy.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610505825.8A CN106201595A (en) | 2016-06-30 | 2016-06-30 | The cleaning control method of a kind of application program and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610505825.8A CN106201595A (en) | 2016-06-30 | 2016-06-30 | The cleaning control method of a kind of application program and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106201595A true CN106201595A (en) | 2016-12-07 |
Family
ID=57464247
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610505825.8A Pending CN106201595A (en) | 2016-06-30 | 2016-06-30 | The cleaning control method of a kind of application program and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106201595A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107832155A (en) * | 2017-11-14 | 2018-03-23 | 广东欧珀移动通信有限公司 | Algorithm replacement method, device, storage medium and electronic equipment |
| CN107943536A (en) * | 2017-11-14 | 2018-04-20 | 广东欧珀移动通信有限公司 | Adjust method, apparatus, storage medium and the electronic equipment of threshold value |
| CN110990341A (en) * | 2019-10-29 | 2020-04-10 | 宇龙计算机通信科技(深圳)有限公司 | Method, device, electronic equipment and medium for clearing data |
| CN115145877A (en) * | 2021-03-30 | 2022-10-04 | 比亚迪股份有限公司 | File cleaning method, device, medium and electronic equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101571932A (en) * | 2009-05-07 | 2009-11-04 | 上海润满计算机科技有限公司 | System and method for controlling IT service dynamic tracking management |
| CN101876914A (en) * | 2010-04-23 | 2010-11-03 | 中兴通讯股份有限公司 | Method for deleting files and mobile terminal |
| US7849457B1 (en) * | 2006-04-20 | 2010-12-07 | Juan Pulido | Process for automatic & unattended formatting and re-installation of operative system, OS updates, drivers and re-installation of software applications, launched from a website as a digital service |
| CN104536792A (en) * | 2014-12-30 | 2015-04-22 | 北京奇虎科技有限公司 | Method and device for eliminating application program residual files |
| CN104572943A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Installation-free program cleaning method and device |
| CN105447115A (en) * | 2015-11-13 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for cleaning junk files and electronic equipment |
-
2016
- 2016-06-30 CN CN201610505825.8A patent/CN106201595A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7849457B1 (en) * | 2006-04-20 | 2010-12-07 | Juan Pulido | Process for automatic & unattended formatting and re-installation of operative system, OS updates, drivers and re-installation of software applications, launched from a website as a digital service |
| CN101571932A (en) * | 2009-05-07 | 2009-11-04 | 上海润满计算机科技有限公司 | System and method for controlling IT service dynamic tracking management |
| CN101876914A (en) * | 2010-04-23 | 2010-11-03 | 中兴通讯股份有限公司 | Method for deleting files and mobile terminal |
| CN104536792A (en) * | 2014-12-30 | 2015-04-22 | 北京奇虎科技有限公司 | Method and device for eliminating application program residual files |
| CN104572943A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Installation-free program cleaning method and device |
| CN105447115A (en) * | 2015-11-13 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for cleaning junk files and electronic equipment |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107832155A (en) * | 2017-11-14 | 2018-03-23 | 广东欧珀移动通信有限公司 | Algorithm replacement method, device, storage medium and electronic equipment |
| CN107943536A (en) * | 2017-11-14 | 2018-04-20 | 广东欧珀移动通信有限公司 | Adjust method, apparatus, storage medium and the electronic equipment of threshold value |
| CN107943536B (en) * | 2017-11-14 | 2020-05-12 | Oppo广东移动通信有限公司 | Method and device for adjusting threshold, storage medium and electronic equipment |
| CN110990341A (en) * | 2019-10-29 | 2020-04-10 | 宇龙计算机通信科技(深圳)有限公司 | Method, device, electronic equipment and medium for clearing data |
| CN115145877A (en) * | 2021-03-30 | 2022-10-04 | 比亚迪股份有限公司 | File cleaning method, device, medium and electronic equipment |
| CN115145877B (en) * | 2021-03-30 | 2024-09-10 | 比亚迪股份有限公司 | File cleaning method, device, medium and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102938039B (en) | For the selectivity file access of application | |
| KR102111080B1 (en) | Distribution of multiple application versions | |
| KR101643022B1 (en) | Catalog-based software component management | |
| US9432457B2 (en) | Redirecting local storage to cloud storage | |
| US8418257B2 (en) | Collection user interface | |
| US10194288B2 (en) | Sticker distribution system for messaging apps | |
| CN103927198B (en) | A kind of software method for cleaning and device | |
| US20140324873A1 (en) | Method, device and recording medium for managing application icon | |
| CN107832099B (en) | A client version compatible method, device and storage medium | |
| US9449113B2 (en) | Browser storage management | |
| US20130275553A1 (en) | Application Synchronization Among Multiple Computing Devices | |
| US10235147B2 (en) | Discovery and activation of application extensions | |
| CN106201602B (en) | Label providing method, label obtaining method, server and electronic equipment | |
| US9342606B2 (en) | Intelligent software installation | |
| CN106201595A (en) | The cleaning control method of a kind of application program and device | |
| EP3115917B1 (en) | Information processing apparatus, method, and program | |
| WO2016155387A1 (en) | Plug-in management method and device based on mobile terminal | |
| CN106201601B (en) | A kind of file clean-up method, electronic equipment and server | |
| CN113986427B (en) | Object display method, device, electronic device and storage medium | |
| US9917922B2 (en) | Extensibility bundles for a cloud and devices suite | |
| US20120124091A1 (en) | Application file system access | |
| CN109710128B (en) | Method and device for displaying shortcut keys | |
| CN110263006A (en) | A kind of method and apparatus for downloading file on a user device | |
| EP2907064B1 (en) | License information access based on developer profiles | |
| WO2022194077A1 (en) | Application program icon management method and apparatus, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |