Permission management method and terminal device
AssigneeHuawei Technologies Co., Ltd.
InventorsFaming Tang, Chenkai Shen
Life of this patent
Estimating the term…
Abstract
A method, device, and medium for permission management is disclosed. The method includes obtaining, based on it being detected that an application is being installed, one or more permissions that the application needs to apply for during running, setting, based on the one or more permissions comprising a special permission and based on an installation package of the application not comprising a special permission certificate, the special permission to an unavailable state, and continuing to install the application, where the special permission certificate records a special permission that the application is allowed to apply for during running.
Claims18
A method, comprising:
- obtaining, based on detection of an application being installed, one or more permissions that the application needs to apply for during running;
- setting, based on the one or more permissions comprising a special permission and based on an installation package of the application not comprising a special permission certificate, the special permission to an unavailable state that prohibits the application from applying, during running, for the special permission;
- after setting the special permission to an unavailable state, and before continuing to install the application:
- establishing an unavailable permission list in the installation package of the application;
- and
- recording, in the unavailable permission list, the special permission that is set to the unavailable state in the special permission comprised in the one or more permissions;
- continuing to install the application, wherein the special permission certificate is associated with recording a special permission that the application is allowed to apply for during running;
- after continuing to install the application:
- granting, in response to the application being run, and based on it being detected that a first special permission that the application applies for is comprised in the unavailable permission list, the first special permission to the application;
- and
- returning preset data to the application, based on it being detected that the application invokes an application programming interface managed and controlled based on the first special permission, wherein the preset data comprises empty data or false data, and wherein the false data is data different from data managed and controlled based on the first special permission.
A terminal device, comprising:
- at least one processor;
- and
- at least one non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions for:
- obtaining, based on detection of an application being installed, one or more permissions that the application needs to apply for during running;
- setting, based on the one or more permissions comprising a special permission and based on an installation package of the application not comprising a special permission certificate, the special permission to an unavailable state that prohibits the application from applying, during running, for the special permission;
- after setting the special permission to an unavailable state, and before continuing to install the application:
- establishing an unavailable permission list in the installation package of the application;
- and
- recording, in the unavailable permission list, the special permission that is set to the unavailable state in the special permission comprised in the one or more permissions;
- continuing to install the application, wherein the special permission certificate is associated with recording a special permission that the application is allowed to apply for during running;
- after continuing to install the application:
- granting, in response to the application being run, and based on it being detected that a first special permission that the application applies for is comprised in the unavailable permission list, the first special permission to the application;
- and
- returning preset data to the application, based on it being detected that the application invokes an application programming interface managed and controlled based on the first special permission, wherein the preset data comprises empty data or false data, and wherein the false data is data different from data managed and controlled based on the first special permission.
A non-transitory computer-readable storage medium storing a program to be executed by a processor, the program including instructions for:
- obtaining, based on detection of an application being installed, one or more permissions that the application needs to apply for during running;
- setting, based on the one or more permissions comprising a special permission and based on an installation package of the application not comprising a special permission certificate, the special permission to an unavailable state that prohibits the application from applying, during running, for the special permission;
- after setting the special permission to an unavailable state, and before continuing to install the application:
- establishing an unavailable permission list in the installation package of the application;
- and
- recording, in the unavailable permission list, the special permission that is set to the unavailable state in the special permission comprised in the one or more permissions;
- continuing to install the application, wherein the special permission certificate is associated with recording a special permission that the application is allowed to apply for during running:
- after continuing to install the application:
- granting, in response to the application being run, and based on it being detected that a first special permission that the application applies for is comprised in the unavailable permission list, the first special permission to the application;
- and
- returning preset data to the application, based on it being detected that the application invokes an application programming interface managed and controlled based on the first special permission, wherein the preset data comprises empty data or false data, and wherein the false data is data different from data managed and controlled based on the first special permission.
Dependencies are inferred from the claim text.