Permission application method, component and device and computer readable storage medium

A technology of permissions and components, applied in computer security devices, computing, instruments, etc., can solve problems such as cumbersome processes, too many redundant codes, and inability to dynamically apply for permissions, and achieve the effect of simplifying the process and reducing redundancy.
CN112651040APending Publication Date: 2021-04-13CHINA UNIONPAY

Patent Information

Authority / Receiving Office
CN Β· China
Current Assignee / Owner
CHINA UNIONPAY
Publication Date
2021-04-13

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a permission application method, component and device and a computer readable storage medium, and the method comprises the steps of receiving a permission application request of an external application, the permission application request comprising a permission name of a target permission; if the target permission is not authorized, creating a transparent permission application container according to a current stack top page (Activity) component; applying for the target permission from the Android system by using the permission application container, and receiving a permission application result from the Android system; and calling a corresponding callback function according to the permission application result to realize successful callback or failed callback of the target permission. By means of the method, the permission application process can be greatly simplified, and code redundancy is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the field of rights application, and in particular relates to a rights application method, component, device and computer-readable storage medium. Background technique

[0002] This section is intended to provide a background or context for implementations of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.

[0003] Various application programs can be installed in terminal devices such as mobile phones and tablet computers. In order to realize certain functions, the application program needs to have corresponding system permissions. For example, when an application program needs to implement the function of recommending friends in the address book to the user, it needs to have the permission to obtain the address book information. The Android system has added a dynamic permission mechanism after version 6.0, that is, when an application uses ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More