CN115017522A - Permission recommendation method and electronic device - Google Patents
Permission recommendation method and electronic device Download PDFInfo
- Publication number
- CN115017522A CN115017522A CN202111165987.9A CN202111165987A CN115017522A CN 115017522 A CN115017522 A CN 115017522A CN 202111165987 A CN202111165987 A CN 202111165987A CN 115017522 A CN115017522 A CN 115017522A
- Authority
- CN
- China
- Prior art keywords
- permission
- setting
- target
- application
- permissions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Storage Device Security (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子设备领域,尤其涉及一种权限推荐方法及电子设备。The present application relates to the field of electronic devices, and in particular, to a method for recommending authority and an electronic device.
背景技术Background technique
如今,手机、平板电脑等电子设备已成为人们日常生活和工作中必不可少的工具。通过在电子设备中安装应用,可以完善设备功能。应用通常被配置有一个或多个权限,如,是否允许打开摄像头、是否允许打开相机、是否允许获取位置信息等权限。Nowadays, electronic devices such as mobile phones and tablet computers have become indispensable tools in people's daily life and work. By installing an application in an electronic device, the device functionality can be improved. Applications are usually configured with one or more permissions, such as whether to allow the camera to be opened, whether to allow the camera to be opened, whether to allow access to location information and other permissions.
电子设备中的大部分应用的权限的授权与否依赖于用户的设置。响应于用户对某应用的权限的设置操作,电子设备可以在该应用运行时实现相应的功能。但是,若应用的权限数量较多,则用户需要逐个设置权限,且可能不知道如何选择权限,导致用户的体验较差。The authorization of the permissions of most applications in the electronic device depends on the user's settings. In response to the user's operation of setting permissions for an application, the electronic device can implement corresponding functions when the application is running. However, if the application has a large number of permissions, the user needs to set the permissions one by one, and may not know how to select the permissions, resulting in a poor user experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种权限推荐方法及电子设备,电子设备能够推荐应用的权限设置模式,为用户提供了应用的权限设置的参考信息,使得用户设置应用的权限时更加方便、快捷。The embodiments of the present application provide a permission recommendation method and an electronic device. The electronic device can recommend a permission setting mode of an application, and provides a user with reference information of permission setting of an application, so that it is more convenient and quick for a user to set the permission of an application.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above object, the embodiments of the present application adopt the following technical solutions:
第一方面,提供了一种权限推荐方法,该方法包括:电子设备显示目标界面,目标界面包括目标应用的多个权限和多个权限的设置状态,多个权限的设置状态为初始配置状态。电子设备在目标界面显示目标应用的至少两种权限设置模式,每种权限设置模式对应多个权限的一种配置方式,至少两种权限设置模式分别对应的多个权限的配置方式彼此不同。且电子设备在至少两种权限设置模式中确定目标设置模式,并根据目标设置模式,更新显示多个权限的设置状态。In a first aspect, a method for recommending permissions is provided. The method includes: an electronic device displays a target interface, where the target interface includes multiple permissions of the target application and setting states of the multiple permissions, and the setting state of the multiple permissions is an initial configuration state. The electronic device displays at least two permission setting modes of the target application on the target interface, each permission setting mode corresponds to a configuration mode of multiple permissions, and the configuration modes of multiple permissions corresponding to the at least two permission setting modes are different from each other. And the electronic device determines a target setting mode in at least two permission setting modes, and updates and displays the setting status of multiple permissions according to the target setting mode.
电子设备通过执行上述方案,能够在目标应用的界面推荐权限设置模式,这些权限设置模式为用户提供目标应用的权限设置的参考信息,使得用户能够更加方便、快速的完成权限的设置。当用户在目标应用的多种权限设置模式中选择目标设置模式时,电子设备进行该目标设置模式对应的所有的权限的一键设置,简化了用户的设置操作,极大的提高了用户体验。By implementing the above solution, the electronic device can recommend permission setting modes on the interface of the target application, and these permission setting modes provide the user with reference information of the permission setting of the target application, so that the user can complete the permission setting more conveniently and quickly. When the user selects the target setting mode among the various permission setting modes of the target application, the electronic device performs one-key setting of all permissions corresponding to the target setting mode, which simplifies the user's setting operation and greatly improves the user experience.
在一种可能的实现方式中,在目标应用为视频类应用的场景下,至少两种权限设置模式包括:只看不发的权限设置模式、发布视频的权限设置模式。In a possible implementation manner, in a scenario where the target application is a video application, at least two permission setting modes include: a permission setting mode of only viewing but not posting, and a permission setting mode of publishing videos.
在一种可能的实现方式中,上述电子设备在目标界面中显示目标应用的至少两种权限设置模式,包括:电子设备在第一目标界面中显示第一目标应用的至少两种权限设置模式;或者,电子设备在第二目标界面中显示第二目标应用的至少两种权限设置模式。其中,第一目标应用的至少两种权限设置模式和第二目标应用的至少两种权限设置模式部分不同或者完成不同。In a possible implementation manner, the electronic device displays at least two permission setting modes of the target application in the target interface, including: the electronic device displays at least two permission setting modes of the first target application in the first target interface; Alternatively, the electronic device displays at least two permission setting modes of the second target application in the second target interface. Wherein, the at least two permission setting modes of the first target application and the at least two permission setting modes of the second target application are partially different or completely different.
不同的应用对应的权限设置模式不同,实现了不同应用的差异化服务。Different applications have different permission setting modes, realizing differentiated services for different applications.
在一种可能的实现方式中,电子设备在目标界面中显示目标应用的至少两种权限设置模式,包括:电子设备响应于对目标界面的预设操作,显示至少两种权限设置模式。In a possible implementation manner, the electronic device displays at least two permission setting modes of the target application in the target interface, including: the electronic device displays at least two permission setting modes in response to a preset operation on the target interface.
在一种可能的实现方式中,目标界面还包括推荐控件,推荐控件用于触发至少两种权限设置模式的显示。预设操作为对推荐控件的单击操作、多次连续单击操作或者长按操作中的任一种。In a possible implementation manner, the target interface further includes a recommendation control, and the recommendation control is used to trigger the display of at least two permission setting modes. The preset operation is any one of a single-click operation on the recommended control, multiple consecutive clicks, or a long-press operation.
通过目标界面的推荐控件来触发权限设置模式的显示,操作简单且方便。The display of the permission setting mode is triggered through the recommended controls of the target interface, and the operation is simple and convenient.
在一种可能的实现方式中,目标界面中还包括每种权限设置模式对应的参考信息,每种权限设置模式对应的参考信息用于提示该权限设置模式所指示的目标应用的使用习惯。参考信息可以包括以下至少一种:文本描述信息、图标描述信息。In a possible implementation manner, the target interface further includes reference information corresponding to each permission setting mode, and the reference information corresponding to each permission setting mode is used to prompt the usage habit of the target application indicated by the permission setting mode. The reference information may include at least one of the following: text description information and icon description information.
这样,以便于用户根据权限设置模式的描述信息更好的了解权限设置的参考信息,从而更加准确、快速的选择满足自身需求的权限设置模式。In this way, it is convenient for the user to better understand the reference information of the permission setting according to the description information of the permission setting mode, so as to more accurately and quickly select the permission setting mode that meets the needs of the user.
在一种可能的实现方式中,电子设备在至少两种权限设置模式中确定目标设置模式,包括:电子设备响应于在至少两种权限设置模式中的选择操作,确定目标设置模式。或者,电子设备在至少两种权限设置模式中确定候选设置模式,显示提示信息,提示信息用于提示用户是否采用候选设置模式进行设置;在预设时间段内接收到对提示信息的确认操作,将候选设置模式确定为目标设置模式。In a possible implementation manner, the electronic device determines the target setting mode in the at least two permission setting modes, including: the electronic device determines the target setting mode in response to a selection operation in the at least two permission setting modes. Or, the electronic device determines a candidate setting mode in at least two permission setting modes, displays prompt information, and the prompt information is used to prompt the user whether to use the candidate setting mode for setting; and receives a confirmation operation for the prompt information within a preset time period, The candidate setting mode is determined as the target setting mode.
在一种可能的实现方式中,电子设备在至少两种权限设置模式中确定候选设置模式,包括:电子设备将至少两种权限设置模式中的任意一种设置模式确定为候选设置模式。或者,电子设备获取预存的行为数据,行为数据为用户对电子设备中除目标应用外的其他应用的权限设置行为数据,根据行为数据确定用户的使用习惯,并从至少两种权限设置模式中确定符合使用习惯的设置模式,且将设置模式确定为候选设置模式。In a possible implementation manner, the electronic device determines a candidate setting mode in at least two permission setting modes, including: the electronic device determines any one of the at least two permission setting modes as a candidate setting mode. Alternatively, the electronic device obtains pre-stored behavior data, the behavior data is the user's permission setting behavior data for other applications in the electronic device except the target application, and the user's usage habit is determined according to the behavior data, and is determined from at least two permission setting modes. A setting mode that conforms to usage habits, and the setting mode is determined as a candidate setting mode.
在一种可能的实现方式中,电子设备根据目标设置模式,更新显示多个权限的设置状态,包括:电子设备根据对应关系,获取与目标设置模式、目标应用对应的目标权限参数,目标权限参数包括多个权限的设置状态信息,对应关系为应用、权限设置模式和权限参数之间的对应关系。之后,电子设备基于目标权限参数,从显示多个权限的初始设置状态更新为显示目标权限参数指示的设置状态。In a possible implementation manner, the electronic device updates and displays the setting status of multiple permissions according to the target setting mode, including: the electronic device obtains, according to the corresponding relationship, the target permission parameters corresponding to the target setting mode and the target application, and the target permission parameters It includes the setting status information of multiple permissions, and the corresponding relationship is the corresponding relationship between the application, the permission setting mode and the permission parameter. After that, based on the target authority parameter, the electronic device is updated from an initial setting state showing a plurality of authority to a setting state indicated by the target authority parameter.
在一种可能的实现方式中,权限推荐方法还可以包括:电子设备接收来自服务器的对应关系,并存储对应关系。In a possible implementation manner, the authority recommendation method may further include: the electronic device receives the correspondence from the server, and stores the correspondence.
在一种可能的实现方式中,权限推荐方法还可以包括:电子设备响应于对多个权限的设置状态的设置操作,更新显示多个权限的设置状态。In a possible implementation manner, the method for recommending rights may further include: the electronic device, in response to a setting operation on the setting states of the multiple rights, updates and displays the setting states of the multiple rights.
这样,以便于用户根据自身需求进行权限的设置,提高了用户体验。In this way, it is convenient for users to set permissions according to their own needs, and the user experience is improved.
在一种可能的实现方式中,目标界面包括目标应用的多个权限和多个权限的设置状态,包括:目标界面中显示有多个权限和多个权限的设置状态。或者,目标界面中显示目标应用的内容,目标界面还包括弹框,弹框中显示有多个权限和多个权限的设置状态。In a possible implementation manner, the target interface includes multiple permissions and setting states of the multiple permissions of the target application, including: the target interface displays multiple permissions and the setting states of the multiple permissions. Alternatively, the content of the target application is displayed in the target interface, and the target interface further includes a pop-up box, and the pop-up box displays multiple permissions and setting states of the multiple permissions.
第二方面,提供了一种电子设备,该电子设备具有实现上述第一方面所述的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an electronic device is provided, and the electronic device has the function of implementing the method described in the first aspect. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第三方面,提供了一种电子设备,包括:一个或多个处理器和一个或多个存储器,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器从一个或多个存储器中读取计算机指令,以使得电子设备执行:显示目标界面,目标界面包括目标应用的多个权限和多个权限的设置状态,多个权限的设置状态为初始配置状态。在目标界面显示目标应用的至少两种权限设置模式,每种权限设置模式对应多个权限的一种配置方式,至少两种权限设置模式分别对应的多个权限的配置方式彼此不同。在至少两种权限设置模式中确定目标设置模式,并根据目标设置模式,更新显示多个权限的设置状态。In a third aspect, an electronic device is provided, comprising: one or more processors and one or more memories, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when one or more The processor reads computer instructions from one or more memories, so that the electronic device executes: displaying a target interface, where the target interface includes multiple permissions of the target application and the setting states of the multiple permissions, and the setting states of the multiple permissions are the initial configuration state. At least two permission setting modes of the target application are displayed on the target interface, each permission setting mode corresponds to a configuration mode of multiple permissions, and the configuration modes of multiple permissions corresponding to the at least two permission setting modes are different from each other. A target setting mode is determined among at least two permission setting modes, and according to the target setting mode, a setting state displaying a plurality of permissions is updated.
在一种可能的实现方式中,在目标应用为视频类应用的场景下,至少两种权限设置模式包括:只看不发的权限设置模式、发布视频的权限设置模式。In a possible implementation manner, in a scenario where the target application is a video application, at least two permission setting modes include: a permission setting mode of only viewing but not posting, and a permission setting mode of publishing videos.
在一种可能的实现方式中,电子设备在目标界面中显示目标应用的至少两种权限设置模式,具体为:电子设备在第一目标界面中显示第一目标应用的至少两种权限设置模式;或者,电子设备在第二目标界面中显示第二目标应用的至少两种权限设置模式。其中,第一目标应用的至少两种权限设置模式和第二目标应用的至少两种权限设置模式部分不同或者完成不同。In a possible implementation manner, the electronic device displays at least two permission setting modes of the target application in the target interface, specifically: the electronic device displays at least two permission setting modes of the first target application in the first target interface; Alternatively, the electronic device displays at least two permission setting modes of the second target application in the second target interface. Wherein, the at least two permission setting modes of the first target application and the at least two permission setting modes of the second target application are partially different or completely different.
在一种可能的实现方式中,电子设备在目标界面中显示目标应用的至少两种权限设置模式,包括:电子设备响应于对目标界面的预设操作,显示至少两种权限设置模式。In a possible implementation manner, the electronic device displays at least two permission setting modes of the target application in the target interface, including: the electronic device displays at least two permission setting modes in response to a preset operation on the target interface.
在一种可能的实现方式中,目标界面还包括推荐控件,推荐控件用于触发至少两种权限设置模式的显示。预设操作为对推荐控件的单击操作、多次连续单击操作或者长按操作中的任一种。In a possible implementation manner, the target interface further includes a recommendation control, and the recommendation control is used to trigger the display of at least two permission setting modes. The preset operation is any one of a single-click operation on the recommended control, multiple consecutive clicks, or a long-press operation.
在一种可能的实现方式中,目标界面中还包括每种权限设置模式对应的参考信息,每种权限设置模式对应的参考信息用于提示该权限设置模式所指示的目标应用的使用习惯。参考信息可以包括以下至少一种:文本描述信息、图标描述信息。In a possible implementation manner, the target interface further includes reference information corresponding to each permission setting mode, and the reference information corresponding to each permission setting mode is used to prompt the usage habit of the target application indicated by the permission setting mode. The reference information may include at least one of the following: text description information and icon description information.
在一种可能的实现方式中,电子设备在至少两种权限设置模式中确定目标设置模式,具体为:电子设备响应于在至少两种权限设置模式中的选择操作,确定目标设置模式。或者,电子设备在至少两种权限设置模式中确定候选设置模式,显示提示信息,提示信息用于提示用户是否采用候选设置模式进行设置;在预设时间段内接收到对提示信息的确认操作,将候选设置模式确定为目标设置模式。In a possible implementation manner, the electronic device determines the target setting mode in at least two permission setting modes, specifically: the electronic device determines the target setting mode in response to a selection operation in the at least two permission setting modes. Or, the electronic device determines a candidate setting mode in at least two permission setting modes, displays prompt information, and the prompt information is used to prompt the user whether to use the candidate setting mode for setting; and receives a confirmation operation for the prompt information within a preset time period, The candidate setting mode is determined as the target setting mode.
在一种可能的实现方式中,电子设备在至少两种权限设置模式中确定候选设置模式,具体为:电子设备将至少两种权限设置模式中的任意一种设置模式确定为候选设置模式。或者,电子设备获取预存的行为数据,行为数据为用户对电子设备中除目标应用外的其他应用的权限设置行为数据,根据行为数据确定用户的使用习惯,并从至少两种权限设置模式中确定符合使用习惯的设置模式,且将设置模式确定为候选设置模式。In a possible implementation manner, the electronic device determines a candidate setting mode among at least two permission setting modes, specifically: the electronic device determines any one of the at least two permission setting modes as a candidate setting mode. Alternatively, the electronic device obtains pre-stored behavior data, the behavior data is the user's permission setting behavior data for other applications in the electronic device except the target application, and the user's usage habit is determined according to the behavior data, and is determined from at least two permission setting modes. A setting mode that conforms to usage habits, and the setting mode is determined as a candidate setting mode.
在一种可能的实现方式中,电子设备根据目标设置模式,更新显示多个权限的设置状态,具体为:电子设备根据对应关系,获取与目标设置模式、目标应用对应的目标权限参数,目标权限参数包括多个权限的设置状态信息,对应关系为应用、权限设置模式和权限参数之间的对应关系。之后,电子设备基于目标权限参数,从显示多个权限的初始设置状态更新为显示目标权限参数指示的设置状态。In a possible implementation manner, the electronic device updates and displays the setting status of multiple permissions according to the target setting mode, specifically: the electronic device obtains, according to the corresponding relationship, target permission parameters corresponding to the target setting mode and the target application, and the target permissions The parameters include setting status information of multiple permissions, and the corresponding relationship is the corresponding relationship between the application, the permission setting mode and the permission parameters. After that, based on the target authority parameter, the electronic device is updated from an initial setting state showing a plurality of authority to a setting state indicated by the target authority parameter.
在一种可能的实现方式中,当一个或多个处理器从一个或多个存储器中读取计算机指令,还使得电子设备执行如下操作:接收来自服务器的对应关系,并存储对应关系。In a possible implementation manner, when one or more processors read computer instructions from one or more memories, the electronic device also causes the electronic device to perform the following operations: receive the correspondence from the server, and store the correspondence.
在一种可能的实现方式中,当一个或多个处理器从一个或多个存储器中读取计算机指令,还使得电子设备执行如下操作:响应于对多个权限的设置状态的设置操作,更新显示多个权限的设置状态。In a possible implementation manner, when one or more processors read computer instructions from one or more memories, the electronic device also causes the electronic device to perform the following operation: in response to the setting operation on the setting state of the plurality of permissions, update the Displays the setting status of multiple permissions.
在一种可能的实现方式中,目标界面包括目标应用的多个权限和多个权限的设置状态,包括:目标界面中显示有多个权限和多个权限的设置状态。或者,目标界面中显示目标应用的内容,目标界面还包括弹框,弹框中显示有多个权限和多个权限的设置状态。In a possible implementation manner, the target interface includes multiple permissions and setting states of the multiple permissions of the target application, including: the target interface displays multiple permissions and the setting states of the multiple permissions. Alternatively, the content of the target application is displayed in the target interface, and the target interface further includes a pop-up box, and the pop-up box displays multiple permissions and setting states of the multiple permissions.
第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其中任一种可能的实现方式中所述的方法。In a fourth aspect, a computer-readable storage medium is provided, and computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on an electronic device, the electronic device is made to perform the first aspect and any one of the possibilities. method described in the implementation of .
第五方面,提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中及其中任一种可能的实现方式中所述的方法。In a fifth aspect, there is provided a computer program product which, when run on a computer, causes the computer to perform the method as described in the first aspect and any one of the possible implementations.
第六方面,提供了一种芯片,包括处理器,当处理器执行指令时,处理器执行如第一方面中及其中任一种可能的实现方式中所述的方法。In a sixth aspect, a chip is provided, including a processor, when the processor executes an instruction, the processor executes the method described in the first aspect and any one of the possible implementation manners.
第七方面,提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及可能的实现方式中任一方法中电子设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括至少一个与上述功能相对应的模块或单元。例如,接收模块或单元、确定模块或单元、以及发送模块或单元等。In a seventh aspect, an apparatus is provided, the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in any of the above aspects and possible implementation manners. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above-mentioned functions. For example, a receiving module or unit, a determining module or unit, and a transmitting module or unit, etc.
第八方面,提供了一种权限推荐方法,该方法可以包括:服务器获取目标应用的行为数据集合,行为数据集合中包括多条权限设置行为数据,权限设置行为数据包括用户对目标应用的多个权限的设置结果。服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合。服务器根据多个权限行为集合,确定目标应用的权限设置模式,以及每种权限设置模式对应的权限参数,权限参数包括多个权限的设置状态信息。服务器向电子设备发送确定出的目标应用的权限设置模式,以及每种权限设置模式对应的权限参数。In an eighth aspect, a method for recommending permissions is provided, the method may include: the server obtains a behavior data set of a target application, the behavior data set includes multiple pieces of permission setting behavior data, and the permission setting behavior data includes a plurality of user information on the target application. The result of setting permissions. The server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data to obtain multiple permission behavior sets. The server determines the permission setting mode of the target application and the permission parameters corresponding to each permission setting mode according to the multiple permission behavior sets, and the permission parameter includes the setting status information of the multiple permissions. The server sends the determined permission setting mode of the target application and permission parameters corresponding to each permission setting mode to the electronic device.
服务器通过执行上述方案,能够基于大量的行为数据为目标应用生成相对应的权限设置模式,生成的权限设置模式更加合理,符合用户需求。且服务器将生成的权限设置模式推送给电子设备,为用户提供权限设置的参考。By implementing the above solution, the server can generate a corresponding permission setting mode for the target application based on a large amount of behavior data, and the generated permission setting mode is more reasonable and meets user requirements. And the server pushes the generated permission setting mode to the electronic device, so as to provide a reference for the permission setting for the user.
在一种可能的实现方式中,服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合,包括:服务器从多条权限设置行为数据中筛选出有效数据,有效数据为多条权限设置行为数据中除默认数据外的数据,默认数据包括的多个权限的设置结果是初始配置的结果;服务器采用分类算法对有效数据进行分类,得到多个权限行为集合。In a possible implementation manner, the server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data, and obtains multiple permission behavior sets, including: the server selects valid data from multiple pieces of permission setting behavior data, and the valid data The data except the default data in the behavior data is set for multiple permissions, and the setting results of multiple permissions included in the default data are the results of the initial configuration; the server uses a classification algorithm to classify the valid data to obtain multiple permission behavior sets.
由于使用手机的用户多种多样,有可能是老人,有可能是小孩,有可能是成年人,不同的人群对权限设置的了解程度不同,使得云端数据模块中存储的用户对应用的权限设置行为等数据中仅有部分数据具有参考意义。Due to the variety of users who use mobile phones, they may be the elderly, children, or adults. Different groups of people have different understanding of permission settings, which makes the users stored in the cloud data module to set the permissions of the application. Only some of the data are of reference significance.
在一种可能的实现方式中,服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合,包括:服务器将多个权限的设置结果相同的有效数据划分为一个权限行为集合;或者,服务器根据有效数据中任意两个数据的相似度,确定多个权限行为集合。In a possible implementation manner, the server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data, and obtains multiple permission behavior sets, including: the server divides the valid data with the same setting result of multiple permissions into one permission Behavior sets; or, the server determines multiple permission behavior sets according to the similarity of any two pieces of data in the valid data.
在一种可能的实现方式中,服务器根据有效数据中任意两个数据的相似度,确定多个权限行为集合,包括:服务器获取有效数据中的任意两条数据的两个设置结果,确定两个设置结果中,设置相同的权限的数量在多个权限的数量中的占比,根据占比确定多个权限行为集合;或者,服务器获取多个权限中的敏感权限,并根据敏感权限确定多个权限行为集合;或者,服务器将有效数据中的每条数据输入预存的分类模型中,得到每条数据对应的参考值,根据参考值确定多个权限行为集合。In a possible implementation manner, the server determines multiple permission behavior sets according to the similarity of any two pieces of data in the valid data, including: the server obtains two setting results of any two pieces of data in the valid data, and determines two In the setting result, set the proportion of the number of the same permissions in the number of multiple permissions, and determine multiple permission behavior sets according to the proportion; or, the server obtains the sensitive permissions among the multiple permissions, and determines multiple permissions according to the sensitive permissions. Permission behavior set; or, the server inputs each piece of data in the valid data into a pre-stored classification model, obtains a reference value corresponding to each piece of data, and determines multiple permission behavior sets according to the reference value.
在一种可能的实现方式中,服务器根据多个权限行为集合,确定目标应用的权限设置模式,包括:服务器确定每个权限行为集合包括的数据的数量在有效数据的总数中的占比;服务器将占比大于预设占比值的权限行为集合确定为目标集合;服务器分析目标集合中的数据包括的设置结果,确定目标集合对应的权限设置模式。In a possible implementation manner, the server determines the permission setting mode of the target application according to multiple permission behavior sets, including: the server determining the proportion of the quantity of data included in each permission behavior set in the total number of valid data; the server The permission behavior set whose proportion is greater than the preset proportion value is determined as the target set; the server analyzes the setting results included in the data in the target set, and determines the permission setting mode corresponding to the target set.
第九方面,提供了一种服务器,该服务器具有实现上述第八方面所述的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a ninth aspect, a server is provided, and the server has a function of implementing the method described in the eighth aspect. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第十方面,提供了一种服务器,包括:一个或多个处理器和一个或多个存储器,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器从一个或多个存储器中读取计算机指令,以使得服务器执行:获取目标应用的行为数据集合,行为数据集合中包括多条权限设置行为数据,权限设置行为数据包括用户对目标应用的多个权限的设置结果。采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合。根据多个权限行为集合,确定目标应用的权限设置模式,以及每种权限设置模式对应的权限参数,权限参数包括多个权限的设置状态信息。向电子设备发送确定出的目标应用的权限设置模式,以及每种权限设置模式对应的权限参数。In a tenth aspect, there is provided a server, comprising: one or more processors and one or more memories, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when one or more processes The processor reads computer instructions from one or more memories, so that the server executes: obtains the behavior data set of the target application, the behavior data set includes a plurality of pieces of permission setting behavior data, and the permission setting behavior data includes a plurality of user actions on the target application. The result of setting permissions. A pre-stored classification algorithm is used to classify multiple pieces of permission setting behavior data to obtain multiple permission behavior sets. According to the multiple permission behavior sets, the permission setting mode of the target application and the permission parameters corresponding to each permission setting mode are determined, and the permission parameters include the setting status information of the multiple permissions. The determined permission setting mode of the target application and the permission parameters corresponding to each permission setting mode are sent to the electronic device.
在一种可能的实现方式中,服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合,具体为:服务器从多条权限设置行为数据中筛选出有效数据,有效数据为多条权限设置行为数据中除默认数据外的数据,默认数据包括的多个权限的设置结果是初始配置的结果;服务器采用分类算法对有效数据进行分类,得到多个权限行为集合。In a possible implementation manner, the server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data, and obtains multiple permission behavior sets. Specifically, the server selects valid data from the multiple pieces of permission setting behavior data, and effectively The data is the data except the default data in the multiple permission setting behavior data. The setting result of the multiple permissions included in the default data is the result of the initial configuration; the server uses a classification algorithm to classify the valid data to obtain multiple permission behavior sets.
在一种可能的实现方式中,服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合,具体为:服务器将多个权限的设置结果相同的有效数据划分为一个权限行为集合;或者,服务器根据有效数据中任意两个数据的相似度,确定多个权限行为集合。In a possible implementation manner, the server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data, and obtains multiple permission behavior sets. A permission behavior set; or, the server determines multiple permission behavior sets according to the similarity of any two pieces of data in the valid data.
在一种可能的实现方式中,服务器根据有效数据中任意两个数据的相似度,确定多个权限行为集合,包括:服务器获取有效数据中的任意两条数据的两个设置结果,确定两个设置结果中,设置相同的权限的数量在多个权限的数量中的占比,根据占比确定多个权限行为集合;或者,服务器获取多个权限中的敏感权限,并根据敏感权限确定多个权限行为集合;或者,服务器将有效数据中的每条数据输入预存的分类模型中,得到每条数据对应的参考值,根据参考值确定多个权限行为集合。In a possible implementation manner, the server determines multiple permission behavior sets according to the similarity of any two pieces of data in the valid data, including: the server obtains two setting results of any two pieces of data in the valid data, and determines two In the setting result, set the proportion of the number of the same permissions in the number of multiple permissions, and determine multiple permission behavior sets according to the proportion; or, the server obtains the sensitive permissions among the multiple permissions, and determines multiple permissions according to the sensitive permissions. Permission behavior set; or, the server inputs each piece of data in the valid data into a pre-stored classification model, obtains a reference value corresponding to each piece of data, and determines multiple permission behavior sets according to the reference value.
在一种可能的实现方式中,服务器根据多个权限行为集合,确定目标应用的权限设置模式,包括:服务器确定每个权限行为集合包括的数据的数量在有效数据的总数中的占比;服务器将占比大于预设占比值的权限行为集合确定为目标集合;服务器分析目标集合中的数据包括的设置结果,确定目标集合对应的权限设置模式。In a possible implementation manner, the server determines the permission setting mode of the target application according to multiple permission behavior sets, including: the server determining the proportion of the quantity of data included in each permission behavior set in the total number of valid data; the server The permission behavior set whose proportion is greater than the preset proportion value is determined as the target set; the server analyzes the setting results included in the data in the target set, and determines the permission setting mode corresponding to the target set.
第十一方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当计算机指令在服务器上运行时,使得服务器执行如第八方面及其中任一种可能的实现方式中所述的方法。In an eleventh aspect, a computer-readable storage medium is provided, and computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the server, the server is caused to perform the eighth aspect and any one of the possible Implement the method described in the method.
第十二方面,提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第八方面中及其中任一种可能的实现方式中所述的方法。A twelfth aspect provides a computer program product that, when the computer program product runs on a computer, causes the computer to perform the method described in the eighth aspect and any one of the possible implementations.
第十三方面,提供了一种芯片,包括处理器,当处理器执行指令时,处理器执行如第八方面中及其中任一种可能的实现方式中所述的方法。A thirteenth aspect provides a chip including a processor, when the processor executes an instruction, the processor executes the method described in the eighth aspect and any one of the possible implementation manners.
第十四方面,提供了一种装置,该装置包含在服务器中,该装置具有实现上述方面及可能的实现方式中任一方法中服务器行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括至少一个与上述功能相对应的模块或单元。例如,接收模块或单元、确定模块或单元、以及发送模块或单元等。A fourteenth aspect provides an apparatus, the apparatus is included in a server, and the apparatus has a function of implementing the server behavior in any of the above aspects and possible implementation manners. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above-mentioned functions. For example, a receiving module or unit, a determining module or unit, and a transmitting module or unit, etc.
附图说明Description of drawings
图1为本申请实施例提供的用户设置应用的权限的示意图之一;FIG. 1 is one of the schematic diagrams of a user setting the permissions of an application provided by an embodiment of the present application;
图2为本申请实施例提供的用户设置应用的权限的示意图之二;FIG. 2 is the second schematic diagram of the user setting the permission of the application provided by the embodiment of the present application;
图3为本申请实施例提供的用户设置应用的权限的示意图之三;FIG. 3 is the third schematic diagram of the user setting the permission of the application provided by the embodiment of the present application;
图4为本申请实施例提供的权限设置模式的文本描述信息的示意图;4 is a schematic diagram of text description information of a permission setting mode provided by an embodiment of the present application;
图5为本申请实施例提供的权限设置模式的图片描述信息的示意图;5 is a schematic diagram of picture description information of a permission setting mode provided by an embodiment of the present application;
图6为本申请实施例提供的权限设置模式的示意图;6 is a schematic diagram of a permission setting mode provided by an embodiment of the present application;
图7为本申请实施例提供的用户设置应用的权限的示意图之四;FIG. 7 is the fourth schematic diagram of the user setting the permission of the application provided by the embodiment of the present application;
图8A为本申请实施例提供的系统架构的简化示意图;8A is a simplified schematic diagram of a system architecture provided by an embodiment of the present application;
图8B为本申请实施例提供的手机和服务器的结构示意图;8B is a schematic structural diagram of a mobile phone and a server provided by an embodiment of the present application;
图9A为本申请实施例提供的手机的硬件结构示意图;9A is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the application;
图9B为本申请实施例提供的手机的软件结构示意图;9B is a schematic diagram of a software structure of a mobile phone according to an embodiment of the application;
图9C为本申请实施例提供的服务器的硬件结构示意图。FIG. 9C is a schematic diagram of a hardware structure of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of this application, unless otherwise specified, "/" indicates that the objects associated before and after are an "or" relationship, for example, A/B can indicate A or B; in this application, "and/or" "It is only an association relationship that describes an associated object, which means that there can be three kinds of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A exists , B can be singular or plural. Also, in the description of the present application, unless stated otherwise, "plurality" means two or more than two. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple . In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner to facilitate understanding.
本申请实施例提供的权限推荐方法可以应用于电子设备。该电子设备例如可以为手机、平板电脑、台式机(桌面型电脑)、手持计算机、笔记本电脑(膝上型电脑)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtualreality,VR)设备等,本申请实施例对电子设备的具体形态不作特殊限制。The permission recommendation method provided by the embodiment of the present application can be applied to an electronic device. The electronic device may be, for example, a mobile phone, a tablet computer, a desktop computer (desktop computer), a handheld computer, a notebook computer (laptop computer), an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) device, etc. The specific form of the electronic device is not limited in this embodiment of the present application.
为了便于描述,以电子设备为手机为例,结合以下附图对本申请实施例提供的权限推荐方法进行详细介绍。For the convenience of description, taking the electronic device as a mobile phone as an example, the authorization recommendation method provided by the embodiments of the present application will be described in detail with reference to the following drawings.
在一些实施例中,手机可以在不同的场景中显示应用的权限设置。In some embodiments, the mobile phone can display the permission settings of the application in different scenarios.
在一种场景中,手机在应用安装好之后,响应于用户对该应用的启动操作,显示该应用的主页界面,并在该主页界面上弹出弹框,该弹框包括该应用的一个或多个权限,供用户进行设置。In one scenario, after the application is installed, the mobile phone displays the home page interface of the application in response to the user's startup operation of the application, and a pop-up box pops up on the home page interface, and the pop-up box includes one or more of the application's permissions for users to set.
在另一种场景中,手机可以响应于用户打开系统设置的操作,显示设置界面,设置界面包括手机中已安装的所有应用。响应于用户对某应用的选择操作,手机从显示设置界面切换为显示该应用的权限界面,该权限界面中包括该应用的一个或多个权限,供用户进行设置。In another scenario, the mobile phone may display a setting interface in response to the user's operation of opening the system settings, and the setting interface includes all the applications installed in the mobile phone. In response to a user's selection operation on an application, the mobile phone switches from displaying the setting interface to displaying the permission interface of the application, where the permission interface includes one or more permissions of the application for the user to set.
例如,如图1中的(a)所示,手机显示主屏幕界面,主屏幕界面包括多个已安装的应用的图标,如,包括时钟、日历、信息、备忘录、计算器、应用A、系统设置等应用的图标,该应用A是短视频应用,该应用A是用户刚安装好、未启动的应用。用户可以点击应用A的图标,手机接收用户对应用A的图标的点击操作。作为对该点击操作的响应,如图1中的(b)所示,手机从显示主屏幕界面切换为显示应用A的主页界面,并在该主页界面上弹出弹框。弹框中包括标题“应用A权限管理本服务需申请如下五个权限”,弹框中还包括五个权限的内容,以及每个权限的内容对应的一个或多个选择控件,选中选择控件便表示对选择控件对应的内容授权。五个权限的内容分别是:设备信息、位置信息、相机、通讯录、通知消息。设备信息可以是通话状态信息、网络信息等。其中,设备信息对应一个选择控件,若用户选中该选择控件,则表示允许应用A获取手机的设备信息,即应用A具有获取设备信息的权限。位置信息对应三个选择控件,三个选择控件分别代表:本次使用允许、使用本应用时允许、禁止,用户在三个选择控件中选择一个控件时表示授予了该控件对应的权限。相机对应一个选择控件,若用户选中该选择控件,则表示允许应用A访问手机的相机,即应用A具有访问相机的权限。通讯录对应一个选择控件,若用户选中选择控件,则表示允许应用A访问手机的通讯录,即应用A具有访问通讯录的权限。通知信息对应一个选择控件,若用户选中该选择控件,则表示允许推送应用A的通知消息。这样,用户便可以在弹框中逐个设置应用A的权限。For example, as shown in (a) of FIG. 1, the mobile phone displays a home screen interface, and the home screen interface includes icons of multiple installed applications, such as clock, calendar, information, memo, calculator, application A, system Icons of applications such as settings, the application A is a short video application, and the application A is an application that has just been installed by the user but has not been started. The user can click on the icon of application A, and the mobile phone receives the user's click operation on the icon of application A. As a response to the click operation, as shown in (b) of FIG. 1 , the mobile phone switches from displaying the home screen interface to displaying the home page interface of application A, and a pop-up box pops up on the home page interface. The pop-up box includes the title "Applying A permission to manage this service requires the following five permissions". The pop-up box also includes the content of the five permissions, and one or more selection controls corresponding to the content of each permission. Indicates the authorization to the content corresponding to the selection control. The contents of the five permissions are: device information, location information, camera, address book, and notification messages. The device information may be call state information, network information, and the like. The device information corresponds to a selection control. If the user selects the selection control, it means that the application A is allowed to obtain the device information of the mobile phone, that is, the application A has the authority to obtain the device information. The location information corresponds to three selection controls, and the three selection controls represent: Allowed for this use, Allowed when using this application, and Prohibited. When the user selects a control among the three selection controls, it means that the corresponding permission of the control is granted. The camera corresponds to a selection control. If the user selects the selection control, it means that the application A is allowed to access the camera of the mobile phone, that is, the application A has the permission to access the camera. The address book corresponds to a selection control. If the user selects the selection control, it means that application A is allowed to access the address book of the mobile phone, that is, application A has the permission to access the address book. The notification information corresponds to a selection control. If the user selects the selection control, it means that the notification message of application A is allowed to be pushed. In this way, the user can set the permissions of application A one by one in the pop-up box.
再例如,当用户点击图1中的(a)所示的系统设置的图标时,手机接收用户对系统设置的图标的点击操作。作为对该点击操作的响应,如图2中的(a)所示,手机显示设置界面。设置界面包括手机已安装的所有应用的信息,如应用A的信息。当用户点击应用A的信息时,手机接收用户的点击操作,并响应于该点击操作,如图2中的(b)所示,手机显示应用A的权限界面。权限界面中包括五个权限的内容,以及每个权限的内容对应的一个或多个选择控件,选中选择控件便表示对该选择控件对应的内容授权。具体内容可以参考图1中的介绍,在此不再赘述。这样,用户便可以在应用A的权限界面中逐个设置应用A的权限。For another example, when the user clicks the icon of the system setting shown in (a) of FIG. 1 , the mobile phone receives the user's click operation on the icon of the system setting. As a response to the click operation, as shown in (a) of FIG. 2 , the mobile phone displays a setting interface. The setting interface includes information of all applications installed on the mobile phone, such as information of application A. When the user clicks the information of application A, the mobile phone receives the user's click operation, and in response to the click operation, as shown in (b) in FIG. 2 , the mobile phone displays the permission interface of application A. The permission interface includes the content of five permissions, and one or more selection controls corresponding to the content of each permission. Selecting the selection control indicates authorization of the content corresponding to the selection control. For specific content, reference may be made to the introduction in FIG. 1 , which will not be repeated here. In this way, the user can set the permissions of the application A one by one in the permission interface of the application A.
如图1和图2的示例中,用户需要逐个设置应用的权限,操作较繁琐。且由于设置权限时没有参考信息,用户面对大量的权限设置可能不知道如何选择,用户体验较差。In the examples shown in FIG. 1 and FIG. 2 , the user needs to set the permissions of the applications one by one, which is cumbersome. And because there is no reference information when setting permissions, users may not know how to choose from a large number of permission settings, and the user experience is poor.
以下提供一种优化的权限推荐方法,电子设备能够推荐权限设置模式,该权限设置模式为用户提供了该应用的权限设置的参考模板,使得用户设置应用的权限时更加方便、快捷,极大的提高了用户体验。The following provides an optimized permission recommendation method. The electronic device can recommend a permission setting mode. The permission setting mode provides the user with a reference template for the permission setting of the application, which makes it more convenient and quick for the user to set the permission of the application. Improved user experience.
需要说明的是,在本申请的一些实施例中,电子设备安装的多个应用中,只有部分应用支持权限设置模式的推荐功能。例如,用户点击率较高的应用,或者用户使用率较高的应用,支持权限设置模式的推荐。这些应用可以包括:微信应用、抖音应用、微博应用等主流应用。It should be noted that, in some embodiments of the present application, among the multiple applications installed on the electronic device, only some of the applications support the recommended function of the permission setting mode. For example, an application with a high user click rate or an application with a high user usage rate supports the recommendation in the permission setting mode. These applications may include mainstream applications such as WeChat applications, Douyin applications, and Weibo applications.
对于上述支持推荐功能的应用来说,可以通过多种实现方式来实现电子设备为应用推荐权限设置模式。作为一种可能的实现,可以默认设置为电子设备开机之后即可以为支持推荐功能的应用推荐权限设置模式。作为另一种可能的实现,考虑到用户对不同应用的推荐需求不同,可以由用户在电子设备的系统设置中设置开启哪些应用的推荐功能。应用的推荐功能被开启时,电子设备可以为该应用推荐权限设置模式。当然,还可以通过其他实现方式来实现为应用推荐权限设置模式,本申请实施例在此不做特殊限定。For the above-mentioned application supporting the recommendation function, the electronic device may implement a recommended permission setting mode for the application through various implementation manners. As a possible implementation, it can be set by default to a permission setting mode that can be recommended for applications that support the recommendation function after the electronic device is powered on. As another possible implementation, considering that the user has different recommendation requirements for different applications, the user may set the recommendation function of which applications to enable in the system settings of the electronic device. When the recommendation function of the application is turned on, the electronic device may recommend a permission setting mode for the application. Certainly, other implementation manners may also be used to implement the recommended permission setting mode for the application, which is not specifically limited in this embodiment of the present application.
另外,对于上述支持推荐功能的应用来说,一个应用可以对应至少一种权限设置模式,不同的应用对应的权限设置模式可以完全相同,可以完全不同,也可以部分相同。由于电子设备中的不同应用实现的功能可能不同可能类似,因此通常会配置功能类似的应用对应的权限设置模式完全相同,或者,部分相同,当然也可以完全不同。且配置功能不同的应用对应的权限设置模式完全不同,当然也可以有相同的部分。本申请实施例在此不做特殊限定。In addition, for the above-mentioned applications supporting the recommendation function, one application may correspond to at least one permission setting mode, and the permission setting modes corresponding to different applications may be completely the same, completely different, or partially the same. Since the functions implemented by different applications in the electronic device may be different or similar, the permission setting modes corresponding to the applications with similar functions are usually configured to be exactly the same, or partially the same, and of course completely different. And the permission setting modes corresponding to applications with different configuration functions are completely different, and of course they can have the same part. The embodiments of the present application are not specifically limited herein.
在本申请实施例中,电子设备显示目标界面,目标界面包括目标应用的多个权限和多个权限的设置状态,多个权限的设置状态为初始配置状态。电子设备在目标界面显示目标应用的至少两种权限设置模式,每种权限设置模式对应多个权限的一种配置方式,至少两种权限设置模式分别对应的多个权限的配置方式彼此不同。且电子设备在至少两种权限设置模式中确定目标设置模式,并根据目标设置模式,更新显示多个权限的设置状态。In the embodiment of the present application, the electronic device displays a target interface, and the target interface includes multiple permissions of the target application and setting states of the multiple permissions, and the setting state of the multiple permissions is the initial configuration state. The electronic device displays at least two permission setting modes of the target application on the target interface, each permission setting mode corresponds to a configuration mode of multiple permissions, and the configuration modes of multiple permissions corresponding to the at least two permission setting modes are different from each other. And the electronic device determines a target setting mode in at least two permission setting modes, and updates and displays the setting status of multiple permissions according to the target setting mode.
在本申请实施例中,权限推荐方法的流程具体可以包括以下步骤。In this embodiment of the present application, the flow of the authority recommendation method may specifically include the following steps.
1、在本申请的一些实施例中,手机可以显示目标应用的界面,该界面包括目标应用的初始权限配置(相当于目标应用的多个权限和多个权限的设置状态,多个权限的设置状态为初始配置状态)。1. In some embodiments of the present application, the mobile phone can display the interface of the target application, and the interface includes the initial permission configuration of the target application (equivalent to the multiple permissions of the target application and the setting status of multiple permissions, the setting of multiple permissions) state is the initial configuration state).
在一种场景中,手机可以在目标应用安装好之后,响应于用户对目标应用的打开操作,显示目标应用的界面,该界面可以是目标应用的主页界面。该目标应用的界面中包括弹框,该弹框中包括目标应用的初始权限配置。In one scenario, after the target application is installed, the mobile phone may display an interface of the target application in response to a user's opening operation of the target application, and the interface may be a home page interface of the target application. The interface of the target application includes a pop-up box, and the pop-up box includes the initial permission configuration of the target application.
在另一种场景中,手机响应于用户在系统设置应用中对目标应用的打开操作,显示目标应用的界面,该界面可以是目标应用的权限界面。该目标应用的界面中包括目标应用的初始权限设置。In another scenario, the mobile phone displays an interface of the target application in response to the user's operation of opening the target application in the system setting application, and the interface may be a permission interface of the target application. The interface of the target application includes initial permission settings of the target application.
可以理解的是,在本申请实施例中,上述目标应用的初始权限设置包括目标应用的一个或多个权限中每个权限的初始状态,每个权限的初始状态可以是开启或者关闭,本申请实施例在此不做限定。It can be understood that, in this embodiment of the present application, the initial permission setting of the above-mentioned target application includes the initial state of each permission in one or more permissions of the target application, and the initial state of each permission may be on or off. The embodiment is not limited here.
2、手机响应于用户对目标应用的界面的预设操作,显示至少一种权限设置模式,并在至少一种权限设置模式中确定目标设置模式。2. The mobile phone displays at least one permission setting mode in response to the user's preset operation on the interface of the target application, and determines the target setting mode in the at least one permission setting mode.
可以理解的是,在本申请实施例中,上述目标应用的每种权限设置模式对应目标应用的一个或多个权限中每个权限的设置状态。目标应用的一种权限设置模式用于表征用户对目标应用的一种设置偏好或者使用习惯,因此权限设置模式的名称通常配置为浅显易懂的名称,以便用户直观的明白权限设置模式的作用,从而选择自己偏好的设置模式。It can be understood that, in this embodiment of the present application, each permission setting mode of the above target application corresponds to the setting state of each permission in one or more permissions of the target application. A permission setting mode of the target application is used to represent a user's setting preference or usage habit of the target application. Therefore, the name of the permission setting mode is usually configured as an easy-to-understand name, so that the user can intuitively understand the function of the permission setting mode. Then select your preferred setting mode.
例如,目标应用为短视频类应用,该应用包括的权限设置模式为4种。这4中权限设置模式的名称分别是:只看不发、发布视频、视频聊天、位置隐匿。其中,名称为只看不发的权限设置模式用于指示用户仅观看短视频,没有发布短视频的习惯。该只看不发的权限设置模式对应的相机的权限是关闭,即该短视频类应用没有访问手机的相机的权限。名称为发布视频的权限设置模式用于指示用户具有拍摄、发布短视频的习惯。该发布视频的权限设置模式对应的相机的权限是开启,即该短视频类应用具有访问相机的权限。名称为视频聊天的权限设置模式用于指示用户有视频聊天、语音聊天的习惯。该视频聊天的权限设置模式对应的相机、麦克风的权限均为开启,即短视频类应用具有访问相机、麦克风的权限。名称为位置隐匿的权限设置模式用于指示用户在观看短视频时注重自身隐私,且不需要观看同城的短视频。该位置隐匿的权限设置模式对应的位置信息的权限是关闭,即不允许短视频类应用获取当前的位置信息。For example, the target application is a short video application, and the application includes four permission setting modes. The names of the 4 permission setting modes are: only watching but not posting, posting videos, video chatting, and location hiding. Among them, the permission setting mode with the name of only watching but not posting is used to instruct the user to only watch short videos and not have the habit of publishing short videos. The permission of the camera corresponding to the permission setting mode of only viewing and not sending is disabled, that is, the short video application does not have permission to access the camera of the mobile phone. The permission setting mode named Publishing Video is used to indicate that the user has the habit of shooting and publishing short videos. The permission of the camera corresponding to the permission setting mode for publishing videos is enabled, that is, the short video application has the permission to access the camera. The permission setting mode named video chat is used to indicate that the user has the habit of video chat and voice chat. The permissions of the camera and the microphone corresponding to the permission setting mode of the video chat are both enabled, that is, the short video application has the permission to access the camera and the microphone. The permission setting mode named location anonymity is used to instruct users to pay attention to their own privacy when watching short videos, and do not need to watch short videos in the same city. The permission of the location information corresponding to the permission setting mode of the location concealment is off, that is, the short video application is not allowed to obtain the current location information.
另外,上述预设操作可以是点击操作,例如单击操作、双击操作或连续预设次数的点击操作,长按操作,滑动操作等。本申请实施例在此不做限定。In addition, the above-mentioned preset operation may be a click operation, such as a single-click operation, a double-click operation, a click operation for a preset number of consecutive times, a long-press operation, a sliding operation, and the like. The embodiments of the present application are not limited herein.
可选的,在本申请实施例中,上述手机响应于用户对目标应用的界面的预设操作,显示至少一种权限设置模式,具体可以包括:目标应用的界面为目标应用的主页界面的场景中,弹框中除了包括上述目标应用的初始权限配置外,还可以包括推荐控件。目标应用的界面为目标应用的权限界面的场景中,权限界面中除了包括目标应用的初始权限设置外,还可以包括推荐控件。推荐控件用于控制目标应用的至少一种权限设置模式。响应于用户对推荐控件的点击操作,手机显示一选择列表,该选择列表中包括至少一种权限设置模式。Optionally, in this embodiment of the present application, the above-mentioned mobile phone displays at least one permission setting mode in response to a user's preset operation on the interface of the target application, which may specifically include: a scenario in which the interface of the target application is the home page interface of the target application. , in addition to the initial permission configuration of the target application, the pop-up box can also include recommended controls. In a scenario where the interface of the target application is the permission interface of the target application, the permission interface may include a recommendation control in addition to the initial permission setting of the target application. The recommended control is used to control at least one permission setting mode of the target application. In response to the user's click operation on the recommendation control, the mobile phone displays a selection list, and the selection list includes at least one permission setting mode.
进一步可选的,上述选择列表中还可以包括每种权限设置模式的描述信息,该权限设置模式的描述信息用于提示用户该权限设置模式所指示的用户习惯,以便于用户根据权限设置模式的描述信息更好的了解权限设置的参考信息,从而更加准确、快速的选择满足自身需求的权限设置模式。且该权限设置模式的描述信息可以是文本描述信息、图片描述信息、图文描述信息等。Further optionally, the above-mentioned selection list may also include description information of each permission setting mode, and the description information of the permission setting mode is used to prompt the user for the user habits indicated by the permission setting mode, so as to facilitate the user according to the permission setting mode. The description information can better understand the reference information of permission setting, so as to select the permission setting mode that meets your needs more accurately and quickly. And the description information of the permission setting mode may be text description information, picture description information, graphic description information, and the like.
需要说明的是,在本申请实施例中,上述是以手机在显示了目标应用的界面后,响应于对该界面的预设操作,显示至少一种权限设置模式为例进行说明的。当然,手机也可以直接在目标应用的界面中显示至少一种权限设置模式,无需用户的预设操作触发权限设置模式的显示。也就是说,手机在显示目标应用的主页界面或者权限界面时,该主页界面的弹框中或该权限界面中除了包括目标应用的初始权限配置外,还可以包括至少一种权限设置模式,以便于用户进行设置模式的选择。It should be noted that, in the embodiments of the present application, the above description is described by taking the mobile phone displaying at least one permission setting mode in response to a preset operation on the interface after displaying the interface of the target application as an example. Of course, the mobile phone can also directly display at least one permission setting mode in the interface of the target application, without triggering the display of the permission setting mode without the user's preset operation. That is to say, when the mobile phone displays the home page interface or permission interface of the target application, in addition to the initial permission configuration of the target application, the pop-up box of the home page interface or the permission interface may also include at least one permission setting mode, so as to It is up to the user to select the setting mode.
可选的,在本申请实施例中,上述手机在至少一种权限设置模式中确定目标设置模式,具体可以包括:如果至少一种权限设置模式为一种权限设置模式,则手机将该权限设置模式确定为目标设置模式。Optionally, in the embodiment of the present application, the above-mentioned mobile phone determines a target setting mode in at least one permission setting mode, which may specifically include: if at least one permission setting mode is a permission setting mode, the mobile phone sets the permission. The mode is determined as the target setting mode.
如果至少一种权限设置模式包括多种权限设置模式,则手机可以通过多种实现方式,在多种权限设置模式中确定目标设置模式。If the at least one permission setting mode includes multiple permission setting modes, the mobile phone can determine the target setting mode among the multiple permission setting modes through multiple implementations.
作为一种可能的实现,手机可以响应于用户在多种权限设置模式中的选择操作,将用户选中的权限设置模式确定为目标设置模式。As a possible implementation, the mobile phone may determine the permission setting mode selected by the user as the target setting mode in response to the user's selection operation in multiple permission setting modes.
作为另一种可能的实现,手机可以采用预设算法从多种权限设置模式中确定候选设置模式,并显示提示信息,该提示信息用于提示用户是否同意采用候选设置模式进行设置。之后,若手机在预设时间内接收到用户对提示信息的确定指令,则手机将该候选设置模式确定为目标设置模式。若手机在预设时间内未接收到用户对该提示信息的确定指令,则关闭提示信息,由用户在多种权限设置模式中选择目标设置模式。As another possible implementation, the mobile phone can use a preset algorithm to determine a candidate setting mode from multiple permission setting modes, and display prompt information for prompting the user whether to agree to use the candidate setting mode for setting. After that, if the mobile phone receives the user's determination instruction for the prompt information within the preset time, the mobile phone determines the candidate setting mode as the target setting mode. If the mobile phone does not receive the user's confirmation instruction for the prompt information within the preset time, the prompt information is closed, and the user selects the target setting mode from among various permission setting modes.
或者,该提示信息中可以包括用于提示将候选设置模式作为目标设置模式的确认控件,以及用于提示不将候选设置模式作为目标设置模式的取消控件。响应于用户对该确认控件的选择操作,手机将候选设置模式确定为目标设置模式。响应于用户对取消控件的选择操作,手机关闭提示信息,由用户在多种权限设置模式中选择目标设置模式。Alternatively, the prompt information may include a confirmation control for prompting to use the candidate setting mode as the target setting mode, and a cancel control for prompting not to use the candidate setting mode as the target setting mode. In response to the user's selection operation on the confirmation control, the mobile phone determines the candidate setting mode as the target setting mode. In response to the user's selection operation on the cancel control, the mobile phone closes the prompt information, and the user selects the target setting mode from among various permission setting modes.
可以理解的是,在本申请实施例中,上述手机采用预设算法从多种权限设置模式中确定候选设置模式,具体可以包括:手机将多种权限设置模式中的任意一种设置模式确定为候选设置模式。或者,手机可以预先采集使用该手机的用户对手机中安装的其他应用的权限设置行为,并根据用户对其他应用的权限设置行为分析该用户的设置习惯,进而基于该用户的设置习惯,从多种权限设置模式中确定出符合该用户的设置习惯的候选设置模式。其中,分析用户的设置习惯时可以是参考该手机中已安装的其他具有权限设置功能的应用,还可以参考与目标应用同类型的应用。例如,目标应用的类型为即时通讯应用时,可以参考手机中安装的除目标应用外的其他即时通讯应用的用户的权限设置行为。或者,手机可以向对应的服务器发送请求消息,以请求服务器从目标应用的多种权限设置模式中确定候选设置模式。服务器可以基于大数据中心存储的大批量用户对目标应用的权限设置行为,分析目标应用的主流设置习惯,进而将符合该主流设置习惯的设置模式确定为候选设置模式,将确定出来的候选设置模式发送至手机。当然,手机也可以通过其他方式从目标应用的多种权限设置模式中确定候选设置模式,本申请实施例在此对怎样确定候选设置模式不做限定。It can be understood that, in the embodiment of the present application, the above-mentioned mobile phone adopts a preset algorithm to determine a candidate setting mode from multiple permission setting modes, which may specifically include: the mobile phone determines any one of the multiple permission setting modes as a setting mode. Candidate setup mode. Alternatively, the mobile phone can pre-collect the permission setting behavior of the user who uses the mobile phone for other applications installed in the mobile phone, and analyze the user's setting habit according to the user's permission setting behavior for other applications, and then based on the user's setting habit, from multiple A candidate setting mode that conforms to the user's setting habits is determined from the various permission setting modes. Wherein, when analyzing the setting habits of the user, reference may be made to other applications that have a permission setting function installed in the mobile phone, and may also refer to applications of the same type as the target application. For example, when the type of the target application is an instant messaging application, reference may be made to the permission setting behavior of users of other instant messaging applications installed in the mobile phone except the target application. Alternatively, the mobile phone may send a request message to the corresponding server, so as to request the server to determine a candidate setting mode from multiple permission setting modes of the target application. The server can analyze the mainstream setting habit of the target application based on the permission setting behavior of a large number of users stored in the big data center, and then determine the setting mode that conforms to the mainstream setting habit as the candidate setting mode, and then determine the candidate setting mode. sent to the phone. Of course, the mobile phone can also determine the candidate setting mode from the multiple permission setting modes of the target application in other ways, and this embodiment of the present application does not limit how to determine the candidate setting mode.
当然,手机也可以采用其他方式在至少一种权限设置模式中确定目标设置模式,本申请实施例在此不做限定。Of course, the mobile phone may also use other methods to determine the target setting mode in at least one permission setting mode, which is not limited in this embodiment of the present application.
3、手机在确定出目标设置模式之后,可以获取与目标设置模式、目标应用对应的目标权限参数。3. After determining the target setting mode, the mobile phone can obtain target permission parameters corresponding to the target setting mode and the target application.
手机在确定出目标设置模式之后,可以在预先存储的应用、该应用的权限设置模式、该应用的一个或多个权限的设置状态三者的映射关系中进行查找,获取与目标应用、目标设置模式对应的目标权限参数,该目标权限参数中包括目标应用的一个或多个权限中每个权限的设置状态。After the mobile phone determines the target setting mode, it can search in the mapping relationship among the pre-stored application, the permission setting mode of the application, and the setting status of one or more permissions of the application, and obtain the target application and target settings. The target permission parameter corresponding to the mode, the target permission parameter includes the setting status of each permission in one or more permissions of the target application.
可以理解的是,在本申请实施例中,应用、该应用的权限设置模式、权限的设置状态这三者之间的映射关系可以是预先配置好存储在手机中的,还可以是由手机对应的后台服务器发送至手机中的。本申请实施例在此不做限定。其中,在预存的映射关系中,一个应用对应一种或多种权限设置模式,不同的应用对应的权限设置模式可以相同,也可以不同。且应用对应的一种或多种权限设置模式中,一种权限设置模式对应该应用的一种权限的设置状态。对于一个应用来说,不同的权限设置模式对应的权限的种类相同,不同的权限设置模式对应的权限的设置状态不同。It can be understood that, in this embodiment of the present application, the mapping relationship among the application, the permission setting mode of the application, and the permission setting state may be pre-configured and stored in the mobile phone, or may be corresponding to the mobile phone. The background server sent to the mobile phone. The embodiments of the present application are not limited herein. Among them, in the pre-stored mapping relationship, one application corresponds to one or more permission setting modes, and the permission setting modes corresponding to different applications may be the same or different. And among one or more permission setting modes corresponding to the application, one permission setting mode corresponds to the setting state of one permission of the application. For an application, the types of permissions corresponding to different permission setting modes are the same, and the setting states of permissions corresponding to different permission setting modes are different.
4、手机在获取到与目标设置模式、目标应用对应的目标权限参数之后,根据该目标权限参数对目标应用的权限进行一键设置。4. After acquiring the target permission parameter corresponding to the target setting mode and the target application, the mobile phone performs one-key setting for the permission of the target application according to the target permission parameter.
手机在获取到目标权限参数之后,可以根据该目标权限参数包括的目标应用的每个权限的设置状态,对目标应用的界面包括的目标应用的权限进行一键设置,即将目标应用的初始权限配置切换为目标权限参数中的权限的设置状态。当然手机在完成目标应用的权限的一键设置之后,用户可以直接采用该设置结果,或者,用户可以根据自己的需求对设置结果进行修改。After the mobile phone obtains the target permission parameters, it can set the permissions of the target application included in the interface of the target application according to the setting status of each permission of the target application included in the target permission parameter, that is, configure the initial permissions of the target application. Switch to the setting state of the permission in the target permission parameter. Of course, after the mobile phone completes the one-click setting of the permissions of the target application, the user can directly use the setting result, or the user can modify the setting result according to his own needs.
需要说明的是,在本申请实施例中,手机除了可以按照前述流程来执行权限推荐方法外,还可以在目标应用安装好后接收到用户对目标应用的启动操作的情况下,或者在接收到用户在系统设置应用中对目标应用的打开操作的情况下,先根据预存的应用和权限设置模式的映射关系,获取目标应用对应的至少一个权限设置模式。然后手机从目标应用对应的至少一个权限设置模式中确定目标设置模式,具体确定方法可以参考上述2中手机确定目标设置模式的相关描述,在此不再赘述。之后,手机可以根据预存的应用的权限设置模式和该应用的权限的设置状态的映射关系,获取目标设置模式对应的目标权限参数,目标权限参数中包括目标设置模式对应的目标应用的权限的设置状态,并根据该目标权限参数,对该目标应用的权限进行一键设置。当然,手机还可以通过其他方式对目标应用的权限进行一键设置,本申请实施例在此不再限定。It should be noted that, in this embodiment of the present application, in addition to executing the permission recommendation method according to the foregoing process, the mobile phone may also receive a user's start-up operation on the target application after the target application is installed, or after receiving In the case of opening the target application in the system setting application, the user first obtains at least one permission setting mode corresponding to the target application according to the pre-stored mapping relationship between the application and the permission setting mode. Then the mobile phone determines the target setting mode from at least one permission setting mode corresponding to the target application, and the specific determination method can refer to the relevant description of the mobile phone determining the target setting mode in the above 2, which is not repeated here. After that, the mobile phone can obtain the target permission parameter corresponding to the target setting mode according to the pre-stored mapping relationship between the permission setting mode of the application and the permission setting state of the application, and the target permission parameter includes the permission setting of the target application corresponding to the target setting mode status, and set the permissions of the target application with one click according to the target permission parameters. Of course, the mobile phone can also perform one-key setting of the permissions of the target application in other ways, which is not limited in this embodiment of the present application.
由上可知,本申请实施例中,手机能够在目标应用的界面推荐权限设置模式,这些权限设置模式为用户提供目标应用的权限设置的参考信息,使得用户能够更加方便、快速的完成权限的设置。当用户在目标应用的多种权限设置模式中选择目标设置模式时,电子设备进行该目标设置模式对应的所有的权限的一键设置,简化了用户的设置操作,极大的提高了用户体验。As can be seen from the above, in the embodiment of the present application, the mobile phone can recommend permission setting modes on the interface of the target application, and these permission setting modes provide the user with reference information for the permission setting of the target application, so that the user can complete the permission setting more conveniently and quickly. . When the user selects the target setting mode among the various permission setting modes of the target application, the electronic device performs one-key setting of all permissions corresponding to the target setting mode, which simplifies the user's setting operation and greatly improves the user experience.
以下结合具体示例对上述权限推荐的过程进行简单说明。The process of the above permission recommendation is briefly described below with reference to specific examples.
示例性的,假设应用A是短视频应用,应用A是用户刚安装好的应用。当用户点击应用A的图标时,手机接收用户对应用A的图标的点击操作。作为对该点击操作的响应,如图3中的(a)所示,手机显示应用A的主页界面。该主页界面包括一个弹框,弹框中包括标题“应用A权限管理本服务需申请如下五个权限。该弹框中还包括应用A的五个权限的初始权限配置,假设这五个权限的初始配置均为关闭。关于这五个权限的具体描述,可以参考图1中的相关介绍,在此不再赘述。弹框中还包括推荐控件。用户可以点击推荐控件,响应于用户对推荐控件的点击操作,如图3中的(b)所示,手机在主页界面上显示一个选择列表。该选择列表中包括四种权限设置模式。选择列表中,四种权限设置模式的名称分别是:只看不发、发布视频、视频聊天、位置隐匿。这四种权限设置模式的相关描述,可以参考前述的步骤2中的相关描述,在此不再赘述。当用户在这四种权限设置模式中点击名称为发布视频的权限设置模式时,手机确定目标设置模式为发布视频这一权限设置模式,并获取与应用A、发布视频的权限设置模式对应的目标权限参数。假设目标权限参数中的五个权限的设置状态包括:设备信息的权限为关闭、位置信息的权限为使用本应用时允许、相机的权限为开启、通讯录的权限为开启、通知消息的权限为关闭。如图3中的(c)所示,手机根据目标权限参数包括的五个权重中每个权限的设置状态对弹框中的五个权限进行一键设置,并关闭该选择列表。用户可以在一键设置的结果上进行修改或者不修改,或者用户可以重新点击推荐控件以重新选择目标设置模式。完成设置后,用户可以点击弹框中用于指示权限设置完成的确认控件,响应于用户对该确认控件的点击操作,如图3中的(d)所示,手机关闭主页界面中的弹框。Exemplarily, it is assumed that application A is a short video application, and application A is an application just installed by the user. When the user clicks the icon of application A, the mobile phone receives the user's click operation on the icon of application A. As a response to the click operation, as shown in (a) of FIG. 3 , the mobile phone displays the home page interface of application A. The home page interface includes a pop-up box with the title "App A permission management This service needs to apply for the following five permissions. The pop-up box also includes the initial permission configuration of the five permissions of application A. Assuming that the five permissions The initial configuration is all closed. Regarding the specific description of these five permissions, you can refer to the relevant introduction in Figure 1, and will not repeat them here. The pop-up box also includes a recommended control. The user can click on the recommended control, in response to the user to the recommended control As shown in (b) in Figure 3, the mobile phone displays a selection list on the home page interface. The selection list includes four permission setting modes. In the selection list, the names of the four permission setting modes are: Only watch but do not send, publish video, video chat, and position concealment. The relevant descriptions of these four permission setting modes can refer to the relevant descriptions in the aforementioned step 2, which will not be repeated here. When the user is in these four permission setting modes When you click on the permission setting mode whose name is to publish a video, the mobile phone determines that the target setting mode is the permission setting mode of publishing video, and obtains the target permission parameter corresponding to the permission setting mode of application A and publishing video. Assume that the target permission parameter The setting status of the five permissions includes: the permission of the device information is off, the permission of the location information is allowed when using this application, the permission of the camera is on, the permission of the address book is on, and the permission of the notification message is off. As shown in Figure 3 As shown in (c), the mobile phone performs one-key setting on the five permissions in the pop-up box according to the setting state of each permission in the five weights included in the target permission parameter, and closes the selection list. The user can set the Modify or not modify the result, or the user can re-click the recommended control to re-select the target setting mode. After completing the setting, the user can click the confirmation control in the pop-up box to indicate that the permission setting is completed, and respond to the user's confirmation of the control. Click operation, as shown in (d) in Figure 3, the mobile phone closes the pop-up box in the home page interface.
再例如,结合图3中的(b),如图4所示,上述选择列表中除了包括四种权限设置模式的名称,还在每个权限设置模式的名称的关联位置显示有文本描述信息,一个权限设置模式的文本描述信息用于提示用户该权限设置模式所指示的用户习惯。图4中以关联位置为权限设置模式的下方为例示出。其中,只看不发的权限设置模式的文本描述信息为:适合观看短视频、不发布短视频的用户使用,发布视频的权限设置模式的文本描述信息为:适合拍摄并发布短视频的用户使用,视频聊天的权限设置模式的文本描述信息为:适合视频聊天、语音聊天的用户使用,位置隐匿的权限设置模式的文本描述信息为:适合不看同城短视频的用户使用。可见,该权限设置模式对应的文本描述信息作为权限设置的参考信息,用户能够直观的了解每种权限设置模式的作用,从而快速选择中满足自身需求的权限设置模式。For another example, in conjunction with (b) in FIG. 3, as shown in FIG. 4, in addition to the names of the four rights setting modes included in the above-mentioned selection list, text description information is displayed in the associated position of the name of each rights setting mode, The text description information of a permission setting mode is used to prompt the user about the user habits indicated by the permission setting mode. In FIG. 4 , the lower part of the permission setting mode is taken as an example to show the associated location. Among them, the text description information of the permission setting mode of only viewing and not posting is: suitable for users who watch short videos and do not publish short videos, and the text description information of the permission setting mode for publishing videos is: suitable for users who shoot and publish short videos. , the text description information of the permission setting mode of video chat is: suitable for users of video chat and voice chat, and the text description information of the permission setting mode of location concealment is: suitable for users who do not watch short videos in the same city. It can be seen that the text description information corresponding to the permission setting mode is used as reference information for permission setting, and the user can intuitively understand the function of each permission setting mode, so as to quickly select the permission setting mode that meets their own needs.
在本申请的一些实施例中,手机可以在选择列表中每个权限设置模式的名称的关联位置显示图片描述信息。权限设置模式的图片描述信息可以包括用于指示该权限设置模式对应的部分权限的设置状态的图标。例如,用于指示开启的部分权限的图标和/或用于指示关闭的部分权限的图标。其中,用于指示关闭的权限的图标可以使用特殊标识来标记。如,特殊标识可以是权限对应的功能图标上画斜杠,或者,可以是任何形式的图形的标记。In some embodiments of the present application, the mobile phone may display picture description information at the associated position of the name of each permission setting mode in the selection list. The picture description information of the authority setting mode may include an icon used to indicate the setting state of the partial authority corresponding to the authority setting mode. For example, an icon for indicating an open partial authority and/or an icon for indicating a closed partial authority. Among them, the icon used to indicate the closed permission can be marked with a special identification. For example, the special identification may be a slash drawn on the function icon corresponding to the authority, or may be a graphic mark in any form.
再例如,结合图4,如图5所示,发布视频的权限设置模式对应的相机的权限为开启,通知消息的权限为关闭,该发布视频的权限设置模式的图片描述信息可以包括相机的图标和气泡框上划有斜杠的图标,该气泡框中包括文字通知消息。如果只看不发的权限设置模式对应的相机的权限为关闭,则如图5所示,只看不发的权限设置模式的图片描述信息包括相机上划有斜杠的图标。如果视频聊天的权限设置模式对应的相机的权限为开启,麦克风的权限也为开启,则如图5所示,视频聊天的权限设置模式的图片描述信息可以包括相机和麦克风的图标。如果位置隐匿的权限设置模式对应的位置信息的权限为关闭,则如图5所示,位置隐匿的权限设置模式的图片描述信息包括位置上划有斜杠的图标。For another example, with reference to FIG. 4, as shown in FIG. 5, the permission of the camera corresponding to the permission setting mode for publishing videos is on, and the permission for the notification message is off, and the picture description information of the permission setting mode for publishing videos may include the icon of the camera. and a slashed icon on a bubble that includes a text notification message. If the permission of the camera corresponding to the permission setting mode of only viewing and not sending is disabled, as shown in FIG. 5 , the picture description information of the permission setting mode of only viewing and not sending includes an icon with a slash on the camera. If the permission of the camera corresponding to the permission setting mode of the video chat is enabled and the permission of the microphone is also enabled, as shown in FIG. 5 , the picture description information of the permission setting mode of the video chat may include icons of the camera and the microphone. If the permission of the location information corresponding to the permission setting mode of location concealment is off, as shown in FIG. 5 , the picture description information of the permission setting mode of location concealment includes an icon with a slash on the location.
再例如,结合图3中的(a),如图6所示,上述弹框中除了可以包括标题、五个权限的初始权限配置外,还可以包括四种权限设置模式的名称。也就是说,弹框中未显示推荐控件,无需用户触发推荐控件以显示权限设置模式,而是直接在弹框中显示应用A的四种权限设置模式。图6的这种推荐方式,更加直观,用户可以直接选择目标设置模式,以便于手机根据目标设置模式进行应用A的所有权限的一键设置。For another example, in conjunction with (a) in FIG. 3 , as shown in FIG. 6 , in addition to the title and the initial rights configuration of five rights, the above-mentioned pop-up box can also include the names of four rights setting modes. That is to say, the recommendation control is not displayed in the pop-up box, and the user does not need to trigger the recommendation control to display the permission setting mode. Instead, the four permission setting modes of application A are directly displayed in the pop-up box. The recommended method in FIG. 6 is more intuitive, and the user can directly select the target setting mode, so that the mobile phone can perform one-key setting of all permissions of application A according to the target setting mode.
在本申请的一些实施例中,应用包括的多种权限中,部分权限可以是独立的一个权限。部分权限可以是一个树状结构的多层级的权限结构。该部分权限的名称可以作为母级权限,其可以包括第一层级的一个或多个子权限,第一层级的子权限又可以包括第二层级的一个或多个子权限,依次往下。In some embodiments of the present application, among the multiple permissions included in the application, some permissions may be an independent permission. Partial permissions can be a tree-structured multi-level permissions structure. The name of the partial permission can be used as the parent permission, which can include one or more sub-rights of the first level, and the sub-rights of the first level can include one or more sub-rights of the second level, and so on.
进一步可选的,手机在显示权限时,可以在该权限的关联位置处显示该权限对应的描述信息,以便于用户直观了解该权限的详细情况或作用。Further optionally, when displaying the permission, the mobile phone may display the description information corresponding to the permission at the associated position of the permission, so that the user can intuitively understand the details or function of the permission.
示例性的,当用户在手机的系统应用中点击应用B的信息时,响应于用户的点击操作,手机显示应用B的权限界面,权限界面中包括应用B的权限的初始权限配置。Exemplarily, when the user clicks the information of application B in the system application of the mobile phone, in response to the user's click operation, the mobile phone displays the permission interface of application B, and the permission interface includes the initial permission configuration of the permission of application B.
例如,如图7中的(a)所示,权限界面中可以包括应用B的权限的名称,以及每个权限的名称对应的选择控件,选中选择控件便表示对该选择控件对应的内容授权。应用B的权限的名称分别是:存储、电话、位置信息、相机、麦克风、通讯录、悬浮窗。其中,电话作为一个母级权限,其可以包括下一层级的两个子权限,这两个子权限的名称分别是:设备信息、其他电话权限。且,在设备信息的下方显示有对应的描述信息:读取设备通话状态和识别码。在其他电话权限的下方显示有对应的描述信息:使用呼叫转移或拨打电话,在通讯录的下方显示有对应的描述信息:新建/修改/删除联系人。假设应用B的权限的初始权限配置均为开启,则如图7中的(a)所示,每个权限对应的选择控件均被开启。For example, as shown in (a) of FIG. 7 , the permission interface may include the name of the permission of application B, and the selection control corresponding to the name of each permission. Selecting the selection control indicates authorization of the content corresponding to the selection control. The names of the permissions of application B are: storage, phone, location information, camera, microphone, address book, and floating window. Among them, as a parent permission, phone may include two sub-rights at the next level, and the names of the two sub-rights are: device information and other phone permissions. In addition, corresponding description information is displayed below the device information: read the call status and identification code of the device. Corresponding description information is displayed below other phone permissions: use call transfer or make a call, and corresponding description information is displayed below the address book: create/modify/delete contacts. Assuming that the initial permission configurations of the permissions of the application B are all enabled, as shown in (a) of FIG. 7 , the selection controls corresponding to each permission are enabled.
权限界面的预设位置上还显示有推荐控件。当用户点击该推荐控件时,手机响应于用户对该推荐控件的点击操作,如图7中的(b)所示,手机在权限界面上显示一选择列表。该选择列表中包括三种权限设置模式。这三种权限设置模式的名称分别是:共享位置、喜欢拍摄、酷爱聊天。当用户在三种权限设置模式中选择酷爱聊天的权限设置模式作为目标设置模式时,手机可以确定与目标设置模式、应用B对应的目标权限参数。若目标权限参数中的权限的设置状态包括:存储的权限为开启、电话的权限为开启(电话下的所有子权限为开启)、位置信息的权限为关闭、相机、麦克风的权限为开启、通讯录、悬浮窗的权限为关闭。如图7中的(c)所示,手机根据目标权限参数中的每个权限的设置状态对权限界面中的所有权限进行一键设置,并关闭选择列表。Recommendation controls are also displayed on the preset positions of the permission interface. When the user clicks on the recommended control, the mobile phone displays a selection list on the permission interface in response to the user's click operation on the recommended control, as shown in (b) of FIG. 7 . The selection list includes three permission setting modes. The names of the three permission setting modes are: share location, like to shoot, and like to chat. When the user selects the permission setting mode of Kuaichat as the target setting mode among the three permission setting modes, the mobile phone can determine the target permission parameters corresponding to the target setting mode and application B. If the setting status of the permission in the target permission parameter includes: the storage permission is on, the phone permission is on (all sub-permissions under the phone are on), the location information permission is off, the camera and microphone permission is on, the communication permission is on The permission of recording and floating window is closed. As shown in (c) of FIG. 7 , the mobile phone performs one-key setting for all permissions in the permission interface according to the setting status of each permission in the target permission parameter, and closes the selection list.
在本申请实施例中,前述手机在目标应用的界面(主页界面或者权限界面)为用户推荐的至少一种权限设置模式需要预先生成,存储在手机中,以便于用户设置目标应用的权限时,能够为用户推荐权限设置模式,达到为用户提供参考的目的,从而提升用户体验。In the embodiment of the present application, the aforementioned at least one permission setting mode recommended by the user on the interface of the target application (homepage interface or permission interface) needs to be pre-generated and stored in the mobile phone, so that when the user sets the permission of the target application, It can recommend the permission setting mode for the user to achieve the purpose of providing reference for the user, thereby improving the user experience.
作为一种可能的实现,上述目标应用的至少一种权限设置模式可以是手机预先生成的。As a possible implementation, at least one permission setting mode of the above target application may be pre-generated by the mobile phone.
示例性的,手机可以在显示目标应用的界面之前,显示应用功能设置界面。响应于用户在应用功能设置界面的输入操作,建立映射关系。其中,映射关系包括应用的名称、该应用的至少一种权限设置模式的名称、每个权限设置模式对应的该应用的权限设置状态的关系。且,权限设置模式的名称通常是根据对应的权限设置状态命名的能够反映用户设置习惯的名称。Exemplarily, the mobile phone may display the application function setting interface before displaying the interface of the target application. The mapping relationship is established in response to the user's input operation on the application function setting interface. The mapping relationship includes the name of the application, the name of at least one permission setting mode of the application, and the relationship of the permission setting state of the application corresponding to each permission setting mode. Moreover, the name of the permission setting mode is usually a name named according to the corresponding permission setting state that can reflect the user's setting habits.
作为另一种可能的实现,上述目标应用的至少一种权限设置模式可以是手机对应的服务器预先生成,并发送给手机的。As another possible implementation, at least one permission setting mode of the target application may be pre-generated by a server corresponding to the mobile phone and sent to the mobile phone.
示例性的,可以由开发人员在服务器中预先建立映射关系,并将其发送至手机。Exemplarily, the developer can pre-establish the mapping relationship in the server and send it to the mobile phone.
示例性的,服务器获取目标应用的行为数据集合,行为数据集合中包括多条权限设置行为数据,权限设置行为数据包括用户对目标应用的多个权限的设置结果。服务器采用预存的分类算法对多条权限设置行为数据进行分类,得到多个权限行为集合。服务器根据多个权限行为集合,确定目标应用的权限设置模式,以及每种权限设置模式对应的权限参数,权限参数包括多个权限的设置状态信息。服务器向电子设备发送确定出的目标应用的权限设置模式,以及每种权限设置模式对应的权限参数。Exemplarily, the server obtains a behavior data set of the target application, the behavior data set includes multiple pieces of permission setting behavior data, and the permission setting behavior data includes the results of setting multiple permissions of the target application by the user. The server uses a pre-stored classification algorithm to classify multiple pieces of permission setting behavior data to obtain multiple permission behavior sets. The server determines the permission setting mode of the target application and the permission parameters corresponding to each permission setting mode according to the multiple permission behavior sets, and the permission parameter includes the setting status information of the multiple permissions. The server sends the determined permission setting mode of the target application and permission parameters corresponding to each permission setting mode to the electronic device.
可见,本申请实施例提供的权限推荐方法可以应用于包括有手机和服务器的系统架构中。请参考图8A,为本申请实施例提供的一种可以应用上述方法的系统架构的简化示意图。如图8A所示,该系统架构至少可以包括:手机801和服务器802。其中,手机801和服务器802通过有线通讯方式或者无线通讯方式通信。It can be seen that the authority recommendation method provided by the embodiment of the present application can be applied to a system architecture including a mobile phone and a server. Please refer to FIG. 8A , which is a simplified schematic diagram of a system architecture to which the above method can be applied, provided by an embodiment of the present application. As shown in FIG. 8A , the system architecture may at least include: a
手机801中可包括一个或多个应用,该应用可以是系统应用,也可以是第三方应用。且,手机801,用于检测用户对手机801上的应用的权限设置行为,并向服务器802发送应用与权限设置行为的对应关系。The
服务器802,用于接收手机801发送的应用与权限设置行为的对应关系,并将该对应关系进行存储。服务器802,还用于分析存储的数据,以得到应用的至少一种权限设置模式,并将确定的应用的至少一种权限设置模式,推送至手机801。The
手机801,用于接收服务器发送的应用的至少一种权限设置模式,并响应于用户对该应用的权限设置模式的查看操作,显示该应用的至少一种权限设置模式,从而为用户设置该应用的权限提供参考信息。The
在本申请实施例中,结合图8A,请参考图8B,为本申请实施例提供的一种手机和服务器的结构示意图。In the embodiment of the present application, with reference to FIG. 8A , please refer to FIG. 8B , which is a schematic structural diagram of a mobile phone and a server according to an embodiment of the present application.
如图8B所示,手机可以包括用户设置模块、设置权限模块、方案推荐模块、本地数据模块和设定方案模块。服务器可以包括云端数据模块、数据筛选模块、识别模块、模式生成模块、权限推送模块。As shown in FIG. 8B , the mobile phone may include a user setting module, a setting authority module, a scheme recommendation module, a local data module and a setting scheme module. The server may include a cloud data module, a data screening module, an identification module, a pattern generation module, and a permission push module.
用户设置模块,用于响应于用户在手机上对应用的权限设置操作,获取用户对该应用的权限设置行为,并向服务器发送该应用与权限设置行为的对应关系。其中,用户对应用的权限设置行为指的是用户对该应用的每个权限是如何设置的,例如,开启哪些权限,关闭哪些权限等。The user setting module is used to obtain the user's permission setting behavior of the application in response to the user's permission setting operation on the application on the mobile phone, and send the corresponding relationship between the application and the permission setting behavior to the server. The user's permission setting behavior for the application refers to how the user sets each permission of the application, for example, which permissions are enabled, which permissions are disabled, and the like.
可以理解的是,在本申请实施例中,每个手机中的用户设置模块均可以按照上述方式来采集权限设置行为,并上报至服务器。这样使得服务器能够接收到针对同一应用的不同用户的权限设置行为。It can be understood that, in the embodiment of the present application, the user setting module in each mobile phone can collect the permission setting behavior in the above-mentioned manner, and report it to the server. This enables the server to receive permission setting behaviors for different users of the same application.
服务器,在接收到用户设置模块发送的应用与权限设置行为的对应关系之后,将应用与权限设置行为的对应关系存储在云端数据模块。The server, after receiving the corresponding relationship between the application and the permission setting behavior sent by the user setting module, stores the corresponding relationship between the application and the permission setting behavior in the cloud data module.
由于使用手机的用户多种多样,有可能是老人,有可能是小孩,有可能是成年人,不同的人群对权限设置的了解程度不同,使得云端数据模块中存储的用户对应用的权限设置行为等数据中仅有部分数据具有参考意义。因此,数据筛选模块,用于获取云端数据模块存储的用户对应用的权限设置行为等数据,并从中筛选出有效数据。Due to the variety of users who use mobile phones, they may be the elderly, children, or adults. Different groups of people have different understanding of permission settings, which makes the users stored in the cloud data module to set the permissions of the application. Only some of the data are of reference significance. Therefore, the data filtering module is used to obtain data such as the user's permission setting behavior for the application stored in the cloud data module, and filter out valid data from it.
作为一种可能的实现,云端数据模块中还存储有使用手机的用户的年龄,数据筛选模块可以将预设年龄段的用户的权限设置行为作为有效数据。该预设年龄段指的是具有识别能力的年龄段,可以由开发人员预先在服务器中进行设置。As a possible implementation, the cloud data module also stores the age of the user using the mobile phone, and the data screening module can use the permission setting behavior of the user in the preset age group as valid data. The preset age group refers to an age group with recognition ability, which can be set in the server in advance by the developer.
作为另一种可能的实现,由于应用通常会有初始权限配置,即应用的权限的默认配置,因此数据筛选模块可以将除应用的默认配置外,用户对该应用的权限设置行为作为有效数据。As another possible implementation, since an application usually has an initial permission configuration, that is, the default configuration of the application's permission, the data filtering module can use the user's permission setting behavior for the application as valid data in addition to the default configuration of the application.
当然,数据筛选模块还可以通过其他方式进行有效数据的筛选,本申请实施例在此不做限定。Of course, the data screening module may also perform screening of valid data in other ways, which is not limited in this embodiment of the present application.
识别模块,用于在数据筛选模块确定出有效数据之后,分析每个应用的有效数据,并对每个应用的有效数据进行分类,得到多个权限行为集合,即得到多种具有差异化的权限场景。一个权限行为集合用于指示一种权限场景。本申请实施例中以识别模块对任意一个应用,如目标应用的有效数据进行分类为例进行说明。The identification module is used to analyze the valid data of each application after the data screening module determines the valid data, and classify the valid data of each application to obtain multiple permission behavior sets, that is, to obtain a variety of differentiated permissions Scenes. A permission behavior set is used to indicate a permission scenario. In the embodiment of the present application, the identification module classifies the valid data of any application, such as the target application, as an example for description.
作为一种可能的实现,识别模块可以将目标应用的有效数据中,相同的权限设置行为划分为一类,从而得到多个权限行为集合。As a possible implementation, the identification module may classify the same permission setting behaviors in the valid data of the target application into one category, thereby obtaining multiple permission behavior sets.
作为另一种可能的实现,识别模块可以将目标应用的有效数据中,相似度较高,即差异度较小的权限设置行为划分为一类,从而得到多个权限行为集合。As another possible implementation, the identification module may classify the permission setting behaviors with high similarity, that is, small differences, into one category in the valid data of the target application, so as to obtain multiple permission behavior sets.
示例性的,识别模块可以将目标应用的有效数据中,任意两个权限设置行为进行比较,识别出两个权限设置行为中,设置相同的权限的数量在目标应用包括的权限总数中的占比,并将权限设置的重合比例大于预设值的权限设置行为划分为一类,得到多个权限行为集合。Exemplarily, the identification module may compare any two permission setting actions in the valid data of the target application, and identify the ratio of the number of the same permissions set in the two permission setting actions to the total number of permissions included in the target application. , and divide the permission setting behaviors whose coincidence ratio of permission settings is greater than the preset value into one category to obtain multiple permission behavior sets.
示例性的,由于对于目标应用来说,不同的权限设置行为均是对同一些权限的设置行为,可以预先配置每个权限设置行为包括的权限的名称是按照相同的顺序排列的,只是不同的权限设置行为中,权限的授权与否不同。也就是说,如果目标应用包括十个权限,那么目标应用的有效数据中,每个权限设置行为中,这是个权限的名称的排列顺序是相同的。该情况下,识别模块可以将前N个权限的设置相同的权限设置行为划分为一类,得到多个权限行为集合。N大于预设值且小于目标应用的权限总数。例如,假设目标应用的权限总数为十个,预设值为六个,那么识别模块可以分别将前六个、前七个、前八个、前九个、十个权限的设置相同的权限设置行为划分为一类。Exemplarily, since for the target application, different permission setting behaviors are all setting behaviors for the same permissions, it can be pre-configured that the names of the permissions included in each permission setting behavior are arranged in the same order, but different. In the permission setting behavior, whether the permission is authorized or not is different. That is to say, if the target application includes ten permissions, in the effective data of the target application, in each permission setting behavior, the order of the names of the permissions is the same. In this case, the identification module may divide the first N permissions with the same permission setting behaviors into one category, and obtain multiple permission behavior sets. N is greater than a preset value and less than the total number of permissions of the target application. For example, assuming that the total number of permissions of the target application is ten, and the default value is six, then the recognition module can set the same permissions for the first six, the first seven, the first eight, the first nine and the ten permissions respectively. Behaviors are divided into categories.
示例性的,识别模块可以先获取目标应用包括的所有权限中的敏感权限,并按照获取的敏感权限对目标应用的有效数据进行分类。例如,识别模块可以将每个敏感权限的相同设置的权限设置行为划分为一类,得到多个权限行为集合。其中,敏感权限与目标应用的类型有关。例如,如果目标应用为聊天类应用,那么敏感权限可以包括相机、通讯录、位置信息。假设目标应用为拍摄类应用,那么敏感权限可能为相机等。Exemplarily, the identification module may first obtain sensitive permissions among all permissions included in the target application, and classify the valid data of the target application according to the obtained sensitive permissions. For example, the identification module can classify the permission setting behaviors of the same settings of each sensitive permission into one category, and obtain multiple permission behavior sets. Among them, sensitive permissions are related to the type of target application. For example, if the target application is a chat application, sensitive permissions can include camera, contacts, and location information. Assuming that the target application is a shooting application, the sensitive permission may be the camera, etc.
示例性的,识别模块可以将目标应用的有效数据中的每个权限设置行为输入至分类模型中,得到每个权限设置行为对应的参考值。然后,手机可以将位于同一预设范围中的参考值对应的权限设置行为划分为一类,得到多个权限行为集合。Exemplarily, the identification module may input each permission setting behavior in the valid data of the target application into the classification model to obtain a reference value corresponding to each permission setting behavior. Then, the mobile phone can classify the permission setting behaviors corresponding to the reference values located in the same preset range into one category to obtain multiple permission behavior sets.
可以理解的是,在本申请实施例中,上述分类模型是预先训练得到并存储在服务器中的可以获取大量的采样数据,来训练得到该分类模型。其中,采样数据可以是大量的权限设置行为的数据。且,该分类模型可以是依据需求的变化周期性进行更改的。It can be understood that, in the embodiment of the present application, the above classification model is obtained by pre-training and stored in the server, and a large amount of sampling data can be obtained to train the classification model. Wherein, the sampled data may be a large amount of data of permission setting behaviors. Moreover, the classification model can be periodically changed according to changes in demand.
当然,识别模块也可以采用其他方式对目标应用的有效数据进行分类,本申请实施例在此不做限定。Of course, the identification module may also use other methods to classify the valid data of the target application, which is not limited in this embodiment of the present application.
模式生成模块,用于在识别模块完成目标应用的有效的权限设置行为的分类之后,可以计算每个权限行为集合包括的权限设置行为的数量在目标应用的有效权限设置行为的总数中的占比。模式生成模块,还用于将占比大于预设占比值的权限行为集合确定为目标集合,并分析每个目标集合包括的权限的设置情况,来制定对应的权限设置模式。The pattern generation module is used to calculate the proportion of the number of permission setting behaviors included in each permission behavior set in the total number of effective permission setting behaviors of the target application after the identification module completes the classification of the effective permission setting behaviors of the target application. . The pattern generation module is further configured to determine the permission behavior set whose proportion is greater than the preset proportion value as the target set, and analyze the setting status of the permissions included in each target set to formulate the corresponding permission setting mode.
需要说明的是,在本申请实施例中,上述过程是服务器基于目标应用的一定群体的用户的行为来确定出目标应用的权限设置模式。当然,模式生成模块可以直接依据云端数据模块中存储的数据来生成目标应用的权限设置模式。例如,模式生成模块可以从云端数据模块中获取用户对同一手机上的所有应用的权限设置行为,并获取与目标应用的类型相同的同类型应用的权限设置行为,且基于这些权限设置行为体现的设置习惯来定制目标应用的权限设置模式的名称,以及每个权限设置模式对应的目标应用的所有权限的设置状态。It should be noted that, in the embodiment of the present application, the above process is that the server determines the permission setting mode of the target application based on the behavior of a certain group of users of the target application. Of course, the schema generation module can directly generate the permission setting schema of the target application according to the data stored in the cloud data module. For example, the schema generation module can obtain the user's permission setting behavior for all applications on the same mobile phone from the cloud data module, and obtain the permission setting behavior of the same type of application as the target application, and based on these permission setting behaviors Set the habit to customize the name of the permission setting mode of the target application, and the setting status of all permissions of the target application corresponding to each permission setting mode.
模式生成模块生成目标应用的权限设置模式之后,可以将目标应用、目标应用的权限设置模式、每种权限设置模式的权限的设置状态之间的映射关系存储在云端数据模块中。After the mode generation module generates the permission setting mode of the target application, the mapping relationship between the target application, the permission setting mode of the target application, and the permission setting state of each permission setting mode can be stored in the cloud data module.
当手机需要进行升级时,权限推送模块可以从云端数据模块中获取目标应用、目标应用的权限设置模式、每种权限设置模式的权限的设置状态之间的映射关系,并将其发送至手机。When the mobile phone needs to be upgraded, the permission push module can obtain the mapping relationship between the target application, the permission setting mode of the target application, and the permission setting status of each permission setting mode from the cloud data module, and send it to the mobile phone.
手机接收到目标应用、目标应用的权限设置模式、每种权限设置模式的权限的设置状态之间的映射关系之后,可以将其存储在本地数据模块中。After the mobile phone receives the mapping relationship among the target application, the permission setting mode of the target application, and the permission setting state of each permission setting mode, it can store it in the local data module.
当手机升级完成后显示目标应用的界面(主页界面或者权限界面)的情况下,设置权限模块可以用于获取目标应用包括的初始权限配置并进行显示。When the interface of the target application (the home page interface or the permission interface) is displayed after the mobile phone is upgraded, the permission setting module can be used to obtain and display the initial permission configuration included in the target application.
方案推荐模块,用于从本地数据中获取目标应用对应的权限设置模式,并响应于用户对模式的查看操作,显示目标应用的权限设置模式。The solution recommendation module is configured to obtain the permission setting mode corresponding to the target application from the local data, and display the permission setting mode of the target application in response to the user's viewing operation on the mode.
设定方案模块,响应于用户在目标应用的权限设置模式中的选择操作,确定出目标设置模式,并获取与目标应用、目标设置模式对应的目标权限参数,且按照目标权限参数包括的权限的设置状态对设置权限模块中的权限进行一键设置。The setting scheme module, in response to the user's selection operation in the authority setting mode of the target application, determines the target setting mode, and obtains the target authority parameter corresponding to the target application and the target setting mode, and according to the target authority parameter includes the authority. The setting status is one-click setting for the permissions in the setting permissions module.
需要说明的是,在本申请实施例中,服务器向手机发送目标应用的权限设置模式,手机在目标应用的界面中显示了这些权限设置模型,用户在这些权限设置模式中选择了目标设置模式,手机依据目标设置模式对应的目标权限参数对目标应用的权限进行一键设置后,用户可以在此基础上进行自己的设置。在该情况下,手机可以向服务器反馈用户选择了目标设置模式之后,对其对应的目标权限参数进行的更改情况,以便服务器获取用户的实际使用情况,并根据该实际使用情况更新分类模型,且可以根据实际使用情况更新权限设置模式对应的权限的设置状态,以使得权限设置模式对应的权限的设置状态更加合理。It should be noted that, in the embodiment of the present application, the server sends the permission setting modes of the target application to the mobile phone, the mobile phone displays these permission setting models in the interface of the target application, and the user selects the target setting mode in these permission setting modes, After the mobile phone sets the permissions of the target application with one key according to the target permission parameters corresponding to the target setting mode, the user can make their own settings on this basis. In this case, the mobile phone can feed back to the server the changes made to the corresponding target permission parameters after the user selects the target setting mode, so that the server can obtain the actual usage of the user and update the classification model according to the actual usage, and The setting status of the authority corresponding to the authority setting mode can be updated according to the actual usage, so that the setting status of the authority corresponding to the authority setting mode is more reasonable.
在本申请实施例中,以电子设备为手机为例。请参考图9A,为本申请实施例提供的一种手机的结构示意图。上述实施例中的方法可以在具有以下硬件结构的手机中实现。In the embodiments of the present application, the electronic device is a mobile phone as an example. Please refer to FIG. 9A , which is a schematic structural diagram of a mobile phone according to an embodiment of the present application. The methods in the above embodiments can be implemented in a mobile phone having the following hardware structure.
如图9A所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,射频模块150,通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及SIM卡接口等。其中传感器模块可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 9A, the mobile phone 100 may include a
本申请实施例示意的结构并不构成对手机100的限定。可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。The structures illustrated in the embodiments of the present application do not constitute a limitation on the mobile phone 100 . More or fewer components than shown may be included, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以是集成在同一个处理器中。The
手机100的无线通信功能可以通过天线模块1,天线模块2射频模块150,通信模块160,调制解调器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be realized by the
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 100 realizes the display function through the GPU, the
显示屏194用于显示图像,视频等。显示屏包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏,N为大于1的正整数。
仍如图9A所示,手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏以及应用处理器等实现拍摄功能。Still as shown in FIG. 9A , the mobile phone 100 can realize the shooting function through the ISP, the
ISP用于处理摄像头反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头,N为大于1的正整数。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the mobile phone 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
触摸传感器180K,也称“触控面板”。可设置于显示屏。用于检测作用于其上或附近的触摸操作。可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型,并通过显示屏提供相应的视觉输出。Touch sensor 180K, also called "touch panel". Can be set on the display. Used to detect touches on or near it. The detected touch operation can be passed to the application processor to determine the type of touch event and provide corresponding visual output through the display screen.
上述手机100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的安卓(Android)系统为例,示例性说明手机100的软件结构。The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to illustrate the software structure of the mobile phone 100 as an example.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android Runtime)和系统服务,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android Runtime) and system services, and a kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图9B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 9B , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions.
如图9B所示,应用程序框架层可以包括活动管理器、窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等,本申请实施例对此不做任何限制。As shown in FIG. 9B , the application framework layer may include an activity manager, a window manager, a content provider, a view system, a resource manager, a notification manager, etc., which are not limited in this embodiment of the present application.
活动管理器(Activity Manager):用于管理每个应用的生命周期。应用通常以Activity的形式运行在操作系统中。对于每一个Activity,在活动管理器中都会有一个与之对应的应用记录(ActivityRecord),这个ActivityRecord记录了该应用的Activity的状态。活动管理器可以利用这个ActivityRecord作为标识,调度应用的Activity进程。Activity Manager (Activity Manager): used to manage the life cycle of each application. Applications usually run in the operating system in the form of Activity. For each Activity, there will be a corresponding application record (ActivityRecord) in the activity manager, and this ActivityRecord records the state of the application's Activity. The activity manager can use this ActivityRecord as an identifier to schedule the Activity process of the application.
窗口管理器(WindowManagerService):用于管理在屏幕上使用的图形用户界面(graphical user interface,GUI)资源,具体可用于:获取显示屏大小、窗口的创建和销毁、窗口的显示与隐藏、窗口的布局、焦点的管理以及输入法和壁纸管理等。Window Manager (WindowManagerService): used to manage the graphical user interface (GUI) resources used on the screen, which can be used for: obtaining the display screen size, creating and destroying windows, displaying and hiding windows, Layout, focus management, input method and wallpaper management, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
应用程序框架层以下的系统库和内核层等可称为底层系统,底层系统中包括用于提供显示服务的底层显示系统,例如,底层显示系统包括内核层中的显示驱动以及系统库中的表面管理器(surface manager)等。并且,本申请中的底层系统还包括用于识别柔性屏幕物理形态变化的识别模块,该识别模块可独立设置在底层显示系统内,也可设置在系统库和/或内核层。The system library and kernel layer below the application framework layer can be called the underlying system. The underlying system includes the underlying display system for providing display services. For example, the underlying display system includes the display driver in the kernel layer and the surface in the system library. Manager (surface manager) and so on. In addition, the underlying system in the present application further includes an identification module for identifying changes in the physical shape of the flexible screen, and the identification module can be independently set in the underlying display system, or can be set in the system library and/or the kernel layer.
如图9B所示,Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。As shown in Fig. 9B, the Android Runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
如图9B所示,系统库可以包括多个功能模块。例如:表面管理器,媒体库(MediaLibraries),三维图形处理库(例如:OpenGL ES),SGL等。As shown in FIG. 9B, the system library may include a plurality of functional modules. For example: surface manager, media library (MediaLibraries), 3D graphics processing library (eg: OpenGL ES), SGL, etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
SGL是2D绘图的绘图引擎。SGL is a drawing engine for 2D drawing.
如图9B所示,内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动、识别模块等。As shown in FIG. 9B, the kernel layer is a layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, sensor driver, recognition module, etc.
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned electronic devices and the like include corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, functional modules of the electronic device and the like may be divided according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在本申请实施例中,请参考图9C,为本申请实施例提供的一种服务器的结构示意图。上述实施例中的方法可以在具有以下硬件结构的服务器中实现。In the embodiment of the present application, please refer to FIG. 9C , which is a schematic structural diagram of a server provided by the embodiment of the present application. The methods in the above embodiments can be implemented in a server having the following hardware structure.
如图9C所示,服务器可以包括处理器21,存储器22、通信接口23、总线24。处理器21,存储器22以及通信接口23之间可以通过总线24连接。As shown in FIG. 9C , the server may include a
处理器21是服务器的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器21可以是一个CPU,也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The
作为一种实施例,处理器21可以包括一个或多个CPU,例如图2中所示的CPU 0和CPU 1。As an example, the
作为一种实施例,服务器可以包括多个处理器,例如图2中所示的处理器21和处理器25。这些处理器中的每一个可以是一个单核处理器,也可以是一个多核处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机指令)的处理核。As an example, a server may include multiple processors, such as
存储器22可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The
一种可能的实现方式中,存储器22可以独立于处理器21存在,存储器22可以通过总线24与处理器21相连接,用于存储指令或者程序代码。处理器21调用并执行存储器22中存储的指令或程序代码时,能够实现本申请下述实施例提供的权限推荐方法。In a possible implementation manner, the
另一种可能的实现方式中,存储器22也可以和处理器21集成在一起。In another possible implementation manner, the
通信接口23,用于服务器与其他设备,如电子设备通过通信网络连接,通信网络可以是以太网,无线接入网(radio access network,RAN),无线局域网(wireless localarea networks,WLAN)等。通信接口23可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The
总线24,可以是工业标准体系结构(industry standard architecture,ISA)总线、外部设备互连(peripheral component interconnect,PCI)总线或扩展工业标准体系结构(extended industry standard architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 2, but it does not mean that there is only one bus or one type of bus.
需要指出的是,图2中示出的结构并不构成对该服务器的限定,除图2所示部件之外,该服务器可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 2 does not constitute a limitation on the server. In addition to the components shown in FIG. 2 , the server may include more or less components than those shown in the figure, or combine some components , or a different component arrangement.
可以理解的是,上述服务器等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。It can be understood that, in order to implement the above-mentioned functions, the above-mentioned servers and the like include corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
本申请实施例可以根据上述方法示例对上述服务器等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, functional modules may be divided for the above server and the like according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111165987.9A CN115017522B (en) | 2021-09-30 | 2021-09-30 | Permission recommendation method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111165987.9A CN115017522B (en) | 2021-09-30 | 2021-09-30 | Permission recommendation method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115017522A true CN115017522A (en) | 2022-09-06 |
| CN115017522B CN115017522B (en) | 2023-09-29 |
Family
ID=83064486
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111165987.9A Active CN115017522B (en) | 2021-09-30 | 2021-09-30 | Permission recommendation method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115017522B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117251085A (en) * | 2023-11-20 | 2023-12-19 | 北京小米移动软件有限公司 | Positioning method and device of equipment application, electronic equipment and storage medium |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102238276A (en) * | 2011-04-06 | 2011-11-09 | 宇龙计算机通信科技(深圳)有限公司 | Application program access priority setting method, system and mobile terminal |
| US20130326499A1 (en) * | 2012-05-31 | 2013-12-05 | Microsoft Corporation | Automatically installing and removing recommended applications |
| CN104751071A (en) * | 2015-03-16 | 2015-07-01 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| WO2018108050A1 (en) * | 2016-12-14 | 2018-06-21 | 北京奇虎科技有限公司 | Intelligent terminal and application program right control method and apparatus therefor, and server |
| CN108427886A (en) * | 2018-01-25 | 2018-08-21 | 上海掌门科技有限公司 | A kind of application program access rights setting method, system, equipment and readable medium |
| CN108629178A (en) * | 2018-04-27 | 2018-10-09 | 北京小米移动软件有限公司 | The resource access rights configuration method and device of application program |
| CN109325364A (en) * | 2018-09-28 | 2019-02-12 | 联想(北京)有限公司 | A kind of authority configuring method and electronic equipment |
| CN109407917A (en) * | 2018-09-21 | 2019-03-01 | 维沃移动通信有限公司 | A method and device for setting application state |
| CN111027030A (en) * | 2019-11-26 | 2020-04-17 | 维沃移动通信有限公司 | Permission setting method and terminal device |
| CN111382418A (en) * | 2020-03-06 | 2020-07-07 | Oppo广东移动通信有限公司 | Application rights management method, device, storage medium and electronic device |
| CN111966258A (en) * | 2020-08-28 | 2020-11-20 | 维沃移动通信有限公司 | Authorization setting method, device and electronic device |
| CN112016080A (en) * | 2020-08-28 | 2020-12-01 | 维沃移动通信(杭州)有限公司 | Application authority management method and device and electronic equipment |
| CN112287330A (en) * | 2020-11-23 | 2021-01-29 | 腾讯科技(北京)有限公司 | Permission configuration method and device of application program, computer equipment and storage medium |
| CN112818377A (en) * | 2019-11-18 | 2021-05-18 | 广东美云智数科技有限公司 | Authority data recommendation method, authority setting method, authority data recommendation system, authority setting system, electronic device and medium |
-
2021
- 2021-09-30 CN CN202111165987.9A patent/CN115017522B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102238276A (en) * | 2011-04-06 | 2011-11-09 | 宇龙计算机通信科技(深圳)有限公司 | Application program access priority setting method, system and mobile terminal |
| US20130326499A1 (en) * | 2012-05-31 | 2013-12-05 | Microsoft Corporation | Automatically installing and removing recommended applications |
| CN104751071A (en) * | 2015-03-16 | 2015-07-01 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| WO2018108050A1 (en) * | 2016-12-14 | 2018-06-21 | 北京奇虎科技有限公司 | Intelligent terminal and application program right control method and apparatus therefor, and server |
| CN108427886A (en) * | 2018-01-25 | 2018-08-21 | 上海掌门科技有限公司 | A kind of application program access rights setting method, system, equipment and readable medium |
| CN108629178A (en) * | 2018-04-27 | 2018-10-09 | 北京小米移动软件有限公司 | The resource access rights configuration method and device of application program |
| CN109407917A (en) * | 2018-09-21 | 2019-03-01 | 维沃移动通信有限公司 | A method and device for setting application state |
| CN109325364A (en) * | 2018-09-28 | 2019-02-12 | 联想(北京)有限公司 | A kind of authority configuring method and electronic equipment |
| CN112818377A (en) * | 2019-11-18 | 2021-05-18 | 广东美云智数科技有限公司 | Authority data recommendation method, authority setting method, authority data recommendation system, authority setting system, electronic device and medium |
| CN111027030A (en) * | 2019-11-26 | 2020-04-17 | 维沃移动通信有限公司 | Permission setting method and terminal device |
| CN111382418A (en) * | 2020-03-06 | 2020-07-07 | Oppo广东移动通信有限公司 | Application rights management method, device, storage medium and electronic device |
| CN111966258A (en) * | 2020-08-28 | 2020-11-20 | 维沃移动通信有限公司 | Authorization setting method, device and electronic device |
| CN112016080A (en) * | 2020-08-28 | 2020-12-01 | 维沃移动通信(杭州)有限公司 | Application authority management method and device and electronic equipment |
| CN112287330A (en) * | 2020-11-23 | 2021-01-29 | 腾讯科技(北京)有限公司 | Permission configuration method and device of application program, computer equipment and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117251085A (en) * | 2023-11-20 | 2023-12-19 | 北京小米移动软件有限公司 | Positioning method and device of equipment application, electronic equipment and storage medium |
| CN117251085B (en) * | 2023-11-20 | 2024-03-19 | 北京小米移动软件有限公司 | Positioning method and device of equipment application, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115017522B (en) | 2023-09-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11748054B2 (en) | Screen projection method and terminal device | |
| KR102730751B1 (en) | Electronic device supporting recommendation and download of avatar | |
| CN112230909B (en) | Method, device, equipment and storage medium for binding data of applet | |
| US11074116B2 (en) | Direct input from a remote device | |
| RU2677595C2 (en) | Application interface presentation method and apparatus and electronic device | |
| WO2021159922A1 (en) | Card display method, electronic device, and computer-readable storage medium | |
| CN111399789A (en) | Interface layout method, device and system | |
| US20170011557A1 (en) | Method for providing augmented reality and virtual reality and electronic device using the same | |
| JP7246502B2 (en) | Mini-program creation method, device, terminal and program | |
| CN111309418A (en) | Control display method and electronic equipment | |
| US11144173B2 (en) | Electronic device and method for providing object recommendation | |
| KR20230011349A (en) | Trackpad on the back part of the device | |
| WO2022228138A1 (en) | Service card processing method, and electronic device | |
| CN107908381A (en) | A kind of double screen image processing method, mobile terminal and storage medium | |
| CN114095610B (en) | A notification message processing method and computer-readable storage medium | |
| CN115017522B (en) | Permission recommendation method and electronic equipment | |
| US12008211B2 (en) | Prompt method and terminal device | |
| EP4468690A1 (en) | Window display method and related apparatus | |
| CN116414495A (en) | Method and electronic device for displaying card | |
| CN115277940B (en) | Notification message prompting method and device and computer readable storage medium | |
| CN115794021A (en) | Audio content display method and electronic device | |
| HK40037419A (en) | Data binding method and apparatus of mini program, device, and storage medium | |
| WO2024250770A1 (en) | Wallpaper generation method, readable medium, and electronic device | |
| CN114385060A (en) | A display method and electronic device | |
| CN119204971A (en) | Project data processing method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |