[go: up one dir, main page]

CN111027030B - Permission setting method and terminal device - Google Patents

Permission setting method and terminal device Download PDF

Info

Publication number
CN111027030B
CN111027030B CN201911176737.8A CN201911176737A CN111027030B CN 111027030 B CN111027030 B CN 111027030B CN 201911176737 A CN201911176737 A CN 201911176737A CN 111027030 B CN111027030 B CN 111027030B
Authority
CN
China
Prior art keywords
target
permission
function
input
authority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911176737.8A
Other languages
Chinese (zh)
Other versions
CN111027030A (en
Inventor
薛博文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911176737.8A priority Critical patent/CN111027030B/en
Publication of CN111027030A publication Critical patent/CN111027030A/en
Application granted granted Critical
Publication of CN111027030B publication Critical patent/CN111027030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例提供一种权限设置方法及终端设备,应用于通信技术领域,以解决现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。该方法包括:接收第一输入;响应于上述第一输入,在目标应用程序的第一界面上显示功能窗口,该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,N为正整数;接收针对目标标识的第二输入,该目标标识为上述N个标识中的至少一个;响应于上述第二输入,设置上述目标标识对应的目标功能的权限。本发明实施例应用于设置应用程序权限的场景中。

Figure 201911176737

Embodiments of the present invention provide a permission setting method and a terminal device, which are applied in the field of communication technologies to solve the problems of complicated steps and low efficiency in the existing application permission setting process. The method includes: receiving a first input; in response to the above-mentioned first input, displaying a function window on the first interface of the target application, where N identifiers are displayed in the function window, one identifier corresponds to a function of the target application, N is a positive integer; receiving a second input for a target identifier, where the target identifier is at least one of the above N identifiers; in response to the above-mentioned second input, setting the authority of the target function corresponding to the above-mentioned target identifier. The embodiments of the present invention are applied in the scenario of setting application permissions.

Figure 201911176737

Description

权限设置方法及终端设备Permission setting method and terminal equipment

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种权限设置方法及终端设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a permission setting method and a terminal device.

背景技术Background technique

目前,终端设备中通常都安装有大量的应用程序(application,APP),从而使得终端设备成为人们生活中不可或缺的工具,并为用户日常生活的各个方面带来了极大便利。At present, a large number of application programs (applications, APPs) are usually installed in the terminal device, so that the terminal device becomes an indispensable tool in people's life, and brings great convenience to various aspects of the user's daily life.

用户想要正常使用终端设备中安装的APP各种功能,则需要获取对应的权限。通常,在APP的安装过程中会默认开启所有权限,从而导致终端设备面临隐私泄露的风险。为了降低隐私泄露的风险,用户可以在“设置”APP中的“权限设置”选项中,按照用户的使用需求调整权限,来达到保护隐私的目的。If the user wants to use various functions of the APP installed in the terminal device normally, he needs to obtain the corresponding permissions. Usually, all permissions are enabled by default during the APP installation process, which leads to the risk of privacy leakage on the terminal device. In order to reduce the risk of privacy leakage, users can adjust the permissions according to the user's needs in the "Permission Settings" option in the "Settings" APP to achieve the purpose of protecting privacy.

然而,当用户想要调整权限时,需要先退出该APP,再进入“设置”APP中的“权限设置”选项,对该APP的每个权限单独进行开启或限制,使得整个权限设置过程步骤繁琐、效率低。However, when the user wants to adjust the permissions, he needs to exit the APP first, and then enter the "Permission Settings" option in the "Settings" APP to enable or restrict each permission of the APP separately, which makes the entire permission setting process cumbersome. ,low efficiency.

发明内容Contents of the invention

本发明实施例提供一种权限设置方法及终端设备,以解决现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。Embodiments of the present invention provide a permission setting method and a terminal device to solve the problems of cumbersome steps and low efficiency existing in the existing application program permission setting process.

为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiment of the present invention is implemented as follows:

第一方面,本发明实施例提供一种权限设置方法,该方法包括:In a first aspect, an embodiment of the present invention provides a permission setting method, the method including:

接收第一输入;receiving a first input;

响应于上述第一输入,在目标应用程序的第一界面上显示功能窗口,该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,N为正整数;In response to the above-mentioned first input, a function window is displayed on the first interface of the target application program, N logos are displayed in the function window, one logo corresponds to a function of the target application program, and N is a positive integer;

接收针对目标标识的第二输入,该目标标识为上述N个标识中的至少一个;receiving a second input for a target identifier, where the target identifier is at least one of the above N identifiers;

响应于上述第二输入,设置上述目标标识对应的目标功能的权限。In response to the above-mentioned second input, the permission of the target function corresponding to the above-mentioned target identifier is set.

第二方面,本发明实施例还提供了一种终端设备,该终端设备包括:In a second aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:

接收模块,用于接收第一输入;a receiving module, configured to receive a first input;

显示模块,用于响应于上述接收模块接收到的第一输入,在目标应用程序的第一界面上显示功能窗口,该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,N为正整数;A display module, configured to display a function window on the first interface of the target application program in response to the first input received by the receiving module, wherein N logos are displayed in the function window, and one logo corresponds to a function of the target application program , N is a positive integer;

上述接收模块,还用于接收针对目标标识的第二输入,该目标标识为上述N个标识中的至少一个;The above-mentioned receiving module is further configured to receive a second input for a target identifier, where the target identifier is at least one of the above-mentioned N identifiers;

设置模块,用于响应于上述接收模块接收到的第二输入,设置上述目标标识对应的目标功能的权限。A setting module, configured to, in response to the second input received by the receiving module, set the permission of the target function corresponding to the target identifier.

第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的权限设置方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the In one aspect, the steps of the permission setting method.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的权限设置方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the permission setting method as described in the first aspect are implemented .

在本发明实施例中,终端设备接收到第一输入之后,会在目标应用程序的第一界面上显示功能窗口,由于该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,因此,当终端设备接收到针对目标标识(N个标识中的至少一个)的第二输入之后,终端设备可以直接设置该目标标识对应的目标功能的权限。如此,用户可以通过功能窗口直接对目标功能的权限进行设置,从而可以使得用户无需退出该目标应用程序,且无需对每个权限单独进行设置,进而避免了现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。In the embodiment of the present invention, after receiving the first input, the terminal device will display a function window on the first interface of the target application program. Since there are N logos displayed in the function window, one logo corresponds to one of the target application programs. Therefore, after the terminal device receives the second input for the target identifier (at least one of the N identifiers), the terminal device can directly set the authority of the target function corresponding to the target identifier. In this way, the user can directly set the permission of the target function through the function window, so that the user does not need to exit the target application program, and does not need to set each permission separately, thus avoiding the troublesome problems in the existing application permission setting process. Existing steps are loaded down with trivial details, the problem of low efficiency.

附图说明Description of drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;Fig. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种权限设置方法流程示意图;FIG. 2 is a schematic flowchart of a permission setting method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种权限设置方法所应用的界面的示意图之一;FIG. 3 is one of the schematic diagrams of an interface applied by a permission setting method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种权限设置方法所应用的界面的示意图之二;FIG. 4 is the second schematic diagram of an interface applied by a permission setting method provided by an embodiment of the present invention;

图5为本发明实施例提供的一种权限设置方法所应用的界面的示意图之三;FIG. 5 is the third schematic diagram of an interface applied by a permission setting method provided by an embodiment of the present invention;

图6为本发明实施例提供的一种权限设置方法所应用的界面的示意图之四;FIG. 6 is the fourth schematic diagram of an interface applied by a permission setting method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种权限设置方法所应用的界面的示意图之五;FIG. 7 is the fifth schematic diagram of an interface applied by a permission setting method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种终端设备的结构示意图之一;FIG. 8 is one of the schematic structural diagrams of a terminal device provided by an embodiment of the present invention;

图9为本发明实施例提供的一种终端设备的结构示意图之二。FIG. 9 is a second structural schematic diagram of a terminal device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the embodiments of the present invention.

需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that "/" in this article means or, for example, A/B can mean A or B; "and/or" in this article is just an association relationship describing associated objects, indicating that there can be three A relationship, for example, A and/or B, can mean: A exists alone, A and B exist simultaneously, and B exists alone.

需要说明的是,本文中的“多个”是指两个或多于两个。It should be noted that "plurality" herein refers to two or more than two.

需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used for example, illustration or illustration. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明实施例中,采用了“第一”、“第二”等字样对功能或作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。例如,第一输入和第二输入是用于区别不同的输入,而不是用于描述输入的特定顺序。It should be noted that, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to describe the same or similar items with basically the same function or effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order. For example, the first input and the second input are used to distinguish different inputs, not to describe a specific order of the inputs.

本发明实施例提供的权限设置方法的执行主体可以为上述的终端设备(包括移动终端设备和非移动终端设备),也可以为该终端设备中能够实现该权限设置方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的权限设置方法进行示例性的说明。The execution subject of the permission setting method provided by the embodiment of the present invention may be the above-mentioned terminal equipment (including mobile terminal equipment and non-mobile terminal equipment), or it may be a functional module and/or function capable of implementing the permission setting method in the terminal equipment The entity can be specifically determined according to actual usage requirements, and is not limited in this embodiment of the present invention. The following uses a terminal device as an example to illustrate the permission setting method provided by the embodiment of the present invention.

本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a mobile terminal device, or may be a non-mobile terminal device. The mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.

本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a terminal device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的权限设置方法所应用的软件环境。The following uses the Android operating system as an example to introduce the software environment to which the permission setting method provided by the embodiment of the present invention is applied.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1 , the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer and a kernel layer (specifically, the Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Wherein, the application program layer includes various application programs (including system application programs and third-party application programs) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application program framework layer is the application program framework, and developers can develop some applications based on the application program framework layer while complying with the development principles of the application program framework layer.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的权限设置方法的软件程序,从而使得该权限设置方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的权限设置方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the permission setting method provided in the embodiment of the present invention based on the system architecture of the above-mentioned Android operating system shown in Figure 1, so that the permission The setting method can be run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the permission setting method provided by the embodiment of the present invention by running the software program in the Android operating system.

下面结合图2所示的权限设置方法流程图对本发明实施例的权限设置方法进行说明,图2为本发明实施例提供的一种权限设置方法流程示意图,包括步骤201至步骤204:The permission setting method of the embodiment of the present invention will be described below in conjunction with the flow chart of the permission setting method shown in FIG. 2 . FIG. 2 is a schematic flow chart of a permission setting method provided by the embodiment of the present invention, including steps 201 to 204:

步骤201:终端设备接收第一输入。Step 201: The terminal device receives a first input.

在本发明实施例中,上述的第一输入可以为用户对显示屏的输入,也可以为用户对目标控件的输入,还可以为用户的语音输入等任意可能的输入,本发明实施例对此不作限定。其中,该目标控件用于触发终端设备显示下述的功能窗口。In the embodiment of the present invention, the above-mentioned first input may be the user's input to the display screen, may also be the user's input to the target control, and may also be any possible input such as the user's voice input. Not limited. Wherein, the target control is used to trigger the terminal device to display the following function window.

示例性的,上述的用户对显示屏的输入具体包括:用户对显示屏的点击输入,或者,用户在显示屏上的滑动输入,或者,用户在显示屏上的拖动输入,或者,用户对显示屏的其他可行性输入,具体的可以根据实际使用需求确定,本发明实施例不作限定。Exemplarily, the above-mentioned user's input to the display screen specifically includes: the user's click input on the display screen, or the user's sliding input on the display screen, or the user's dragging input on the display screen, or the user's input on the display screen. Other feasible inputs of the display screen can be specifically determined according to actual usage requirements, which are not limited in the embodiment of the present invention.

示例性的,上述的语音输入可以为用户说出“开启视频聊天功能”或“显示功能窗口”等任意可能的语音输入。Exemplarily, the above-mentioned voice input may be any possible voice input such as "starting the video chat function" or "displaying the function window" by the user.

示例性的,本发明实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等;上述的点击输入还可以为长按输入或短按输入。本文中的滑动输入可以为向任意方向的滑动输入,例如向上滑动、向下滑动、向左滑动或者向右滑动等,且上述滑动输入的滑动轨迹可以是直线,也可以是曲线,具体的可以根据实际需求设定。本文中的拖动输入可以为向任意方向的拖动输入,例如向顺时针方向拖动、向逆时针方向拖动、向上拖动、向下拖动、向左拖动或者向右拖动等,具体的可以根据实际需求设定。Exemplarily, the click input in the embodiment of the present invention may be single-click input, double-click input, or any number of click inputs, etc.; the above-mentioned click input may also be long-press input or short-press input. The sliding input in this article can be sliding input in any direction, such as sliding up, sliding down, sliding to the left or sliding to the right, etc., and the sliding track of the above sliding input can be a straight line or a curve. Specifically, Set according to actual needs. The drag input in this article can be a drag input in any direction, such as dragging clockwise, dragging counterclockwise, dragging up, dragging down, dragging to the left or dragging to the right, etc. , which can be set according to actual needs.

在一种示例中,上述的第一输入可以为启动目标应用程序的输入。In an example, the above-mentioned first input may be an input for starting a target application program.

步骤202:响应于上述第一输入,终端设备在目标应用程序的第一界面上显示功能窗口。Step 202: In response to the above-mentioned first input, the terminal device displays a function window on the first interface of the target application program.

在本发明实施例中,上述功能窗口中显示有N个标识,一个标识对应上述目标应用程序的一个功能,N为正整数。In the embodiment of the present invention, N signs are displayed in the function window, one sign corresponds to one function of the target application program, and N is a positive integer.

在本发明实施例中,一个功能可以对应一个权限,也可以对应多个权限。In the embodiment of the present invention, one function may correspond to one permission, or may correspond to multiple permissions.

在本发明实施例中,上述的功能窗口可以悬浮显示在第一界面上。示例性的,当用户在第一界面上拖动该功能窗口时,该功能窗口可以随着用户的拖动操作在第一界面上移动。In the embodiment of the present invention, the above-mentioned function window may be suspended and displayed on the first interface. Exemplarily, when the user drags the function window on the first interface, the function window may move on the first interface along with the user's dragging operation.

在本发明实施例中,上述的功能窗口可以以预设透明度叠加显示在该第一界面中,例如,如果预设透明度记为T1,那么T1的取值范围可以为0%<T1<100%。此外,该功能窗口还可以高亮度或低亮度显示在第一界面上,本发明实施例对此不做限定。In the embodiment of the present invention, the above-mentioned functional windows can be superimposed and displayed on the first interface with a preset transparency. For example, if the preset transparency is recorded as T1, then the value range of T1 can be 0%<T1<100% . In addition, the function window can also be displayed on the first interface with high brightness or low brightness, which is not limited in this embodiment of the present invention.

示例性的,终端设备可以在功能窗口显示一个标识,也可以显示多个标识。其中,当终端设备在该功能窗口显示多个标识时,可以在该功能窗口中显示该多个标识中的所有或部分标识。示例性的,当终端设备无法在功能窗口中显示全部标识,则终端设备可以在功能窗口中分页显示上述目标应用程序的所有功能对应的标识,也可以显示上述目标应用程序中的部分功能对应的标识,隐藏其他功能对应的标识。Exemplarily, the terminal device may display one logo or multiple logos in the function window. Wherein, when the terminal device displays a plurality of identifications in the function window, all or part of the identifications in the function window may be displayed in the function window. Exemplarily, when the terminal device cannot display all the logos in the function window, the terminal device can display the logos corresponding to all the functions of the above-mentioned target application in pages in the function window, or display the logos corresponding to some functions in the above-mentioned target application. Logo, which hides the corresponding logos of other functions.

示例性的,上述的第一界面可以为目标应用程序的主界面,也可以为目标应用程序的任一界面,本发明对此不作限定。Exemplarily, the above-mentioned first interface may be the main interface of the target application program, or any interface of the target application program, which is not limited in the present invention.

示例性的,终端设备可以在显示上述的第一界面的同时显示功能窗口,也可以在显示该第一界面之后显示该功能窗口,本发明实施例对此不作限定。Exemplarily, the terminal device may display the function window while displaying the above-mentioned first interface, or may display the function window after displaying the first interface, which is not limited in this embodiment of the present invention.

在一种示例中,终端设备在接收到第一输入后,显示第一界面的同时显示功能窗口。In an example, after receiving the first input, the terminal device displays the function window while displaying the first interface.

举例说明,以第一输入为启动目标应用程序的输入,上述的第一界面可以为目标应用程序的主界面为例。如图3所示,终端设备的屏幕(即图3中的31)上显示有4个APP图标,分别为“购物”APP图标、“短信”APP图标、“时钟”APP图标和“聊天”APP图标。当用户想要启动“聊天”APP(即上述的目标应用程序)时,可以点击“聊天”APP图标(即上述的第一输入)。此时,如图4所示,终端设备的屏幕31上显示“聊天”APP的主界面(即上述的第一界面,如图4中的32)的同时,显示一个功能窗口(即图4中的33)。其中,该“聊天”APP的主界面32上显示有用户1至用户5的聊天消息,该功能窗口33中显示有4个功能选项(即上述的标识),分别为:“视频聊天”功能选项、“添加好友”功能选项、“定位功能”功能选项和“自定义”功能选项。从而用户可以在该功能窗口33中选择想要设置的功能选项对应功能的权限。For example, taking the first input as the input for starting the target application, the above-mentioned first interface may be the main interface of the target application as an example. As shown in Figure 3, four APP icons are displayed on the screen of the terminal device (that is, 31 in Figure 3), which are respectively the "shopping" APP icon, the "short message" APP icon, the "clock" APP icon and the "chat" APP icon. icon. When the user wants to start the "chat" APP (ie, the above-mentioned target application program), he can click on the "chat" APP icon (ie, the above-mentioned first input). Now, as shown in Figure 4, while the main interface of the "chat" APP (i.e. the above-mentioned first interface, such as 32 in Figure 4) is displayed on the screen 31 of the terminal device, a function window (i.e. 33). Among them, the main interface 32 of the "chat" APP displays the chat messages of users 1 to 5, and the function window 33 displays 4 function options (ie, the above-mentioned logo), which are respectively: "Video Chat" function options , "add friend" function option, "location function" function option and "custom" function option. Thus, the user can select the permission of the function corresponding to the function option to be set in the function window 33 .

在另一种示例中,终端设备可以在显示目标应用程序的第一界面的情况下,接收第一输入。具体的,第一输入可以为用户对目标控件的输入。该目标控件可以为已有控件也可以为新增控件。In another example, the terminal device may receive the first input while displaying the first interface of the target application program. Specifically, the first input may be a user's input to the target control. The target control can be an existing control or a new control.

举例说明,以目标控件为已有悬浮球控件为例,如图5所示,终端设备的屏幕31上显示“聊天”APP的主界面32(即上述的第一界面),该主界面32上显示有用户1至用户5的聊天消息以及已有悬浮球控件(即图5中的41)。若用户想要查看功能窗口,则可以双击悬浮球控件41(即上述的第一输入)。此时,如图4所示,“聊天”APP的主界面32上显示功能窗口33,该功能窗口33中显示有4个功能选项(即上述的标识),分别为:“视频聊天”功能选项、“添加好友”功能选项、“定位功能”功能选项和“自定义”功能选项。从而用户可以在该功能窗口33中选择想要设置的功能选项对应功能的权限。For example, taking the target control as an existing floating ball control as an example, as shown in FIG. The chat messages of users 1 to 5 and the existing floating ball control (that is, 41 in FIG. 5 ) are displayed. If the user wants to view the function window, he can double-click the floating ball control 41 (that is, the above-mentioned first input). Now, as shown in Figure 4, a function window 33 is displayed on the main interface 32 of the "chat" APP, and 4 function options (i.e. the above-mentioned logos) are displayed in the function window 33, which are respectively: "video chat" function option , "add friend" function option, "location function" function option and "custom" function option. Thus, the user can select the permission of the function corresponding to the function option to be set in the function window 33 .

需要说明的是,用户可以通过“自定义”功能选项增加自定义的功能。It should be noted that users can add customized functions through the "custom" function option.

可选的,在本发明实施例中,终端设备可以按照使用频率对N个标识进行排序,可以以使用频率从高到低的顺序在功能窗口中显示该N个标识,或者,可以以使用频率从低到高的顺序在功能窗口中显示该N个标识,本发明实施例对此不作限定。Optionally, in this embodiment of the present invention, the terminal device may sort the N identifiers according to the frequency of use, and may display the N identifiers in the function window in descending order of the frequency of use, or may sort the N identifiers according to the frequency of use The N signs are displayed in the function window in order from low to high, which is not limited in this embodiment of the present invention.

步骤203:终端设备接收针对目标标识的第二输入。Step 203: The terminal device receives a second input for the target identifier.

在本发明实施例中,上述目标标识为上述N个标识中的至少一个。In this embodiment of the present invention, the above-mentioned target identifier is at least one of the above-mentioned N identifiers.

示例性的,上述的针对目标标识的第二输入可以包括用户对目标标识的输入,还可以为用户的语音输入,本发明实施例对此不作限定。Exemplarily, the above-mentioned second input for the target identifier may include the user's input for the target identifier, and may also be the user's voice input, which is not limited in this embodiment of the present invention.

示例性的,上述的用户对目标标识的输入具体可以包括:用户对目标标识的点击输入,或者,用户在目标标识上的滑动输入,或者,用户对目标标识的其他可行性输入,具体的可以根据实际使用需求确定,本发明实施例不作限定。Exemplarily, the above user's input on the target identifier may specifically include: the user's click input on the target identifier, or the user's sliding input on the target identifier, or other feasible input by the user on the target identifier, which may specifically It is determined according to actual usage requirements, and is not limited in the embodiments of the present invention.

示例性的,上述的用户的语音输入可以为用户说出“开启视频聊天功能”或“开启定位功能”等任意可能的语音输入。Exemplarily, the above-mentioned user's voice input may be any possible voice input such as the user saying "start the video chat function" or "start the positioning function".

步骤204:响应于上述第二输入,终端设备设置上述目标标识对应的目标功能的权限。Step 204: In response to the above-mentioned second input, the terminal device sets the permission of the target function corresponding to the above-mentioned target identifier.

在本发明实施例中,终端设备设置上述目标标识对应的目标功能的权限:可以为终端设备开启该目标标识对应的目标功能的权限,也可以为终端设备关闭(限制)该目标标识对应的目标功能的权限,还可以为终端设备增加或删减该目标功能对应的权限,具体的可以根据实际需求设定,本发明实施例对此不作限定。In the embodiment of the present invention, the terminal device sets the authority of the target function corresponding to the target identifier: the authority of the target function corresponding to the target identifier can be enabled for the terminal device, and the target function corresponding to the target identifier can also be disabled (restricted) for the terminal device. The authority of the function can also add or delete the authority corresponding to the target function for the terminal device, which can be specifically set according to actual needs, which is not limited in the embodiment of the present invention.

在本发明实施例中,上述的目标标识可以为一个,也可以为多个。In this embodiment of the present invention, there may be one or more than one target identifier.

需要说明的是,当目标标识为多个时,终端设备可以在开启该多个目标标识中的部分目标标识对应的目标功能的权限的同时,关闭该多个目标标识中其他目标标识对应的目标功能的权限,本发明实施例对此不作限定。It should be noted that when there are multiple target identities, the terminal device can turn off the target functions corresponding to other target identities among the multiple target identities while enabling the permission of the target functions corresponding to some of the multiple target identities. The authority of the function is not limited in this embodiment of the present invention.

需要说明的是,多个功能可能具有相同的权限,只要一个功能中该相同的权限为开启状态,则开启该相同的权限。例如,功能1具有权限a和权限b,功能2具有权限b和权限c,若终端设备开启功能1,关闭功能2,则终端设备开启权限a和权限b,只关闭权限c。It should be noted that multiple functions may have the same permission, and as long as the same permission is enabled in one function, the same permission is enabled. For example, function 1 has permission a and permission b, and function 2 has permission b and permission c. If the terminal device turns on function 1 and turns off function 2, the terminal device turns on permission a and permission b, and only turns off permission c.

本发明实施例提供的权限设置方法,终端设备接收到第一输入之后,会在目标应用程序的第一界面上显示功能窗口,由于该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,因此,当终端设备接收到针对目标标识(N个标识中的至少一个)的第二输入之后,终端设备可以直接设置该目标标识对应的目标功能的权限。如此,用户可以通过功能窗口直接对目标功能的权限进行设置,从而可以使得用户无需退出该目标应用程序,且无需对每个权限单独进行设置,进而避免了现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。In the authority setting method provided by the embodiment of the present invention, after the terminal device receives the first input, it will display the function window on the first interface of the target application program. Since there are N signs displayed in the function window, one sign corresponds to the target application A function of the program, therefore, after the terminal device receives the second input for the target identifier (at least one of the N identifiers), the terminal device can directly set the permission of the target function corresponding to the target identifier. In this way, the user can directly set the permission of the target function through the function window, so that the user does not need to exit the target application program, and does not need to set each permission separately, thus avoiding the troublesome problems in the existing application permission setting process. Existing steps are loaded down with trivial details, the problem of low efficiency.

示例性的,终端设备除了可以在使用目标应用程序时通过功能窗口设置权限,也可以在安装目标应用程序时设置权限,还可以在目标应用程序安装后启动前设置权限。Exemplarily, the terminal device can not only set the permission through the function window when using the target application program, but also can set the permission when installing the target application program, and can also set the permission after the target application program is installed and before starting.

示例性的,上述的终端设备在安装目标应用程序时设置的权限,可以作为之后目标应用程序每次启动时默认的权限状态,还可以仅作为目标应用程序首次启动时默认的权限状态。Exemplarily, the permission set by the above-mentioned terminal device when the target application is installed may be used as the default permission state each time the target application is started, or only as the default permission state when the target application is started for the first time.

示例性的,上述的终端设备在目标应用程序安装后启动前设置权限,具体设置方法可以参考本发明实施例中终端设备在目标应用程序的第一界面上显示功能窗口及设置权限的描述,此处不再赘述。终端设备在目标应用程序安装后启动前设置的权限,可以作为目标应用程序每次启动时默认的权限状态。例如,终端设备在接收到用户针对目标应用程序图标的触控输入(例如,用户长按目标应用程序图标)后,终端设备可以显示功能窗口。这样,用户可以在目标应用程序安装后启动前,通过终端设备显示的功能窗口来查看或者设置目标应用程序的权限。Exemplarily, the above-mentioned terminal device sets the authority after the target application is installed and before starting. For the specific setting method, refer to the description of the terminal device displaying the function window and setting the authority on the first interface of the target application in the embodiment of the present invention. I won't repeat them here. The permission set by the terminal device after the target application is installed and before it is started can be used as the default permission state when the target application is started each time. For example, after the terminal device receives the user's touch input on the icon of the target application program (for example, the user presses the icon of the target application program for a long time), the terminal device may display the function window. In this way, the user can view or set the permissions of the target application program through the function window displayed on the terminal device before the target application program is started after installation.

可选的,在本发明实施例中,终端设备可以通过判断目标功能的权限状态(例如开启状态或关闭状态),以确定终端设备开启或关闭目标功能的权限。具体的,若目标功能的权限处于开启状态,则终端设备关闭目标标识对应的目标功能的权限,即终端设备可以执行步骤204a,若目标功能的权限状态处于关闭状态,则终端设备开启目标标识对应的目标功能的权限终端设备,即终端设备可以执行步骤204b。Optionally, in this embodiment of the present invention, the terminal device may determine the permission of the terminal device to enable or disable the target function by judging the permission status (for example, the enabled state or the disabled state) of the target function. Specifically, if the authority of the target function is in the open state, the terminal device closes the authority of the target function corresponding to the target identifier, that is, the terminal device can perform step 204a, and if the authority status of the target function is in the off state, the terminal device enables the corresponding target identifier. The terminal device with the authority to perform the target function, that is, the terminal device may perform step 204b.

步骤204a:若上述目标功能的权限开启,则终端设备关闭目标标识对应的目标功能的权限。Step 204a: If the authority of the target function is enabled, the terminal device disables the authority of the target function corresponding to the target identifier.

步骤204b:若上述目标功能的权限关闭,则终端设备开启目标标识对应的目标功能的权限。Step 204b: If the authority of the target function is disabled, the terminal device enables the authority of the target function corresponding to the target identifier.

这样,终端设备可以根据目标功能的权限的开启状态确定用户的第二输入是开启目标功能的权限还是关闭目标功能的权限。In this way, the terminal device may determine whether the user's second input is to enable the authority of the target function or to disable the authority of the target function according to the enabled state of the authority of the target function.

进一步可选的,在本发明实施例中,目标应用程序安装后未启动前可以默认该目标功能的权限开启,也可以默认该目标功能的权限关闭。Further optionally, in the embodiment of the present invention, the permission of the target function may be enabled by default before the target application program is installed or started, or the permission of the target function may be disabled by default.

在第一种可能的方式中,上述目标应用程序安装后启动前默认上述目标应用程序的第一权限开启,该第一权限包括上述目标功能的权限。In a first possible manner, the first permission of the target application is enabled by default before the target application is started after installation, and the first permission includes the permission of the target function.

示例性的,当目标应用程序启动后,则保持开启上述目标功能的权限。Exemplarily, when the target application program is started, the permission to enable the above target function is maintained.

需要说明的是,本发明实施例中的第一权限可以为目标应用程序中的所有权限,也可以为目标应用程序中的部分权限。本发明实施例中的目标应用程序启动前可以为:目标应用程序每一次启动前。It should be noted that the first permission in this embodiment of the present invention may be all permissions in the target application program, or may be some permissions in the target application program. Before the start of the target application in the embodiment of the present invention may be: before each start of the target application.

在一种示例中,上述的第一权限为目标应用程序中的部分权限,即基础权限和目标功能的权限。终端设备在目标应用程序安装后启动前默认第一权限开启,则用户每次开启该目标应用程序时,无需再开启该第一权限,由于该第一权限包括目标功能的权限,因此,用户可以直接使用该目标功能。当用户不想使用该目标功能时,可以在功能窗口中点击该目标标识,从而关闭该目标功能的权限。In an example, the above-mentioned first permission is a partial permission in the target application program, that is, the basic permission and the permission of the target function. The terminal device defaults to enabling the first permission before starting the target application program after installation, and then the user does not need to open the first permission every time the target application program is opened. Since the first permission includes the permission of the target function, the user can Use that target function directly. When the user does not want to use the target function, he can click the target logo in the function window, so as to close the permission of the target function.

如此,终端设备在目标应用程序安装后启动前默认第一权限开启,在用户想要使用目标功能时,无需再开启该目标功能的权限,进而方便用户使用,在使用目标应用程序的过程也可以灵活关闭目标功能的权限。In this way, the first permission of the terminal device is enabled by default before the target application is started after installation. When the user wants to use the target function, there is no need to enable the permission of the target function, which is convenient for the user. It can also be used in the process of using the target application. Flexible permission to turn off target functions.

需要说明的是,本发明实施例中的基础权限为:保证能够打开目标应用程序所需要的权限。本发明实施例中的基础权限可以在终端设备安装该目标应用程序时设置。例如,当用户进行“聊天”APP安装操作时,终端设备可以通过开启该“聊天”APP所有权限,并逐一关闭来检测该APP能否正常启动的方式,自动识别出该APP的基础权限,并默认该基础权限开启。It should be noted that the basic authority in the embodiment of the present invention is: the authority required to ensure that the target application program can be opened. The basic authority in the embodiment of the present invention can be set when the terminal device installs the target application program. For example, when the user installs the "chat" app, the terminal device can automatically identify the basic permissions of the app by enabling all permissions of the "chat" app and closing them one by one to detect whether the app can be started normally. By default, this basic permission is enabled.

在第二种可能的方式中,上述目标应用程序安装后启动前默认上述目标应用程序的第一权限关闭,该第一权限包括上述目标功能的权限。In a second possible manner, the first permission of the target application is disabled by default before being started after the target application is installed, and the first permission includes the permission of the target function.

示例性的,当用户开启目标应用程序后,则保持关闭上述目标功能的权限。Exemplarily, after the user starts the target application program, the permission to close the above-mentioned target function remains.

在一种示例中,上述的第一权限为目标应用程序中的所有权限,终端设备在目标应用程序安装后启动前默认所有权限均关闭,在用户开启目标应用程序(例如,用户点击目标应用程序图标)时,终端设备开启基础权限,其他权限依然保持关闭状态。此时,上述的目标功能的权限为该其他权限中的至少一个权限。当用户想要使用目标应用程序的目标功能时,可以在功能窗口中点击该目标标识,从而开启该目标功能的权限。In one example, the above-mentioned first permission is all permissions in the target application program, and the terminal device defaults to closing all permissions before starting the target application program after installation. When the user starts the target application program (for example, the user clicks the target application program icon), the terminal device opens the basic permissions, and other permissions remain closed. At this time, the above-mentioned authority of the target function is at least one authority among the other authorities. When the user wants to use the target function of the target application program, he can click the target logo in the function window, thereby enabling the permission of the target function.

这样,在不使用目标应用程序时,终端设备将目标应用程序对应的所有权限关闭,可以保护用户隐私;在使用目标应用程序的过程也可以灵活开启目标功能的权限。In this way, when the target application program is not in use, the terminal device closes all permissions corresponding to the target application program, which can protect user privacy; the target function permissions can also be flexibly enabled during the process of using the target application program.

需要说明的是,上述的基础权限可以在终端设备安装该目标应用程序时设置。例如,当用户进行“聊天”APP安装操作时,终端设备可以通过开启该“聊天”APP所有权限,并逐一关闭来检测该APP能否正常启动的方式,自动识别出该APP的基础权限,之后用户每次点击该“聊天”APP图标,终端设备首先会自动开启基础权限,确保该APP能够正常启动,对于其他非基础权限,终端设备保持关闭状态,并根据不同功能进行权限组合。It should be noted that the above basic permissions can be set when the terminal device installs the target application program. For example, when the user installs the "chat" app, the terminal device can automatically identify the basic permissions of the app by enabling all permissions of the "chat" app and closing them one by one to detect whether the app can be started normally. Every time the user clicks on the "chat" APP icon, the terminal device will first automatically open the basic permissions to ensure that the APP can be started normally. For other non-basic permissions, the terminal device will remain closed, and the permissions will be combined according to different functions.

可选的,在本发明实施例中,终端设备可以根据应用程序的启动次数来设置应用程序安装后未启动前默认的权限状态(例如,应用程序首次启动前默认的权限状态可以与第二次启动前的权限状态不同),也可以根据不同的应用程序来灵活设定不同的应用程序安装后未启动前的权限状态。Optionally, in this embodiment of the present invention, the terminal device can set the default permission state before the application is installed and not started according to the number of times the application is started (for example, the default permission state before the application is started for the first time can be the same as the second The permission status before starting is different), and the permission status of different application programs before they are started after installation can also be flexibly set according to different application programs.

可选的,在本发明实施例中,每个功能的权限可以由终端设备自动设置(即,终端设备判断使用某功能时所需要开启的权限),若用户有个性化需求,上述的步骤204还可以包括增加或删减上述目标功能的权限,具体示例如下。Optionally, in the embodiment of the present invention, the authority of each function can be automatically set by the terminal device (that is, the terminal device judges the authority that needs to be enabled when using a certain function). If the user has personalized needs, the above step 204 It may also include the authority to add or delete the above-mentioned target functions, specific examples are as follows.

示例性的,上述的步骤204具体包括如下步骤204c1至204c3,其中:Exemplarily, the above step 204 specifically includes the following steps 204c1 to 204c3, wherein:

步骤204c1:终端设备显示上述目标标识对应的权限设置界面。Step 204c1: The terminal device displays the authority setting interface corresponding to the target identifier.

示例性的,上述的权限设置界面包括M个选项,一个选项对应一个权限,M为正整数。Exemplarily, the above permission setting interface includes M options, one option corresponds to one permission, and M is a positive integer.

示例性的,上述的权限设置界面可以以预设透明度叠加显示在该第一界面中,例如,如果预设透明度记为T2,那么T2的取值范围可以为0%<T2<100%。此外,该权限设置界面还可以高亮度或低亮度显示在第一界面上,本发明实施例对此不做限定。Exemplarily, the above permission setting interface may be superimposed and displayed on the first interface with preset transparency. For example, if the preset transparency is recorded as T2, then the value range of T2 may be 0%<T2<100%. In addition, the permission setting interface can also be displayed on the first interface with high brightness or low brightness, which is not limited in this embodiment of the present invention.

示例性的,上述的权限设置界面可以显示在目标标识的左上方,也可以显示在目标标识的右上方,还可以显示在目标标识的左下方,还可以显示在目标标识的右下方,本发明实施例对此不作限定。Exemplarily, the above permission setting interface may be displayed on the upper left of the target ID, or on the upper right of the target ID, or on the lower left of the target ID, or on the lower right of the target ID. The embodiment does not limit this.

步骤204c2:终端设备接收针对上述权限设置界面的第三输入。Step 204c2: the terminal device receives the third input for the above permission setting interface.

示例性的,上述的针对上述权限设置界面的第三输入可以为针对目标选项的输入。其中,目标选项为上述M个选项中的至少一个。Exemplarily, the above-mentioned third input for the permission setting interface may be an input for target options. Wherein, the target option is at least one of the above M options.

示例性的,上述的针对目标选项的输入具体包括:用户对目标选项的点击输入,或者,用户对目标选项上的滑动输入,或者,用户对目标选项的其他可行性输入,具体的可以根据实际使用需求确定,本发明实施例不作限定。Exemplarily, the above-mentioned input for the target option specifically includes: the user's click input on the target option, or the user's sliding input on the target option, or other feasible input of the user on the target option, which can be specifically determined according to the actual situation. The use requirements are determined, and the embodiments of the present invention are not limited.

步骤204c3:响应于上述第三输入,终端设备增加或删减上述目标功能的权限。Step 204c3: In response to the above-mentioned third input, the terminal device adds or deletes the authority of the above-mentioned target function.

举例说明,结合图4,若用户想要修改“视频聊天”功能的权限时,可以长按“视频聊天”功能选项。此时,如图6所示,终端设备的屏幕31上显示“视频聊天”权限设置界面(即图6中的51),该权限设置界面51上显示有6个权限选项和2个按钮。其中,6个权限选项中的3个为终端设备自动设置开启的权限选项,分别为“存储”权限选项、“相机”权限选项和“麦克风”权限选项;另外3个为未开启的权限选项(即当使用“视频聊天”功能是不需要开启的权限),分别为“定位”权限选项、“联系人”权限选项和“短信”权限选项。2个按钮分别为“重置”按钮和“确定”按钮。若用户想要在使用“视频聊天”功能时也开启定位权限,则用户可以向右滑动“定位”权限选项,即开启定位权限,当用户点击“保存”按钮后,若用户使用“视频聊天”功能时,除了开启终端设备自动设置开启的权限之外还会开启定位权限。若用户不想在使用“视频聊天”功能时开启定位权限,也可以在权限设置界面51中关闭“定位”权限选项。需要说明的是,当用户开启了多个终端设备自动设置开启的权限之外的权限后,若用户想要恢复原来的设置,可以点击“重置”按钮,则权限设置界面51恢复显示终端设备自动设置的权限开启状态,如图6所示。For example, referring to FIG. 4 , if the user wants to modify the permission of the "video chat" function, he can long press the "video chat" function option. At this point, as shown in FIG. 6 , the screen 31 of the terminal device displays a “video chat” authority setting interface (ie 51 in FIG. 6 ), and the authority setting interface 51 displays 6 authority options and 2 buttons. Among them, 3 of the 6 permission options are the permission options that are automatically set and opened by the terminal device, which are respectively the "storage" permission option, the "camera" permission option and the "microphone" permission option; the other 3 are unopened permission options ( That is, when using the "Video Chat" function, there is no need to open the permissions), which are the "Location" permission option, the "Contacts" permission option, and the "SMS" permission option. The 2 buttons are the "Reset" button and the "OK" button. If the user wants to enable the location permission when using the "Video Chat" function, the user can slide the "Location" permission option to the right to enable the location permission. When the user clicks the "Save" button, if the user uses the "Video Chat" function, in addition to enabling the automatic setting of the terminal device, the location permission will also be enabled. If the user does not want to enable the location permission when using the "video chat" function, the "location" permission option can also be turned off in the permission setting interface 51 . It should be noted that when the user has enabled multiple terminal devices to automatically set permissions other than the permissions enabled, if the user wants to restore the original settings, he can click the "reset" button, and the permission setting interface 51 will resume displaying the terminal device The automatically set permissions are enabled, as shown in Figure 6.

这样,用户可以根据使用需求,通过终端设备灵活的在权限设置界面上设置权限选项,从而可以实现用户对每个应用程序中的功能设置个性化的权限组合。In this way, the user can flexibly set permission options on the permission setting interface through the terminal device according to the usage requirements, so that the user can set a personalized permission combination for the functions in each application program.

可选的,在本发明实施例中,终端设备可以根据任一应用程序中的目标功能设置,的个性化的权限组合,设置目标应用程序中该目标功能的权限。Optionally, in this embodiment of the present invention, the terminal device may set the permission of the target function in any application program according to the personalized permission combination set by the target function in any application program.

示例1,当用户通过终端设备修改了任一应用程序中的目标功能的权限组合后,终端设备可以自动将目标应用程序中目标功能的权限设置为该任一应用程序中的目标功能修改后的权限组合。Example 1. After the user modifies the permission combination of the target function in any application program through the terminal device, the terminal device can automatically set the permission of the target function in the target application program to the modified target function permission in any application program. combination of permissions.

示例2,当用户通过终端设备修改了任一应用程序中的目标功能的权限组合后,若用户修改目标功能的权限时,终端设备可以显示推荐界面,该推荐界面上显示有该任一应用程序修改后的目标功能的权限组合,用户可以根据该任一应用程序修改后的目标功能的权限组合修改目标应用程序中的目标功能的权限。Example 2, after the user modifies the permission combination of the target function in any application program through the terminal device, if the user modifies the permission of the target function, the terminal device can display a recommendation interface, and the recommendation interface displays the any application program The modified permission combination of the target function, the user can modify the permission of the target function in the target application according to the modified permission combination of the target function of any application program.

这样,终端设备可以根据用户的使用习惯,直接设置目标应用程序中的目标功能的权限,或者,终端设备可以提示用户目标功能的历史设置记录,方便用户通过终端设备设置权限。In this way, the terminal device can directly set the permission of the target function in the target application according to the user's usage habits, or the terminal device can prompt the user for the historical setting record of the target function, so that the user can set the permission through the terminal device.

可选的,在本发明实施例中,终端设备在开启或关闭某个功能后,可以提示用户该某个功能的哪些权限被开启或关闭。Optionally, in this embodiment of the present invention, after a certain function is turned on or off, the terminal device may prompt the user which permissions of the certain function are turned on or off.

示例性的,在上述的步骤204之后,该方法还包括如下步骤205:Exemplarily, after the above step 204, the method further includes the following step 205:

步骤205:终端设备在上述第一界面上显示权限提示信息。Step 205: The terminal device displays permission prompt information on the above-mentioned first interface.

示例性的,上述权限提示信息用于提示上述目标功能的权限以及该权限的权限开启状态。Exemplarily, the permission prompt information is used to prompt the permission of the target function and the permission status of the permission.

可选的,在本发明实施例中,上述的步骤205具体可以包括如下步骤205a:Optionally, in the embodiment of the present invention, the above step 205 may specifically include the following step 205a:

步骤205a:终端设备在上述第一界面上显示信息窗口,并在该信息窗口中显示权限提示信息。Step 205a: The terminal device displays an information window on the above-mentioned first interface, and displays permission prompt information in the information window.

举例说明,结合图4,当用户想要使用“视频聊天”功能时,可以点击“视频聊天”功能选项。此时,如图7所示,终端设备的屏幕31上显示有“聊天”APP的主界面32,该主界面32上显示一个信息窗口(即图7中的61),该信息窗口61中显示“聊天APP已开启相机(摄像头)、麦克风、存储权限”(即上述的权限提示信息)。For example, referring to FIG. 4 , when the user wants to use the "video chat" function, he can click on the "video chat" function option. Now, as shown in FIG. 7 , the screen 31 of the terminal device displays the main interface 32 of the “chat” APP, and an information window (i.e., 61 in FIG. 7 ) is displayed on the main interface 32, and the information window 61 displays "Camera (camera), microphone, and storage permissions have been turned on in the chat APP" (that is, the above-mentioned permission prompt message).

这样,当用户现在开启或关闭一个功能时,终端设备通过显示权限提示信息,可以使得用户直观的查看到该功能的权限的开启状态。In this way, when the user now enables or disables a function, the terminal device can enable the user to intuitively view the enabled state of the permission of the function by displaying the permission prompt information.

图8为实现本发明实施例提供的一种终端设备的可能的结构示意图,如图8所示,终端设备600包括:接收模块601、显示模块602和设置模块603,其中:接收模块601,用于接收第一输入;显示模块602,用于响应于上述接收模块601接收到的第一输入,在目标应用程序的第一界面上显示功能窗口,该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,N为正整数;上述接收模块601,还用于接收针对目标标识的第二输入,该目标标识为上述N个标识中的至少一个;设置模块603,用于响应于上述接收模块601接收到的第二输入,设置上述目标标识对应的目标功能的权限。Fig. 8 is a schematic diagram of a possible structure of a terminal device provided by an embodiment of the present invention. As shown in Fig. 8, the terminal device 600 includes: a receiving module 601, a display module 602 and a setting module 603, wherein: For receiving the first input; the display module 602 is configured to display a function window on the first interface of the target application program in response to the first input received by the receiving module 601, where N logos are displayed in the function window, one logo Corresponding to a function of the target application program, N is a positive integer; the above-mentioned receiving module 601 is also used to receive a second input for the target identification, and the target identification is at least one of the above-mentioned N identifications; the setting module 603 is used to In response to the second input received by the receiving module 601, the authority of the target function corresponding to the target identifier is set.

可选的,上述设置模块603,具体用于若上述目标功能的权限开启,则关闭上述目标标识对应的目标功能的权限。Optionally, the above-mentioned setting module 603 is specifically configured to, if the permission of the above-mentioned target function is enabled, turn off the permission of the target function corresponding to the above-mentioned target identifier.

可选的,上述设置模块603,具体用于若上述目标功能的权限关闭,则开启上述目标标识对应的目标功能的权限。Optionally, the above-mentioned setting module 603 is specifically configured to enable the permission of the target function corresponding to the above-mentioned target identifier if the permission of the above-mentioned target function is disabled.

可选的,上述目标应用程序安装后启动前默认该目标应用程序的第一权限开启,该第一权限包括上述目标功能的权限。Optionally, the first permission of the target application program is enabled by default before being started after installation, and the first permission includes the permission of the above target function.

可选的,上述目标应用程序安装后启动前默认该目标应用程序的第一权限关闭,该第一权限包括上述目标功能的权限。Optionally, the first permission of the target application program is closed by default before being started after the above target application program is installed, and the first permission includes the permission of the above target function.

可选的,上述显示模块602,还用于显示上述目标标识对应的权限设置界面;上述接收模块601,还用于接收针对该权限设置界面的第三输入;上述设置模块603,具体用于响应于上述接收模块接收到的第三输入,增加或删减上述目标功能对应的权限。Optionally, the above-mentioned display module 602 is also used to display the permission setting interface corresponding to the above-mentioned target identifier; the above-mentioned receiving module 601 is also used to receive the third input for the permission setting interface; the above-mentioned setting module 603 is specifically used to respond to Based on the third input received by the receiving module, the authority corresponding to the above target function is added or deleted.

可选的,上述显示模块602,还用于在上述第一界面上显示权限提示信息,该权限提示信息用于提示上述目标功能的权限以及该权限的权限开启状态。Optionally, the above-mentioned display module 602 is further configured to display permission prompt information on the above-mentioned first interface, where the permission prompt information is used to prompt the permission of the above-mentioned target function and the permission opening status of the permission.

本发明实施例提供的终端设备,终端设备接收到第一输入之后,会在目标应用程序的第一界面上显示功能窗口,由于该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,因此,当终端设备接收到针对目标标识(N个标识中的至少一个)的第二输入之后,终端设备可以直接设置该目标标识对应的目标功能的权限。如此,用户可以通过功能窗口直接对目标功能的权限进行设置,从而可以使得用户无需退出该目标应用程序,且无需对每个权限单独进行设置,进而避免了现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。In the terminal device provided by the embodiment of the present invention, after receiving the first input, the terminal device will display a function window on the first interface of the target application program. Since there are N logos displayed in the function window, one logo corresponds to the target application program Therefore, after the terminal device receives the second input for the target identifier (at least one of the N identifiers), the terminal device can directly set the permission of the target function corresponding to the target identifier. In this way, the user can directly set the permission of the target function through the function window, so that the user does not need to exit the target application program, and does not need to set each permission separately, thus avoiding the troublesome problems in the existing application permission setting process. Existing steps are loaded down with trivial details, the problem of low efficiency.

本发明实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided by the embodiment of the present invention can implement various processes implemented by the terminal device in the foregoing method embodiments, and to avoid repetition, details are not repeated here.

图9为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图9中示出的终端设备100的结构并不构成对终端设备的限定,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。9 is a schematic diagram of a hardware structure of a terminal device implementing various embodiments of the present invention, the terminal device 100 includes but not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , a processor 110 , and a power supply 111 and other components. Those skilled in the art can understand that the structure of the terminal device 100 shown in FIG. Different component arrangements. In the embodiment of the present invention, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal device, a wearable device, and a pedometer.

其中,用户输入单元107,用于接收第一输入;显示单元106,用于响应于上述用户输入单元107接收到的第一输入,在目标应用程序的第一界面上显示功能窗口,该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,N为正整数;用户输入单元107,还用于接收针对目标标识的第二输入,该目标标识为上述N个标识中的至少一个;处理器110,用于响应于用户输入单元107接收到的第二输入,设置上述目标标识对应的目标功能的权限。Wherein, the user input unit 107 is configured to receive a first input; the display unit 106 is configured to display a function window on the first interface of the target application in response to the first input received by the user input unit 107, the function window There are N identifications displayed in , one identification corresponds to a function of the target application program, and N is a positive integer; the user input unit 107 is also used to receive the second input for the target identification, and the target identification is one of the above N identifications At least one; a processor 110, configured to set the permission of the target function corresponding to the target identifier in response to the second input received by the user input unit 107.

本发明实施例提供的终端设备,终端设备接收到第一输入之后,会在目标应用程序的第一界面上显示功能窗口,由于该功能窗口中显示有N个标识,一个标识对应该目标应用程序的一个功能,因此,当终端设备接收到针对目标标识(N个标识中的至少一个)的第二输入之后,终端设备可以直接设置该目标标识对应的目标功能的权限。如此,用户可以通过功能窗口直接对目标功能的权限进行设置,从而可以使得用户无需退出该目标应用程序,且无需对每个权限单独进行设置,进而避免了现有的应用程序权限设置过程中所存在的步骤繁琐、效率低的问题。In the terminal device provided by the embodiment of the present invention, after receiving the first input, the terminal device will display a function window on the first interface of the target application program. Since there are N logos displayed in the function window, one logo corresponds to the target application program Therefore, after the terminal device receives the second input for the target identifier (at least one of the N identifiers), the terminal device can directly set the permission of the target function corresponding to the target identifier. In this way, the user can directly set the permission of the target function through the function window, so that the user does not need to exit the target application program, and does not need to set each permission separately, thus avoiding the troublesome problems in the existing application permission setting process. Existing steps are loaded down with trivial details, the problem of low efficiency.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 110 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.

终端设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device 100 provides users with wireless broadband Internet access through the network module 102, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 can include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102 . The microphone 1042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in the case of a phone call mode.

终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of terminal equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061 , and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the terminal device 100 . Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operate). The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to For the processor 110, receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图9中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备100的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be covered on the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it will be sent to the processor 110 to determine the type of the touch event, and then the processor 110 can The type of event provides a corresponding visual output on the display panel 1061 . Although in FIG. 9, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the terminal device 100, but in some embodiments, the touch panel 1071 and the display panel 1061 can be The input and output functions of the terminal device 100 are realized through integration, which is not specifically limited here.

接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the terminal device 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器110是终端设备100的控制中心,利用各种接口和线路连接整个终端设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal device 100, and uses various interfaces and lines to connect various parts of the entire terminal device 100, and runs or executes software programs and/or modules stored in the memory 109, and calls stored in the memory 109. execute various functions of the terminal device 100 and process data, so as to monitor the terminal device 100 as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .

终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.

另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some functional modules not shown, which will not be repeated here.

可选的,本发明实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述权限设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and operable on the processor 110, and the computer program realizes the above permissions when executed by the processor. Each process of the embodiment of the method is configured to achieve the same technical effect, so to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述权限设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned authority setting method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明实施例各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solutions of the embodiments of the present invention can be embodied in the form of software products, which are stored in a storage medium (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.

上面结合附图对本发明实施例的实施例进行了描述,但是本发明实施例并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明实施例的启示下,在不脱离本发明实施例宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明实施例的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the embodiments of the present invention are not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, not restrictive. Under the inspiration of the embodiments of the present invention, those of ordinary skill can also make many forms without departing from the gist of the embodiments of the present invention and the scope of protection of the claims, all of which are within the protection of the embodiments of the present invention.

Claims (10)

1. A permission setting method is applied to terminal equipment, and is characterized by comprising the following steps:
receiving a first input;
responding to the first input, displaying a function window on a first interface of a target application program, wherein N identifiers are displayed in the function window, one identifier corresponds to one function of the target application program, and N is a positive integer;
receiving a second input aiming at a target identification, wherein the target identification is at least one of the N identifications;
responding to the second input, and setting the authority of the target function corresponding to the target identification;
the arrangement sequence of the N identifications is determined by using frequency, different functions comprise the same first authority, and the starting condition of the first authority is as follows: the first right of at least one of the different functions is in an open state.
2. The method according to claim 1, wherein the setting of the authority of the target function corresponding to the target identifier comprises:
and if the authority of the target function is opened, closing the authority of the target function corresponding to the target identifier.
3. The method according to claim 1, wherein the setting of the authority of the target function corresponding to the target identifier comprises:
and if the authority of the target function is closed, starting the authority of the target function corresponding to the target identification.
4. The method of claim 2, wherein a first permission of the target application is opened by default before the target application is started after installation, and the first permission comprises a permission of the target function.
5. The method of claim 3, wherein the first permission of the target application is closed by default before the target application is not started after installation, and the first permission comprises a permission of the target function.
6. The method according to claim 1, wherein the setting of the authority of the target function corresponding to the target identifier comprises:
displaying an authority setting interface corresponding to the target identification;
receiving a third input for the permission setting interface;
and responding to the third input, and adding or deleting the authority corresponding to the target function.
7. The method according to claim 1, wherein after the setting of the authority of the target function corresponding to the target identifier, the method further comprises:
and displaying permission prompt information on the first interface, wherein the permission prompt information is used for prompting the permission of the target function and the permission starting state of the permission.
8. A terminal device, characterized in that the terminal device comprises:
a receiving module for receiving a first input;
the display module is used for responding to the first input received by the receiving module and displaying a function window on a first interface of a target application program, wherein N identifiers are displayed in the function window, one identifier corresponds to one function of the target application program, and N is a positive integer;
the receiving module is further configured to receive a second input for a target identifier, where the target identifier is at least one of the N identifiers;
the setting module is used for responding to the second input received by the receiving module and setting the authority of the target function corresponding to the target identifier;
wherein, the arrangement sequence of the N identifiers is determined by the use frequency, different functions comprise the same first authority, and the condition of starting the first authority is as follows: the first right of at least one of the different functions is in an open state.
9. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the rights setting method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the rights setting method as claimed in any one of claims 1 to 7.
CN201911176737.8A 2019-11-26 2019-11-26 Permission setting method and terminal device Active CN111027030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911176737.8A CN111027030B (en) 2019-11-26 2019-11-26 Permission setting method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911176737.8A CN111027030B (en) 2019-11-26 2019-11-26 Permission setting method and terminal device

Publications (2)

Publication Number Publication Date
CN111027030A CN111027030A (en) 2020-04-17
CN111027030B true CN111027030B (en) 2022-11-04

Family

ID=70206830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911176737.8A Active CN111027030B (en) 2019-11-26 2019-11-26 Permission setting method and terminal device

Country Status (1)

Country Link
CN (1) CN111027030B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073578B (en) * 2020-08-20 2022-07-12 上海连尚网络科技有限公司 A method and device for using or restricting application functions in social applications
CN112016080B (en) * 2020-08-28 2025-02-28 维沃移动通信(杭州)有限公司 Application permission management method, device and electronic device
CN112083862B (en) * 2020-09-16 2022-05-17 珠海格力电器股份有限公司 Camera permission display method and device, processor and terminal equipment
CN112214774A (en) * 2020-09-30 2021-01-12 维沃移动通信有限公司 Permission setting method, file playing method and device and electronic equipment
CN112306325B (en) * 2020-10-30 2022-05-31 维沃移动通信有限公司 Interaction control method and device
CN112287330B (en) * 2020-11-23 2024-03-01 腾讯科技(北京)有限公司 Authority configuration method and device for application program, computer equipment and storage medium
CN115017522B (en) * 2021-09-30 2023-09-29 荣耀终端有限公司 A permission recommendation method and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487748A (en) * 2015-11-20 2016-04-13 腾讯科技(深圳)有限公司 Icon display method and apparatus
CN108958582A (en) * 2018-06-28 2018-12-07 维沃移动通信有限公司 A kind of application program launching method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811553A (en) * 2015-04-27 2015-07-29 陆俊 Method for application permission switching of mobile terminal and mobile terminal
US10558546B2 (en) * 2018-05-08 2020-02-11 Apple Inc. User interfaces for controlling or presenting device usage on an electronic device
CN109542282B (en) * 2018-10-30 2021-02-23 维沃移动通信有限公司 Interface display method and terminal equipment
CN110058754B (en) * 2019-03-29 2021-03-05 维沃移动通信有限公司 Option display method and terminal device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487748A (en) * 2015-11-20 2016-04-13 腾讯科技(深圳)有限公司 Icon display method and apparatus
CN108958582A (en) * 2018-06-28 2018-12-07 维沃移动通信有限公司 A kind of application program launching method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AppWrapper: Patching Security Functions with Dynamic Policy on Your Insecure Android Apps;Sung-Hoon Lee et al;《IEEE》;20181118;全文 *

Also Published As

Publication number Publication date
CN111027030A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
CN111027030B (en) Permission setting method and terminal device
CN111459355A (en) Content sharing method and electronic device
CN110908557B (en) Information display method and terminal device
WO2020238351A1 (en) Application downloading and classification method and terminal device
WO2021129536A1 (en) Icon moving method and electronic device
CN110502878A (en) A kind of application permission setting method and terminal device
CN108491130A (en) A kind of application programe switch-over method and mobile terminal
WO2021057290A1 (en) Information control method and electronic device
CN110442437A (en) Application switching method and mobile terminal
WO2020258952A1 (en) Permission configuration method and terminal device
WO2020199783A1 (en) Interface display method and terminal device
WO2021017738A1 (en) Interface display method and electronic device
CN110597437A (en) Screen capturing method and terminal equipment
WO2021121225A1 (en) Method for installing application program, and electronic apparatus
WO2021093766A1 (en) Message display method, and electronic apparatus
CN108681427A (en) A kind of method and terminal device of access privilege control
WO2020181954A1 (en) Application program control method and terminal device
CN110167006A (en) A kind of control application program uses the method and terminal device of SIM card
CN110502936A (en) The display methods and terminal device of privacy information
CN110147186A (en) Applied control method and terminal equipment
CN108153460B (en) Icon hiding method and terminal
CN111368188B (en) Application program processing method and electronic device
CN110210206A (en) A kind of right management method and terminal
CN109981442A (en) Method for sending information and terminal device

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