Patent Description:
The present disclosure relates generally to the field of permission management services, and more specifically to a permission display method, a permission display apparatus and a storage medium.

According to a first aspect of the present disclosure, there is provided a permission display method, applied to a terminal, including:
acquiring, in response to an application running on the terminal applying for runtime permission, permission information of the application, the permission information including the runtime permission and a permission description corresponding to the runtime permission; and parsing the permission information to obtain the runtime permission and the permission description, and displaying the runtime permission of the application and the permission description on a display interface of the terminal.

Preferably, the runtime permission applied by the application includes the permission description, and the acquiring the permission information applied by the application includes:
applying for the runtime permission including the permission description through a permission application system interface, and acquiring the runtime permission including the permission description through the permission application system interface.

According to the invention, before the displaying the runtime permission of the application and the permission description on the display interface of the terminal, the method further includes:
determining that the permission description meets a permission description requirement of displaying on the display interface.

Preferably, the method further includes:
refusing to open a function of displaying the permission description on the display interface, in response to determining that the permission description does not meet the permission description requirement of displaying on the display interface; and displaying the runtime permission of the application on the display interface of the terminal.

Optionally, the displaying the runtime permission of the application and the permission description on the display interface of the terminal includes:
displaying the runtime permission of the application and the permission description on the display interface of the terminal in the form of a pop-up box.

According to a second aspect of the present disclosure, there is provided a permission display apparatus, applied to a terminal, including:
an acquiring component configured to acquire, in response to an application running on the terminal applying for runtime permission, permission information of the application, the permission information including the runtime permission and a permission description corresponding to the runtime permission; and a displaying component configured to parse the permission information to obtain the runtime permission and the permission description, and display the runtime permission of the application and the permission description on a display interface of the terminal.

Preferably, the runtime permission applied by the application includes the permission description, and the acquiring component is configured to:
apply for the runtime permission including the permission description through a permission application system interface, and acquire the runtime permission including the permission description through the permission application standard interface.

According to the invention, the displaying component is further configured to:
determine that the permission description meets a permission description requirement of displaying on the display interface.

Preferably, the displaying component is further configured to:
refuse to open a function of displaying the permission description on the display interface in response to determining that the permission description does not meet the permission description requirement of displaying on the display interface; and display the runtime permission of the application on the display interface of the terminal.

Optionally, the displaying component is configured to:
display the runtime permission of the application and the permission description on the display interface of the terminal in the form of a pop-up box.

According to a further aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the permission display method according to the first aspect or any one of the implementations of the first aspect.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

Description will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations set forth in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects related to the present disclosure as recited in the appended claims.

When an application applies to the terminal for permission, a pop-up box displayed on the terminal display interface typically only displays the applying permission, and does not display the description of the permission purpose, or displays the universal unified permission description set by the ANDROID™ system when some of the applications apply for the permission.

The present disclosure takes the ANDROID™ system as an example for description. The ANDROID™ system has launched the runtime permission since version <NUM>, and when the current application of the terminal needs to invoke another application, it is no longer to grant dangerous permission for the application during being installed, but needs to apply to the user for the permission to use the application, and the user determines whether to grant the permission through the content displayed on the terminal display interface and determines the execution method for granting the application permission by touching the options provided on the terminal display interface. However, when a large number of applications are running, a large amount of permission is applied at the same time, and when the large amount of runtime permission is applied, the terminal does not display the permission description explaining the applying for the runtime permission, which makes the user unclear about the purpose of the runtime permission applied by the application. The user will face the difficulty of being unable to use the application when not granting the runtime permission to the application.

In the related technologies, in order to solve the problem that the user is unclear about the purpose of the application applying for the runtime permission, the permission description corresponding to that the application applies for the runtime permission is set in advance in the system. Furthermore, when the currently running application applies for the runtime permission and needs to use another second application, a permission description about using the second application is provided by the terminal system. The second application is an application that the currently running application needs to apply for the runtime permission to invoke, and the following embodiments all use the second application for description. The permission description corresponding to the second application is determined by the terminal system based on the second application that the currently running application applies for invoking, and the permission description set in advance by the terminal system is displayed in the pop-up box for the terminal permission applying. However, the permission description set in advance based on the system is not targeted, and the displayed permission description is single. Therefore, the user still cannot clearly understand the purpose of applying for the permission. For example, if the currently running application of the terminal is a third-party camera application, and the third-party camera application needs to apply for the use of the local camera of the terminal, the third-party camera application initiates an application to the terminal for the runtime permission to use the camera and the system determines that the corresponding permission description is "for taking pictures" based on the runtime permission for applying for the use of the camera and displays "for taking pictures" on the terminal display interface. When a third-party social application needs to use the local camera for video calls and other functions, the third-party social application also applies to the terminal system for the runtime permission for the use of the camera, and similarly, the system determines that the corresponding permission description is "for taking pictures" based on the applying for the runtime permission for the use of the camera and displays "for taking pictures" on the terminal display interface. Apparently, when different applications apply for the use of the same second application, their purposes are different, but due to the permission description provided by the terminal system is used, the permission description displayed on the terminal display interface is the same, which does not match the facts, and thus a more accurate permission description cannot be provided for the user.

Therefore, various embodiments of the present disclosure provide a permission display method in which the application can define the permission description of the applying permission by itself. For example, when the third-party social application applies for the use of the local camera of the terminal, if a photographing function is required, the permission description for the purpose of using the camera currently can be defined as "for taking pictures". If a video call function is required, the permission description for the purpose of using the camera currently can be defined as "for video call". Furthermore, the permission description defined by the application itself can be used as a part of the applying permission, and the permission applying can be made to the terminal system by utilizing the terminal system interface. In this way, there is no need to add new interfaces, and the adaptability is high without fragmentation. according to the permission display method provided in the present disclosure, each application can set corresponding permission descriptions for different purposes. When the runtime permission of the application and the corresponding permission description are displayed in the terminal pop-up box, the user can clearly know the runtime permission applied by the application and the purpose of the runtime permission, and grant the runtime permission to the application. In this way, the personalization of the permission description of the runtime permission of the application can be realized, and the user's terminal experience is improved.

<FIG> is a flowchart illustrating a permission display method according to some embodiments, and as shown in <FIG>, the permission display method is applied in a terminal, and includes the following steps.

In step S11, permission information of an application is acquired, in response to runtime permission applied by the application running on the terminal, the permission information including the runtime permission and a permission description corresponding to the runtime permission.

In some embodiments of the present disclosure, when the application currently running on the terminal needs to use another application, it applies to the terminal system for the runtime permission, and transmits the permission information of the runtime permission to the terminal system. When the terminal system has received the runtime permission applied by the currently running application, it acquires the permission information of the runtime permission of the application provided by the application to the terminal system. Herein, the permission information includes the runtime permission and the permission description corresponding to the runtime permission.

In some embodiments, the further description is made by taking that the currently running application needs to apply for the use of the camera as an example. The currently running application applies to the terminal system for the use of the camera through the terminal system interface, and sends the permission information of the runtime permission for applying for the use of the camera to the terminal system through the system interface. When the terminal system has received a request for applying for the use of the camera sent from the currently running application, it acquires the permission information of the runtime permission for applying for the use of the camera through the terminal system interface.

In step S12, the permission information is parsed to obtain the runtime permission and the permission description, and the runtime permission of the application and the permission description is displayed on a display interface of the terminal.

In some embodiments of the present disclosure, after obtaining the permission information of the runtime permission provided by the application to the terminal system, the terminal system parses the permission information to obtain the runtime permission and the permission description in the permission information. In order to prevent the application from defining malicious permission descriptions, the terminal system needs to review the obtained permission description based on the permission description requirement set in advance by the terminal system before displaying the permission description on the terminal display interface. After determining that the permission description meets the description requirements set in advance by the system, the runtime permission of the application and the permission description are displayed on the display interface of the terminal. The user can determine whether to grant permission based on the runtime permission of the application and the permission description displayed on the terminal display interface.

In some embodiments, the description is made by taking that the currently running application related to the above-mentioned embodiment requires the use of the camera as an example. The terminal system parses the permission information of the runtime permission for applying for the use of the camera sent from the currently running application, and acquires the permission description in the permission information. For example, if the permission description is "used to publish pictures or video content", the terminal system reviews the obtained permission description content of "used to publish pictures or video content" and determines that "used to publish pictures or video content" meets the description requirements set in advance by the system. Then, the content of "used to publish pictures or video content" is displayed on the display interface of the terminal.

The permission display method involved in the above-mentioned embodiment has realized the personalization of the permission description of the application, and when different applications apply for the runtime permission or the same application applies for different runtime permission, different permission descriptions can be defined.

In some embodiments of the present disclosure, the permission information that the application applies for the runtime permission includes the permission description. In some embodiments, the terminal application sends a runtime permission request to the terminal system through the permission applying terminal system interface, and uses the permission information of the runtime permission as a part of the runtime permission, to send together to the terminal system through the terminal system interface. Because the runtime permission of the application includes the permission description, the terminal system obtains the runtime permission of the application and the permission information of the runtime permission through the permission applying terminal system interface based on the runtime permission request applied by the application, and then obtains the permission description. It can be known from the above-mentioned embodiment that the request for applying for the runtime permission is sent and the permission information of the runtime permission for applying for the use of the camera is obtained, through the terminal system interface, it does not need to add new interfaces, and can be compatible with any version of the terminal system. It will not cause fragmentation.

The permission description included in the runtime permission of the application is obtained based on the terminal system in the above-mentioned embodiment. The terminal system also needs to review the obtained permission description according to the preset permission description requirements. If it is determined that the permission description meets the permission description requirement of displaying on the display interface, the terminal system sends an instruction to display the permission description to open the function of displaying the permission description on the display interface to the application, and displays the runtime permission of the application and the permission description on the display interface of the terminal.

In some embodiments, if it is determined that the permission description does not meet the permission description requirement of displaying on the display interface, the terminal system sends an instruction to refuse displaying the permission description, and denies opening the function of displaying the permission description on the display interface to the application. The currently running application in the above-mentioned embodiment will be described by is taking the camera as an example. If the terminal system judges that the "used to publish pictures or video content" does not meet the predetermined description requirements according to the predetermined description requirements, it denies opening the function of displaying the permission description on the display interface.

Furthermore, because the terminal system denies opening the function of displaying the permission description on the display interface, the runtime permission of the application is displayed on the terminal display interface. Therefore, in some embodiments of the present disclosure, even if the permission information that the currently running application applies for the use of the camera includes the permission description, if the permission description fails the review of the terminal system, it cannot be displayed on the display interface of the terminal.

In the above-mentioned permission display method, the terminal system reviews the permission description, which prevents malicious permission descriptions from being displayed on the terminal interface, thereby improving the user terminal experience.

In some embodiments of the present disclosure, when the runtime permission of the application and the permission description or the runtime permission of the application are displayed on the terminal display interface, they are displayed on the terminal display interface in the form of a pop-up box. The terminal displays the runtime permission and the permission description or the runtime permission of the application in the form of pop-up boxes, and users can make a judgment based on the runtime permission and the permission description displayed on the terminal display interface. By displaying in the form of a pop-up box, not only the runtime permission and the permission description can be displayed, but also the currently running application is not affected. The continuity of the use of the currently running application is ensured.

The following embodiments of the present disclosure further illustrate the permission display method in conjunction with the implementation processes.

Various embodiments of the present disclosure take that the currently running application is the Xiaomi community, and the applied runtime permission for use is the camera as an example for description. <FIG> is a schematic diagram illustrating an implementation process of a permission display method according to some embodiments. As shown in <FIG>, the currently running application Xiaomi community applies for the use of the camera to the terminal system through the interface of the terminal system, and transmits the permission information that the Xiaomi community applies for the use of the camera into the terminal system through the system interface. In response to the instruction of the application for the use of the camera sent by the Xiaomi community, the terminal system obtains the permission information that the Xiaomi community applies for the use of the camera through the terminal system interface. After the terminal system obtains the permission information that the Xiaomi community applies for the use of the camera, it further parses the permission information that the Xiaomi community applies for the use of the camera, and obtains the runtime permission of the Xiaomi community and the permission description corresponding to the runtime permission. Herein, the runtime permission of the Xiaomi community is "take photos and record videos". The permission description is "used to publish pictures or video content.

The terminal system acquires the parsed permission description of "used to publish pictures or video content", and reviews the "used to publish pictures or video content" based on the permission description requirements set in advance by the terminal system. After the permission description of "used to publish pictures or video content" passes the review of the terminal system, it is confirmed that the "used to publish pictures or video content" can be displayed, and the function of displaying the permission description on the display interface is opened. The terminal system further parses and determines the runtime permission and the permission description corresponding to the runtime permission, and displays the "used to publish pictures or video content" on the terminal display interface. <FIG> is a schematic diagram illustrating displaying runtime permission of the application and a permission description in a permission display method according to some embodiments. As shown in <FIG>, the runtime permission of the Xiaomi community of "take photos and record videos" and the permission description of "used to publish pictures or video content" are displayed on the display interface of the terminal in the form of a pop-up box. At the same time, the content displayed in the pop-up box also includes permission-granting options for the applying permission. Herein, the permission-granting options for the applying permission can include refuse, allow for this run, allow only while in use, etc. The user obtains that the runtime permission of the Xiaomi community is "take photos and record videos" through the terminal display interface. For the information with the permission description being "used to publish pictures or video content", and the corresponding permission-granting options for the applying permission, one of refuse, allow for this run, allow only while in use is selected by tough on the terminal display interface, based on the user's own needs, as a running way to grant the Xiaomi community the applying runtime permission.

Based on the similar concept, some embodiments of the present disclosure also provide a permission display apparatus.

It can be understood that, in order to implement the above functions, the permission display apparatus provided by some embodiments of the present disclosure includes a corresponding hardware structure and/or software components for executing each function. With reference to the units and algorithm steps of the examples disclosed in some embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed through the hardware or a method that the computer software drives the hardware depends on the specific application and design constraints of the technical solution. A person skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of some embodiments of the present disclosure.

<FIG> is a block diagram illustrating a permission display apparatus <NUM> according to some embodiments. Referring to <FIG>, the apparatus includes an acquiring component <NUM> and a displaying component <NUM>.

The acquiring component <NUM> is configured to acquire permission information of an application, in response to the runtime permission applied by the application running on the terminal, and the permission information includes the runtime permission and a permission description corresponding to the runtime permission. The display component <NUM> is configured to parse the permission information to obtain the runtime permission and the permission description, and display the runtime permission of the application and the permission description on a display interface of the terminal.

In some embodiments of the present disclosure, the runtime permission applied by the application includes the permission description, and the acquiring component <NUM> is configured to apply for the runtime permission including the permission description through a permission application system interface, and acquire the runtime permission including the permission description through the permission application standard interface.

In some embodiments of the present disclosure, the displaying component <NUM> is further configured to determine that the permission description meets a permission description requirement of displaying on the display interface.

In some embodiments of the present disclosure, the displaying component <NUM> is further configured to refuse to open a function of displaying the permission description on the display interface, in response to determining that the permission description does not meet the permission description requirement of displaying on the display interface.

In some embodiments of the present disclosure, the displaying component <NUM> is further configured to display the runtime permission of the application on the display interface of the terminal.

In some embodiments of the present disclosure, the display component <NUM> is configured to display the runtime permission of the application and the permission description on the display interface of the terminal in the form of a pop-up box.

With respect to the device in the above embodiments, the implementations for performing operations by individual components therein have been described in detail in the embodiments regarding the methods, which will not be elaborated herein.

<FIG> is a block diagram illustrating a device <NUM> for permission display according to some embodiments. For example, the device <NUM> can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet, a medical device, exercise equipment, a personal digital assistant, and the like.

The processing component <NUM> may include one or more processors <NUM> to execute instructions to implement all or part of the steps in the above-described methods.

Examples of such data include instructions for any applications or methods operated on the device <NUM>, contact data, phonebook data, messages, pictures, videos, etc. The memory <NUM> may be implemented by using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random-access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The power component <NUM> supplies power to various components of the device <NUM>.

The multimedia component <NUM> includes a screen providing an output interface between the device <NUM> and a user. In some embodiments, organic light-emitting diode (OLED) displays can be employed.

If the screen includes the touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch sensors can not only sense a boundary of a touch or swipe action, but also detect a period of time and a pressure associated with the touch or swipe action. The front camera and/or the rear camera can receive external multimedia data while the device <NUM> is in an operation mode, such as a photographing mode or a video mode.

The audio component <NUM> is configured to output and/or input audio signals. For example, the audio component <NUM> includes a microphone (MIC) configured to receive an external audio signal when the device <NUM> is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory <NUM> or transmitted via the communication component <NUM>. In some embodiments, the audio component <NUM> further includes a speaker to output audio signals.

For instance, the sensor component <NUM> can detect an on/off status of the device <NUM>, relative positioning of components, e.g., the display and a keypad, of the device <NUM>, the sensor component <NUM> can also detect a change in position of the device <NUM> or one component of the device <NUM>, a presence or absence of user contact with the device <NUM>, an orientation or an acceleration/deceleration of the device <NUM>, and a change in temperature of the device <NUM>. In some embodiments, the sensor component <NUM> can also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component <NUM> is configured to facilitate wired or wireless communication between the device <NUM> and other devices. The device <NUM> can access a wireless network based on a communication standard, such as Wi-Fi, <NUM>, <NUM>, <NUM>, or <NUM>, or a combination thereof. In some embodiments, the communication component <NUM> receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In some embodiments, the communication component <NUM> further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In some embodiments, the device <NUM> may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above-described methods.

In some embodiments, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory <NUM> including the instructions executable by the processor <NUM> in the device <NUM>, for performing the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.

Various embodiments of the present disclosure can have the following advantages: when applying for the runtime permission, the application takes the permission description as a part of the runtime permission, such that the permission description and the runtime permission are displayed on the display interface of the terminal together. Not only the permission description is displayed in the pop-up box of the terminal, but also the permission description for different applications can be customized to realize the personalization of the permission description.

It will be understood that the "plurality" in the disclosure means two or more, and other quantifiers are similar. "And/or" describes the relationship of the related objects, indicating that there may be three relationships, for example, A and/or B may indicate three cases: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the relationship between the contextually relevant objects is a "or" relationship. The singular forms "a," "an," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

It will be further understood that although the terms such as "first" and "second" are used to describe various information, this information should not be limited by these terms. The terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or importance. In fact, the expressions such as "first" and "second" can be used interchangeably. For instance, first information can also be referred to as second information without departing from the scope of the disclosure, and similarly, the second information can also be referred to as the first information.

It will be further understood that, unless otherwise specified, "connection" includes a direct connection between the two without other components, and also includes an indirect connection between the two with other elements.

It will be further understood that although the operations in some embodiments of the present disclosure are described in a specific order in the drawings, it will not be understood as requiring that the operations are performed in the specific order shown or in a serial order, or that perform all the operations shown to acquire the desired result. In certain environments, multitasking and parallel processing may be advantageous.

Although specific embodiments have been described above in detail, the description is merely for purposes of illustration.

Various modifications of, and equivalent acts corresponding to the disclosed aspects of some embodiments can be made in addition to those described above by a person of ordinary skill in the art having the benefit of the present disclosure without departing from the scope of the disclosure contemplated by this disclosure and as defined in the following claims. As such, the scope of this disclosure is to be accorded the broadest reasonable interpretation so as to encompass such modifications and equivalent structures.

Claim 1:
A permission display method, applied to a terminal, characterized in that the method comprises:
acquiring (S11), in response to an application running on the terminal applying for runtime permission, permission information of the application, the permission information including the runtime permission and a permission description corresponding to the runtime permission; and
parsing (S12) the permission information to obtain the runtime permission and the permission description, and displaying (S12) the runtime permission and the permission description of the application on a display interface of the terminal,
wherein, prior to the displaying (S12) the runtime permission of the application and the permission description on the display interface of the terminal, the method further comprises:
reviewing the obtained permission description based on the permission description requirement set in advance by the terminal system, and determining that the permission description meets a permission description requirement set in advance.