A permission management method, device, electronic device and storage medium

By displaying the permission control bar on the terminal device interface, users can enable or close application permissions through simple drag or touch operations, solving the problem of cumbersome permission management methods and improving the efficiency and user experience of permission management.

CN112560101BActive Publication Date: 2025-01-10GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011564785.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-01-10
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

The existing permission management methods are cumbersome and inefficient. Users need to click multiple times and switch interfaces to complete the permission settings of the application.

Method used

The permission control bar is displayed in the display interface of the terminal device. Users can use drag or touch to operate the application into the permission control bar to enable permissions to be turned on or off, simplifying the permission management process.

Benefits of technology

The steps of permission setting are greatly reduced, the efficiency and user experience of permission management are improved, and users can manage application permissions more conveniently and quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112560101B_ABST
    Figure CN112560101B_ABST
Patent Text Reader

Abstract

The present invention provides a permission management method, device, electronic device and storage medium. When a permission control bar is displayed, the permission management operation triggered by the user for any target application is received, the target permission option corresponding to the permission management operation in the permission control bar is determined, and then the target permission of any target application is controlled based on the permission management operation, and the target permission is the permission corresponding to the target permission option. The present invention provides a novel permission management method. When the present invention is used for permission management, the user only needs to perform a simple permission management operation on the application. Compared with the existing method that requires multiple steps to be performed, the present invention reduces cumbersome operation steps, and the user can perform permission management more conveniently and quickly, thereby improving the efficiency of permission management and the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a permission management method, device, electronic device and storage medium. Background Art

[0002] With the development of communication technology and terminal technology, more and more applications are installed in terminal devices. In order to protect user information security, different permissions are set for different applications.

[0003] At present, the commonly used permission setting method is: the user first finds the permission setting entrance of the application, and then sets the permission of the application. For example, if the user wants to set the permission of application A, the user can click the icon of the "Settings" application in the terminal device to trigger the terminal device to display the main interface of the "Settings" application; then, the user can click the application management option in the main interface to trigger the terminal device to update the main interface to the application management interface; then, the user clicks the permission management option in the application management interface to trigger the terminal device to update the main interface to the permission management interface; after that, the user can click the icon of application A in the permission management interface to trigger the terminal device to update the permission management interface to the permission setting interface of application A. In this way, the user can turn on or off the microphone, positioning, phone, storage, camera or contacts in the permission setting interface of application A, thereby realizing the permission setting of application A.

[0004] The above method for setting application permissions is cumbersome and the permission management efficiency is too low. Summary of the invention

[0005] In order to solve the technical problem of low efficiency of existing permission management, the present application provides a permission management method, device, electronic device and storage medium.

[0006] In a first aspect, an embodiment of the present application provides a rights management method, including:

[0007] In the case of displaying the permission control bar, receiving a permission management operation, wherein the permission management operation is triggered by a user for any target application, and the permission control bar includes at least one permission option;

[0008] Determine a target permission option in the permission control column corresponding to the permission management operation;

[0009] The target permission of the arbitrary target application is controlled based on the permission management operation, and the target permission is the permission corresponding to the target permission option.

[0010] As a possible implementation, the display permission control bar includes:

[0011] When receiving a permission control bar opening operation triggered by a user, the permission control bar is controlled to be displayed.

[0012] As a possible implementation manner, if the permission management operation is a permission opening operation, the receiving permission management operation includes:

[0013] A drag operation triggered by a user on any target application outside the display area of ​​the permission control bar is received. If the end point of the drag operation is located within the display area of ​​the permission control bar, it is determined that a permission opening operation triggered on the any target application is received.

[0014] As a possible implementation manner, receiving a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar includes:

[0015] Receiving a touch operation triggered by a user on any application outside the display area of ​​the permission control bar;

[0016] If it is determined that the touch operation is a drag operation, determining that a drag operation triggered by the user on the arbitrary application is received, and determining the arbitrary application as a target application;

[0017] If it is determined that the touch operation is a long press operation, entering a multiple selection mode;

[0018] In the multi-selection mode, receiving a selection operation triggered by a user for any application outside the display area of ​​the permission control bar, and determining that the application corresponding to the selection operation is the first application;

[0019] If a drag operation triggered by the user on any of the first applications is received, it is determined that a drag operation triggered by the user on all first applications is received, and all first applications are determined to be target applications.

[0020] As a possible implementation manner, determining the target permission option corresponding to the permission management operation in the permission control column includes:

[0021] Determining the end point position information of the drag operation;

[0022] Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar;

[0023] Compare the terminal location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the terminal location information belongs;

[0024] The permission option corresponding to the target preset trigger area is determined as the target permission option.

[0025] As a possible implementation manner, the method further includes:

[0026] Receiving a viewing operation triggered by a user for any permission option in the permission control bar;

[0027] Based on the viewing operation, an application program that has obtained the permission corresponding to the arbitrary permission option is controlled to be displayed in a preset triggering area of ​​the arbitrary permission option.

[0028] As a possible implementation manner, if the permission management operation is a permission closing operation, the receiving permission management operation includes:

[0029] When an application is displayed in the display area of ​​the permission control bar, a user's drag operation on any target application displayed in the display area is received. If the end point of the drag operation is outside the display area, it is determined that a permission closing operation triggered by the user on the arbitrary target application is received.

[0030] As a possible implementation manner, determining the target permission option corresponding to the permission management operation in the permission control column includes:

[0031] Determining the starting point position information of the drag operation;

[0032] Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar;

[0033] Compare the starting point location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the starting point location information belongs;

[0034] The permission option corresponding to the target preset trigger area is determined as the target permission option.

[0035] As a possible implementation manner, controlling the target permission of the arbitrary target application based on the permission management operation includes:

[0036] If the permission management operation is a permission opening operation, then based on the permission management operation, controlling the arbitrary target application to obtain the target permission;

[0037] If the permission management operation is a permission closing operation, then based on the permission management operation, the arbitrary target application is controlled to release the target permission.

[0038] In a second aspect, the embodiment of the present application further provides a rights management device, including:

[0039] A receiving module, configured to receive a permission management operation when the permission control bar is displayed, wherein the permission management operation is triggered by a user for a target application, and the permission control bar includes at least one permission option;

[0040] A permission determination module, used to determine a target permission option corresponding to the permission management operation in the permission control column;

[0041] The permission control module is used to control the target permission of the arbitrary target application based on the permission management operation, and the target permission is the permission corresponding to the target permission option.

[0042] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a data processing program stored in the memory to implement the permission management method described in the first aspect.

[0043] In a fourth aspect, an embodiment of the present application further provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the permission management method described in the first aspect.

[0044] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0045] The present embodiment provides a permission management method, which receives a permission management operation triggered by a user for any target application program while displaying a permission control bar in a display interface, determines a target permission option in the permission control bar corresponding to the permission management operation, and then controls the target permission of any target application program based on the permission management operation, wherein the target permission is the permission corresponding to the target permission option. The present application provides a novel permission management method. When the present application is used for permission management, the user only needs to perform a simple permission management operation on the application program. Compared with the existing method that requires multiple steps to be performed, the present application reduces cumbersome operation steps, and the user can perform permission management more conveniently and quickly, thereby improving the efficiency of permission management and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 A flowchart of a rights management method provided in an embodiment of the present application;

[0049] Figure 2 Another flowchart of a rights management method provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0054] Figure 7 A flowchart of another permission management method provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0056] Fig. 9 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0057] Fig.10 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0058] Fig.11 A schematic diagram of a rights management operation provided in an embodiment of the present application;

[0059] Fig.12 A block diagram of a rights management device provided in an embodiment of the present application;

[0060] Fig.13 A block diagram of another rights management device provided in an embodiment of the present application;

[0061] Fig.14 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0063] In order to solve the problem that the current application permission setting steps are complicated and time-consuming, the present invention provides an application permission management method.

[0064] To facilitate understanding of the embodiments of the present invention, the following first explains the application scenarios of the rights management method provided by the embodiments of the present invention in conjunction with the accompanying drawings.

[0065] In the existing method, when a user is using an application, the application usually needs to obtain corresponding permissions in order to implement certain functions. For example, taking application A as an example, if application A wants to take videos or pictures, it needs to obtain camera permissions; if it wants to record audio, it needs to obtain microphone permissions; if it wants to obtain location information, it needs to obtain positioning permissions, etc. Therefore, if you want to use a certain function of application A, you need to set permissions for application A first so that application A obtains the corresponding permissions.

[0066] Furthermore, in the existing method, taking setting the permissions of application A as an example, the entire setting process is roughly as follows: first click the icon of the "Settings" application in the terminal device to trigger the terminal device to display the main interface of the "Settings" application; then, the user clicks the application management option in the main interface to trigger the terminal device to update the main interface to the application management interface; then, the user clicks the permission management option in the application management interface to trigger the terminal device to update the main interface to the permission management interface; after that, the user can click the icon of application A in the permission management interface to trigger the terminal device to update the permission management interface to the permission setting interface of application A, and then the user finds the corresponding permission in the permission setting interface to set it. The entire setting process is cumbersome and time-consuming.

[0067] Based on this, in order to solve the technical problems of cumbersome steps and time-consuming in the existing application permission management, an embodiment of the present invention provides a permission management method, which displays a permission control bar in the display interface of the terminal device, and enables or disables the permission of the application by moving the application into or out of the permission option in the permission control bar. The permission setting steps are greatly simplified. This solution greatly improves the efficiency of setting permissions in setting the permission management of the application.

[0068] Figure 1 The flowchart of a rights management method provided by an embodiment of the present invention can be applied to terminal devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. Figure 1 As shown, the method may include the following steps:

[0069] S11. When the permission control bar is displayed, a permission management operation is received, where the permission management operation is triggered by a user for any target application, and the permission control bar includes at least one permission option.

[0070] As an embodiment, the permission control bar is a task bar used for application permission management. The size of the permission control bar and the corresponding display area are set according to actual needs. At least one permission option is set in the permission control bar, and one permission option corresponds to one permission.

[0071] As an optional implementation method, the permission control bar can be resident in the display interface of the terminal device, that is, as long as the terminal device is turned on, the permission control bar will be displayed in the terminal device. This method can facilitate users to manage the permissions of the application at any time, but due to the display of the permission control bar, other display content may be blocked, affecting the user experience.

[0072] As another optional implementation method, the permission control bar can be displayed in the terminal device only when the terminal device receives the permission control bar opening operation. The permission control bar opening operation can be set according to actual needs. In this way, when the user needs to manage permissions for the application, the permission control bar can be evoked by executing the permission control bar opening operation, which can avoid the problem of poor user experience caused by the permission control bar being permanently resident in the display interface.

[0073] In this embodiment, the user refers to a person or intelligent device that can operate the terminal device, such as an intelligent robot.

[0074] In the application, when the permission control bar is displayed in the terminal device, it is monitored in real time whether each application installed in the terminal device receives the permission management operation, and if it is detected that any (i.e., one or more) target application receives the permission management operation, S12 is executed for the target application. The target application refers to the application corresponding to the permission management operation, and the permission management operation is a permission opening operation or a permission closing operation.

[0075] S12. Determine the target permission option corresponding to the permission management operation in the permission control column.

[0076] S13. Control the target permission of the arbitrary target application based on the permission management operation, the target permission being the permission corresponding to the target permission option.

[0077] As an embodiment, if the permission management operation is a permission opening operation, then based on the permission management operation, the arbitrary target application is controlled to obtain the target permission; if the permission management operation is a permission closing operation, then based on the permission management operation, the arbitrary target application is controlled to release the target permission.

[0078] The present embodiment provides a permission management method, which receives permission management operations triggered by users for any target application in the terminal device when the permission control bar is displayed in the display interface of the terminal device, determines the target permission option corresponding to the permission management operation in the permission control bar, and then controls the target permission of any target application based on the permission management operation, where the target permission is the permission corresponding to the target permission option. The present application provides a novel permission management method. When the present application is used for permission management, the user only needs to perform simple permission management operations on the application. Compared with the existing method that requires multiple steps to be performed, the present application reduces cumbersome operation steps, and the user can perform permission management more conveniently and quickly, thereby improving the efficiency of permission management and the user experience.

[0079] Furthermore, this application performs permission management at the application level. Compared with the prior art that performs permission management at the permission level, which can only set one permission in one application at a time, when using this application for permission management, the user can trigger permission management operations for any (i.e. one or more) target applications at the same time, thereby achieving permission management for any target applications at the same time, further improving the efficiency of permission management.

[0080] Figure 2 The flowchart of another permission management method provided by the embodiment of the present invention can be applied to terminal devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. Figure 2 As shown, the method may include the following steps:

[0081] S21. When receiving a permission control bar opening operation triggered by a user, control the permission control bar to be displayed.

[0082] In this embodiment, in order to prevent the permission control bar from blocking other display contents in the display interface when permission management is not performed, the default state of the permission control bar is set to a hidden state. When the permission control bar is in a hidden state, the terminal device detects whether a permission control bar opening operation triggered by a user is received. If a permission control bar opening operation triggered by a user is received, the state of the permission control bar is controlled to switch from a hidden state to a display state, so that the permission control bar is displayed in the display interface of the terminal device. If no permission control bar opening operation triggered by a user is received, the state of the permission control bar remains unchanged in the default state.

[0083] As an embodiment, a trigger mark of the permission control bar can be set in the terminal device. The trigger mark can be a virtual mark or a physical button. When the permission control bar is in the default state, it is detected whether an opening operation triggered by the user for the trigger mark is received. If an opening operation triggered by the user for the trigger mark is received, it is determined that the permission control bar opening operation triggered by the user in the terminal device is received, where the opening operation can be an operation set according to actual needs, such as a left swipe operation, a right swipe operation, a long press operation, a double-click operation, etc.

[0084] Refer to the following Figure 3 , with the triggering mark being a virtual mark displayed in the display interface of the terminal device (for example Figure 3 As shown in 301), the opening operation is an example of a right swipe operation triggered by the trigger mark, and the method of opening the detection permission control bar is described:

[0085] When the permission control bar is in a hidden state, detect whether a touch operation triggered by the user on the trigger mark is received. If a touch operation triggered by the user on the trigger mark is received, determine whether the touch operation is a right swipe operation. If so, determine that the permission control bar opening operation is received. If no touch operation triggered by the trigger mark is received, or the received touch operation is not a right swipe operation, determine that the permission control bar opening operation is not received.

[0086] It should be noted that Figure 3 The position and style of the trigger mark shown are only exemplary and do not constitute a limitation on the trigger mark.

[0087] Furthermore, the position and style of the trigger mark of the permission control bar can be set by the user according to actual needs. Specifically, a style library can be set in advance in the terminal device, and the style library contains multiple styles. For example, the styles in the style library may include cartoon characters, arrows, circles, rectangles, etc. The user can select any style from the style library as the style of the trigger mark according to actual needs.

[0088] As an embodiment, the style of the permission control bar and the corresponding display area are pre-set. When it is determined that a user-triggered permission control bar opening operation is received, the permission control bar is controlled to be displayed in the display area according to the preset style. The style and display area of ​​the permission control bar can be set by the user or developer according to actual needs.

[0089] In an application, the permission control bar includes at least one permission option. One permission option corresponds to one permission. Different permission options correspond to different permissions. The permission option can be displayed in the permission control bar in the form of icons or text, for example: Figure 4 As shown, the permission options are displayed in the form of icons. In order from top to bottom, Figure 4 The icons contained in the permission control bar shown represent storage permission options, call permission options, location permission options, camera permission options, microphone permission options, operating data permission options, contact permission options and information permission options respectively. It should be noted that: Figure 4 The permission options included in are only exemplary. In addition to the above 8 permission options, the permission control bar may also include other permission options. When there are multiple permission options in the permission control bar, the multiple permission options may be arranged in a preset arrangement (e.g., vertical arrangement, horizontal arrangement, etc.), for example Figure 4 As shown, the permission options are arranged vertically. The arrangement order of the plurality of permission options can be set by the user, or can be randomly generated, or can be generated according to the weight of each permission set in advance, in the order from high to low weight, and the present invention does not make any specific limitation on this.

[0090] S22. Receive a permission activation operation, where the permission activation operation is triggered by a user for any target application outside the display area of ​​the permission control bar.

[0091] As an embodiment, the receiving permission enabling operation includes:

[0092] A drag operation triggered by a user on any target application outside the display area of ​​the permission control bar is received. If the end point of the drag operation is located within the display area of ​​the permission control bar, it is determined that a permission opening operation triggered on the any target application is received.

[0093] In the application, the size of the permission control bar is smaller than the size of the terminal device display, such as Figure 4 As shown, when the terminal device displays the permission control bar, the area outside the permission control bar can also display applications. At this time, if the user wants to manage the permissions of the application outside the permission control bar, the application can be dragged from outside the permission control bar to the corresponding permission option in the permission control bar.

[0094] Furthermore, when the terminal device detects a drag operation triggered by the user on any target application outside the display area of ​​the permission control bar, it obtains the position information corresponding to the drag operation, and compares the end point position information of the drag operation (i.e., the last position information collected for the drag operation) with the position information interval corresponding to the display area of ​​the permission control bar to determine whether the end point position of the drag operation is located within the display area of ​​the permission control bar. If the end point position of the drag operation is located within the display area of ​​the permission control bar, it is determined that the permission-enabling operation for the target application has been received.

[0095] As an embodiment, a user may trigger a drag operation on one application or on multiple applications at the same time, that is, the drag operation received by the terminal device may be triggered by the user on one target application outside the display area of ​​the permission control bar or on multiple target applications outside the display area of ​​the permission control bar. Specifically, receiving a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar may include:

[0096] Step 1: receiving a touch operation triggered by a user on any application outside the display area of ​​the permission control bar.

[0097] Step 2: Determine whether the touch operation is a drag operation, if so, execute step 3, otherwise execute step 4.

[0098] Step 3: Determine that a drag operation triggered by the user on the arbitrary application is received, and determine that the arbitrary application is a target application.

[0099] Step 4: Determine whether the touch operation is a long press operation, if so, execute step 5, if not, execute step 8.

[0100] Step 5: Enter the multi-selection mode, receive a selection operation triggered by the user for any application outside the display area of ​​the permission control bar, determine that the application corresponding to the selection operation is the first application, and execute step 6.

[0101] As an embodiment, in the multi-selection mode, the user can select multiple applications at the same time, and the terminal device regards the selected multiple applications as a whole and performs corresponding processing.

[0102] As an embodiment, when a long press operation on a certain application is detected, a selection box can be displayed in the upper right corner of the icon corresponding to each application displayed outside the permission control box display area. When it is detected that the selection box is clicked, it is determined that the corresponding application is selected. In order to facilitate the distinction between the selected application and the unselected application, the selected application is marked, for example, the selected application is marked as the first application.

[0103] Step 6: Detect whether a drag operation triggered by the user for any of the first applications is received. If so, execute step 7; otherwise, execute step 8.

[0104] Step 7: Determine that a drag operation triggered by the user on all first applications is received, and determine that all first applications are target applications.

[0105] Unified explanation of steps 6 and 7:

[0106] In multi-selection mode, the selected first applications are treated as a whole and processed synchronously, so when a drag operation is detected for any (one or more) first applications, other first applications are dragged together, thereby realizing the dragging of multiple applications at the same time. Furthermore, permission management of multiple applications can be realized at the same time.

[0107] Step 8: Determine that no drag operation triggered by the user on any application is received.

[0108] S23. Determine the target permission option in the permission control bar that corresponds to the permission enabling operation.

[0109] As an embodiment, determining the target permission option may include the following steps:

[0110] Step 1: Determine the end point position information of the drag operation.

[0111] As an embodiment, after a drag operation is detected, position information corresponding to the drag operation is acquired, and the last acquired position information is used as the end point position information of the drag operation.

[0112] Step 2: Obtain the location information of the preset trigger area corresponding to each permission option in the permission control bar.

[0113] As an embodiment, when no application is displayed in the permission control bar, the area where the permission option icon is located in the permission control bar is used as the preset trigger area corresponding to the permission option. Figure 6 As shown, take the location permission option as an example. Figure 6 The dotted area in the figure is the preset trigger area corresponding to the location permission option.

[0114] Further, by Figure 6 As shown, after receiving the permission opening operation for the application, the application is still retained outside the permission control bar, making it convenient for the user to use the application.

[0115] As another embodiment, when an application is displayed in the permission control bar, the display area of ​​the application corresponding to the permission option (the area is pre-set according to the requirements) and the area where the icon of the permission option is located are used as the preset trigger area corresponding to the permission option. Fig. 9 As shown, take the location permission option as an example. Fig. 9 The dotted area in the figure is the preset trigger area corresponding to the location permission option.

[0116] Step 3: Compare the terminal location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the terminal location information belongs.

[0117] As an embodiment, a preset trigger area that has the most overlap with the end point position information is determined as the target preset trigger area.

[0118] Step 4: Determine the permission option corresponding to the target preset trigger area as the target permission option.

[0119] S24. Based on the permission opening operation, control the arbitrary target application to obtain a target permission, where the target permission is a permission corresponding to the target permission option.

[0120] As an embodiment, controlling the arbitrary target application to obtain the target permission may include:

[0121] Set the state of the target permission corresponding to any target application to the enabled state.

[0122] The following is a combination of application scenarios and attached Figure 5 and 6 Explanation of using this application to enable permissions:

[0123] User wants to enable Figure 5 If the user wants to grant the location permission of application A shown in , the user only needs to select application A (such as Figure 5 Then drag application A to the trigger area corresponding to the permission option in the permission management bar (as shown in Figure 6 As shown), application A can obtain location permission.

[0124] With the permission management method provided in this embodiment, the user only needs to trigger the permission management control bar opening operation to call out the permission management bar. When the permission management bar is called out, the user only needs to drag one or more applications that need permission management into the permission control bar to control the applications to obtain relevant permissions. The whole process only requires two steps, and the operation is simple and efficient.

[0125] Figure 7 The flowchart of another permission management method provided by the embodiment of the present invention can be applied to terminal devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. Figure 7 As shown, the method may include the following steps:

[0126] S71. When receiving a permission control bar opening operation triggered by a user, control the permission control bar to be displayed in the terminal device.

[0127] For this step, please refer to the relevant description of S21, which will not be repeated here.

[0128] S72. Receive a viewing operation triggered by a user for any permission option in the permission control column.

[0129] As an embodiment, the viewing operation may be an operation set according to actual needs, such as a single-click operation or a double-click operation.

[0130] S73. Based on the viewing operation, control the application program that has obtained the permission corresponding to the arbitrary permission option to be displayed in a preset triggering area of ​​the arbitrary permission option.

[0131] As an embodiment, the terminal device records the applications that obtain the permission for each permission. Further, a list of applications corresponding to each permission option can be generated based on the record. When a viewing operation for a permission option is detected, a list of applications corresponding to the permission corresponding to the permission option is obtained based on the record, and the applications in the application list are controlled to be displayed in a preset trigger area corresponding to the permission option.

[0132] The following is a combination of application scenarios and Figure 8 and Fig. 9 , explain the application corresponding to this application viewing permission:

[0133] For example, if the viewing operation is a single-click operation, and the user wants to view the applications that have obtained location permission, the user only needs to click the location permission option (for example, Figure 8 ), the trigger area corresponding to the location permission option will display the applications that have obtained location permission (for example Fig. 9 shown).

[0134] Furthermore, since the number of applications that can be displayed in the preset trigger area at one time is limited, if the preset trigger area cannot display all corresponding applications at one time, the user can view all applications by sliding left and right in the preset display area (for example, Fig. 9 shown).

[0135] Through the above operations, users can easily view the applications corresponding to each permission, which improves the user experience.

[0136] It should be noted that the preset trigger area corresponding to the permission option also belongs to the display area of ​​the permission control bar.

[0137] As an embodiment, when an application is displayed in the preset trigger area of ​​the permission option, the user can drag any target application outside the permission control bar display area into the preset trigger area, so that the terminal device controls any target application to obtain the corresponding permission. For the specific control process, please refer to the description of S22-S24 above, which will not be repeated here.

[0138] As another embodiment, when an application is displayed in the preset trigger area of ​​the permission option, the user can drag any target application displayed in the preset trigger area out of the display area of ​​the permission control bar, so that the terminal device controls any target application to release the corresponding permission. For the specific control process, please refer to the description of S74-S76 below.

[0139] S74. Receive a permission closing operation, where the permission closing operation is triggered by a user for any application displayed in the display area of ​​the permission control bar.

[0140] As an embodiment, when the terminal device detects a drag operation triggered by a user on any target application displayed in the permission control bar display area, it obtains the position information corresponding to the drag operation, and compares the end point position information of the drag operation (i.e., the last position information collected for the drag operation) with the position information interval corresponding to the permission control bar display area to determine whether the end point position of the drag operation is outside the permission control bar display area. If the end point position of the drag operation is outside the permission control bar display area, it is determined that a permission closing operation for the target application has been received.

[0141] S75. Determine the target permission option in the permission control column that corresponds to the permission closing operation.

[0142] As an example, determining the target permission option may include the following steps:

[0143] Step 1: Determine the starting point position information of the drag operation.

[0144] The first acquired position information corresponding to the drag operation is used as the starting point position information of the drag operation.

[0145] Step 2: Obtain the location information of the preset trigger area corresponding to each permission option in the permission control bar.

[0146] As an embodiment, the display area of ​​the application corresponding to the permission option (the area is pre-set according to the requirements) and the area where the icon of the permission option is located are used as the preset trigger area corresponding to the permission option. Fig. 9 As shown, take the location permission option as an example. Fig. 9 The dotted area in the figure is the preset trigger area corresponding to the location permission option.

[0147] Step 3: Compare the starting point location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the starting point location information belongs.

[0148] As an embodiment, the preset trigger area that overlaps most with the starting point position information is determined as the target preset trigger area.

[0149] Step 4: Determine the permission option corresponding to the target preset trigger area as the target permission option.

[0150] S76. Based on the permission closing operation, control the arbitrary target application to release the target permission, where the target permission is the permission corresponding to the target permission option.

[0151] As an embodiment, controlling the arbitrary target application to release the target permission may include:

[0152] Set the state of the target permission corresponding to any target application to the closed state.

[0153] The following is a combination of application scenarios and attached Fig.10 Explanation of using this application to close permissions:

[0154] User wants to close Fig.10 If the user wants to grant the location permission of application B shown in , the user only needs to select application B (such as Fig.10 Then drag application B out of the trigger area corresponding to the location permission option, and application A can obtain the location permission.

[0155] The permission management method provided in this embodiment only requires calling the permission control bar when disabling a permission of an application, then viewing the permission option corresponding to the permission, and then dragging the application out of the trigger area of ​​the permission option. The whole process only requires three steps, and the operation is simple and efficient.

[0156] Based on any of the above embodiments, the rights management method provided by the present invention may further include:

[0157] If a permission control bar closing operation triggered by the user on the permission control bar is received, the permission control bar is closed.

[0158] As an embodiment, the permission control bar closing operation can be set according to actual needs, for example, it can be a left swipe operation on the trigger mark, for example Fig.11 As shown, this embodiment does not make any specific limitation to this.

[0159] As an embodiment, closing the permission control bar may be controlling the state of the permission control bar to be set to a hidden state. When the state of the permission control bar is a hidden state, it is not displayed in the terminal device.

[0160] In this embodiment, after the user completes the permission management of the application, the permission control bar can be closed by triggering the permission control bar closing operation, thereby avoiding the obstruction problem caused by the permission control bar when permission management is not performed.

[0161] The embodiment of the present invention also provides a rights management device, such as Fig.12 As shown, the apparatus 1200 may include:

[0162] A receiving module 1201 is used to receive a permission management operation when the permission control bar is displayed, where the permission management operation is triggered by a user for any target application, and the permission control bar includes at least one permission option;

[0163] The permission determination module 1202 is used to determine the target permission option corresponding to the permission management operation in the permission control column;

[0164] The permission control module 1203 is used to control the target permission of the arbitrary target application based on the permission management operation, and the target permission is the permission corresponding to the target permission option.

[0165] As an embodiment, the display permission control bar includes:

[0166] When receiving a permission control bar opening operation triggered by a user, the permission control bar is controlled to be displayed.

[0167] As an embodiment, if the permission management operation is a permission opening operation, the receiving module 1201 is specifically used for:

[0168] A drag operation triggered by a user on any target application outside the display area of ​​the permission control bar is received. If the end point of the drag operation is located within the display area of ​​the permission control bar, it is determined that a permission opening operation triggered on the any target application is received.

[0169] As a possible implementation manner, receiving a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar includes:

[0170] Receiving a touch operation triggered by a user on any application outside the display area of ​​the permission control bar;

[0171] If it is determined that the touch operation is a drag operation, determining that a drag operation triggered by the user on the arbitrary application is received, and determining the arbitrary application as a target application;

[0172] If it is determined that the touch operation is a long press operation, entering a multiple selection mode;

[0173] In the multi-selection mode, receiving a selection operation triggered by a user for any application outside the display area of ​​the permission control bar, and determining that the application corresponding to the selection operation is the first application;

[0174] If a drag operation triggered by the user on any of the first applications is received, it is determined that a drag operation triggered by the user on all first applications is received, and all first applications are determined to be target applications.

[0175] As an embodiment, the permission determination module 1202 is specifically used for:

[0176] Determining the end point position information of the drag operation;

[0177] Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar;

[0178] Compare the terminal location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the terminal location information belongs;

[0179] The permission option corresponding to the target preset trigger area is determined as the target permission option.

[0180] As an example, Fig.13 As shown, the authority control device further includes a viewing module 1204, and the viewing module 1204 is specifically used to:

[0181] Receiving a viewing operation triggered by a user for any permission option in the permission control bar;

[0182] Based on the viewing operation, an application program that has obtained the permission corresponding to the arbitrary permission option is controlled to be displayed in a preset triggering area of ​​the arbitrary permission option.

[0183] As an embodiment, if the permission management operation is a permission closing operation, the receiving module 1201 is specifically used for:

[0184] When an application is displayed in the display area of ​​the permission control bar, a user's drag operation on any target application displayed in the display area is received. If the end point of the drag operation is outside the display area, it is determined that a permission closing operation triggered by the user on the arbitrary target application is received.

[0185] As an embodiment, the permission determination module 1202 is specifically used for:

[0186] Determining the starting point position information of the drag operation;

[0187] Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar;

[0188] Compare the starting point location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the starting point location information belongs;

[0189] The permission option corresponding to the target preset trigger area is determined as the target permission option.

[0190] As an embodiment, the authority control module 1203 is specifically used for:

[0191] If the permission management operation is a permission opening operation, then based on the permission management operation, controlling the arbitrary target application to obtain the target permission;

[0192] If the permission management operation is a permission closing operation, then based on the permission management operation, the arbitrary target application is controlled to release the target permission.

[0193] In another embodiment of the present application, an electronic device is also provided, such as Fig.14 As shown, it includes a processor 1401, a communication interface 1402, a memory 1403 and a communication bus 1404, wherein the processor 1401, the communication interface 1402, and the memory 1403 communicate with each other through the communication bus 1404;

[0194] Memory 1403, used for storing computer programs;

[0195] The processor 1401 is used to implement the following steps when executing the program stored in the memory 1403:

[0196] In the case of displaying the permission control bar, receiving a permission management operation, wherein the permission management operation is triggered by a user for any target application, and the permission control bar includes at least one permission option;

[0197] Determine a target permission option in the permission control column corresponding to the permission management operation;

[0198] The target permission of the arbitrary target application is controlled based on the permission management operation, and the target permission is the permission corresponding to the target permission option.

[0199] The communication bus 1404 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1404 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0200] The communication interface 1402 is used for communication between the above electronic device and other devices.

[0201] The memory 1403 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0202] The above-mentioned processor 1401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0203] In another embodiment of the present application, a storage medium is further provided, wherein a permission management method program is stored on the computer-readable storage medium, and when the permission management method program is executed by a processor, the steps of any of the above-mentioned permission management methods are implemented.

[0204] When the embodiments of the present invention are specifically implemented, reference may be made to the above embodiments, and the corresponding technical effects are achieved.

[0205] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0206] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A rights management method, characterized in that: include: In the case of displaying the permission control bar, receiving a permission management operation, wherein the permission management operation is triggered by a user for any target application, and the permission control bar includes a plurality of permission options; Determine a target permission option in the permission control column corresponding to the permission management operation; Controlling the target permission of the arbitrary target application based on the permission management operation, the target permission being the permission corresponding to the target permission option; The display permission control bar includes: When receiving a permission control bar opening operation triggered by a user, controlling the permission control bar to be displayed; Wherein, if the permission management operation is a permission opening operation, the receiving permission management operation includes: Receiving a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar, and if the end position of the drag operation is located within the display area of ​​the permission control bar, determining that a permission opening operation triggered on the any target application is received; Wherein, receiving a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar includes: Receiving a touch operation triggered by a user on any application outside the display area of ​​the permission control bar; If it is determined that the touch operation is a drag operation, determining that a drag operation triggered by the user on the arbitrary application is received, and determining the arbitrary application as a target application; If it is determined that the touch operation is a long press operation, entering a multiple selection mode; In the multi-selection mode, receiving a selection operation triggered by a user for any application outside the display area of ​​the permission control bar, and determining that the application corresponding to the selection operation is the first application; If a drag operation triggered by the user on any of the first applications is received, determining that a drag operation triggered by the user on all first applications is received, and determining that all first applications are target applications; The determining of the target permission option corresponding to the permission management operation in the permission control column includes: Determining the end point position information of the drag operation; Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar; Compare the terminal location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the terminal location information belongs; The permission option corresponding to the target preset trigger area is determined as the target permission option.

2. The method according to claim 1, characterized in that The method further comprises: Receiving a viewing operation triggered by a user for any permission option in the permission control bar; Based on the viewing operation, an application program that has obtained the permission corresponding to the arbitrary permission option is controlled to be displayed in a preset triggering area of ​​the arbitrary permission option.

3. The method according to claim 2, characterized in that If the permission management operation is a permission closing operation, the receiving permission management operation includes: When an application is displayed in the display area of ​​the permission control bar, a user's drag operation on any target application displayed in the display area is received. If the end point of the drag operation is outside the display area, it is determined that a permission closing operation triggered by the user on the arbitrary target application is received.

4. The method according to claim 3, characterized in that: Determining a target permission option corresponding to the permission management operation in the permission control column includes: Determining the starting point position information of the drag operation; Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar; Compare the starting point location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the starting point location information belongs; The permission option corresponding to the target preset trigger area is determined as the target permission option.

5. The method according to claim 1, characterized in that Controlling the target permission of the arbitrary target application based on the permission management operation includes: If the permission management operation is a permission opening operation, then based on the permission management operation, controlling the arbitrary target application to obtain the target permission; If the permission management operation is a permission closing operation, then based on the permission management operation, the arbitrary target application is controlled to release the target permission.

6. A rights management device, characterized in that: include: A receiving module, used to receive a permission management operation when the permission control bar is displayed, wherein the permission management operation is triggered by a user for any target application, and the permission control bar includes multiple permission options; A permission determination module, used to determine a target permission option in the permission control column corresponding to the permission management operation; A permission control module, used to control the target permission of the arbitrary target application based on the permission management operation, the target permission being the permission corresponding to the target permission option; The receiving module is used to control the display of the permission control bar when receiving a permission control bar opening operation triggered by a user; The receiving module is further configured to, if the permission management operation is a permission opening operation, then the receiving permission management operation includes: receiving a drag operation triggered by a user for any target application outside the display area of ​​the permission control bar, and if the end position of the drag operation is located within the display area of ​​the permission control bar, determining that a permission opening operation triggered for the any target application is received; The receiving module is also used to receive a drag operation triggered by a user on any target application outside the display area of ​​the permission control bar, including: receiving a touch operation triggered by a user on any application outside the display area of ​​the permission control bar; if the touch operation is determined to be a drag operation, determining that the drag operation triggered by the user on the any application is received, and determining that the any application is the target application; if the touch operation is determined to be a long press operation, entering a multi-selection mode; in the multi-selection mode, receiving a selection operation triggered by the user on any application outside the display area of ​​the permission control bar, and determining that the application corresponding to the selection operation is a first application; if the drag operation triggered by the user on any of the first applications is received, determining that the drag operation triggered by the user on all first applications is received, and determining that all first applications are target applications; The determining of the target permission option corresponding to the permission management operation in the permission control column includes: Determining the end point position information of the drag operation; Obtaining location information of a preset trigger area corresponding to each permission option in the permission control bar; Compare the terminal location information with the location information of the preset trigger area corresponding to each permission option, and determine the target preset trigger area to which the terminal location information belongs; The permission option corresponding to the target preset trigger area is determined as the target permission option.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a data processing program stored in the memory to implement the rights management method described in any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the rights management method described in any one of claims 1-5.

Citation Information

Patent Citations

  • A method and apparatus for setting application state

    CN109407917A

  • Permission setting method and apparatus and electronic device

    CN111966258A