CN112560101A - Authority management method and device, electronic equipment and storage medium - Google Patents

Authority management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112560101A
CN112560101A CN202011564785.7A CN202011564785A CN112560101A CN 112560101 A CN112560101 A CN 112560101A CN 202011564785 A CN202011564785 A CN 202011564785A CN 112560101 A CN112560101 A CN 112560101A
Authority
CN
China
Prior art keywords
authority
target
application program
permission
option
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011564785.7A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011564785.7A priority Critical patent/CN112560101A/en
Publication of CN112560101A publication Critical patent/CN112560101A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/629Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a permission management method, a permission management device, electronic equipment and a storage medium, which are used for receiving permission management operation triggered by a user aiming at any target application program under the condition of displaying a permission control column, determining a target permission option corresponding to the permission management operation in the permission control column, and then controlling the target permission of the any target application program based on the permission management operation, wherein the target permission is the permission corresponding to the target permission option. When the invention is applied to authority management, a user only needs to execute simple authority management operation on an application program, compared with the prior art that a plurality of steps need to be executed, the invention reduces the fussy operation steps, the user can more conveniently and rapidly carry out authority management, the authority management efficiency is improved, and the user experience is improved.

Description

Authority management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of information security technologies, and in particular, to a method and an apparatus for managing permissions, an electronic device, and a storage medium.
Background
With the development of communication technology and terminal technology, more and more applications are installed in terminal equipment, and different permissions are set for different applications in order to protect information security of users.
Currently, the commonly used permission setting method is as follows: the user finds the permission setting entry of the application program first and then sets the permission of the application program. For example, if the user wants to set the authority of the application program a, the user may click on an icon of the application program "set" in the terminal device to trigger the terminal device to display a main interface of the application program "set"; then, the user can click the application management option in the main interface to trigger the terminal equipment to update and display the main interface as an application management interface; then, the user clicks the authority management option in the application management interface to trigger the terminal equipment to update and display the main interface as the authority management interface; and then, the user can click the icon of the application program A in the authority management interface to trigger the terminal device to update and display the authority management interface as the authority setting interface of the application program A. Therefore, the user can perform opening or closing operation on the rights such as a microphone, positioning, a telephone, storage, a camera or a contact person in the right setting interface of the application program A, and further realize the right setting of the application program A.
The method for setting the application permission has complicated steps and low permission management efficiency.
Disclosure of Invention
In order to solve the technical problem of low efficiency of the conventional authority management, the application provides an authority management method, an authority management device, an electronic device and a storage medium.
In a first aspect, an embodiment of the present application provides a rights management method, including:
receiving authority management operation under the condition of displaying an authority control bar, wherein the authority management operation is triggered by a user aiming at any target application program, and the authority control bar at least comprises one authority option;
determining a target authority option corresponding to the authority management operation in the authority control column;
and controlling the target authority of the arbitrary target application program based on the authority management operation, wherein the target authority is the authority corresponding to the target authority option.
As a possible implementation manner, the display right control bar includes:
and when receiving the starting operation of the authority control column triggered by the user, controlling the display of the authority control column.
As a possible implementation manner, if the permission management operation is a permission opening operation, the receiving the permission management operation includes:
and receiving a dragging operation triggered by a user aiming at any target application program outside the display area of the authority control bar, and determining to receive an authority opening operation triggered by the any target application program if the end point position of the dragging operation is located in the display area of the authority control bar.
As a possible implementation manner, receiving a dragging operation triggered by a user for any target application outside the display area of the permission control bar includes:
receiving touch operation triggered by a user aiming at any application program outside the display area of the authority control bar;
if the touch operation is determined to be a dragging operation, determining that the dragging operation triggered by a user aiming at the arbitrary application program is received, and determining that the arbitrary application program is a target application program;
if the touch operation is determined to be a long-press operation, entering a multi-selection mode;
receiving a selection operation triggered by a user aiming at any application program outside the display area of the authority control bar in a multi-selection mode, and determining the application program corresponding to the selection operation as a first application program;
and if the dragging operation triggered by the user aiming at any first application program is received, determining that the dragging operation triggered by the user aiming at all the first application programs is received, and determining that all the first application programs are target application programs.
As a possible implementation manner, determining a target permission option in the permission control bar corresponding to the permission management operation includes:
determining end point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the end point position information with position information of a preset trigger area corresponding to each authority option respectively, and determining a target preset trigger area to which the end point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
As a possible implementation, the method further includes:
receiving a viewing operation triggered by a user aiming at any authority option in the authority control bar;
and controlling the application program which acquires the authority corresponding to the arbitrary authority option to be displayed in a preset trigger area of the arbitrary authority option based on the viewing operation.
As a possible implementation manner, if the rights management operation is a rights closing operation, the receiving the rights management operation includes:
and under the condition that the application program is displayed in the display area of the authority control bar, receiving the dragging operation of a user for any target application program displayed in the display area, and determining to receive the authority closing operation triggered by the user for any target application program if the terminal position of the dragging operation is located outside the display area.
As a possible implementation manner, determining a target permission option in the permission control bar corresponding to the permission management operation includes:
determining starting point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the starting point position information with position information of preset trigger areas corresponding to the authority options respectively, and determining a target preset trigger area to which the starting point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
As a possible implementation manner, controlling the target permission of the arbitrary target application based on the permission management operation includes:
if the authority management operation is an authority opening operation, controlling the arbitrary target application program to acquire the target authority based on the authority management operation;
and if the authority management operation is an authority closing operation, controlling the arbitrary target application program to remove the target authority based on the authority management operation.
In a second aspect, an embodiment of the present application further provides a rights management device, including:
the receiving module is used for receiving authority management operation under the condition of displaying an authority control bar, wherein the authority management operation is triggered by a user aiming at a target application program, and the authority control bar at least comprises an authority option;
the authority determining module is used for determining a target authority option corresponding to the authority management operation in the authority control column;
and the authority control module is used for controlling the target authority of the arbitrary target application program based on the authority management operation, and the target authority is the authority corresponding to the target authority option.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor and a memory, the processor being configured to execute a data processing program stored in the memory to implement the rights management method of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the rights management method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
in the method for managing permission provided by this embodiment, when a permission control bar is displayed in a display interface, a permission management operation triggered by a user for an arbitrary target application program is received, a target permission option corresponding to the permission management operation in the permission control bar is determined, and then a target permission of the arbitrary target application program is controlled based on the permission management operation, where the target permission is a permission corresponding to the target permission option. When the novel authority management mode is applied to authority management, a user only needs to execute simple authority management operation on an application program, and compared with the existing steps needing to be executed, the novel authority management mode reduces the complex operation steps, can be used for carrying out authority management more conveniently and quickly, improves the authority management efficiency, and improves the user experience.
Drawings
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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a rights management method according to an embodiment of the present application;
FIG. 2 is a flow chart of another rights management method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a rights management operation provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a rights management operation provided in an embodiment of the present application;
FIG. 5 is a diagram illustrating a rights management operation provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a rights management operation provided in an embodiment of the present application;
FIG. 7 is a flowchart of another rights management method provided in an embodiment of the present application;
FIG. 8 is a diagram illustrating operations of rights management according to an embodiment of the present application;
FIG. 9 is a diagram illustrating operations of rights management according to an embodiment of the present application;
FIG. 10 is a diagram illustrating operations of rights management provided in an embodiment of the present application;
FIG. 11 is a diagram illustrating a rights management operation provided in an embodiment of the present application;
fig. 12 is a block diagram of a rights management device according to an embodiment of the present application;
fig. 13 is a block diagram of another rights management device provided in an embodiment of the present application;
fig. 14 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The invention provides an application authority management method, aiming at solving the problems of complicated steps and excessive time consumption of the current application program authority setting.
For facilitating understanding of the embodiments of the present invention, an application scenario of the rights management method provided by the embodiments of the present invention is first explained with reference to the drawings.
In the conventional method, a user uses an application, and the application generally needs to acquire corresponding permissions in order to implement some functions, for example, taking application a as an example, application a needs to acquire a camera permission if the application a wants to take a video or a picture, a microphone permission if the application a wants to record a sound, a positioning permission if the application a wants to acquire position information, and the like. Therefore, if a certain function of the application a is to be used, it is necessary to perform permission setting on the application a first so that the application a acquires the corresponding permission.
Further, in the existing method, taking setting the authority of the application program a as an example, the whole setting process is probably as follows: firstly, clicking an icon of an application program of 'setting' in terminal equipment to trigger the terminal equipment to display a main interface of the 'setting' application program; then, the user clicks the application management option in the main interface to trigger the terminal equipment to update and display the main interface as an application management interface; then, the user clicks the authority management option in the application management interface to trigger the terminal equipment to update and display the main interface as the authority management interface; then, the user can click the icon of the application program A in the authority management interface to trigger the terminal device to update and display the authority management interface as the authority setting interface of the application program A, and then the user finds the corresponding authority in the authority setting interface to set. The whole setting process is complicated in steps and too much in time consumption.
Based on this, in order to solve the technical problems of complicated steps and much time consumption existing in the conventional application program authority management, the embodiment of the invention provides an authority management method. The maximization simplifies the permission setting step. The scheme greatly improves the efficiency of setting the authority on the aspect of setting the authority management of the application program.
Fig. 1 is a flowchart of a rights management method according to an embodiment of the present invention, where the method may be applied to a terminal device, and the terminal device includes but is not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. As shown in fig. 1, the method may include the steps of:
s11, receiving authority management operation under the condition that an authority control bar is displayed, wherein the authority management operation is triggered by a user aiming at any target application program, and the authority control bar at least comprises one authority option.
As an embodiment, the permission control column is a task column for performing permission management on the application program, the size and the corresponding display area of the permission control column are set according to actual requirements, at least one permission option is set in the permission control column, and one permission option corresponds to one permission.
As an optional implementation manner, the permission control bar may be resident in a display interface of the terminal device, that is, as long as the terminal device is turned on, the permission control bar is displayed in the terminal device, which may facilitate the user to perform permission management on the application program at any time, but due to the display of the permission control bar, other display contents may be blocked, which may affect user experience.
As another optional implementation manner, the permission control bar may be displayed in the terminal device only when the terminal device receives the permission control bar opening operation, and the permission control bar opening operation may be set according to actual requirements.
In this embodiment, the user refers to a person or an intelligent device, such as an intelligent robot, which can operate the terminal device.
In the application, in the case of displaying the authority control bar in the terminal device, whether each application program installed in the terminal device has received the authority management operation is monitored in real time, and if it is detected that any (i.e., one or more) target application programs have received the authority management operation, S12 is executed for the target application programs. The target application program refers to an application program corresponding to the authority management operation, and the authority management operation is authority opening operation or authority closing operation.
And S12, determining a target authority option corresponding to the authority management operation in the authority control column.
And S13, controlling the target authority of the arbitrary target application program based on the authority management operation, wherein the target authority is the authority corresponding to the target authority option.
As an embodiment, if the authority management operation is an authority opening operation, the arbitrary target application program is controlled to acquire the target authority based on the authority management operation, and if the authority management operation is an authority closing operation, the arbitrary target application program is controlled to release the target authority based on the authority management operation.
In the rights management method provided by this embodiment, under the condition that a rights control bar is displayed in a display interface of a terminal device, a rights management operation triggered by a user for any target application program in the terminal device is received, a target rights option corresponding to the rights management operation in the rights control bar is determined, and then a target right of the any target application program is controlled based on the rights management operation, where the target right is a right corresponding to the target rights option. When the novel authority management mode is applied to authority management, a user only needs to execute simple authority management operation on an application program, and compared with the existing steps needing to be executed, the novel authority management mode reduces the complex operation steps, can be used for carrying out authority management more conveniently and quickly, improves the authority management efficiency, and improves the user experience.
Furthermore, the application performs authority management by taking the application program as granularity. Compared with the prior art that authority management is carried out by taking authority as granularity, the authority management method can only set one authority in one application program at each time, and when the authority management method is used for carrying out authority management, a user can trigger authority management operation on any (namely one or more) target application programs at the same time, so that the authority management on any target application program is realized at the same time, and the authority management efficiency is further improved.
Fig. 2 is a flowchart of another rights management method according to an embodiment of the present invention, which may be applied to a terminal device, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like. As shown in fig. 2, the method may comprise the steps of:
and S21, when the permission control column starting operation triggered by the user is received, controlling the permission control column to display.
In this embodiment, in order to prevent the display right control bar from blocking other display contents in the display interface when the right management is not performed, the default state of the right control bar is set to be the hidden state. When the authority control column is in a hidden state, the terminal device detects whether the opening operation of the authority control column triggered by the user is received, if the opening operation of the authority control column triggered by the user is received, the state of the control authority control column is switched from the hidden state to a display state, so that the authority control column is displayed in a display interface of the terminal device, and if the opening operation of the authority control column triggered by the user is not received, the state of the authority control column is kept unchanged in a default state.
As an embodiment, a trigger flag of the permission control bar may be set in the terminal device, where the trigger flag may be a virtual flag or an entity button, and when the permission control bar is in a default state, it is detected whether a start operation triggered by a user for the trigger flag is received, and if the start operation triggered by the user for the trigger flag is received, it is determined that the start operation of the permission control bar triggered by the user in the terminal device is received, where the start operation may be an operation set according to an actual requirement, such as a left-sliding operation, a right-sliding operation, a long-pressing operation, a double-click operation, and the like.
Referring to fig. 3, a manner of detecting the activation operation of the authority control bar will be described with reference to an example in which the trigger mark is a virtual mark (e.g., 301 shown in fig. 3) displayed in the display interface of the terminal device, and the activation operation is a right slide operation triggered by the trigger mark:
when the authority control column is in a hidden state, whether touch operation triggered by a user aiming at the trigger mark is received or not is detected, if the touch operation triggered by the user aiming at the trigger mark is received, whether the touch operation is right-sliding operation or not is judged, if yes, the permission control column opening operation is determined to be received, and if the touch operation triggered aiming at the trigger mark is not received or the received touch operation is not right-sliding operation, the permission control column opening operation is determined not to be received.
It should be noted that the positions and the patterns of the trigger marks shown in fig. 3 are only exemplary, and do not constitute a limitation on the trigger marks.
Furthermore, the position and the style of the trigger mark of the authority control column can be set by the user according to the actual requirement. Specifically, a style library may be set in the terminal device in advance, the style library includes multiple styles, for example, the styles in the style library may include cartoon characters, arrows, circles, rectangles, and the like, and a user may select any style from the style library as a style of the trigger according to actual needs.
As an embodiment, the style of the permission control column and the corresponding display area are preset, and when it is determined that the permission control column starting operation triggered by the user is received, the permission control column is controlled to be displayed in the display area according to the preset style, wherein the style of the permission control column and the display area can be set by the user or a developer according to actual requirements.
In application, the authority control bar includes at least one authority option, one authority option corresponds to one authority, different authority options correspond to different authorities, and the authority options can be displayed in the authority control bar in the form of icons or characters, for example, as shown in fig. 4, the authority options are displayed in the form of icons. In the sequence from top to bottom, the icons included in the authority control field shown in fig. 4 sequentially represent a storage authority option, a call authority option, a positioning authority option, a camera authority option, a microphone authority option, an operation data authority option, a contact authority option, and an information authority option, and it should be noted that the authority options included in fig. 4 are only exemplary, and in addition to the above 8 authority options, other authority options may be included in the authority control field. When there are multiple right options in the right control bar, the multiple right options may be arranged according to a preset arrangement form (for example, longitudinally arranged, transversely arranged, and the like), for example, as shown in fig. 4, the right options are longitudinally arranged. The arrangement order of the plurality of permission options may be set by the user, or may be randomly generated, or the arrangement order of the permission options may be generated according to the preset weight of each permission and the order of the weights from high to low, which is not specifically limited in the present invention.
And S22, receiving authority opening operation, wherein the authority opening operation is triggered by a user aiming at any target application program outside the display area of the authority control bar.
As one embodiment, the reception authority opening operation includes:
and receiving a dragging operation triggered by a user aiming at any target application program outside the display area of the authority control bar, and determining to receive an authority opening operation triggered by the any target application program if the end point position of the dragging operation is located in the display area of the authority control bar.
In application, the size of the permission control bar is smaller than that of the display screen of the terminal device, as shown in fig. 4, in the case that the terminal device displays the permission control bar, the area outside the permission control bar may also display the application program. At this time, if the user wants to perform authority management on the application program outside the authority control bar, the application program can be dragged from outside the authority control bar to the corresponding authority option in the authority control bar.
Further, after the terminal device detects a dragging operation triggered by a user for any target application program outside the display area of the authority control bar, position information corresponding to the dragging operation is acquired, end point position information of the dragging operation (namely, the last position information acquired for the dragging operation) is compared with a position information interval corresponding to the display area of the authority control bar, so that whether the end point position of the dragging operation is located in the display area of the authority control bar or not is determined, and if the end point position of the dragging operation is located in the display area of the authority control bar, the permission opening operation for the target application program is determined to be received.
As an embodiment, the user may trigger the dragging operation on one application program, or may trigger the dragging operation on multiple application programs at the same time, that is, the dragging operation received by the terminal device may be triggered by the user for one target application program outside the display area of the authority control bar, or may be triggered for multiple target application programs outside the display area of the authority control bar. Specifically, receiving a dragging operation triggered by a user for any target application outside the display area of the permission control bar may include:
step 1: and receiving touch operation triggered by a user aiming at any application program outside the display area of the authority control bar.
Step 2: and determining whether the touch operation is a dragging operation, if so, executing the step 3, and otherwise, executing the step 4.
And step 3: and determining that the dragging operation triggered by the user aiming at the arbitrary application program is received, and determining that the arbitrary application program is the target application program.
And 4, step 4: and determining whether the touch operation is a long-press operation, if so, executing the step 5, and otherwise, executing the step 8.
And 5: and entering a multi-selection mode, receiving a selection operation triggered by a user aiming at any application program outside the display area of the authority control bar, determining the application program corresponding to the selection operation as a first application program, and executing the step 6.
As an embodiment, in the multiple selection mode, the user may select multiple applications at the same time, and the terminal device performs corresponding processing on the selected multiple applications as a whole.
As an embodiment, when a long-press operation for a certain application is detected, a selection box is displayed at the upper right corner of an icon corresponding to each application displayed outside the display area of the permission control box, and when it is detected that the selection box is clicked, it is determined that the corresponding application is selected, so as to distinguish the selected application from the non-selected applications, the selected application is marked, for example, the selected application is marked as the first application.
Step 6: and detecting whether a dragging operation triggered by a user aiming at any first application program is received, if so, executing a step 7, and otherwise, executing a step 8.
And 7: and determining that the dragging operation triggered by the user aiming at all the first application programs is received, and determining that all the first application programs are target application programs.
Step 6 and step 7 will be explained in a unified manner:
in the multi-selection mode, the selected first application program is taken as a whole to be synchronously processed, so when the dragging operation aiming at any (one or more) first application programs is detected, other first application programs are dragged together, the dragging of the plurality of application programs is realized at the same time, and further, the authority management of the plurality of application programs can be realized at the same time.
And 8: and determining that the dragging operation triggered by the user aiming at any application program is not received.
And S23, determining a target authority option corresponding to the authority opening operation in the authority control column.
As an embodiment, determining the target permission option may include the steps of:
step 1: determining end position information of the drag operation.
As an embodiment, after the drag operation is detected, the 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.
Step 2: and acquiring the position information of a preset trigger area corresponding to each authority option in the authority control column.
As an embodiment, when the application program is not displayed in the permission control bar, an area where the permission option icon is located in the permission control bar is used as a preset trigger area corresponding to the permission option. For example, as shown in fig. 6, taking the positioning right option as an example, the dashed area in fig. 6 is the preset trigger area corresponding to the positioning right option.
Further, as shown in fig. 6, after receiving the permission opening operation for the application program, the application program outside the permission control column still remains, so that the user can use the application program conveniently.
As another embodiment, when the application program is displayed in the permission control bar, a display area (which is set in advance according to requirements) of the application program corresponding to the permission option and an area where an icon of the permission option is located are used as preset trigger areas corresponding to the permission option. For example, as shown in fig. 9, taking the positioning right option as an example, the dashed area in fig. 9 is the preset trigger area corresponding to the positioning right option.
And step 3: and comparing the end point position information with the position information of the preset trigger area corresponding to each authority option respectively, and determining the target preset trigger area to which the end point position information belongs.
As an embodiment, a preset trigger area that overlaps most with the end point position information is determined as a target preset trigger area.
And 4, step 4: and determining the permission option corresponding to the target preset trigger area as a target permission option.
And S24, controlling any target application program to acquire a target authority based on the authority opening operation, wherein the target authority is the authority corresponding to the target authority option.
As an embodiment, controlling the arbitrary target application to acquire the target authority may include:
and setting the state of the target authority corresponding to any target application program as an opening state.
The following describes the permission opening by the application in conjunction with the application scenario and the accompanying fig. 5 and 6:
when the user wants to open the positioning authority of the application program a shown in fig. 5, the user only needs to select the application program a (as shown in fig. 5), and then drag the application program a to the trigger area corresponding to the positioning authority option in the authority management bar (as shown in fig. 6), so that the application program a can acquire the positioning authority.
According to the authority management method provided by the embodiment, a user can call out the authority management column only by triggering the starting operation of the authority management control column, and under the condition of calling out the authority management column, one or more application programs needing authority management can be controlled to acquire related authority only by dragging the application programs to the authority control column.
Fig. 7 is a flowchart of another rights management method according to an embodiment of the present invention, which may be applied to a terminal device, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like. As shown in fig. 7, the method may comprise the steps of:
and S71, when the permission control column starting operation triggered by the user is received, controlling the permission control column to be displayed in the terminal equipment.
The step can be referred to the related description of S21, and is not described herein again.
And S72, receiving the viewing operation triggered by the user aiming at any authority option in the authority control bar.
As an embodiment, the viewing operation may be an operation set according to actual requirements, such as a single-click operation or a double-click operation.
And S73, controlling the application program which acquires the authority corresponding to the arbitrary authority option to be displayed in the preset trigger area of the arbitrary authority option based on the viewing operation.
As an embodiment, the terminal device records, for each authority, an application program that acquires the authority. Further, an application program list corresponding to each permission option may be generated according to the record, and when a viewing operation for the permission option is detected, the application program list corresponding to the permission option is acquired according to the record, and the application programs in the application program list are controlled to be displayed in a preset trigger area corresponding to the permission option.
The following describes, with reference to the application scenario and fig. 8 and 9, an application program corresponding to the viewing right in the present application:
taking the viewing operation as a single-click operation as an example, if the user wants to view the application program that has acquired the positioning right, the user only needs to click the positioning right option (for example, as shown in fig. 8), and the application program that has acquired the positioning right is displayed in the trigger area corresponding to the positioning right option (for example, as shown in fig. 9).
Further, since the number of the applications that can be displayed in the preset trigger area at a time is limited, if the preset trigger area cannot display all the corresponding applications at a time, the user may view all the applications by performing a left-right sliding operation in the preset display area (for example, as shown in fig. 9).
By the aid of the method, the user can conveniently view the application program corresponding to each authority, and user experience is improved.
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.
As an embodiment, when an application is displayed in a preset trigger area of an authority option, a user may drag any target application outside the authority control bar display area into the preset trigger area, so that the terminal device controls the any target application to obtain a corresponding authority. For a specific control flow, reference may be made to the descriptions of S22-S24, which are not described herein again.
As another embodiment, in a case that an application program is displayed in a preset trigger area of the permission option, the user may drag any target application program displayed in the preset trigger area out of a display area of the permission control bar, so that the terminal device controls any target application program to release the corresponding permission. The specific control flow can be seen in the descriptions of S74-S76 below.
And S74, receiving an authority closing operation, wherein the authority closing operation is triggered by a user aiming at any application program displayed in the display area of the authority control bar.
As an embodiment, after detecting a dragging operation triggered by a user for any target application program displayed in an authority control bar display area, a terminal device obtains position information corresponding to the dragging operation, compares end point position information of the dragging operation (i.e., last position information acquired for the dragging operation) with a position information interval corresponding to the authority control bar display area, so as to determine whether the end point position of the dragging operation is located outside the display area of the authority control bar, and determines that an authority closing operation for the target application program is received if the end point position of the dragging operation is located outside the display area of the authority control bar.
And S75, determining a target permission option corresponding to the permission closing operation in the permission control column.
As an embodiment, determining the target permission option may comprise the steps of:
step 1: determining start point position information of the drag operation.
And taking the position information corresponding to the dragging operation acquired firstly as the starting point position information of the dragging operation.
Step 2: and acquiring the position information of a preset trigger area corresponding to each authority option in the authority control column.
As an embodiment, a display area of an application program corresponding to an authority option (the area is set in advance according to requirements) and an area where an icon of the authority option is located are used as a preset trigger area corresponding to the authority option. For example, as shown in fig. 9, taking the positioning right option as an example, the dashed area in fig. 9 is the preset trigger area corresponding to the positioning right option.
And step 3: and comparing the starting point position information with the position information of the preset trigger area corresponding to each permission option respectively, and determining the target preset trigger area to which the starting point position information belongs.
As an embodiment, a preset trigger area with the largest overlapping amount of the start position information is determined as a target preset trigger area.
And 4, step 4: and determining the permission option corresponding to the target preset trigger area as a target permission option.
And S76, controlling the arbitrary target application program to remove the target authority based on the authority closing operation, wherein the target authority is the authority corresponding to the target authority option.
As an embodiment, controlling the arbitrary target application to release the target authority may include:
and setting the state of the target authority corresponding to any target application program as a closed state.
The following describes the permission closing with the present application in conjunction with the application scenario and fig. 10:
when the user wants to close the positioning right of the application program B shown in fig. 10, the user only needs to select the application program B (as shown in fig. 10), and then drags the application program B out of the trigger area corresponding to the positioning right option, so that the application program a can acquire the positioning right.
According to the authority management method provided by the embodiment, when a certain authority of the application program is closed, only the authority control bar needs to be called, then the checking operation is executed on the authority option corresponding to the authority, and then the application program is dragged out of the trigger area of the authority option.
On the basis of any of the above embodiments, the rights management method provided by the present invention may further include:
and if receiving the permission control column closing operation triggered by the user aiming at the permission control column, closing the permission control column.
As an embodiment, the permission control bar closing operation may be set according to actual requirements, for example, may be a left-sliding operation on a trigger mark, for example, as shown in fig. 11, which is not limited in this embodiment.
As an embodiment, the closing of the authority control column may be to set the state of controlling the authority control column to a hidden state, and when the state of the authority control column is the hidden state, the authority control column is not displayed in the terminal device.
In this embodiment, after the user completes the authority management of the application program, the authority control column can be closed by triggering the authority control column closing operation, so that the problem of shielding caused by the authority control column when the authority management is not performed is avoided.
An embodiment of the present invention further provides a rights management apparatus, as shown in fig. 12, the apparatus 1200 may include:
a receiving module 1201, configured to receive an authority management operation under a condition that an authority control bar is displayed, where the authority management operation is triggered by a user for any target application program, and the authority control bar includes at least one authority option;
a permission determining module 1202, configured to determine a target permission option in the permission control bar corresponding to the permission management operation;
and an authority control module 1203, configured to control a target authority of the arbitrary target application based on the authority management operation, where the target authority is an authority corresponding to the target authority option.
As an embodiment, the presentation authority control bar includes:
and when receiving the starting operation of the authority control column triggered by the user, controlling the display of the authority control column.
As an embodiment, if the authority management operation is an authority opening operation, the receiving module 1201 is specifically configured to:
and receiving a dragging operation triggered by a user aiming at any target application program outside the display area of the authority control bar, and determining to receive an authority opening operation triggered by the any target application program if the end point position of the dragging operation is located in the display area of the authority control bar.
As a possible implementation manner, receiving a dragging operation triggered by a user for any target application outside the display area of the permission control bar includes:
receiving touch operation triggered by a user aiming at any application program outside the display area of the authority control bar;
if the touch operation is determined to be a dragging operation, determining that the dragging operation triggered by a user aiming at the arbitrary application program is received, and determining that the arbitrary application program is a target application program;
if the touch operation is determined to be a long-press operation, entering a multi-selection mode;
receiving a selection operation triggered by a user aiming at any application program outside the display area of the authority control bar in a multi-selection mode, and determining the application program corresponding to the selection operation as a first application program;
and if the dragging operation triggered by the user aiming at any first application program is received, determining that the dragging operation triggered by the user aiming at all the first application programs is received, and determining that all the first application programs are target application programs.
As an embodiment, the permission determination module 1202 is specifically configured to:
determining end point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the end point position information with position information of a preset trigger area corresponding to each authority option respectively, and determining a target preset trigger area to which the end point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
As an embodiment, as shown in fig. 13, the authority control apparatus further includes a viewing module 1204, where the viewing module 1204 is specifically configured to:
receiving a viewing operation triggered by a user aiming at any authority option in the authority control bar;
and controlling the application program which acquires the authority corresponding to the arbitrary authority option to be displayed in a preset trigger area of the arbitrary authority option based on the viewing operation.
As an embodiment, if the rights management operation is a rights closing operation, the receiving module 1201 is specifically configured to:
and under the condition that the application program is displayed in the display area of the authority control bar, receiving the dragging operation of a user for any target application program displayed in the display area, and determining to receive the authority closing operation triggered by the user for any target application program if the terminal position of the dragging operation is located outside the display area.
As an embodiment, the permission determination module 1202 is specifically configured to:
determining starting point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the starting point position information with position information of preset trigger areas corresponding to the authority options respectively, and determining a target preset trigger area to which the starting point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
As an embodiment, the authority control module 1203 is specifically configured to:
if the authority management operation is an authority opening operation, controlling the arbitrary target application program to acquire the target authority based on the authority management operation;
and if the authority management operation is an authority closing operation, controlling the arbitrary target application program to remove the target authority based on the authority management operation.
In another embodiment of the present application, there is also provided an electronic device, as shown in fig. 14, including 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 are communicated with each other through the communication bus 1404;
a memory 1403 for storing a computer program;
the processor 1401, when executing the program stored in the memory 1403, implements the following steps:
receiving authority management operation under the condition of displaying an authority control bar, wherein the authority management operation is triggered by a user aiming at any target application program, and the authority control bar at least comprises one authority option;
determining a target authority option corresponding to the authority management operation in the authority control column;
and controlling the target authority of the arbitrary target application program based on the authority management operation, wherein the target authority is the authority corresponding to the target authority option.
The communication bus 1404 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 14, but this is not intended to represent only one bus or type of bus.
The communication interface 1402 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory 1403 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor 1401 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present application, there is further provided a storage medium having a program of a rights management method stored thereon, which when executed by a processor implements the steps of any of the rights management methods described above.
When the embodiment of the invention is specifically implemented, reference can be made to the above embodiments, and corresponding technical effects are achieved.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method of rights management, comprising:
receiving authority management operation under the condition of displaying an authority control bar, wherein the authority management operation is triggered by a user aiming at any target application program, and the authority control bar at least comprises one authority option;
determining a target authority option corresponding to the authority management operation in the authority control column;
and controlling the target authority of the arbitrary target application program based on the authority management operation, wherein the target authority is the authority corresponding to the target authority option.
2. The method of claim 1, wherein the presentation entitlement control bar comprises:
and when receiving the starting operation of the authority control column triggered by the user, controlling the display of the authority control column.
3. The method of claim 1, wherein if the rights management operation is a rights opening operation, the receiving the rights management operation comprises:
and receiving a dragging operation triggered by a user aiming at any target application program outside the display area of the authority control bar, and determining to receive an authority opening operation triggered by the any target application program if the end point position of the dragging operation is located in the display area of the authority control bar.
4. The method of claim 3, wherein receiving a drag operation triggered by a user for any target application outside the presentation area of the permission control bar comprises:
receiving touch operation triggered by a user aiming at any application program outside the display area of the authority control bar;
if the touch operation is determined to be a dragging operation, determining that the dragging operation triggered by a user aiming at the arbitrary application program is received, and determining that the arbitrary application program is a target application program;
if the touch operation is determined to be a long-press operation, entering a multi-selection mode;
receiving a selection operation triggered by a user aiming at any application program outside the display area of the authority control bar in a multi-selection mode, and determining the application program corresponding to the selection operation as a first application program;
and if the dragging operation triggered by the user aiming at any first application program is received, determining that the dragging operation triggered by the user aiming at all the first application programs is received, and determining that all the first application programs are target application programs.
5. The method of claim 3, wherein determining a target permission option in the permission control bar corresponding to the permission management operation comprises:
determining end point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the end point position information with position information of a preset trigger area corresponding to each authority option respectively, and determining a target preset trigger area to which the end point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
6. The method of claim 1, further comprising:
receiving a viewing operation triggered by a user aiming at any authority option in the authority control bar;
and controlling the application program which acquires the authority corresponding to the arbitrary authority option to be displayed in a preset trigger area of the arbitrary authority option based on the viewing operation.
7. The method of claim 6, wherein if the rights management operation is a rights shutdown operation, the receiving the rights management operation comprises:
and under the condition that the application program is displayed in the display area of the authority control bar, receiving the dragging operation of a user for any target application program displayed in the display area, and determining to receive the authority closing operation triggered by the user for any target application program if the terminal position of the dragging operation is located outside the display area.
8. The method of claim 7, wherein determining a target permission option in the permission control bar corresponding to the permission management operation comprises:
determining starting point position information of the dragging operation;
acquiring position information of a preset trigger area corresponding to each authority option in the authority control bar;
comparing the starting point position information with position information of preset trigger areas corresponding to the authority options respectively, and determining a target preset trigger area to which the starting point position information belongs;
and determining the permission option corresponding to the target preset trigger area as a target permission option.
9. The method of claim 1, wherein controlling the target permission of the arbitrary target application based on the permission management operation comprises:
if the authority management operation is an authority opening operation, controlling the arbitrary target application program to acquire the target authority based on the authority management operation;
and if the authority management operation is an authority closing operation, controlling the arbitrary target application program to remove the target authority based on the authority management operation.
10. A rights management device, comprising:
the receiving module is used for receiving authority management operation under the condition of displaying an authority control bar, wherein the authority management operation is triggered by a user aiming at any target application program, and the authority control bar at least comprises an authority option;
the authority determining module is used for determining a target authority option corresponding to the authority management operation in the authority control column;
and the authority control module is used for controlling the target authority of the arbitrary target application program based on the authority management operation, and the target authority is the authority corresponding to the target authority option.
11. An electronic device, comprising: a processor and a memory, the processor being configured to execute a data processing program stored in the memory to implement the rights management method of any of claims 1-9.
12. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the rights management method of any of claims 1-9.
CN202011564785.7A 2020-12-25 2020-12-25 Authority management method and device, electronic equipment and storage medium Pending CN112560101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011564785.7A CN112560101A (en) 2020-12-25 2020-12-25 Authority management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011564785.7A CN112560101A (en) 2020-12-25 2020-12-25 Authority management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112560101A true CN112560101A (en) 2021-03-26

Family

ID=75032504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011564785.7A Pending CN112560101A (en) 2020-12-25 2020-12-25 Authority management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112560101A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804938A (en) * 2018-06-14 2018-11-13 北京金山安全软件有限公司 Authority detection method and device, electronic equipment and readable storage medium
CN109407917A (en) * 2018-09-21 2019-03-01 维沃移动通信有限公司 A kind of method and apparatus that Application Status is set
CN111966258A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Permission setting method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804938A (en) * 2018-06-14 2018-11-13 北京金山安全软件有限公司 Authority detection method and device, electronic equipment and readable storage medium
CN109407917A (en) * 2018-09-21 2019-03-01 维沃移动通信有限公司 A kind of method and apparatus that Application Status is set
CN111966258A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Permission setting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
JP6640909B2 (en) Theme display method and related devices
US20210342058A1 (en) System and method for controlling errors in a system with a plurality of user-controlled devices using a network-controlled overlay
KR101733839B1 (en) Managing workspaces in a user interface
US9262066B2 (en) User terminal device and method for displaying background screen thereof
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
CN110286978B (en) Window hierarchy switching method, device, equipment and storage medium
CN103631483B (en) Positioning method and positioning device
CN106648382B (en) A kind of picture browsing method and mobile terminal
WO2015017174A1 (en) Method and apparatus for generating customized menus for accessing application functionality
KR20130093043A (en) Method and mobile device for user interface for touch and swipe navigation
CN108073346A (en) A kind of record screen method, terminal and computer readable storage medium
EP3485358B1 (en) Electronic device and method thereof for managing applications
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
US20160103576A1 (en) Navigating application interface
US20150199058A1 (en) Information processing method and electronic device
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
US8028238B2 (en) Message display system
WO2023198064A1 (en) Application program starting method and apparatus, and electronic device and storage medium
CN106648281B (en) Screenshot method and device
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN110532051B (en) Method and device for displaying shortcut operation bar, folding screen equipment and storage medium
CN113840089A (en) Camera function switching method and device, terminal equipment and storage medium
CN110780830A (en) Household equipment display method and device, terminal and readable storage medium
WO2024012416A1 (en) Display method and apparatus
CN112560101A (en) Authority management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination