CN106201602B - Label providing method, label obtaining method, server and electronic equipment - Google Patents

Label providing method, label obtaining method, server and electronic equipment Download PDF

Info

Publication number
CN106201602B
CN106201602B CN201610513224.1A CN201610513224A CN106201602B CN 106201602 B CN106201602 B CN 106201602B CN 201610513224 A CN201610513224 A CN 201610513224A CN 106201602 B CN106201602 B CN 106201602B
Authority
CN
China
Prior art keywords
information
application
behavior
program
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610513224.1A
Other languages
Chinese (zh)
Other versions
CN106201602A (en
Inventor
陈耀攀
李富钦
朱江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610513224.1A priority Critical patent/CN106201602B/en
Publication of CN106201602A publication Critical patent/CN106201602A/en
Application granted granted Critical
Publication of CN106201602B publication Critical patent/CN106201602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a label providing method, an obtaining method, a server and electronic equipment, and aims to solve the technical problem that label information provided by an application program is not accurate enough in the prior art. The method comprises the following steps: respectively obtaining relevant data information of a first application program from M electronic devices, wherein M is a positive integer; determining first label information of the first application program based on the related data information; and providing the first label information to the first electronic equipment so that the first electronic equipment provides the first label information to a user in a mode of being associated with the first application program. The technical effect that the provided label information is more accurate is achieved.

Description

一种标签提供方法、获取方法、服务器及电子设备A kind of label providing method, obtaining method, server and electronic device

技术领域technical field

本发明涉及互联网领域,尤其涉及一种标签提供方法、获取方法、服务器及电子设备。The invention relates to the field of the Internet, and in particular, to a method for providing a label, a method for obtaining the label, a server and an electronic device.

背景技术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. People also enjoy 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., so as to alleviate the problems brought by modern fast-paced life pressure.

通常情况下,电子设备上可以安装多种应用程序,在提供这些应用程序时,通常会显示这些应用程序的图标、程序名称、标签信息等信息,应用程序的标签信息往往为一些固定类别的信息,例如:显示应用程序的最后使用时间、安装时间等等,由于标签信息为固定类别的信息,故而导致现有技术中所提供的应用程序的标签信息往往只能反应其在单个电子设备上的情况,不够精确。Usually, a variety of applications can be installed on an electronic device. When these applications are provided, the icons, program names, label information and other information of these applications are usually displayed. The label information of the applications is often some fixed categories of information. , for example: displaying the last use time, installation time, etc. of the application. Since the label information is of fixed category, the label information of the application provided in the prior art often only reflects its status on a single electronic device. situation, not precise enough.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的标签提供方法、获取方法、服务器及电子设备。In view of the above problems, the present invention is proposed to provide a label providing method, acquisition method, server and electronic device that overcome the above problems or at least partially solve the above problems.

本发明的第一方面,提供一种标签提供方法,包括:A first aspect of the present invention provides a method for providing a label, comprising:

从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;Respectively obtain relevant data information of the first application program from M electronic devices, where M is a positive integer;

基于所述相关数据信息确定出所述第一应用程序的第一标签信息;determining the first tag information of the first application based on the relevant data information;

将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program.

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A behavioral data.

可选的,如果所述相关数据信息包括所述程序行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:Optionally, if the related data information includes the program behavior data, the determining the first tag information of the first application program based on the related data information includes:

针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;For each program behavior, determine the total number of times the first application program generates the corresponding program behavior;

判断所述总次数是否大于对应程序行为的预设次数;Determine whether the total number of times is greater than the preset number of times corresponding to the program behavior;

如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。If it is greater than the preset number of times, the tag information of the corresponding program behavior is obtained from the preset corresponding relationship between the tag information and the program behavior as the tag information included in the first tag information.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

可选的,如果所述相关数据信息包括所述用户行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:Optionally, if the related data information includes the user behavior data, determining the first tag information of the first application based on the related data information includes:

基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;determining, based on the user behavior data, activity information about using the first application;

基于活跃度信息确定出所述第一标签信息。The first tag information is determined based on the activity information.

可选的,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。Optionally, the activity information includes at least one type of information among the average usage times, the average usage frequency, and the average duration from the last usage time to the current time.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息提供给第一电子设备,包括:Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the providing the first label information to the first electronic device includes:

基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;Extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

将所述N1个标签提供给所述第一电子设备。The N1 tags are provided to the first electronic device.

可选的,所述方法还包括:Optionally, the method further includes:

接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,receiving a setting operation of the user of the first electronic device, and determining the sorting priority of each label based on the setting operation; and/or,

确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The number of occurrences of the relevant data information corresponding to each tag in the M electronic devices is determined; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

可选的,所述从至少一个电子设备获得第一应用程序的相关数据信息,包括:Optionally, obtaining the relevant data information of the first application from at least one electronic device includes:

获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;obtaining the PE-portable executable file of the first application on the M electronic devices;

从所述PE可移植的可执行文件中获取所述相关数据信息。The relevant data information is obtained from the PE portable executable file.

第二方面,本发明实施例提供一种标签获取方法,包括:In a second aspect, an embodiment of the present invention provides a method for obtaining a label, including:

从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;Obtain the first tag information of the first application program from the server, wherein the server determines the first tag information based on the related data information of the first application program obtained from M electronic devices, where M is a positive integer ;

将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to the user in a manner associated with the first application.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户,包括:Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the first label information is provided to the user in a manner associated with the first application, include:

基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;Extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。The N1 tags are provided to the user in a manner associated with the first application.

可选的,所述方法还包括:Optionally, the method further includes:

接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,receiving a setting operation of the user of the first electronic device, and determining the sorting priority of each label based on the setting operation; and/or,

确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The number of occurrences of the related data information corresponding to each tag in the related data information of the M electronic devices is determined; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A type of behavioral data.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

第三方面,本发明实施例提供一种服务器,包括:In a third aspect, an embodiment of the present invention provides a server, including:

获得模块,用于从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;an obtaining module for obtaining the relevant data information of the first application program from M electronic devices respectively, where M is a positive integer;

第一确定模块,用于基于所述相关数据信息确定出所述第一应用程序的第一标签信息;a first determining module, configured to determine the first tag information of the first application based on the relevant data information;

第一提供模块,用于将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。a first providing module, configured to provide the first tag information to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program .

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A behavioral data.

可选的,如果所述相关数据信息包括所述程序行为数据,所述第一确定模块,包括:Optionally, if the relevant data information includes the program behavior data, the first determining module includes:

第一确定单元,用于针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;a first determining unit, configured to determine, for each program behavior, the total number of times that the first application program generates the corresponding program behavior;

判断单元,用于判断所述总次数是否大于对应程序行为的预设次数;a judging unit for judging whether the total number of times is greater than the preset number of times corresponding to the program behavior;

第一获取单元,用于如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。The first obtaining unit is configured to obtain, from the preset correspondence between the label information and the program behavior, the label information of the corresponding program behavior as the label information included in the first label information if the number of times is greater than the preset number.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

可选的,如果所述相关数据信息包括所述用户行为数据,所述第一确定模块,包括:Optionally, if the relevant data information includes the user behavior data, the first determining module includes:

第二确定单元,用于基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;a second determining unit, configured to determine activity information for using the first application based on the user behavior data;

第三确定单元,用于基于活跃度信息确定出所述第一标签信息。The third determining unit is configured to determine the first tag information based on the activity information.

可选的,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。Optionally, the activity information includes at least one type of information among the average usage times, the average usage frequency, and the average duration from the last usage time to the current time.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第一提供模块,包括:Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the first providing module includes:

第一提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;a first extraction unit, configured to extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

第一提供单元,用于将所述N1个标签提供给所述第一电子设备。a first providing unit, configured to provide the N1 tags to the first electronic device.

可选的,所述服务器还包括:Optionally, the server further includes:

第一接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,a first receiving module, configured to receive a setting operation of the user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or,

第二确定模块,用于确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The second determination module is configured to determine the number of occurrences of the relevant data information corresponding to each tag in the M electronic devices; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

可选的,所述获得模块,包括:Optionally, the obtaining module includes:

第二获取单元,用于获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;a second obtaining unit, configured to obtain the PE-portable executable file of the first application on the M electronic devices;

第三获取单元,用于从所述PE可移植的可执行文件中获取所述相关数据信息。A third obtaining unit, configured to obtain the relevant data information from the PE portable executable file.

第四方面,本发明实施例提供一种电子设备,包括:In a fourth aspect, an embodiment of the present invention provides an electronic device, including:

获取模块,用于从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;an obtaining module, configured to obtain the first label information of the first application from a server, wherein the server determines the first label information based on the relevant data information of the first application obtained from M electronic devices , M is a positive integer;

第二提供模块,用于将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The second providing module is configured to provide the first tag information to the user in a manner associated with the first application program.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第二提供模块,包括:Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the second providing module includes:

第二提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;a second extraction unit, configured to extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

第二提供单元,用于将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。A second providing unit, configured to provide the N1 tags to the user in a manner associated with the first application program.

可选的,所述电子设备还包括:Optionally, the electronic device further includes:

第二接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,a second receiving module, configured to receive a setting operation of the user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or,

第三确定模块,用于确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。A third determining module, configured to determine the number of occurrences of the relevant data information corresponding to each tag in the relevant data information of the M electronic devices; and determine the priority based on the number of occurrences and the weight value of each tag class.

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A behavioral data.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

本申请实施例中提供的技术方案,至少具有如下技术效果或优点:The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

由于在本发明实施例中,通过从M个电子设备分别获得的第一应用程序的相关数据信息确定出第一应用程序的第一标签信息,然后将其提供给第一电子设备,从而第一电子设备在提供第一应用程序的标签信息时,所提供的是综合M个电子设备的相关数据信息的标签信息,其由于综合考虑了第一应用程序在M个电子设备上的情况,而非未仅仅考虑第一应用程序在当前电子设备的情况,故而达到了所提供的标签信息更加准确的技术效果,并且所提供的标签信息更加灵活,更能满足用户需求。Because in this embodiment of the present invention, the first label information of the first application is determined through the relevant data information of the first application obtained from M electronic devices respectively, and then the first label information is provided to the first electronic device, so that the first label information is When the electronic device provides the label information of the first application, what it provides is the label information that integrates the relevant data information of the M electronic devices, because the situation of the first application on the M electronic devices is comprehensively considered, not the Only the situation of the first application in the current electronic device is not considered, so the technical effect of providing more accurate label information is achieved, and the provided label information is more flexible and can better meet user needs.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明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 embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了根据本发明一个实施例的标签提供方法的流程图;1 shows a flowchart of a method for providing a label according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的标签提供方法中确定第一标签信息的流程图;2 shows a flowchart of determining first label information in a label providing method according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的标签提供方法中确定第一清理策略的流程图;3 shows a flowchart of determining a first cleaning strategy in a label providing method according to an embodiment of the present invention;

图4示出了根据本发明另一个实施例的标签提供方法的流程图;FIG. 4 shows a flowchart of a label providing method according to another embodiment of the present invention;

图5示出了根据本发明一个实施例的服务器的结构图;FIG. 5 shows a structural diagram of a server according to an embodiment of the present invention;

图6示出了根据本发明一个实施例的电子设备的结构图。FIG. 6 shows a structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While 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 so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供了一种标签提供方法、获取方法、服务器及电子设备,以解决现有技术中针对应用程序所提供的标签信息不够精确的技术问题。The embodiments of the present invention provide a method for providing a label, a method for obtaining the label, a server and an electronic device, so as to solve the technical problem that the label information provided for an application program in the prior art is not accurate enough.

本申请实施例中的技术方案为解决上述技术问题总体思路如下:The general idea of the technical solutions in the embodiments of the present application for solving the above-mentioned technical problems is as follows:

通过从M个电子设备分别获得的第一应用程序的相关数据信息确定出第一应用程序的第一标签信息,然后将其提供给第一电子设备,从而第一电子设备在提供第一应用程序的标签信息时,所提供的是综合M个电子设备的相关数据信息的标签信息,其由于综合考虑了第一应用程序在M个电子设备上的情况,而非未仅仅考虑第一应用程序在当前电子设备的情况,故而达到了所提供的标签信息更加准确的技术效果,并且所提供的标签信息更加灵活,更能满足用户需求。The first tag information of the first application is determined by the relevant data information of the first application obtained from the M electronic devices, and then provided to the first electronic device, so that the first electronic device is providing the first application. When the label information is provided, the provided is the label information that integrates the relevant data information of the M electronic devices, which comprehensively considers the situation of the first application program on the M electronic devices, rather than only considering that the first application program is in the M electronic devices. In the current situation of electronic equipment, the technical effect that the provided label information is more accurate is achieved, and the provided label information is more flexible and can better meet the needs of users.

第一方面,本发明实施例提供一种标签提供方法,请参考图1,包括:In the first aspect, an embodiment of the present invention provides a method for providing a label, please refer to FIG. 1 , including:

步骤S101:从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;Step S101: respectively obtain relevant data information of the first application program from M electronic devices, where M is a positive integer;

步骤S102:基于所述相关数据信息确定出所述第一应用程序的第一标签信息;Step S102: Determine the first label information of the first application based on the relevant data information;

步骤S103:将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。Step S103: Provide the first tag information to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program.

步骤S101中,该相关数据信息可以包含多种信息,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况,另外,在不冲突的情况下,以下两种情况可以组合使用。In step S101, the relevant data information may include a variety of information, two of which are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two cases. In addition, in the case of no conflict, the following two Conditions can be used in combination.

第一种,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据。First, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device.

举例来说,所述程序行为数据例如包括以下行为数据中的至少一种:①是否存在捆绑其它应用程序的行为,例如:有的应用程序在安装或者使用过程中,可能会让电子设备安装一些其他应用程序,在这种情况下,则说明对应应用程序存在捆绑其他应用程序的行为,并且安装的应用程序可能并非用户希望安装的,也导致占用了电子设备的存储空间。②是否存在偷跑流量行为,例如:有的应用程序在使用过程中,可能会偷偷下载一些网络数据,或者,该应用程序还可以让电子设备的流量开关由关闭状态进入开启状态,这样会导致消耗电子设备大量的流量。③是否存在锁定主页的行为,例如:有的应用程序可以更改电子设备的浏览器的主页,将其设定为特定的主页。④是否存在弹出广告的行为,例如:有的应用程序在使用过程中,可能会弹出广告,影响用户使用该应用程序,并且弹出的广告还很容易被用户误点击,导致耗费电子设备大量的流量。⑤是否存在程序自启行为,例如:有的应用程序可能会在电子设备的自动启动,从而导致电子设备的内存占用较大,影响电子设备的运行速度。当然,在具体实施过程中,程序行为数据还可以包含其他行为数据,本发明实施例不再详细列举,并且不作限制。For example, the program behavior data includes, for example, at least one of the following behavior data: (1) Whether there is a behavior of bundling other application programs, for example: some applications may cause the electronic device to install some applications during installation or use. For other applications, in this case, it means that the corresponding application has the behavior of bundling other applications, and the installed application may not be what the user wants to install, which also causes the storage space of the electronic device to be occupied. ②Whether there is stealing traffic behavior, for example: some applications may secretly download some network data during use, or the application can also turn the flow switch of the electronic device from the off state to the on state, which will lead to consumes a lot of traffic from electronic devices. ③ Whether there is a behavior of locking the homepage, for example: some applications can change the homepage of the browser of the electronic device and set it as a specific homepage. ④Whether there are pop-up advertisements, for example: some applications may pop up advertisements during the use process, which affects the user's use of the application, and the pop-up advertisements are easily clicked by users by mistake, resulting in a large amount of traffic consumption of electronic devices . ⑤ Whether there is program self-start behavior, for example: some applications may be automatically started on the electronic device, resulting in a large memory usage of the electronic device and affecting the running speed of the electronic device. Of course, in the specific implementation process, the program behavior data may also include other behavior data, which are not listed in detail in this embodiment of the present invention, and are not limited.

第二种,所述相关数据信息包括:各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。In the second type, the relevant data information includes: user behavior data corresponding to the operation of the first application program by the user of each electronic device.

举例来说,所述用户行为数据,包括以下行为数据中的至少一种:①用户安装所述第一应用程序的时间信息,该时间信息例如为:安装时间、安装时间与当前时间的时间间隔等等,例如:第一应用程序安装于2016-5-13,则该时间信息例如为:安装于2016-5-13或者安装于两周前等等。②用户使用所述第一应用程序的次数信息,该次数信息例如为使用第一应用程序的总次数、预设时间段(例如:1个月、半个月等等)内使用第一应用程序的次数等等。③用户使用所述第一应用程序的频率信息,该频率信息例如为:平均每周使用次数、平均每天使用次数等等。④用户使用所述第一应用程序的时间信息,该使用第一应用程序的时间信息例如为:最后一次使用第一应用程序的时间、最近一次使用第一应用程序的时间与当前时间的时间间隔、每次使用第一应用程序的时间等等。For example, the user behavior data includes at least one of the following behavior data: ① time information of the user installing the first application program, the time information is, for example, the installation time, the time interval between the installation time and the current time etc., for example: the first application was installed on 2016-5-13, the time information is, for example: installed on 2016-5-13 or two weeks ago, etc. ②The information on the number of times the user uses the first application, such as the total number of times the first application is used, and the first application is used within a preset time period (for example: 1 month, half a month, etc.) number of times and so on. ③ Frequency information of the user using the first application, the frequency information is, for example, the average number of times of use per week, the number of times of use per day on average, and the like. ④ The time information of the user using the first application program, the time information of the first application program being used is, for example: the time interval between the time of using the first application program for the last time, the time of using the first application program for the last time and the current time , each time the first application is used, and so on.

在具体实施过程中,各个电子设备可以分别采集确定第一标签信息所需要的相关数据信息,并直接将其发送至服务器,各个电子设备也可以查找所述第一应用程序在电子设备上的PE(Portable Executable:可移植的可执行)文件,然后基于PE文件生成日志文件之后发送至服务器,由服务器从日志文件提取出用于确定出第一标签信息的相关数据信息。In the specific implementation process, each electronic device can separately collect the relevant data information required to determine the first label information, and directly send it to the server, and each electronic device can also search for the PE of the first application on the electronic device. (Portable Executable: Portable Executable) file, and then generate a log file based on the PE file and send it to the server, and the server extracts relevant data information for determining the first tag information from the log file.

举例来说,可以通过注册表Uninstall项或开机启动项等位置查找第一应用程序的PE文件;或者通过桌面快捷方式,开始菜单快捷方式、计划任务、服务项等常用入口查找第一应用程序的PE文件等等,当然,还可以通过其他方式获取PE文件,本发明实施例不再详细列举,并且不作限制。For example, the PE file of the first application can be found through the registry Uninstall item or the startup item; PE files, etc. Of course, PE files can also be obtained in other ways, which are not listed in detail in this embodiment of the present invention, 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 Expansion Components) files, SYS ( SYSTEM: System) file, COM (Component ObjectModel: Component Object Model) file and so on.

PE文件可以包括以下一种或多种信息:消息摘要信息(例如:MD5信息)、图标信息、签名信息、文件大小、创建时间、访问时间、修改时间、版本号、是否捆绑别的应用程序、是否存在流氓行为(例如:锁定主页、弹出广告、偷跑流量、程序自启等等)。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 is rogue behavior (for example: locking the homepage, pop-up advertisements, stealing traffic, program self-starting, etc.).

步骤S102中,基于相关数据信息不同,确定第一标签信息的方式也不同,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。In step S102, based on different related data information, the manner of determining the first tag information is also different, two of which are listed below for introduction, of course, in the specific implementation process, it is not limited to the following two cases.

第一种,如果所述相关数据信息包括所述程序行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,请参考图2,包括:First, if the related data information includes the program behavior data, the first tag information of the first application program determined based on the related data information, please refer to FIG. 2, including:

步骤S201:针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;Step S201: for each program behavior, determine the total number of times that the first application program generates the corresponding program behavior;

步骤S202:判断所述总次数是否大于对应程序行为的预设次数;Step S202: judging whether the total number of times is greater than the preset number of times corresponding to the program behavior;

步骤S203:如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。Step S203: If it is greater than the preset number of times, from the preset correspondence between the tag information and the program behavior, obtain the tag information of the corresponding program behavior as the tag information included in the first tag information.

步骤S201中,针对某种程序行为(例如:捆绑其他应用程序的行为、偷跑流量的行为、锁定主页的行为、弹出广告的行为、程序自启的行为等等),第一应用程序在某个电子设备上可能会产生该程序行为,也可能不会产生该程序行为,因此可以逐一统计第一应用程序在每个电子设备上是否产生对应的程序行为,进而获得第一电子设备产生对应程序行为的总次数,例如假设包含5个电子设备,第一应用程序在这5个电子设备上产生的各种程序行为如表1所示:In step S201, for a certain program behavior (for example, the behavior of bundling other application programs, the behavior of stealing traffic, the behavior of locking the homepage, the behavior of popping up advertisements, the behavior of program self-starting, etc.), the first application program is in a certain program. The program behavior may or may not be generated on each electronic device. Therefore, it is possible to count whether the first application program generates the corresponding program behavior on each electronic device one by one, and then obtain the corresponding program generated by the first electronic device. The total number of behaviors, for example, assuming that there are 5 electronic devices, the various program behaviors generated by the first application on these 5 electronic devices are shown in Table 1:

表1Table 1

Figure BDA0001037804760000111
Figure BDA0001037804760000111

Figure BDA0001037804760000121
Figure BDA0001037804760000121

则可以确定出第一应用程序产生各种程序行为的次数分别为:捆绑其他应用程序5次、偷跑流量1次、锁定主页2次、弹出广告3次、程序自启0次。Then it can be determined that the number of times that the first application program generates various program behaviors are: 5 times of bundling other applications, 1 time of stealing traffic, 2 times of locking the homepage, 3 times of pop-up advertisements, and 0 times of program self-starting.

步骤S202中,可以针对所有的应用程序设置一个相同的预设次数,例如:2次、3次等等。针对不同的应用程序也可以分别设置不同的预设次数,例如:针对捆绑其他应用程序设置其预设次数为3、针对偷跑流量设置其预设次数为1、针对锁定主页设置其预设次数为2、针对弹出广告设置其预设次数为2、针对程序自启设置其预设次数为4等等。In step S202, a same preset number of times may be set for all application programs, for example: 2 times, 3 times, and so on. Different preset times can also be set for different applications. For example, set the preset times to 3 for bundling other applications, set the preset times to 1 for sneak traffic, and set the preset times to lock the homepage. For 2, set the preset number of times to 2 for pop-up advertisements, set the preset number of times to 4 for program auto-start, and so on.

步骤S203中,该标签信息与程序行为的对应关系例如如表2所示:In step S203, the corresponding relationship between the label information and program behavior is shown in Table 2, for example:

表2Table 2

如果步骤S102中针对每种应用程序的预设次数都为2,则可以确定出第一应用程序产生对应程序行为的总次数大于预设次数的程序行为包括:捆绑其他应用程序、弹出广告,基于这两种程序行为在表2中查找获得对应的标签信息为:捆绑插件、广告。当然,表2所示的对应关系仅仅作为一个举例,也可以为其他对应关系,本发明实施例不作限制。基于表2的对应关系不同、以及第一应用程序的程序行为数据不同,所确定出的标签信息也不同,本发明实施例不作限制。If the preset number of times for each application program in step S102 is 2, it can be determined that the program behavior in which the total number of times the first application program generates the corresponding program behavior is greater than the preset number of times includes: bundling other application programs, popping up advertisements, based on These two program behaviors are searched in Table 2 to obtain the corresponding label information: bundled plug-ins and advertisements. Certainly, the corresponding relationship shown in Table 2 is only used as an example, and may also be other corresponding relationships, which is not limited in the embodiment of the present invention. Based on different correspondences in Table 2 and different program behavior data of the first application, the determined label information is also different, which is not limited in this embodiment of the present invention.

第二种,如果所述相关数据信息包括所述用户行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;基于活跃度信息确定出所述第一标签信息。Second, if the related data information includes the user behavior data, the determining the first tag information of the first application program based on the related data information includes: based on the user behavior data, determining Using activity information of the first application; determining the first tag information based on the activity information.

举例来说,该活跃度信息例如包括以下至少一种信息:①平均使用次数,可以首先获得第一应用程序在每个电子设备上的使用次数,然后将使用次数相加之后除以电子设备数量,就可以获得平均使用次数。②平均使用频率,同理可以首先获得第一应用程序在各个电子设备上的使用频率,然后将在各个电子设备上的使用频率相加之后除以电子设备数量,就可以获得平均使用频率。②最后一次使用时间距离当前时间的平均时长,同理,可以首先获得第一应用程序在各个电子设备上的最后一次使用时间距离当前时间的时长,然后对时长进行加和之后除以电子设备数量,就可以获得平均时长。For example, the activity information includes, for example, at least one of the following information: (1) Average usage times, the number of usages of the first application on each electronic device can be obtained first, and then the usage times are added up and divided by the number of electronic devices , the average number of uses can be obtained. ②The average usage frequency. Similarly, the usage frequency of the first application on each electronic device can be obtained first, and then the average usage frequency can be obtained by adding the usage frequency on each electronic device and dividing it by the number of electronic devices. ②The average duration between the last use time and the current time. Similarly, you can first obtain the duration between the last use time of the first application on each electronic device and the current time, and then add up the duration and divide it by the number of electronic devices , the average duration can be obtained.

在获得该活跃度信息之后,可以直接将活跃度信息作为第一标签信息,也可以基于活跃度信息确定出活跃程度,然后将活跃程度作为第一标签信息,活跃程度例如包括:非常活跃、普通活跃、不活跃,以活跃度信息为平均使用次数为例,则可以判断平均使用次数是否大于第一预设次数或者小于第二预设次数,如果大于第一预设次数,则说明非常活跃,如果小于第二预设次数,则说明不活跃,如果位于第一预设次数和第二预设次数之间,则说明普通活跃,针对其他活跃度信息,确定活跃程度的方式与之类似,在此不再赘述。After obtaining the activity information, the activity information can be directly used as the first label information, or the activity degree can be determined based on the activity information, and then the activity degree can be used as the first label information. Active or inactive. Taking the activity information as the average number of times of use as an example, you can determine whether the average number of times of use is greater than the first preset number of times or less than the second preset number of times. If it is greater than the first preset number of times, it means very active. If it is less than the second preset number of times, it means inactive. If it is between the first preset number of times and the second preset number of times, it means that it is generally active. For other activity information, the way to determine the degree of activity is similar. This will not be repeated here.

步骤S103中,由于针对不同的相关数据信息所确定出的标签也不同,故而步骤S102中可以为第一应用程序确定出至少一个标签(也即第一标签信息中包含至少一个标签),进而步骤S103中,服务器可以将所获得第一标签信息中所包含的全部标签都提供给第一电子设备,也可以将所获得第一标签信息中的部分标签提供给第一电子设备,例如,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息提供给第一电子设备,包括:基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;将所述N1个标签提供给所述第一电子设备。In step S103, since the tags determined for different relevant data information are also different, in step S102, at least one tag can be determined for the first application (that is, the first tag information includes at least one tag), and then step In S103, the server may provide all the tags included in the acquired first tag information to the first electronic device, or may provide some tags in the acquired first tag information to the first electronic device, for example, if all the tags The first label information includes N labels, where N is a positive integer not less than 2, and the providing the first label information to the first electronic device includes: prioritizing each label based on the N labels The stage extracts N1 tags from the N tags, where N1 is a positive integer not greater than N; and provides the N1 tags to the first electronic device.

举例来说,各个标签的排序优先级可以通过多种方式确定,例如:For example, the sorting priority of individual tags can be determined in a number of ways, such as:

①接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级,例如:有的电子设备的用户可能比较关注应用程序是否捆绑其他应用程序,则可以将捆绑其它应用程序的行为所对应的标签的优先级设置的较高,有的电子设备的用户可能比较关注应用程序是否会偷跑流量,则可以将偷跑流量的行为所对应的标签的优先级设置的较高等等,基于该方案基于电子设备的用户需求不同,设置不同的优先级排序,从而更能满足用户需求。① Receive the setting operation of the user of the first electronic device, and determine the sorting priority of each label based on the setting operation. For example, the user of some electronic devices may be more concerned about whether the application is bundled with other applications. The priority of the tag corresponding to the behavior of bundling other applications is set higher. Users of some electronic devices may be more concerned about whether the application will steal traffic. The setting is higher, etc., based on the different user needs of the electronic device based on this solution, different priority rankings are set, so as to better meet the user needs.

②确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。② Determine the number of occurrences of the relevant data information corresponding to each tag in the M electronic devices; determine the sorting priority based on the number of occurrences and the weight value of each tag.

举例来说,以标签所对应的相关数据信息为程序行为数据为例,如果标签为捆绑插件,则其对应的相关数据信息为:存在捆绑其它应用程序的行为,则可以确定第一应用程序在多少个电子设备上存在捆绑其他应用程序的行为,将电子设备的数量作为其出现次数;如果标签为偷流量,则可以确定第一应用程序在多个电子设备上存在偷跑流量行为,将电子设备的数量作为其出现次数等等。针对其他与程序行为数据对应的标签,其出现次数的确定方式与之类似,不再一一赘述。For example, taking the relevant data information corresponding to the tag as the program behavior data as an example, if the tag is a bundled plug-in, the corresponding relevant data information is: there is the behavior of bundling other applications, it can be determined that the first application is in How many electronic devices have the behavior of bundling other applications, and the number of electronic devices is taken as the number of occurrences; if the tag is traffic stealing, it can be determined that the first application has the behavior of stealing traffic on multiple electronic devices, and the electronic The number of devices as their occurrences and so on. For other tags corresponding to the program behavior data, the manner of determining the number of occurrences thereof is similar, and will not be described in detail.

以标签所对应的相关数据信息为用户行为数据为例,如果标签为非常活跃,其所对应的活跃度信息为平均使用次数,则可以确定出第一应用程序的平均使用次数大于第一预设次数的电子设备数量作为其出现次数,针对其他两种活跃度信息,其出现次数的确定方式与之类似,在此不再赘述。Taking the relevant data information corresponding to the tag as user behavior data as an example, if the tag is very active and the corresponding activity information is the average number of times of use, it can be determined that the average number of times of use of the first application is greater than the first preset. The number of electronic devices of the number of times is taken as the number of occurrences. For the other two types of activity information, the methods of determining the number of occurrences are similar, and are not repeated here.

各个标签的权重值可以由系统设定,也可以由用户手动设置,本发明实施例不作限制。The weight value of each tag may be set by the system or manually by the user, which is not limited in this embodiment of the present invention.

在获得各个标签所对应的相关数据信息在M个电子设备中的出现次数和权重值之后,可以通过出现次数乘以权重值获得该标签的评分值,然后将评分值按照从高到低的顺序进行排列,从而获取排序位于前几位(例如:2、3等等)的标签作为提供给第一电子设备的M1个标签;或者,获取评分值大于预设评分值(例如:10、20等等)的标签作为提供给第一电子设备的M1个标签等等。另外,在具体实施过程中,除了可以将第一标签信息提供给第一电子设备之外,还可以提供给其他电子设备,本发明实施例不作限制。After obtaining the number of occurrences and the weight value of the relevant data information corresponding to each tag in the M electronic devices, the score value of the label can be obtained by multiplying the number of occurrences by the weight value, and then the score value is in descending order. Arrangement is performed so as to obtain the labels in the first few ranks (for example: 2, 3, etc.) as the M1 labels provided to the first electronic device; or, the obtained score value is greater than the preset score value (for example: 10, 20, etc.) etc.) as M1 tags provided to the first electronic device and so on. In addition, in a specific implementation process, in addition to providing the first tag information to the first electronic device, the information may also be provided to other electronic devices, which is not limited in this embodiment of the present invention.

步骤S103中,第一电子设备在获得第一标签信息之后,可以第一标签信息所包含的标签显示于第一电子设备的默认标签显示位置,从而通过覆盖默认标签的方式将第一标签信息提供给用户;也可以基于用户的预设操作,显示第一标签信息,本发明实施例不作限制。In step S103, after obtaining the first label information, the first electronic device can display the label included in the first label information on the default label display position of the first electronic device, thereby providing the first label information by overwriting the default label. to the user; the first tag information may also be displayed based on the user's preset operation, which is not limited in this embodiment of the present invention.

作为一种可选的实施例,请参考图3,所述方法还包括:As an optional embodiment, please refer to FIG. 3, the method further includes:

步骤S301:获取第一应用程序在电子设备上的安装位置;Step S301: obtaining the installation location of the first application on the electronic device;

步骤S302:通过所述安装位置确定出在所述电子设备上对所述第一应用程序进行清理的第一清理策略;Step S302: determining a first cleaning strategy for cleaning the first application on the electronic device through the installation location;

步骤S303:将所述第一清理策略发送至所述电子设备,以使所述电子设备基于所述第一清理策略和所述第一应用程序的默认清理策略对所述第一应用程序进行清理。Step S303: Send the first cleanup policy to the electronic device, so that the electronic device cleans up the first application based on the first cleanup policy and the default cleanup policy of the first application .

由于在上述方案中,并非单纯通过第一应用程序的默认清理策略对第一应用程序进行清理,而是提供多种清理策略进行选择,故而达到了对清理策略控制更加精确的技术效果。Because in the above solution, the first application is not simply cleaned through the default cleaning strategy of the first application, but a variety of cleaning strategies are provided for selection, so the technical effect of more precise control of the cleaning strategy is achieved.

步骤S301中,第一电子设备可以通过以下步骤获得第一应用程序在第一电子设备上的安装位置:查找所述第一应用程序在所述第一电子设备上的PE文件;将所述PE文件所在位置作为所述第一应用程序的所述安装位置。对于采用何种方式查找PE文件,由于前面已作介绍,故而在此不再赘述。In step S301, the first electronic device can obtain the installation location of the first application on the first electronic device through the following steps: searching for the PE file of the first application on the first electronic device; The location of the file is used as the installation location of the first application. As for the method used to find the PE file, since it has been introduced above, it will not be repeated here.

第一电子设备在确定出第一应用程序的安装位置之后,可以将第一应用程序的安装位置信息直接发送至服务器;第一电子设备也可以将第一应用程序的安装位置和PE文件生成日志文件,然后将日志文件发送至到服务器,服务器在接收到该日志文件之后,从该日志文件中提取出第一应用程序的安装位置信息。After determining the installation location of the first application, the first electronic device can directly send the installation location information of the first application to the server; the first electronic device can also generate a log of the installation location of the first application and the PE file file, and then send the log file to the server. After receiving the log file, the server extracts the installation location information of the first application program from the log file.

步骤S302中,服务器可以预先存储有针对各个应用程序进行清理的清理策略集合,该清理策略集合可以为数据库,也可以为对应关系列表,该清理策略集合中包含有至少一个应用程序以及其对应的清理策略,可以通过每个应用程序的程序名或者其他参数(例如:图标编号、版本号等)以及应用程序的安装位置在在该清理策略集合中查找到对应应用程序的清理策略。In step S302, the server may pre-store a cleaning strategy set for cleaning each application, the cleaning strategy set may be a database, or a correspondence list, and the cleaning strategy set includes at least one application and its corresponding For the cleaning strategy, the cleaning strategy of the corresponding application can be found in the cleaning strategy set through the program name of each application or other parameters (for example: icon number, version number, etc.) and the installation location of the application.

又或者,可以首先通过每个应用程序的程序名或者其他参数(例如:图标编号、版本号等)在该清理策略集合中查找获得对应应用程序所包含的所有清理策略,然后通过该应用程序的安装位置在应用程序的所有清理策略中查找获得对应的应用程序的清理策略。Alternatively, all the cleaning strategies included in the corresponding application can be obtained by searching the cleaning strategy set through the program name or other parameters (for example: icon number, version number, etc.) of each application, and then The installation location looks for the cleaning strategy of the corresponding application in all cleaning strategies of the application.

作为一种可选的实施例,服务器可以通过以下方式确定出第一应用程序所对应的第一清理策略:通过所述第一应用程序的PE可移植的可执行文件确定出所述第一应用程序的标识信息;通过所述标识信息和所述安装位置在清理策略集合中查找以获得所述第一清理策略。As an optional embodiment, the server may determine the first cleaning policy corresponding to the first application in the following manner: determining the first application by using the PE portable executable file of the first application Identification information of the program; searching in the cleaning policy set through the identification information and the installation location to obtain the first cleaning policy.

举例来说,有些应用程序可能安装于不同的电子设备时,其程序名称或者其他参数(例如:图标编号、版本号等等)可能会发生变化,故而导致可能无法准确在清理策略库中查找获得对应的清理策略,因此可以首先通过第一应用程序的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 the cleaning strategy library. Corresponding cleaning strategy, therefore can first accurately determine the identification information of the first application through the PE file of the first application (the identification information is used to uniquely identify the first application), and then pass the identification information and the installation location. Search and obtain the corresponding first cleaning strategy in the cleaning strategy set. 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 matches both the identification information and the installation location can be obtained as the first cleaning strategy corresponding to the first application; Search in the cleaning strategy set to obtain all cleaning strategies corresponding to the identification information, and then search for the first cleaning strategy corresponding to the installation location from all cleaning strategies corresponding to the identification information through the installation location.

其中,可以通过第一应用程序的程序名称、图标信息、签名信息、文件大小等信息来确定出第一应用程序的标识信息,例如,有些应用程序其图标信息不会发生变化,则可以设置一个图标信息所对应的图标标识库;有些应用程序其签名信息不会发生变化,则可以设置一个签名信息对应的签名标识库等等,有些应用程序其程序名称+文件大小能够唯一表征该应用程序,则可以设置一个程序名称+文件大小所对应的标识库等等,然后通过第一应用程序的各个参数在各个标识库中进行查找,例如:通过第一应用程序的图标信息在图标标识库中进行查找,如果查找到对应的标识信息,则将查找到的标识信息作为第一应用程序的标识信息,停止继续查找;如果查找不到对应的标识信息,则通过第一应用程序的签名信息在签名标识库中继续查找,直至查找到第一应用程序的标识信息位置。Wherein, the identification information of the first application can be determined by the program name, icon information, signature information, file size and other information of the first application. For example, if the icon information of some applications will not change, an The icon identification library corresponding to the icon information; for some applications whose signature information will not change, you can set a signature identification library corresponding to the signature information, etc. For some applications, the program name + file size can uniquely characterize the application. Then you can set a program name + the corresponding identification library of the file size, etc., and then search in each identification library through various parameters of the first application, for example: perform a search in the icon identification library through the icon information of the first application. Search, if the corresponding identification information is found, then the found identification information is used as the identification information of the first application, and the search is stopped; if the corresponding identification information is not found, then the signature information of the first application is used to sign Continue searching in the identification library until the identification information location of the first application program is found.

由于在上述方案中,可以通过第一应用程序的标识信息唯一的标识第一应用程序,因此能够更加精确的查找到第一应用程序所对应的第一清理策略。Since in the above solution, the first application program can be uniquely identified by the identification information of the first application program, the first cleaning policy corresponding to the first application program can be found more accurately.

在具体实施过程中,基于清理策略集合中安装位置与清理策略的对应关系不同,查找获得第一清理策略的方式也不同,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。In the specific implementation process, based on the difference in the corresponding relationship between the installation location and the cleaning strategy in the cleaning strategy set, the methods of searching and obtaining the first cleaning strategy are also different. Two of them are listed below for introduction. Of course, in the specific implementation process, no Limited to the following two cases.

第一种,所述基于所述安装位置从所述清理策略集合中查找获得所述第一清理策略,包括:判断所述安装位置是否位于预定安装位置;如果所述安装位置位于所述预定安装位置,所确定出的所述第一清理策略为针对第一类文件进行清理的清理策略;如果所述安装位置不位于所述预定安装位置,所确定出的所述第一清理策略为针对第二类文件进行清理的清理策略,所述第一类文件与所述第二类文件不完全相同。First, the searching and obtaining the first cleaning policy from the cleaning policy set based on the installation location includes: judging whether the installation location is located in a predetermined installation location; if the installation location is located in the predetermined installation location location, the determined first cleaning strategy is a cleaning strategy for cleaning the first type of files; if the installation location is not located in the predetermined installation location, the determined first cleaning strategy is for the first cleaning strategy. A cleaning strategy for cleaning up two types of files, the first type of files and the second type of files are not exactly the same.

举例来说,该预定安装位置例如包括:系统关键的安装位置,例如:系统根目录、Program Files根目录、Programs Files(x86)根目录等等。安装在这些目录下的文件,如果清理策略不合适的话,往往会导致删除系统文件,导致系统出现故障,故而为了防止这种情况,可以针对第一应用程序是否安装于预定安装位置,采取不同的第一清理策略。For example, the predetermined installation location includes, for example, a system-critical installation location, such as a system root directory, a Program Files root directory, a Programs Files (x86) root directory, and the like. The files installed in these directories, if the cleaning strategy is not appropriate, will often lead to deletion of system files, resulting in system failure. Therefore, in order to prevent this situation, different measures can be taken according to whether the first application is installed in the predetermined installation location. First cleanup strategy.

其中,在针对应用程序进行清理时,其清理策略例如包括:删除指定文件夹、删除指定文件、删除注册表、删除驱动、删除服务项、删除输入法等等。进而在具体实施过程中,第一类文件例如包括:单个文件、文件夹、注册表、驱动、服务项、输入法等等;第二类文件例如包括:驱动、服务项、输入法等等,其中,第一类文件与第二类文件中至少有部分文件不同,例如:所包含的文件不同、所包含的文件夹不同等等。Wherein, when cleaning up an application, the cleaning strategy includes, for example, deleting a specified folder, deleting a specified file, deleting the registry, deleting a driver, deleting a service item, deleting an input method, and so on. Further in the specific implementation process, the first type of files, for example, includes: a single file, a folder, a registry, a driver, a service item, an input method, etc.; the second type of file, for example, includes: a driver, a service item, an input method, etc., Among them, at least some of the files in the first type of files and the second type of files are different, 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 (that is to say, 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 , it can be determined that the second type of files include: files and folders in the BrowserA directory and its subdirectories, as well as registry entries and shortcuts pointing to this installation location, so that the first application program is cleaned up through the first cleaning strategy You can 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 is installed in a predetermined installation location, for example, if browser A is installed in the root directory of the disk (such as C:\), it does not generate its own dedicated directory, and all files are placed in the C drive directory, so It cannot be deleted according to the installation location, otherwise the system folders and other programs will be deleted, resulting in the loss of system and other program files. The first type of files corresponding to the first cleaning strategy at this time include, for example: the application itself In the first cleaning strategy, specific files will be specified to prevent accidental deletion, and then the corresponding registry and shortcuts will be deleted.

第二种,所述基于所述安装位置从所述清理策略集合中查找获得所述第一清理策略,包括:确定第一应用程序的安装位置与清理策略的对应关系;通过当前获得的第一应用程序的安装位置在对应关系中查找获得对应的第一清理策略。In the second type, the searching and obtaining the first cleaning strategy from the cleaning strategy set based on the installation location includes: determining the corresponding relationship between the installation location of the first application and the cleaning strategy; The installation location of the application is searched in the corresponding relationship to obtain the corresponding first cleaning policy.

举例来说,可以将电子设备的存储空间划分为多个区域,例如:系统盘ProgramFiles根目录、系统盘非Program Files根目录、非系统盘等等,然后针对每个区域可以设置不同的清理策略,如表3所示:For example, the storage space of the electronic device can be divided into multiple areas, such as: the root directory of Program Files in the system disk, the root directory of non-Program Files in the system disk, the non-system disk, etc., and then different cleaning policies can be set for each area ,as shown in Table 3:

表3table 3

Figure BDA0001037804760000181
Figure BDA0001037804760000181

Figure BDA0001037804760000191
Figure BDA0001037804760000191

进而在确定出第一应用程序在电子设备上的安装位置之后,可以确定该安装位置属于那个安装区域,然后通过安装区域查找获得对应的第一清理策略。Furthermore, after the installation location of the first application on the electronic device is determined, it can be determined which installation area the installation location belongs to, and then the corresponding first cleaning policy is obtained by searching the installation area.

步骤S303中,第一电子设备可以采用第一清理策略和默认清理策略共同对第一应用程序进行清理,例如:先通过第一清理策略对第一应用程序进行清理、然后通过默认清理策略对第一应用程序进行清理、或者先通过默认清理策略对第一应用程序进行清理、然后通过默认清理策略对第一应用程序进行清理等等;第一电子设备也可以从第一清理策略和默认清理策略中择一对第一应用程序进行清理,例如:服务器还可以将所述第一清理策略所对应的清理优先级发送至所述第一电子设备,以使所述第一电子设备基于所述清理优先级和所述默认清理策略的清理优先级从所述第一清理策略和所述默认清理策略中择一对所述第一应用程序进行清理。In step S303, the first electronic device may use the first cleaning strategy and the default cleaning strategy to jointly clean up the first application, for example: first cleaning the first application through the first cleaning strategy, and then cleaning the first application through the default cleaning strategy. An application is cleaned up, or the first application is cleaned up first through the default cleaning strategy, and then the first application is cleaned up through the default cleaning strategy, etc. The first electronic device can also use the first cleaning strategy and the default cleaning strategy. Selecting a pair of first applications to clean up, for example, the server may also send the cleaning priority corresponding to the first cleaning policy to the first electronic device, so that the first electronic device can perform cleaning based on the cleaning The priority and the cleaning priority of the default cleaning strategy select a pair of the first application to be cleaned from the first cleaning strategy and the default cleaning strategy.

在具体实施过程中,可以设置默认清理策略的清理优先级为一固定值(例如:1、2等等),而针对基于安装位置所确定出的第一清理策略,其清理优先级则处于可调状态。举例来说,服务器可以基于通过所述第一清理策略对各个电子设备上的所述第一应用程序进行清理的清理结果报告信息确定出所述清理优先级。In the specific implementation process, the cleaning priority of the default cleaning strategy can be set to a fixed value (for example: 1, 2, etc.), and for the first cleaning strategy determined based on the installation location, the cleaning priority can be adjust the status. For example, the server may determine the cleaning priority based on the cleaning result report information of cleaning the first application program on each electronic device through the first cleaning policy.

在具体实施过程中,清理结果报告信息可以包含多种信息,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况,另外,在不冲突的情况下,以下两种情况可以组合使用。In the specific implementation process, the cleaning result report information may contain a variety of information, two of which are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations. In addition, in the case of no conflict, the following Both cases can be used in combination.

第一种,所述清理结果报告信息包括:误删信息。First, the cleaning result report information includes: mistakenly deleted information.

在具体实施过程中,可以首先确定出多台实验用的电子设备,这些电子设备上安装有第一应用程序,服务器可以将第一清理策略分配给这些电子设备,然后由这些电子设备通过第一清理策略对第一应用程序进行清理,在清理结束之后,通过专业人员判断在对第一应用程序进行清理时,是否存在误删情况,如果存在误删情况,则上报至服务器,由服务器基于误删情况确定出误删信息,该该误删信息例如包括:误删的概率信息和误删的文件类型信息中的至少一种信息,误删的概率信息可以通过清理出现误删的电子设备数量除以总电子设备数量获得;误删的文件类型例如包括:系统文件、非系统文件等等,通过误删的文件类型可以确定出误删的严重程度,如果误删的文件类型包括系统文件,则可以确定出其严重程度较高,如果不包含系统文件,则说明误删的严重程度较低等等。In the specific implementation process, a plurality of electronic devices for experiments can be determined first, the first application program is installed on these electronic devices, the server can assign the first cleaning strategy to these electronic devices, and then these electronic devices can pass the first The cleaning strategy cleans up the first application. After the cleaning is completed, a professional judges whether there is an accidental deletion of the first application when cleaning up the first application. The deletion situation determines the accidental deletion information, and the accidental deletion information includes, for example, at least one of the probability information of the accidental deletion and the file type information of the accidental deletion. It is obtained by dividing by the total number of electronic devices; for example, the types of files deleted by mistake include: system files, non-system files, etc. The severity of the accidental deletion can be determined by the type of files deleted by mistake. If the type of files deleted by mistake includes system files, It can be determined that its severity is high. If it does not contain system files, it means that the severity of accidental deletion is low, and so on.

第二种,所述清理结果报告信息包括:漏删信息。Second, the cleaning result report information includes: omission and deletion information.

举例来说,漏删信息例如包括:漏删的概率信息、漏删的文件数量、存在漏删的电子设备数量中的至少一种信息。漏删的概率信息包括:存在漏删的电子设备的比例信息、漏删的文件的比例信息等等,存在漏删的电子设备的可以通过存在漏删的电子设备数量除以电子设备总数量获得,漏删的文件的比例信息可以通过漏删的文件数量除以总文件数量(例如:被删除的文件数量与漏删的文件数量之和)获得。For example, the missing deletion information includes, for example, at least one type of information among: probability information of missing deletion, number of files missing to be deleted, and number of electronic devices with missing deletion. The probability information of missing deletions includes: information on the proportion of electronic devices that are missing to be deleted, the proportion of files that are missing to be deleted, etc. The number of electronic devices that are missing to be deleted can be obtained by dividing the number of missing electronic devices by the total number of electronic devices. , the information on the proportion of missing files can be obtained by dividing the number of missing files by the total number of files (for example: the sum of the number of deleted files and the number of missing files).

作为一种可选的实施例,服务器可以通过以下方式获得第一清理策略所对应的清理优先级:获得所述第一清理策略的预设优先级;基于所述清理结果报告信息对所述预设优先级进行调整,从而获得所述第一清理策略的所述清理优先级。As an optional embodiment, the server may obtain the cleaning priority corresponding to the first cleaning strategy in the following manner: obtaining the preset priority of the first cleaning strategy; The priority is set for adjustment, so as to obtain the cleaning priority of the first cleaning strategy.

举例来说,针对基于安装位置所确定的第一清理策略,可以为其设置一个默认的预设优先级(例如:2、1.5等等),然后基于清理结果报告信息对预设优先级进行调整,从而获得第一清理策略的清理优先级。For example, for the first cleaning strategy determined based on the installation location, a default preset priority (for example: 2, 1.5, etc.) can be set for it, and then the preset priority can be adjusted based on the cleaning result report information , so as to obtain the cleaning priority of the first cleaning strategy.

例如,如果不存在误删信息,则在基于误删信息对预设优先级进行调整时,可以保持其不变;如果存在误删信息,则可以视误删的概率信息或者文件类型信息对其进行调整,例如:如果误删的概率较高,则较大幅度降低对应的清理优先级,如果误删的概率较低,则较小幅度的降低对应的清理优先级;如果误删的文件包含系统文件,则较大幅度的降低其对应的清理优先级,如果误删的文件不包含系统文件,则较小幅度的降低其对应清理优先级等等。For example, if there is no accidental deletion information, the preset priority can be kept unchanged when the preset priority is adjusted based on the accidental deletion information; Adjust, for example: if the probability of accidental deletion is high, the corresponding cleaning priority will be greatly reduced; if the probability of accidental deletion is low, the corresponding cleaning priority will be reduced slightly; if the mistakenly deleted file contains If the deleted file does not contain system files, the corresponding cleaning priority will be reduced to a lesser extent, and so on.

基于漏删信息对清理优先级的调整方式与基于误删信息对其调整的方式类似。例如:如果漏删的概率信息为0%,则不改变该清理优先级;如果0%<漏删的概率信息≤10%,则可以将该预设优先级降低一个梯度(例如:降低0.5);如果10%<清理全面率≤20%,则可以将该预设优先级降低两个梯度(例如:降低2*0.5)以此类推。The adjustment method of the cleaning priority based on the missing deletion information is similar to the adjustment method based on the mistaken deletion information. For example: if the probability information of missing deletion is 0%, the cleaning priority will not be changed; if 0% < probability information of missing deletion ≤ 10%, the preset priority can be reduced by a gradient (for example: reduce by 0.5) ; If 10%<cleaning comprehensive rate≤20%, the preset priority can be reduced by two gradients (for example: reduce by 2*0.5) and so on.

第一电子设备在获得第一清理策略及其清理优先级之后,可以将第一清理策略的清理优先级与默认清理策略的清理优先级进行比较;如果第一清理策略的清理优先级高于默认清理策略的清理优先级,则采用第一清理策略对第一应用程序进行清理;如果不高于,则采用默认清理策略对第一应用程序进行清理。After obtaining the first cleaning strategy and its cleaning priority, the first electronic device can compare the cleaning priority of the first cleaning strategy with the cleaning priority of the default cleaning strategy; if the cleaning priority of the first cleaning strategy is higher than the default cleaning priority If the cleaning priority of the cleaning strategy is the first cleaning strategy, the first application is cleaned; if it is not higher than the cleaning priority, the first application is cleaned by the default cleaning strategy.

如果通过第一清理策略对第一应用程序进行清理的话,可以通过以下步骤实现对电子设备上的第一应用程序的清理:基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理时的待清理文件集合;对所述待清理文件集合中与所述第一清理策略所对应的文件类型进行清理。If the first application program is cleaned up through the first cleaning strategy, the first application program on the electronic device may be cleaned up through the following steps: The snapshot of the file determines the set of files to be cleaned when the first application is cleaned; and the file types corresponding to the first cleaning policy in the set of files to be cleaned are cleaned.

举例来说,通常情况下,在第一应用程序安装时,可以通过电子设备的工具生成对应的快照,快照中包含安装第一应用程序时生成了哪些文件,以及这些文件所在的位置,从快照中可以直接提取出所生成的文件,这些生成的文件即构成待清理文件集合,其中,可以在第一应用程序安装之后就通过快照获得对应的待清理文件,也可以在对第一应用程序进行清理时,基于快照获得对应的待清理文件,本发明实施例不作限制。例如,安装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, and the snapshot includes which files are generated when the first application is installed, and the location of these files, 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, wherein the corresponding files to be cleaned can be obtained through snapshots after the first application is installed, or the first application can be cleaned , the corresponding file to be cleaned is obtained based on the snapshot, which is not limited in this embodiment of the present invention. For example, install the 360 security 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 obtaining the file to be cleaned up, the first application program can be cleaned up through the first cleaning strategy.

针对上面的360安全浏览器我们可以基于其快照以及第一清理策略,确定出需要删除一下内容:For the above 360 security browser, we can determine the following content to be deleted based on its snapshot and the first cleanup strategy:

删除文件夹:%AppData%\360se6\Delete folder: %AppData%\360se6\

删除文件:%Desktop%\360安全浏览器.lnkDeleted 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 is cleaned up based on the first cleaning policy, a reverse check mechanism may be added, and a reverse check can be performed at some common locations on the first electronic device according to the 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 first electronic device. are the files or folders we want to delete, the shortcuts and registry entries for these locations are deleted, and the user is given a clean system.

而如果第一清理策略的清理优先级不高于默认清理策略的清理优先级的话,则可以通过默认清理策略对第一应用程序进行清理。默认清理策略是指在早期针对应用程序生成的清理规则(例如:在安装应用程序时生成的清理规则),根据应用程序安装和使用时生成的文件和注册表生成的删除对应的文件、文件夹、注册表、服务项等的写死的本地库规则。每一个软件对应一个相应的库。每一个软件有一个唯一的软件ID,每个软件ID对应唯一的清理规则。即一个软件对应本地唯一的一个清理规则。它一般和软件安装在正常的路径下差别不大,只是规则写的比较复杂,把所有的文件和子文件夹和注册表项都包含在内,并且通常情况下,默认清理策略没有反查机制。However, if the cleaning priority of the first cleaning strategy is not higher than the cleaning priority of the default cleaning strategy, the first application may be cleaned up by using the default cleaning strategy. 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), and the corresponding files and folders are deleted according to the files generated when the application is installed and used and the registry generated. , registry, service items, etc. hard-coded native library rules. 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, a software corresponds to a local only cleaning rule. It is generally not much different from the software installed in the normal path, but the rules are more complicated to write, including all files, subfolders and registry entries, and usually, the default cleanup policy does not have an anti-check mechanism.

另外,在具体实施过程中,服务器还可以基于PE文件产生针对是否对第一应用程序进行清理的提示信息,例如,可以通过PE文件判断第一应用程序是否存在流氓行为(例如:捆绑软件、软件自启、弹出广告、偷跑流量等等),如果存在这些流氓行为的话,则可以产生建议清理第一应用程序的提示信息,该提示信息例如为“第一应用程序对设备存在不利影响,建议立刻卸载”;又或者,可以通过用户针对第一应用程序的情况来判断是否清理第一应用程序,例如:可以判断用户上次使用第一应用程序的使用时间距离当前时间是否大于预设时间值(例如:半个月、1个月等等),如果大于预设时间值,则产生建议删除第一应用程序的提示信息,该提示信息例如为“用户很久没有使用该应用程序,建议删除”,又例如,判断用户使用第一应用程序的使用次数是否小于预设次数(例如:3次、5次等等),如果小于,则产生建议清理第一应用程序的提示信息,该提示信息例如为“用户很少使用该应用程序,建议清理该应用程序”等等,当然,该提示信息还可以为其他提示信息,也可以基于其他原则产生,本发明实施例不再详细列举,并且不作限制。In addition, in the specific implementation process, the server may also generate prompt information on whether to clean up the first application based on the PE file. For example, it may be determined whether the first application has rogue behavior (for example, bundled software, software, etc.) through the PE file. Self-starting, pop-up advertisements, stealing traffic, etc.), if there are such rogue behaviors, a prompt message suggesting cleaning the first application can be generated, for example, "The first application has an adverse effect on the device, it is recommended to "Uninstall immediately"; or, whether to clean up the first application can be determined by the user's situation with the first application, for example, it can be determined whether the user's last use of the first application and the current time are greater than the preset time value (For example: half a month, 1 month, etc.), if it is greater than the preset time value, a prompt message for recommending to delete the first application is generated. , for 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 it is less than, then generate prompt information suggesting cleaning the first application program, the prompt information for example It is “the user rarely uses the application, it is recommended to clean the application”, etc. Of course, the prompt information can also be other prompt information, and can also be generated based on other principles, and the embodiment of the present invention will not be listed in detail and is not limited. .

第二方面,基于同一发明构思,本发明实施例提供一种标签获取方法,请参考图4,包括:In the second aspect, based on the same inventive concept, an embodiment of the present invention provides a method for obtaining a label, please refer to FIG. 4 , including:

步骤S401:从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;Step S401: Acquire the first tag information of the first application program from the server, wherein the server determines the first tag information based on the related data information of the first application program obtained from M electronic devices, and M is a positive integer;

步骤S402:将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。Step S402: Provide the first tag information to the user in a manner associated with the first application program.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户,包括:基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the first label information is provided to the user in a manner associated with the first application, Including: extracting N1 tags from the N tags based on the sorting priority of each tag in the N tags, where N1 is a positive integer not greater than N; passing the N1 tags with the first application program The associated method is provided to the user.

可选的,所述方法还包括:接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。Optionally, the method further includes: receiving a setting operation of the user of the first electronic device, and determining the sorting priority of each label based on the setting operation; and/or, determining the relevant data corresponding to each label The number of occurrences of information in the relevant data information of the M electronic devices; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A behavioral data.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

可选的,所述方法还包括:从服务器获取针对第一应用程序进行清理的第一清理策略,所述第一清理策略基于所述第一应用程序在电子设备上的安装位置确定;判断所述第一清理策略的清理优先级是否高于默认清理策略的清理优先级;若是,通过所述第一清理策略对所述第一应用程序进行清理;若否,通过所述默认清理策略对所述第一应用程序进行清理。Optionally, the method further includes: acquiring a first cleaning strategy for cleaning the first application from the server, the first cleaning strategy being determined based on the installation location of the first application on the electronic device; Whether the cleaning priority of the first cleaning strategy is higher than the cleaning priority of the default cleaning strategy; if so, the first application is cleaned up through the first cleaning strategy; if not, the default cleaning strategy the first application to clean up.

可选的,所述方法还包括:获得所述服务器发送至的所述第一清理策略的所述清理优先级,其中,所述服务器基于通过所述第一清理策略对各个电子设备上的所述第一应用程序进行清理的清理结果报告信息确定出所述清理优先级。Optionally, the method further includes: obtaining the cleaning priority of the first cleaning policy sent by the server, wherein the server is based on the first cleaning policy for all the The cleaning priority is determined according to the cleaning result report information of the cleaning performed by the first application.

可选的,所述清理结果报告信息包括:误删信息和/或漏删信息。Optionally, the cleaning result report information includes: mistakenly deleted information and/or omitted deletion information.

可选的,所述误删信息包括:误删的概率信息和误删的文件类型信息中的至少一种信息;所述漏删信息包括:漏删的概率信息、漏删的文件数量、存在漏删的电子设备数量中的至少一种信息。Optionally, the erroneous deletion information includes: at least one of the probability information of erroneous deletion and the file type information of erroneous deletion; the omissions and deletions information includes: probability information of omissions, number of files omitted, existence At least one type of information in the number of missing electronic devices.

可选的,在所述从服务器获取针对第一应用程序的第一清理策略之前,所述方法还包括:将所述第一应用程序的安装位置信息发送至所述服务器。Optionally, before acquiring the first cleaning policy for the first application from the server, the method further includes: sending the installation location information of the first application to the server.

可选的,所述方法还包括:检测所述第一应用程序在所述电子设备上的PE可移植的可执行文件;将所述PE可移植的可执行文件所在位置确定为所述安装位置。Optionally, the method further includes: detecting a PE-portable executable file of the first application on the electronic device; determining a location where the PE-portable executable file is located as the installation location .

可选的,所述通过所述第一清理策略对所述第一应用程序进行清理,包括:基于在所述电子设备上安装所述第一应用程序时所生成的文件的快照确定出对所述第一应用程序进行清理的待清理文件集合;对所述待清理文件集合基于所述第一清理策略进行清理。Optionally, the cleaning of the first application by using the first cleaning policy includes: determining, based on a snapshot of a file generated when the first application is installed on the electronic device, to clean up the first application. The set of files to be cleaned up to be cleaned by the first application; and the set of files to be cleaned is cleaned based on the first cleaning policy.

第三方面,基于同一发明构思,本发明实施例提供一种服务器,请参考图5,包括:In the third aspect, based on the same inventive concept, an embodiment of the present invention provides a server, please refer to FIG. 5 , including:

获得模块50,用于从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;Obtaining module 50, for respectively obtaining relevant data information of the first application program from M electronic devices, where M is a positive integer;

第一确定模块51,用于基于所述相关数据信息确定出所述第一应用程序的第一标签信息;a first determining module 51, configured to determine the first tag information of the first application based on the relevant data information;

第一提供模块52,用于将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first providing module 52 is configured to provide the first tag information to the first electronic device, so that the first electronic device provides the first tag information to the first electronic device in a manner associated with the first application program. user.

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A behavioral data.

可选的,如果所述相关数据信息包括所述程序行为数据,所述第一确定模块51,包括:第一确定单元,用于针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;判断单元,用于判断所述总次数是否大于对应程序行为的预设次数;第一获取单元,用于如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。Optionally, if the relevant data information includes the program behavior data, the first determination module 51 includes: a first determination unit, configured to determine, for each program behavior, that the first application generates a corresponding The total number of program behaviors; the judgment unit is used to determine whether the total number of times is greater than the preset number of corresponding program behaviors; the first acquisition unit is used for if it is greater than the preset number of times, from the preset label information and program In the corresponding relationship of the behavior, the tag information of the corresponding program behavior is acquired as the tag information included in the first tag information.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

可选的,如果所述相关数据信息包括所述用户行为数据,所述第一确定模块51,包括:第二确定单元,用于基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;第三确定单元,用于基于活跃度信息确定出所述第一标签信息。Optionally, if the relevant data information includes the user behavior data, the first determining module 51 includes: a second determining unit, configured to determine, based on the user behavior data, to use the first application program activity information; a third determination unit, configured to determine the first tag information based on the activity information.

可选的,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。Optionally, the activity information includes at least one type of information among the average usage times, the average usage frequency, and the average duration from the last usage time to the current time.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第一提供模块52,包括:第一提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;第一提供单元,用于将所述N1个标签提供给所述第一电子设备。Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the first providing module 52 includes: a first extracting unit for The sorting priority of each label extracts N1 labels from the N labels, where N1 is a positive integer not greater than N; a first providing unit is configured to provide the N1 labels to the first electronic device.

可选的,所述服务器还包括:第一接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,第二确定模块,用于确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。Optionally, the server further includes: a first receiving module, configured to receive a setting operation by a user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or a second A determination module, configured to determine the number of occurrences of the relevant data information corresponding to each tag in the M electronic devices; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

可选的,所述获得模块50,包括:第二获取单元,用于获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;第三获取单元,用于从所述PE可移植的可执行文件中获取所述相关数据信息。Optionally, the obtaining module 50 includes: a second obtaining unit, configured to obtain the PE portable executable file of the first application on the M electronic devices; a third obtaining unit, configured to The relevant data information is obtained from the PE portable executable file.

由于本发明实施例第三方面所介绍的服务器,为实施本发明实施例第一方面所介绍的标签提供方法所采用的服务器,基于本发明实施例第一方面所介绍的标签提供方法,本领域所属技术人员能够了解本发明实施例第三方面所介绍的服务器的具体结构变形,故而在此不再赘述,凡是实施本发明实施例第一方面所介绍的标签提供方法所采用的服务器,都属于本发明实施例所欲保护的范围。Since the server described in the third aspect of the embodiment of the present invention is the server used for implementing the label providing method described in the first aspect of the embodiment of the present invention, based on the label providing method described in the first aspect of the embodiment of the present invention, the field of Those skilled in the art can understand the specific structural deformation of the server introduced in the third aspect of the embodiment of the present invention, so it will not be repeated here. The scope of protection of the embodiments of the present invention.

第四方面,基于同一发明构思,本发明实施例提供一种电子设备,请参考图6,包括:In the fourth aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, please refer to FIG. 6 , including:

获取模块60,用于从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;The acquiring module 60 is configured to acquire the first tag information of the first application program from the server, wherein the server determines the first tag based on the relevant data information of the first application program acquired from M electronic devices information, M is a positive integer;

第二提供模块61,用于将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The second providing module 61 is configured to provide the first tag information to the user in a manner associated with the first application program.

可选的,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第二提供模块61,包括:第二提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;第二提供单元,用于将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。Optionally, if the first label information includes N labels, and N is a positive integer not less than 2, the second providing module 61 includes: a second extracting unit for The sorting priority of each label extracts N1 labels from the N labels, where N1 is a positive integer not greater than N; the second providing unit is used to pass the N1 labels through the way available to users.

可选的,所述电子设备还包括:第二接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,第三确定模块,用于确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。Optionally, the electronic device further includes: a second receiving module, configured to receive a setting operation by a user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or, the first Three determination modules, configured to determine the number of occurrences of the related data information corresponding to each tag in the related data information of the M electronic devices; determine the sorting priority based on the number of occurrences and the weight value of each tag .

可选的,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。Optionally, the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device operates on the first application. Corresponding user behavior data.

可选的,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。Optionally, the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is at least one of the program self-starting behaviors. A type of behavioral data.

可选的,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。Optionally, the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, information on the frequency of the user using the first application, and information on the frequency of the user using the first application. At least one kind of data in the time information of the first application.

由于本发明实施例第四方面所介绍的电子设备,为实施本发明实施例第一方面所介绍的标签获取方法所采用的电子设备,基于本发明实施例第一方面所介绍的标签获取方法,本领域所属技术人员能够了解本发明实施例第四方面所介绍的电子设备的具体结构变形,故而在此不再赘述,凡是实施本发明实施例第一方面所介绍的标签获取方法所采用的电子设备,都属于本发明实施例所欲保护的范围。Since the electronic device introduced in the fourth aspect of the embodiment of the present invention is the electronic device used to implement the method for obtaining the label introduced in the first aspect of the embodiment of the present invention, based on the method for obtaining the label introduced in the first aspect of the embodiment of the present invention, Those skilled in the art can understand the specific structural deformation of the electronic device introduced in the fourth aspect of the embodiment of the present invention, so it is not repeated here. equipment, all belong to the scope of protection 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:

由于在本发明实施例中,通过从M个电子设备分别获得的第一应用程序的相关数据信息确定出第一应用程序的第一标签信息,然后将其提供给第一电子设备,从而第一电子设备在提供第一应用程序的标签信息时,所提供的是综合M个电子设备的相关数据信息的标签信息,其由于综合考虑了第一应用程序在M个电子设备上的情况,而非未仅仅考虑第一应用程序在当前电子设备的情况,故而达到了所提供的标签信息更加准确的技术效果,并且所提供的标签信息更加灵活,更能满足用户需求。Because in this embodiment of the present invention, the first label information of the first application is determined through the relevant data information of the first application obtained from M electronic devices respectively, and then the first label information is provided to the first electronic device, so that the first label information is When the electronic device provides the label information of the first application, what it provides is the label information that integrates the relevant data information of the M electronic devices, because the situation of the first application on the M electronic devices is comprehensively considered, not the Only the situation of the first application in the current electronic device is not considered, so the technical effect of providing more accurate label information is achieved, and the provided label information is more flexible and can better meet user needs.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, 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 an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed 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 will 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. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements 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, it will be understood by those skilled in the art that although some of the embodiments herein include certain features, but not others, included in other embodiments, that combinations of features of the different embodiments are intended to be within the scope of the present invention And form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网关、代理服务器、系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。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) may be used in practice to implement some or all functions of some or all of the gateways, proxy servers, and systems according to embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体现。单词/*第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art 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 different elements and by means of a suitably programmed computer. In the unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words /* first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本发明公开了,A1、一种标签提供方法,包括:The invention discloses, A1, a label providing method, comprising:

从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;Respectively obtain relevant data information of the first application program from M electronic devices, where M is a positive integer;

基于所述相关数据信息确定出所述第一应用程序的第一标签信息;determining the first tag information of the first application based on the relevant data information;

将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program.

A2、如A1所述的方法,其特征在于,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。A2. The method according to A1, wherein the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device User behavior data corresponding to the operation of the first application.

A3、如A2所述的方法,其特征在于,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。A3. The method according to A2, wherein the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of sneaking traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, Whether there is at least one behavior data in the program's auto-start behavior.

A4、如A3所述的方法,其特征在于,如果所述相关数据信息包括所述程序行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:A4. The method according to A3, wherein if the related data information includes the program behavior data, the determining the first tag information of the first application program based on the related data information includes:

针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;For each program behavior, determine the total number of times the first application program generates the corresponding program behavior;

判断所述总次数是否大于对应程序行为的预设次数;Determine whether the total number of times is greater than the preset number of times corresponding to the program behavior;

如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。If it is greater than the preset number of times, the tag information of the corresponding program behavior is obtained from the preset corresponding relationship between the tag information and the program behavior as the tag information included in the first tag information.

A5、如A2所述的方法,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。A5. The method according to A2, wherein the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, and the user uses the first application. At least one kind of data among frequency information of an application and time information of the user using the first application.

A6、如A4所述的方法,其特征在于,如果所述相关数据信息包括所述用户行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:A6. The method according to A4, wherein if the related data information includes the user behavior data, the determining the first label information of the first application program based on the related data information includes:

基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;determining, based on the user behavior data, activity information about using the first application;

基于活跃度信息确定出所述第一标签信息。The first tag information is determined based on the activity information.

A7、如A6所述的方法,其特征在于,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。A7. The method according to A6, wherein the activity information includes at least one type of information among the average usage times, the average usage frequency, and the average duration from the last usage time to the current time.

A8、如A1-A7任一所述的方法,其特征在于,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息提供给第一电子设备,包括:A8. The method according to any one of A1-A7, wherein if the first label information includes N labels, where N is a positive integer not less than 2, the providing the first label information to The first electronic device, including:

基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;Extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

将所述N1个标签提供给所述第一电子设备。The N1 tags are provided to the first electronic device.

A9、如A8所述的方法,其特征在于,所述方法还包括:A9. The method according to A8, wherein the method further comprises:

接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,receiving a setting operation of the user of the first electronic device, and determining the sorting priority of each label based on the setting operation; and/or,

确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The number of occurrences of the relevant data information corresponding to each tag in the M electronic devices is determined; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

A10、如A1-A7任一所述的方法,其特征在于,所述从至少一个电子设备获得第一应用程序的相关数据信息,包括:A10. The method according to any one of A1-A7, wherein the obtaining the relevant data information of the first application from at least one electronic device includes:

获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;obtaining the PE-portable executable file of the first application on the M electronic devices;

从所述PE可移植的可执行文件中获取所述相关数据信息。The relevant data information is obtained from the PE portable executable file.

B11、一种标签获取方法,包括:B11. A method for obtaining a label, comprising:

从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;Obtain the first tag information of the first application program from the server, wherein the server determines the first tag information based on the related data information of the first application program obtained from M electronic devices, where M is a positive integer ;

将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to the user in a manner associated with the first application.

B12、如B11所述的方法,其特征在于,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户,包括:B12. The method according to B11, characterized in that, if the first label information includes N labels, and N is a positive integer not less than 2, the first label information is passed through with the first label The way the application is associated is provided to the user, including:

基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;Extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。The N1 tags are provided to the user in a manner associated with the first application.

B13、如B12所述的方法,其特征在于,所述方法还包括:B13. The method according to B12, wherein the method further comprises:

接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,receiving a setting operation of the user of the first electronic device, and determining the sorting priority of each label based on the setting operation; and/or,

确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The number of occurrences of the related data information corresponding to each tag in the related data information of the M electronic devices is determined; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

B14、如B11-B13任一所述的方法,其特征在于,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。B14. The method according to any one of B11-B13, wherein the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, each electronic User behavior data corresponding to the operation of the user of the device on the first application.

B15、如B14所述的方法,其特征在于,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。B15. The method according to B14, wherein the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, Whether there is at least one behavior data in the program's auto-start behavior.

B16、如B14所述的方法,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。B16. The method according to B14, wherein the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, and the user uses the first application. At least one kind of data among frequency information of an application and time information of the user using the first application.

C17、一种服务器,包括:C17. A server comprising:

获得模块,用于从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;an obtaining module for obtaining the relevant data information of the first application program from M electronic devices respectively, where M is a positive integer;

第一确定模块,用于基于所述相关数据信息确定出所述第一应用程序的第一标签信息;a first determining module, configured to determine the first tag information of the first application based on the relevant data information;

第一提供模块,用于将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。a first providing module, configured to provide the first tag information to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program .

C18、如C17所述的服务器,其特征在于,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。C18. The server according to C17, wherein the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, the user of each electronic device User behavior data corresponding to the operation of the first application.

C19、如C18所述的服务器,其特征在于,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。C19. The server according to C18, wherein the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, Whether there is at least one behavior data in the program's auto-start behavior.

C20、如C19所述的服务器,其特征在于,如果所述相关数据信息包括所述程序行为数据,所述第一确定模块,包括:C20. The server according to C19, wherein if the relevant data information includes the program behavior data, the first determining module includes:

第一确定单元,用于针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;a first determining unit, configured to determine, for each program behavior, the total number of times that the first application program generates the corresponding program behavior;

判断单元,用于判断所述总次数是否大于对应程序行为的预设次数;a judging unit for judging whether the total number of times is greater than the preset number of times corresponding to the program behavior;

第一获取单元,用于如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。The first obtaining unit is configured to obtain, from the preset correspondence between the label information and the program behavior, the label information of the corresponding program behavior as the label information included in the first label information if the number of times is greater than the preset number.

C21、如C18所述的服务器,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。C21. The server according to C18, wherein the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, and the user uses the first application. At least one kind of data among frequency information of an application and time information of the user using the first application.

C22、如C20所述的服务器,其特征在于,如果所述相关数据信息包括所述用户行为数据,所述第一确定模块,包括:C22. The server according to C20, wherein if the relevant data information includes the user behavior data, the first determining module includes:

第二确定单元,用于基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;a second determining unit, configured to determine activity information for using the first application based on the user behavior data;

第三确定单元,用于基于活跃度信息确定出所述第一标签信息。The third determining unit is configured to determine the first tag information based on the activity information.

C23、如C22所述的服务器,其特征在于,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。C23. The server according to C22, wherein the activity information includes at least one type of information among the average usage times, the average usage frequency, and the average duration between the last usage time and the current time.

C24、如C17-C23任一所述的服务器,其特征在于,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第一提供模块,包括:C24. The server according to any one of C17-C23, wherein if the first label information includes N labels, where N is a positive integer not less than 2, the first providing module includes:

第一提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1个标签,N1为不大于N的正整数;a first extraction unit, configured to extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

第一提供单元,用于将所述N1个标签提供给所述第一电子设备。a first providing unit, configured to provide the N1 tags to the first electronic device.

C25、如C24所述的服务器,其特征在于,所述服务器还包括:C25. The server according to C24, wherein the server further comprises:

第一接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,a first receiving module, configured to receive a setting operation of the user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or,

第二确定模块,用于确定出各个标签所对应的相关数据信息在M个电子设备中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。The second determination module is configured to determine the number of occurrences of the relevant data information corresponding to each tag in the M electronic devices; the sorting priority is determined based on the number of occurrences and the weight value of each tag.

C26、如C17-C23任一所述的服务器,其特征在于,所述获得模块,包括:C26. The server according to any one of C17-C23, wherein the obtaining module includes:

第二获取单元,用于获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;a second obtaining unit, configured to obtain the PE-portable executable file of the first application on the M electronic devices;

第三获取单元,用于从所述PE可移植的可执行文件中获取所述相关数据信息。A third obtaining unit, configured to obtain the relevant data information from the PE portable executable file.

D27、一种电子设备,包括:D27. An electronic device comprising:

获取模块,用于从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;an obtaining module, configured to obtain the first label information of the first application from a server, wherein the server determines the first label information based on the relevant data information of the first application obtained from M electronic devices , M is a positive integer;

第二提供模块,用于将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The second providing module is configured to provide the first tag information to the user in a manner associated with the first application program.

D28、如D27所述的电子设备,其特征在于,如果所述第一标签信息中包含N个标签,N为不小于2的正整数,所述第二提供模块,包括:D28. The electronic device according to D27, wherein if the first label information includes N labels, where N is a positive integer not less than 2, the second providing module includes:

第二提取单元,用于基于所述N个标签中各个标签的排序优先级从所述N个标签中提取出N1标签,N1为不大于N的正整数;a second extraction unit, configured to extract N1 labels from the N labels based on the sorting priority of each label in the N labels, where N1 is a positive integer not greater than N;

第二提供单元,用于将所述N1个标签通过与所述第一应用程序关联的方式提供给用户。A second providing unit, configured to provide the N1 tags to the user in a manner associated with the first application program.

D29、如D28所述的电子设备,其特征在于,所述电子设备还包括:D29. The electronic device according to D28, characterized in that the electronic device further comprises:

第二接收模块,用于接收所述第一电子设备的用户的设置操作,基于所述设置操作确定出各个标签的排序优先级;和/或,a second receiving module, configured to receive a setting operation of the user of the first electronic device, and determine the sorting priority of each label based on the setting operation; and/or,

第三确定模块,用于确定出各个标签所对应的相关数据信息在所述M个电子设备的相关数据信息中的出现次数;基于所述出现次数和各个标签的权重值确定出所述排序优先级。A third determining module, configured to determine the number of occurrences of the relevant data information corresponding to each tag in the relevant data information of the M electronic devices; and determine the priority based on the number of occurrences and the weight value of each tag class.

D30、如D27-D29任一所述的电子设备,其特征在于,所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和/或,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据。D30. The electronic device according to any one of D27-D29, wherein the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and/or, each User behavior data corresponding to the operation of the user of the electronic device on the first application.

D31、如D29所述的电子设备,其特征在于,所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据。D31. The electronic device according to D29, wherein the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, and whether there is the behavior of popping up advertisements , Whether there is at least one behavior data in the program's self-start behavior.

D32、如D30所述的电子设备,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。D32. The electronic device according to D30, wherein the user behavior data includes: time information when the user installs the first application, information on the number of times the user uses the first application, and the user uses the first application. At least one kind of data among frequency information of the first application and time information of the user using the first application.

Claims (17)

1.一种标签提供方法,其特征在于,包括:1. a label providing method, is characterized in that, comprises: 从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;所述从M个电子设备分别获得第一应用程序的相关数据信息,包括:获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;从所述PE可移植的可执行文件中获取所述相关数据信息;所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据;所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据;Respectively obtaining relevant data information of the first application from M electronic devices, where M is a positive integer; and obtaining the relevant data information of the first application from M electronic devices respectively includes: obtaining the location where the first application is located. obtaining the relevant data information from the PE portable executable file; the relevant data information includes: the first application program in each electronic device The program behavior data corresponding to the behavior on the device; and, the user behavior data corresponding to the operation of the user of each electronic device with respect to the first application program; the program behavior data includes: whether there is a behavior of bundling other application programs, whether There is at least one behavior data among the behavior of sneaking traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, and whether there is the behavior of program self-starting; 基于所述相关数据信息确定出所述第一应用程序的第一标签信息;determining the first tag information of the first application based on the relevant data information; 将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program. 2.如权利要求1所述的方法,其特征在于,如果所述相关数据信息包括所述程序行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:2. The method according to claim 1, wherein, if the relevant data information includes the program behavior data, the first label information of the first application is determined based on the relevant data information, include: 针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;For each program behavior, determine the total number of times the first application program generates the corresponding program behavior; 判断所述总次数是否大于对应程序行为的预设次数;Determine whether the total number of times is greater than the preset number of times corresponding to the program behavior; 如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。If it is greater than the preset number of times, the tag information of the corresponding program behavior is obtained from the preset corresponding relationship between the tag information and the program behavior as the tag information included in the first tag information. 3.如权利要求1所述的方法,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。3. The method according to claim 1, wherein the user behavior data comprises: time information when the user installs the first application program, information on the number of times the user uses the first application program, information on the number of times the user uses the first application at least one of the frequency information of the first application program and the time information of the user using the first application program. 4.如权利要求2所述的方法,其特征在于,如果所述相关数据信息包括所述用户行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:4. The method according to claim 2, wherein, if the related data information includes the user behavior data, the first tag information of the first application is determined based on the related data information, include: 基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;determining, based on the user behavior data, activity information about using the first application; 基于活跃度信息确定出所述第一标签信息。The first tag information is determined based on the activity information. 5.如权利要求4所述的方法,其特征在于,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。5 . The method according to claim 4 , wherein the activity information includes at least one kind of information among the average usage times, the average usage frequency, and the average duration between the last usage time and the current time. 6 . 6.一种标签获取方法,其特征在于,包括:6. a label acquisition method, is characterized in that, comprises: 从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;所述从M个电子设备所获得的所述第一应用程序的相关数据信息,包括:获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;从所述PE可移植的可执行文件中获取所述相关数据信息;所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据;所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据;Obtain the first tag information of the first application program from the server, wherein the server determines the first tag information based on the related data information of the first application program obtained from M electronic devices, where M is a positive integer ; The relevant data information of the first application program obtained from the M electronic devices includes: obtaining the PE portable executable file of the first application program on the M electronic devices; The relevant data information is obtained from the PE portable executable file; the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and, the user of each electronic device User behavior data corresponding to the operation of the first application; the program behavior data includes: whether there is an act of bundling other applications, whether there is an act of stealing traffic, whether there is an act of locking the homepage, whether there is a pop-up advertisement behavior, whether there is at least one behavior data in the program's self-start behavior; 将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The first tag information is provided to the user in a manner associated with the first application. 7.如权利要求6所述的方法,其特征在于,如果所述相关数据信息包括所述程序行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:7. The method according to claim 6, wherein, if the related data information includes the program behavior data, the first tag information of the first application is determined based on the related data information, include: 针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;For each program behavior, determine the total number of times the first application program generates the corresponding program behavior; 判断所述总次数是否大于对应程序行为的预设次数;Determine whether the total number of times is greater than the preset number of times corresponding to the program behavior; 如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。If it is greater than the preset number of times, the tag information of the corresponding program behavior is obtained from the preset corresponding relationship between the tag information and the program behavior as the tag information included in the first tag information. 8.如权利要求6所述的方法,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。8. The method according to claim 6, wherein the user behavior data comprises: time information when the user installs the first application, information on the number of times the user uses the first application, at least one of the frequency information of the first application program and the time information of the user using the first application program. 9.如权利要求7所述的方法,其特征在于,如果所述相关数据信息包括所述用户行为数据,所述基于所述相关数据信息确定出所述第一应用程序的第一标签信息,包括:9. The method of claim 7, wherein, if the related data information includes the user behavior data, the first tag information of the first application is determined based on the related data information, include: 基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;determining, based on the user behavior data, activity information about using the first application; 基于活跃度信息确定出所述第一标签信息。The first tag information is determined based on the activity information. 10.如权利要求9所述的方法,其特征在于,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。10 . The method according to claim 9 , wherein the activity information comprises at least one kind of information among: average usage times, average usage frequency, and average duration from the last usage time to the current time. 11 . 11.一种服务器,其特征在于,包括:11. A server, characterized in that, comprising: 获得模块,用于从M个电子设备分别获得第一应用程序的相关数据信息,M为正整数;所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据;所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据;The obtaining module is used to obtain the relevant data information of the first application program from M electronic devices respectively, where M is a positive integer; the relevant data information includes: the program corresponding to the behavior of the first application program on each electronic device Behavior data; and, user behavior data corresponding to the operation of the first application program by the user of each electronic device; the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether There is at least one behavior data among the behavior of locking the homepage, whether there is a pop-up advertisement, and whether there is a program self-starting behavior; 所述获得模块,包括:The obtaining module includes: 第二获取单元,用于获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;a second obtaining unit, configured to obtain the PE-portable executable file of the first application on the M electronic devices; 第三获取单元,用于从所述PE可移植的可执行文件中获取所述相关数据信息;a third obtaining unit, configured to obtain the relevant data information from the PE portable executable file; 第一确定模块,用于基于所述相关数据信息确定出所述第一应用程序的第一标签信息;a first determining module, configured to determine the first tag information of the first application based on the relevant data information; 第一提供模块,用于将所述第一标签信息提供给第一电子设备,以使所述第一电子设备将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。a first providing module, configured to provide the first tag information to a first electronic device, so that the first electronic device provides the first tag information to a user in a manner associated with the first application program . 12.如权利要求11所述的服务器,其特征在于,如果所述相关数据信息包括所述程序行为数据,所述第一确定模块,包括:12. The server according to claim 11, wherein, if the relevant data information includes the program behavior data, the first determining module comprises: 第一确定单元,用于针对每种程序行为,确定出所述第一应用程序产生对应的程序行为的总次数;a first determining unit, configured to determine, for each program behavior, the total number of times that the first application program generates the corresponding program behavior; 判断单元,用于判断所述总次数是否大于对应程序行为的预设次数;a judging unit for judging whether the total number of times is greater than the preset number of times corresponding to the program behavior; 第一获取单元,用于如果大于所述预设次数,从预设的标签信息与程序行为的对应关系中,获取对应的程序行为的标签信息作为第一标签信息中所包含的标签信息。The first obtaining unit is configured to obtain, from the preset correspondence between the label information and the program behavior, the label information of the corresponding program behavior as the label information included in the first label information if the number of times is greater than the preset number. 13.如权利要求11所述的服务器,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。13. The server according to claim 11, wherein the user behavior data comprises: time information when the user installs the first application, information on the number of times the user uses the first application, at least one of the frequency information of the first application program and the time information of the user using the first application program. 14.如权利要求12所述的服务器,其特征在于,如果所述相关数据信息包括所述用户行为数据,所述第一确定模块,包括:14. The server according to claim 12, wherein, if the relevant data information includes the user behavior data, the first determining module comprises: 第二确定单元,用于基于所述用户行为数据,确定出使用所述第一应用程序的活跃度信息;a second determining unit, configured to determine activity information for using the first application based on the user behavior data; 第三确定单元,用于基于活跃度信息确定出所述第一标签信息。A third determining unit, configured to determine the first tag information based on the activity information. 15.如权利要求14所述的服务器,其特征在于,所述活跃度信息包括:平均使用次数、平均使用频率、最后一次使用时间距离当前时间的平均时长中的至少一种信息。15 . The server according to claim 14 , wherein the activity information comprises at least one kind of information among: average usage times, average usage frequency, and average duration from the last usage time to the current time. 16 . 16.一种电子设备,其特征在于,包括:16. An electronic device, characterized in that, comprising: 获取模块,用于从服务器获取第一应用程序的第一标签信息,其中,所述服务器基于从M个电子设备所获得的所述第一应用程序的相关数据信息确定出所述第一标签信息,M为正整数;所述相关数据信息包括:所述第一应用程序在各个电子设备上的行为所对应的程序行为数据;和,各个电子设备的用户针对所述第一应用程序的操作所对应的用户行为数据;所述程序行为数据包括:是否存在捆绑其它应用程序的行为、是否存在偷跑流量行为、是否存在锁定主页的行为、是否存在弹出广告的行为、是否存在程序自启行为中的至少一种行为数据;所述服务器的获得模块,包括:an obtaining module, configured to obtain the first label information of the first application from a server, wherein the server determines the first label information based on the relevant data information of the first application obtained from M electronic devices , M is a positive integer; the relevant data information includes: program behavior data corresponding to the behavior of the first application on each electronic device; and, the user of each electronic device operates on the first application. Corresponding user behavior data; the program behavior data includes: whether there is the behavior of bundling other application programs, whether there is the behavior of stealing traffic, whether there is the behavior of locking the homepage, whether there is the behavior of popping up advertisements, whether there is the behavior of program self-starting At least one kind of behavior data; the acquisition module of the server includes: 第二获取单元,用于获取所述第一应用程序在所述M个电子设备上的PE可移植的可执行文件;a second obtaining unit, configured to obtain the PE-portable executable file of the first application on the M electronic devices; 第三获取单元,用于从所述PE可移植的可执行文件中获取所述相关数据信息;a third obtaining unit, configured to obtain the relevant data information from the PE portable executable file; 第二提供模块,用于将所述第一标签信息通过与所述第一应用程序关联的方式提供给用户。The second providing module is configured to provide the first tag information to the user in a manner associated with the first application program. 17.如权利要求16所述的电子设备,其特征在于,所述用户行为数据,包括:用户安装所述第一应用程序的时间信息、用户使用所述第一应用程序的次数信息、用户使用所述第一应用程序的频率信息、用户使用所述第一应用程序的时间信息中的至少一种数据。17 . The electronic device according to claim 16 , wherein the user behavior data comprises: time information when the user installs the first application, information on the number of times the user uses the first application, and the user uses the first application. 18 . At least one kind of data among frequency information of the first application and time information of the user using the first application.
CN201610513224.1A 2016-06-30 2016-06-30 Label providing method, label obtaining method, server and electronic equipment Active CN106201602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610513224.1A CN106201602B (en) 2016-06-30 2016-06-30 Label providing method, label obtaining method, server and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610513224.1A CN106201602B (en) 2016-06-30 2016-06-30 Label providing method, label obtaining method, server and electronic equipment

Publications (2)

Publication Number Publication Date
CN106201602A CN106201602A (en) 2016-12-07
CN106201602B true CN106201602B (en) 2020-02-14

Family

ID=57464159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610513224.1A Active CN106201602B (en) 2016-06-30 2016-06-30 Label providing method, label obtaining method, server and electronic equipment

Country Status (1)

Country Link
CN (1) CN106201602B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897091B (en) * 2017-02-21 2021-06-01 北京安云世纪科技有限公司 A method and device for storing application programs
CN107179930B (en) * 2017-06-12 2020-06-05 广东小天才科技有限公司 Method and device for recommending application uninstallation
CN107832607B (en) * 2017-11-09 2020-10-16 广东小天才科技有限公司 Application program uninstalling prompting method and service equipment
CN109739825B (en) * 2018-12-29 2021-04-30 优刻得科技股份有限公司 Method, apparatus and storage medium for managing log
CN112491877A (en) * 2020-11-26 2021-03-12 中孚安全技术有限公司 User behavior sequence anomaly detection method, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855440A (en) * 2012-09-13 2013-01-02 北京奇虎科技有限公司 Method, device and system for detecting packed executable files
CN102298631B (en) * 2011-08-31 2013-08-21 江苏大学 Novel metadata management system and mixed indexing method for metadata attributes
CN103927486A (en) * 2014-05-06 2014-07-16 珠海市君天电子科技有限公司 Method and system for determining failure features in black feature library
CN104516828A (en) * 2013-09-27 2015-04-15 伊姆西公司 Method and device for removing caching data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100844854B1 (en) * 2007-11-21 2008-07-10 방용정 System and method for providing web site linked to portal site
CN102298542A (en) * 2011-08-24 2011-12-28 百度在线网络技术(北京)有限公司 Application program quality determination method and system
US9207755B2 (en) * 2011-12-20 2015-12-08 Iconicast, LLC Method and system for emotion tracking, tagging, and rating and communication
CN104603753B (en) * 2014-03-19 2018-10-19 华为技术有限公司 A kind of recommendation method, system and the server of application
CN104239571B (en) * 2014-09-30 2018-04-24 北京奇虎科技有限公司 It is a kind of to carry out using the method and apparatus recommended
CN104899130B (en) * 2015-05-22 2018-07-24 深圳市酷开网络科技有限公司 A kind of application management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298631B (en) * 2011-08-31 2013-08-21 江苏大学 Novel metadata management system and mixed indexing method for metadata attributes
CN102855440A (en) * 2012-09-13 2013-01-02 北京奇虎科技有限公司 Method, device and system for detecting packed executable files
CN104516828A (en) * 2013-09-27 2015-04-15 伊姆西公司 Method and device for removing caching data
CN103927486A (en) * 2014-05-06 2014-07-16 珠海市君天电子科技有限公司 Method and system for determining failure features in black feature library

Also Published As

Publication number Publication date
CN106201602A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201602B (en) Label providing method, label obtaining method, server and electronic equipment
US7831412B1 (en) Systems and methods for providing guidance by category on the potential impact of an application on the health of a computing system
US8918628B2 (en) Electronic device and method for starting applications in the electronic device
US20160224207A1 (en) Method and system for freezing and unfreezing applications
CN107832099B (en) A client version compatible method, device and storage medium
US9110749B2 (en) Digital content bundle
US20120144379A1 (en) System and method for updadting software
US9449113B2 (en) Browser storage management
CN103019687B (en) Methods of exhibiting and device for pop window information
US9274778B2 (en) Software signature discovery
KR20140066718A (en) Selective file access for applications
US20130138934A1 (en) Loading configuration information
CN104572197B (en) A kind for the treatment of method and apparatus of startup item
CN103605538B (en) A kind of method and apparatus for installing software
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
CN102073514A (en) Basic input and output system update method
US10097488B2 (en) System and method for recovering electronic mail messages deleted from an information handling system
CN103019906B (en) A kind of method, Apparatus and system that plays window information display
CN106201595A (en) The cleaning control method of a kind of application program and device
CN104899505A (en) Software detection method and software detection device
CN102929732B (en) Method and device for calling file by application program and client-side equipment
CN102929733B (en) Method and device for processing error files and client-side equipment
US9852028B2 (en) Managing a computing system crash
CN106201601B (en) A kind of file clean-up method, electronic equipment and server
CN105786650A (en) Data management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240115

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.