Permission use control method and device, equipment and storage medium

By introducing a permission usage control method in the smart terminal device, controlling the permissions of the application based on the current display screen and device mode, the problem of the application accessing user privacy without control is solved, and effective protection of user privacy and information security is achieved.

CN118940331APending Publication Date: 2024-11-12BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310539298.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In smart terminal devices, applications may access user privacy without control in different scenarios, resulting in information leakage.

Method used

By introducing permission usage control methods in smart terminal devices, accurately control the application's system permission usage according to the current display screen and device mode, allowing or prohibiting access to specific permissions, users can adjust permission settings by switching the display screen.

Benefits of technology

It realizes precise control of application permissions, protects user privacy, avoids information leakage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940331A_ABST
    Figure CN118940331A_ABST
Patent Text Reader

Abstract

The invention relates to a permission use control method and device, equipment and a storage medium, the method is applied to electronic equipment, and the electronic equipment comprises a first screen and a second screen; the method comprises the following steps: in response to a received permission use request triggered by an application program, determining a current display screen of the electronic equipment from the first screen and the second screen; the application program is searched in a current program list associated with the current display screen, and the current program list comprises at least one program which allows the electronic equipment to use the target system permission when the electronic equipment uses the current display screen; and in response to finding the application program in the current program list, allowing the application program to use the target system permission. According to the method, the application program can be accurately controlled to use the target system permission, the privacy of the user is protected, information leakage is avoided, and then the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart terminal technology, and in particular to a permission use control method, device, equipment and storage medium. Background Art

[0002] With the rapid development of smart terminal technology, more and more applications (Application, APP for short) are developed and installed on electronic devices such as smart phones or tablet computers to improve the functions of electronic devices and provide users with a richer usage experience.

[0003] However, while electronic devices bring great convenience to users, they also bring many problems. For example, when a user shares a file on his mobile phone with a colleague at a work meeting, his colleague may see the text messages from his family; or when a user and his friends are viewing images in the mobile phone album, his friends may see the notifications from the work group; or when a user is talking to others about certain specific topics, he may be monitored by some unscrupulous apps, etc.

[0004] Therefore, how to protect user privacy and avoid user information leakage has become one of the technical problems that need to be solved urgently. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a permission usage control method, apparatus, device and storage medium to solve the defects in the related art.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a permission usage control method, which is applied to an electronic device, wherein the electronic device includes a first screen and a second screen;

[0007] The method comprises:

[0008] In response to receiving a permission use request triggered by an application, determining a current display screen of the electronic device from the first screen and the second screen, the permission use request being used to request use of a target system permission;

[0009] Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen;

[0010] In response to finding the application program in the current program list, allowing the application program to use the target system permission.

[0011] In some embodiments, the method further comprises:

[0012] In response to not finding the application program in the current program list, prohibiting the application program from using the target system permission.

[0013] In some embodiments, the method further comprises:

[0014] Generate a first prompt message, wherein the first prompt message is used to prompt the application to use the target system permission and / or prompt to switch the current display screen to allow the application to use the target system permission.

[0015] In some embodiments, the first screen is associated with a first device mode of the electronic device, the second screen is associated with a second device mode of the electronic device, and the first device mode is different from the second device mode;

[0016] The method further comprises:

[0017] In response to determining a current display screen of the electronic device, determining a current device mode associated with the current display screen, the current device mode being the first device mode or the second device mode;

[0018] The program list associated with the current device mode is determined as the current program list associated with the current display screen.

[0019] In some embodiments, the method further comprises:

[0020] In response to receiving an instruction for creating the first device mode of the electronic device, displaying a mode setting interface;

[0021] In response to a selection operation for the first screen triggered in the mode setting interface, establishing an association relationship between the first device mode and the first screen;

[0022] In response to determining a first program list corresponding to the first device mode, an association relationship between the first device mode and the first program list is established, wherein the first program list includes at least one program in the first device mode that is allowed to use the target system permission.

[0023] In some embodiments, the method further comprises:

[0024] In response to establishing an association relationship between the first device mode and the first screen, establishing an association relationship between the second device mode and the second screen;

[0025] In response to determining a second program list corresponding to the second device mode, an association relationship between the second device mode and the second program list is established, wherein the second program list includes at least one program in the second device mode that is allowed to use the target system permission.

[0026] In some embodiments, the method further comprises:

[0027] Classifying the installed applications in the electronic device to obtain at least two categories of applications;

[0028] Based on the recognition result of the first device mode, adding a first category of applications from the at least two categories of applications to a first candidate list, and displaying the first candidate list;

[0029] In response to a confirmation operation on the first candidate list, the first candidate list is determined as a first program list corresponding to the first device mode.

[0030] In some embodiments, the method further comprises:

[0031] In response to a modification operation on the first candidate list, the modified first candidate list is determined as a first program list corresponding to the first device mode.

[0032] In some embodiments, the method further comprises:

[0033] In response to determining the first candidate list as the first program list corresponding to the first device mode, adding other application programs to a second candidate list and displaying the second candidate list, the other application programs including programs in the installed programs other than the programs in the first program list;

[0034] In response to a confirmation operation on the second candidate list, the second candidate list is determined as a second program list corresponding to the second device mode.

[0035] In some embodiments, the method further comprises:

[0036] In response to a modification operation on the second candidate list, the modified second candidate list is determined as a second program list corresponding to the second device mode.

[0037] According to a second aspect of an embodiment of the present disclosure, there is provided a permission usage control device, which is applied to an electronic device, wherein the electronic device includes a first screen and a second screen;

[0038] The device comprises:

[0039] a screen determination module, configured to determine a current display screen of the electronic device from the first screen and the second screen in response to receiving a permission use request triggered by an application program, wherein the permission use request is used to request use of a target system permission;

[0040] a program search module, configured to search for the application program in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen;

[0041] The permission allowing module is used for allowing the application to use the target system permission in response to finding the application in the current program list.

[0042] In some embodiments, the apparatus further comprises:

[0043] The permission prohibition module is used to prohibit the application program from using the target system permission in response to not finding the application program in the current program list.

[0044] In some embodiments, the permission prohibition module is also used to generate a first prompt message, wherein the first prompt message is used to prompt the application to use the target system permission and / or prompt to switch the current display screen to allow the application to use the target system permission.

[0045] In some embodiments, the first screen is associated with a first device mode of the electronic device, the second screen is associated with a second device mode of the electronic device, and the first device mode is different from the second device mode;

[0046] The device also includes a list determination module;

[0047] The list determination module includes:

[0048] a mode determination unit, configured to determine, in response to determining a current display screen of the electronic device, a current device mode associated with the current display screen, wherein the current device mode is the first device mode or the second device mode;

[0049] A list determining unit is used to determine the program list associated with the current device mode as the current program list associated with the current display screen.

[0050] In some embodiments, the apparatus further comprises a relationship building module;

[0051] The relationship building module includes:

[0052] an interface display unit, configured to display a mode setting interface in response to receiving an instruction for creating the first device mode of the electronic device;

[0053] A first constructing unit, configured to construct an association relationship between the first device mode and the first screen in response to a selection operation on the first screen triggered in the mode setting interface;

[0054] The second construction unit is configured to construct an association relationship between the first device mode and the first program list in response to determining a first program list corresponding to the first device mode, wherein the first program list includes at least one program in the first device mode that is allowed to use the target system permission.

[0055] In some embodiments, the relationship building module further includes:

[0056] a third constructing unit, configured to construct an association relationship between the second device mode and the second screen in response to constructing an association relationship between the first device mode and the first screen;

[0057] A fourth construction unit is used to construct an association relationship between the second device mode and the second program list in response to determining a second program list corresponding to the second device mode, wherein the second program list includes at least one program in the second device mode that is allowed to use the target system permissions.

[0058] In some embodiments, the relationship building module further includes a first determining unit;

[0059] The first determining unit is configured to:

[0060] Classifying the installed applications in the electronic device to obtain at least two categories of applications;

[0061] Based on the recognition result of the first device mode, adding a first category of applications from the at least two categories of applications to a first candidate list, and displaying the first candidate list;

[0062] In response to a confirmation operation on the first candidate list, the first candidate list is determined as a first program list corresponding to the first device mode.

[0063] In some embodiments, the first determining unit is further configured to, in response to a modification operation on the first candidate list, determine the modified first candidate list as the first program list corresponding to the first device mode.

[0064] In some embodiments, the relationship building module further includes a second determining unit;

[0065] The second determining unit is configured to:

[0066] In response to determining the first candidate list as the first program list corresponding to the first device mode, adding other application programs to a second candidate list and displaying the second candidate list, the other application programs including programs in the installed programs other than the programs in the first program list;

[0067] In response to a confirmation operation on the second candidate list, the second candidate list is determined as a second program list corresponding to the second device mode.

[0068] In some embodiments, the second determining unit is further configured to, in response to a modification operation on the second candidate list, determine the modified second candidate list as the second program list corresponding to the second device mode.

[0069] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising:

[0070] A first screen, a second screen, a processor, and a memory for storing a computer program;

[0071] Wherein, the processor is configured to implement, when executing the computer program:

[0072] In response to receiving a permission use request triggered by an application, determining a current display screen of the electronic device from the first screen and the second screen, the permission use request being used to request use of a target system permission;

[0073] Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen;

[0074] In response to finding the application program in the current program list, allowing the application program to use the target system permission.

[0075] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the following is implemented:

[0076] In response to receiving a permission use request triggered by an application, determining a current display screen of the electronic device from a first screen and a second screen, wherein the permission use request is used to request use of a target system permission;

[0077] Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen;

[0078] In response to finding the application program in the current program list, allowing the application program to use the target system permission.

[0079] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0080] The present disclosure determines the current display screen of the electronic device from the first screen and the second screen in response to receiving a permission use request triggered by an application, the permission use request is used to request the use of the target system permission, and searches for the application in a current program list associated with the current display screen, the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen, and then in response to finding the application in the current program list, allows the application to use the target system permission, so that accurate control of the application's use of the target system permission can be achieved. In this way, the user can conveniently and quickly adjust the system permission usage of the application installed in the electronic device by switching the current display screen (that is, switching the current display screen between the first screen and the second screen) in different scenarios based on their own needs, thereby effectively protecting the user's privacy and avoiding information leakage during the use of the electronic device, thereby improving the user's experience.

[0081] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0083] Figure 1 is a flow chart of a method for controlling permission use according to an exemplary embodiment of the present disclosure;

[0084] Figure 2 is a flowchart showing how to determine a current program list associated with the current display screen according to an exemplary embodiment of the present disclosure;

[0085] Figure 3A is a flowchart showing how to construct an association relationship between a first screen and a first device mode, and between the first device mode and a first program list according to an exemplary embodiment of the present disclosure;

[0086] Figure 3B is a schematic diagram of an interface of a screen for determining an associated working mode according to an exemplary embodiment of the present disclosure;

[0087] Figure 3C is a schematic diagram of an interface for determining a list of applications associated with a working mode according to an exemplary embodiment of the present disclosure;

[0088] Figure 3D is a flowchart showing how to determine an association relationship among a second screen, a second device mode, and a second program list according to yet another exemplary embodiment of the present disclosure;

[0089] Figure 4A is a flowchart showing how to determine a first program list corresponding to the first device mode according to an exemplary embodiment of the present disclosure;

[0090] Figure 4B is a flowchart showing how to determine a second program list corresponding to the second device mode according to an exemplary embodiment of the present disclosure;

[0091] Figure 5 is a block diagram of a permission usage control device according to an exemplary embodiment of the present disclosure;

[0092] Figure 6 is a block diagram of another permission usage control device according to an exemplary embodiment of the present disclosure;

[0093] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0094] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0095] Figure 1 is a flowchart of a permission use control method according to an exemplary embodiment; the method of this embodiment can be executed by a permission use control device, and the permission use control device can be configured in an electronic device with a first screen and a second screen, such as a server, a workstation, a personal computer, a mobile terminal (such as a mobile phone, a tablet computer, etc.), a wearable device (such as glasses, a watch, etc.), etc. Specifically, Figure 1 As shown, the method includes the following steps S101-S103:

[0096] In step S101, in response to receiving a permission request triggered by an application, a current display screen of the electronic device is determined from the first screen and the second screen.

[0097] In this embodiment, when an application installed in an electronic device needs to use the target system permission of the electronic device, a permission use request may be triggered, and the request may be used to request the use of the target system permission. The target system permission may include but is not limited to at least one of the following:

[0098] Notification permission, microphone permission, camera permission, location permission, address book permission, SMS permission, call log permission.

[0099] On this basis, when the electronic device receives the above permission usage request, the current display screen of the electronic device can be determined from the first screen and the second screen.

[0100] It is worth noting that the above-mentioned current display screen may be a display screen that currently displays an image or a display screen that currently displays an image to be displayed in the electronic device.

[0101] For example, the first screen and the second screen may be the inner screen and the outer screen (or the outer screen and the inner screen) of the electronic device, respectively, and the inner screen may be a flexible foldable screen. On this basis, when the inner screen is in an unfolded or semi-unfolded state, it can be determined that the current display screen of the electronic device is the inner screen; conversely, when the inner screen is in a folded state, it can be determined that the current display screen of the electronic device is the outer screen.

[0102] It is worth noting that the above-mentioned first screen and second screen can be the inner screen and outer screen of the electronic device respectively, which is only used for exemplary description. In actual application, the first screen and the second screen can also be freely set according to the scene requirements.

[0103] In step S102, the application program is searched in a current program list associated with the current display screen.

[0104] In this embodiment, after the current display screen of the electronic device is determined from the first screen and the second screen, the application can be searched in a current program list associated with the current display screen, wherein the current program list may include at least one program that allows the target system permissions to be used when the electronic device uses the current display screen.

[0105] For example, the first screen and the second screen may be associated with their own program lists in advance, each of which contains programs that are allowed to use the target system permissions when the electronic device uses the corresponding screen. Then, when a system permission use request of an application is received, the current display screen may be detected, and the current program list associated with the current display screen may be determined, and then the application may be searched in the current program list.

[0106] That is to say, in this embodiment, the association relationship between each screen of the electronic device and the corresponding program list can be pre-constructed, and then after the current display screen (for example, whether it is the first screen or the second screen) is subsequently determined, the current program list associated with the current display screen can be determined based on the association relationship.

[0107] In some other embodiments, the above method of determining the current program list associated with the current display screen can also refer to the following Figure 2 The illustrated embodiment will not be described in detail here.

[0108] In step S103, whether the application is found: if so, execute step S104; if not, execute step S105;

[0109] In step S104, the application is allowed to use the target system permissions.

[0110] In this embodiment, after searching for the application in the current program list associated with the current display screen, it can be determined whether the application is found; if the application is found, the application can be allowed to use the target system permission.

[0111] Taking the target system permission as notification permission as an example, when an application (for example, a text message program and / or an instant messaging program, etc.) needs to display a notification message, if the electronic device finds the application in the current program list associated with the current display screen, the application can be allowed to use notification permissions, such as allowing the application to display the above notification message on the current display screen.

[0112] In step S105, the application is prohibited from using the target system permissions.

[0113] In this embodiment, after searching for the application in the current program list associated with the current display screen, if the application is not found, the application may be prohibited from using the target system permission.

[0114] Still taking the target system permission as notification permission as an example, when an application needs to display a notification message, if the electronic device does not find the application in the current program list associated with the current display screen, the application can be prohibited from using notification permissions, such as prohibiting the application from displaying the above notification message on the current display screen. It can be seen that when the user needs to allow or prohibit certain applications from using the target system permissions, the system permission usage of the application installed in the electronic device can be conveniently and quickly adjusted by switching the current display screen (i.e., switching the current display screen between the first screen and the second screen), thereby effectively protecting the user's privacy and avoiding information leakage during the use of the electronic device.

[0115] In some embodiments, in order to prevent users from missing important messages, a first prompt message can also be generated. The first prompt message can be used to prompt the application that it needs to use the target system permissions, and / or prompt that the current display screen can be switched to allow the application to use the target system permissions. For example, when the current display screen used by the electronic device is the external screen, if application A associated with the internal screen needs to use notification permissions (such as the need to display the currently received instant messaging message), the above-mentioned first prompt message can be generated on the external screen to prompt the user that application A associated with the internal screen needs notification permissions, and / or prompt the user to switch the current display screen from the external screen to the internal screen to allow application A to use notification permissions.

[0116] As can be seen from the above description, the method of this embodiment determines the current display screen of the electronic device from the first screen and the second screen in response to receiving a permission usage request triggered by an application, the permission usage request is used to request the use of the target system permission, and searches for the application in the current program list associated with the current display screen, the current program list contains at least one program that allows the electronic device to use the target system permission when using the current display screen, and then in response to finding the application in the current program list, allows the application to use the target system permission, so that accurate control of the application's use of the target system permission can be achieved. In this way, the user can conveniently and quickly adjust the system permission usage of the application installed in the electronic device by switching the current display screen (that is, switching the current display screen between the first screen and the second screen) in different scenarios based on their own needs, thereby effectively protecting the user's privacy and avoiding information leakage during the use of the electronic device, thereby improving the user experience.

[0117] Figure 2It is a flowchart showing how to determine the current program list associated with the current display screen according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to determine the current program list associated with the current display screen as an example to exemplify.

[0118] In this embodiment, the electronic device may have a first device mode and a second device mode, and the first screen of the electronic device may be associated with its first device mode, and the second screen of the electronic device may be associated with its second device mode, wherein the first device mode is different from the second device mode.

[0119] On this basis, if Figure 2 As shown, the permission use control method of this embodiment may also include determining a current program list associated with the current display screen based on the following steps S201-S202:

[0120] In step S201, in response to determining a current display screen of the electronic device, a current device mode associated with the current display screen is determined.

[0121] In this embodiment, after the current display screen of the electronic device is determined, the current device mode associated with the current display screen may be determined.

[0122] For example, when the current display screen of the electronic device is determined to be the first screen, the current device mode associated with the current display screen can be determined to be the first device mode; similarly, when the current display screen of the electronic device is determined to be the second screen, the current device mode associated with the current display screen can be determined to be the second device mode.

[0123] That is to say, the user can switch the current device mode of the electronic device by switching the current display screen. For example, when the user switches the current display screen from the first screen to the second screen, the current device mode of the electronic device will switch from the first device mode to the second device mode.

[0124] Exemplarily, the first device mode and the second device mode may be a working mode and a living mode (or a living mode and a working mode), respectively.

[0125] In step S202, the program list associated with the current device mode is determined as the current program list associated with the current display screen.

[0126] In this embodiment, after determining the current device mode associated with the current display screen (for example, the current device mode is specifically the first device mode or the second device mode), the program list associated with the device mode can be determined, and then the program list can be determined as the current program list associated with the current display screen. On this basis, the operation of searching for the application in the current program list associated with the current display screen described in step S102 can be implemented.

[0127] As can be seen from the above description, this embodiment determines the current device mode associated with the current display screen in response to determining the current display screen of the electronic device, and the current device mode is the first device mode or the second device mode, and then determines the program list associated with the current device mode as the current program list associated with the current display screen. This can accurately determine the current program list associated with the current display screen, and thus can lay a foundation for subsequently searching for the application in the current program list associated with the current display screen and controlling the use of system permissions of the application based on the search results. This can accurately control the use of target system permissions by the application, so that the user can conveniently and quickly adjust the use of system permissions of the application installed in the electronic device based on their own needs, thereby effectively protecting the user's privacy and avoiding information leakage during the use of the electronic device, thereby improving the user experience.

[0128] Figure 3A It is a flowchart showing how to construct an association relationship between a first screen and a first device mode, and between the first device mode and a first program list according to an exemplary embodiment of the present disclosure; based on the above-mentioned embodiment, this embodiment exemplifies how to construct an association relationship between a first screen and a first device mode, and between the first device mode and a first program list.

[0129] like Figure 3A As shown, the permission use control method of this embodiment may also include building an association relationship between the first screen and the first device mode, and between the first device mode and the first program list based on the following steps S301-S303:

[0130] In step S301, in response to receiving an instruction for creating the first device mode of the electronic device, displaying a mode setting interface;

[0131] In step S302, in response to a selection operation for the first screen triggered in the mode setting interface, an association relationship between the first device mode and the first screen is established;

[0132] In step S303, in response to determining a first program list corresponding to the first device mode, an association relationship between the first device mode and the first program list is established, wherein the first program list includes at least one program in the first device mode that is allowed to use the target system permissions.

[0133] For example, Figure 3B is a schematic diagram of an interface of a screen for determining an associated working mode according to an exemplary embodiment of the present disclosure; Figure 3C FIG. 1 is a schematic diagram of an interface for determining a list of application programs associated with a working mode according to an exemplary embodiment of the present disclosure. Figure 3B As shown, when the user wants to create a working mode, he can click the "working mode" option, and then select a screen (such as an external screen) as the screen associated with the "working mode", and then the electronic device can establish a first association relationship between the two. Figure 3C As shown, after the association relationship between "working mode" and "external screen" is created, the electronic device can construct an association relationship between the first device mode and the first program list. Figure 3C As shown, the electronic device may also provide a specific permission setting interface for each application, so that the user can set the specific system permission for each application based on their actual needs.

[0134] Figure 3D is a flowchart showing how to determine the association relationship between the second screen, the second device mode and the second program list according to another exemplary embodiment of the present disclosure; Figure 3D As shown, the permission use control method of this embodiment may also include building an association relationship between the second screen and the second device mode, and between the second device mode and the second program list based on the following steps S304-S305:

[0135] In step S304, in response to establishing an association relationship between the first device mode and the first screen, establishing an association relationship between the second device mode and the second screen;

[0136] In step S305, in response to determining the second program list corresponding to the second device mode, an association relationship between the second device mode and the second program list is established, wherein the second program list includes at least one program in the second device mode that is allowed to use the target system permissions.

[0137] From the above description, it can be seen that the present embodiment can realize accurate and efficient construction of the association relationship between the first screen and the first device mode, and between the first device mode and the first program list, and then can realize the subsequent determination of the first program list based on the constructed association relationship, so as to adjust the use of system permissions of the application programs installed in the electronic device, thereby realizing effective protection of the user's privacy, avoiding information leakage during the use of the electronic device, and thus improving the user experience.

[0138] Figure 4A It is a flowchart showing how to determine the first program list corresponding to the first device mode according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to determine the first program list corresponding to the first device mode as an example to exemplify.

[0139] like Figure 4A As shown, the permission usage control method of this embodiment may further include determining a first program list corresponding to the first device mode based on the following steps S401-S405:

[0140] In step S401, the installed applications in the electronic device are classified to obtain at least two categories of applications;

[0141] In step S402, based on the recognition result of the first device mode, a first category of applications in the at least two categories of applications is added to a first candidate list, and the first candidate list is displayed;

[0142] In step S403, whether a confirmation operation for the first candidate list is received: if yes, executing step S404;

[0143] In step S404, the first candidate list is determined as a first program list corresponding to the first device mode;

[0144] In step S405, in response to the modification operation on the first candidate list, the modified first candidate list is determined as the first program list corresponding to the first device mode.

[0145] From the above description, it can be seen that this embodiment can determine the first alternative list based on the classification results of the installed programs in the electronic device for the user to confirm it as the first program list, which can save the user the trouble of manually selecting the programs in the first program list, and when the user is not satisfied with the programs in the first alternative list, the first alternative list can be modified by adding, deleting, changing and other operations to use the modified list as the first program list, which can ensure that the first program list better meets the needs of the user.

[0146] On this basis, Figure 4BIt is a flowchart showing how to determine the second program list corresponding to the second device mode according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to determine the second program list corresponding to the second device mode as an example to exemplify.

[0147] like Figure 4B As shown, the permission usage control method of this embodiment may further include determining a second program list corresponding to the second device mode based on the following steps S406-S409:

[0148] In step S406, in response to determining the first candidate list as the first program list corresponding to the first device mode, other applications are added to a second candidate list and the second candidate list is displayed, wherein the other applications include programs in the installed programs other than the programs in the first program list.

[0149] In step S407, whether a confirmation operation for the second candidate list is received: if yes, execute step S408; if no, execute step S409;

[0150] In step S408, the second candidate list is determined as a second program list corresponding to the second device mode.

[0151] In step S409, in response to the modification operation on the second candidate list, the modified second candidate list is determined as the second program list corresponding to the second device mode.

[0152] It can be seen from the above description that this embodiment can automatically determine the second program list based on the first program list determined in the electronic device, which can save the user the trouble of manually selecting programs in the second program list, and when the user is not satisfied with the programs in the second alternative list, the second alternative list can be modified by adding, deleting, changing, etc., so as to use the modified list as the second program list, which can ensure that the second program list better meets the needs of the user.

[0153] Figure 5 is a block diagram of a permission usage control device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device having a first screen and a second screen, such as a server, a workstation, a personal computer, a mobile terminal (such as a mobile phone, a tablet computer, etc.), a wearable device (such as glasses, a watch, etc.), etc. Specifically, Figure 5 As shown, the device includes: a screen determination module 110, a program search module 120 and a permission permission module 130, wherein:

[0154] a screen determination module 110, configured to determine a current display screen of the electronic device from the first screen and the second screen in response to receiving a permission use request triggered by an application, wherein the permission use request is used to request use of a target system permission;

[0155] A program search module 120, configured to search for the application program in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen;

[0156] The permission allowing module 130 is configured to allow the application to use the target system permission in response to finding the application in the current program list.

[0157] As can be seen from the above description, the device of this embodiment determines the current display screen of the electronic device from the first screen and the second screen in response to receiving a permission usage request triggered by an application, the permission usage request is used to request the use of the target system permission, and searches for the application in the current program list associated with the current display screen, the current program list contains at least one program that allows the electronic device to use the target system permission when using the current display screen, and then in response to finding the application in the current program list, allows the application to use the target system permission, so that accurate control of the application's use of the target system permission can be achieved. In this way, the user can conveniently and quickly adjust the system permission usage of the application installed in the electronic device by switching the current display screen (that is, switching the current display screen between the first screen and the second screen) in different scenarios based on their own needs, thereby effectively protecting the user's privacy and avoiding information leakage during the use of the electronic device, thereby improving the user experience.

[0158] Figure 6 is a block diagram of another permission use control device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device having a first screen and a second screen, such as a server, a workstation, a personal computer, a mobile terminal (such as a mobile phone, a tablet computer, etc.), a wearable device (such as glasses, a watch, etc.), etc. Among them, the screen determination module 210, the program search module 220 and the permission permission module 230 are similar to the aforementioned Figure 5 The functions of the screen determination module 110 , the program search module 120 and the permission permission module 130 in the illustrated embodiment are the same and will not be described in detail herein.

[0159] like Figure 6 As shown, the device may also include:

[0160] The permission prohibition module 240 is used to prohibit the application from using the target system permission in response to not finding the application in the current program list.

[0161] In some embodiments, the permission prohibition module 240 can also be used to generate a first prompt message, wherein the first prompt message is used to prompt the application to use the target system permission and / or prompt to switch the current display screen to allow the application to use the target system permission.

[0162] In some embodiments, the first screen is associated with a first device mode of the electronic device, the second screen is associated with a second device mode of the electronic device, and the first device mode is different from the second device mode;

[0163] Furthermore, the above device may further include a list determination module 250;

[0164] The list determination module 250 may include:

[0165] a mode determining unit 251, configured to determine, in response to determining a current display screen of the electronic device, a current device mode associated with the current display screen, wherein the current device mode is the first device mode or the second device mode;

[0166] The list determining unit 252 is used to determine the program list associated with the current device mode as the current program list associated with the current display screen.

[0167] In some embodiments, the above apparatus may further include a relationship building module 260;

[0168] The relationship building module 260 may include:

[0169] an interface display unit 261, configured to display a mode setting interface in response to receiving an instruction for creating the first device mode of the electronic device;

[0170] A first constructing unit 262, configured to construct an association relationship between the first device mode and the first screen in response to a selection operation for the first screen triggered in the mode setting interface;

[0171] The second constructing unit 263 is configured to construct an association relationship between the first device mode and the first program list in response to determining the first program list corresponding to the first device mode, wherein the first program list includes at least one program in the first device mode that is allowed to use the target system permission.

[0172] In some embodiments, the relationship building module 260 may further include:

[0173] A third constructing unit 264, configured to construct an association relationship between the second device mode and the second screen in response to constructing an association relationship between the first device mode and the first screen;

[0174] The fourth construction unit 265 is used to construct an association relationship between the second device mode and the second program list in response to determining the second program list corresponding to the second device mode, wherein the second program list includes at least one program in the second device mode that is allowed to use the target system permissions.

[0175] In some embodiments, the relationship building module 260 may further include a first determining unit 266;

[0176] The first determining unit 266 may be configured to:

[0177] Classifying the installed applications in the electronic device to obtain at least two categories of applications;

[0178] Based on the recognition result of the first device mode, adding a first category of applications from the at least two categories of applications to a first candidate list, and displaying the first candidate list;

[0179] In response to a confirmation operation on the first candidate list, the first candidate list is determined as a first program list corresponding to the first device mode.

[0180] In some embodiments, the first determining unit 266 may also be configured to, in response to a modification operation on the first candidate list, determine the modified first candidate list as the first program list corresponding to the first device mode.

[0181] In some embodiments, the above relationship building module 260 may further include a second determining unit 267;

[0182] Furthermore, the second determining unit 267 may be used to:

[0183] In response to determining the first candidate list as the first program list corresponding to the first device mode, adding other application programs to a second candidate list and displaying the second candidate list, the other application programs including programs in the installed programs other than the programs in the first program list;

[0184] In response to a confirmation operation on the second candidate list, the second candidate list is determined as a second program list corresponding to the second device mode.

[0185] In some embodiments, the second determining unit 267 may also be configured to, in response to a modification operation on the second candidate list, determine the modified second candidate list as the second program list corresponding to the second device mode.

[0186] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0187] Figure 7 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0188] Reference Figure 7 , device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0189] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0190] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0191] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0192] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display panel and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0193] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0194] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0195] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display panel and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0196] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0197] In an exemplary embodiment, the device 900 may be implemented by 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0198] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. 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 disk, an optical data storage device, etc.

[0199] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0200] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling the use of rights, characterized in that: Applied to an electronic device, the electronic device comprising a first screen and a second screen; The method comprises: In response to receiving a permission usage request triggered by an application, determining a current display screen of the electronic device from the first screen and the second screen, the permission usage request being used to request use of a target system permission; Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen; In response to finding the application program in the current program list, the application program is allowed to use the target system permission.

2. The method according to claim 1, characterized in that The method further comprises: In response to not finding the application program in the current program list, prohibiting the application program from using the target system permission.

3. The method according to claim 2, characterized in that The method further comprises: Generate first prompt information, where the first prompt information is used to prompt the application program to use the target system permission and / or prompt to switch the current display screen to allow the application program to use the target system permission.

4. The method according to claim 1, wherein The first screen is associated with a first device mode of the electronic device, and the second screen is associated with a second device mode of the electronic device, the first device mode being different from the second device mode; The method further comprises: In response to determining a current display screen of the electronic device, determining a current device mode associated with the current display screen, the current device mode being the first device mode or the second device mode; The program list associated with the current device mode is determined as the current program list associated with the current display screen.

5. The method according to claim 4, characterized in that The method further comprises: In response to receiving an instruction for creating the first device mode of the electronic device, displaying a mode setting interface; In response to a selection operation for the first screen triggered in the mode setting interface, establishing an association relationship between the first device mode and the first screen; In response to determining a first program list corresponding to the first device mode, an association relationship is established between the first device mode and the first program list, where the first program list includes at least one program in the first device mode that is allowed to use the target system permission.

6. The method according to claim 5, characterized in that The method further comprises: In response to establishing an association relationship between the first device mode and the first screen, establishing an association relationship between the second device mode and the second screen; In response to determining a second program list corresponding to the second device mode, an association relationship is established between the second device mode and the second program list, where the second program list includes at least one program in the second device mode that is allowed to use the target system permission.

7. The method according to claim 5, characterized in that The method further comprises: Classifying installed applications in the electronic device to obtain at least two categories of applications; Based on the recognition result of the first device mode, adding a first type of application from the at least two types of application to a first candidate list, and displaying the first candidate list; In response to a confirmation operation on the first candidate list, the first candidate list is determined as a first program list corresponding to the first device mode.

8. The method according to claim 7, characterized in that The method further comprises: In response to a modification operation on the first candidate list, the modified first candidate list is determined as a first program list corresponding to the first device mode.

9. The method according to claim 7, characterized in that The method further comprises: In response to determining the first candidate list as the first program list corresponding to the first device mode, adding other applications to a second candidate list and displaying the second candidate list, the other applications including programs in the installed programs other than the programs in the first program list; In response to a confirmation operation on the second candidate list, the second candidate list is determined as a second program list corresponding to the second device mode.

10. The method according to claim 9, characterized in that The method further comprises: In response to the modification operation on the second candidate list, the modified second candidate list is determined as the second program list corresponding to the second device mode.

11. A permission use control device, characterized in that: Applied to an electronic device, the electronic device comprising a first screen and a second screen; The device comprises: a screen determination module, configured to determine a current display screen of the electronic device from the first screen and the second screen in response to receiving a permission use request triggered by an application program, wherein the permission use request is for requesting use of a target system permission; a program search module, configured to search for the application program in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen; The permission allowing module is configured to allow the application to use the target system permission in response to finding the application in the current program list.

12. The device according to claim 11, characterized in that The device further comprises: The permission prohibition module is configured to prohibit the application from using the target system permission in response to not finding the application in the current program list.

13. The device according to claim 12, characterized in that The permission prohibition module is further configured to generate a first prompt message, wherein the first prompt message is configured to prompt the application program to use the target system permission and / or prompt the application program to switch the current display screen to allow the application program to use the target system permission.

14. The device according to claim 11, characterized in that The first screen is associated with a first device mode of the electronic device, and the second screen is associated with a second device mode of the electronic device, the first device mode being different from the second device mode; The apparatus further includes a list determination module; The list determination module includes: a mode determining unit, configured to, in response to determining a current display screen of the electronic device, determine a current device mode associated with the current display screen, the current device mode being the first device mode or the second device mode; A list determining unit is configured to determine the program list associated with the current device mode as the current program list associated with the current display screen.

15. The device according to claim 14, characterized in that The apparatus further includes a relationship building module; The relationship building module includes: an interface display unit, configured to display a mode setting interface in response to receiving an instruction for creating the first device mode of the electronic device; a first constructing unit, configured to construct an association relationship between the first device mode and the first screen in response to a selection operation on the first screen triggered in the mode setting interface; The second construction unit is configured to construct an association relationship between the first device mode and the first program list in response to determining a first program list corresponding to the first device mode, wherein the first program list includes at least one program in the first device mode that is allowed to use the target system permission.

16. The device according to claim 15, characterized in that The relationship building module also includes: a third constructing unit, configured to construct an association relationship between the second device mode and the second screen in response to constructing the association relationship between the first device mode and the first screen; A fourth construction unit is used to construct an association relationship between the second device mode and the second program list in response to determining the second program list corresponding to the second device mode, where the second program list includes at least one program in the second device mode that is allowed to use the target system permissions.

17. The device according to claim 15, characterized in that The relationship building module further includes a first determining unit; The first determining unit is configured to: Classifying installed applications in the electronic device to obtain at least two categories of applications; Based on the recognition result of the first device mode, adding a first type of application from the at least two types of application to a first candidate list, and displaying the first candidate list; In response to a confirmation operation on the first candidate list, the first candidate list is determined as a first program list corresponding to the first device mode.

18. The device according to claim 17, characterized in that The first determining unit is further configured to, in response to a modification operation on the first candidate list, determine the modified first candidate list as the first program list corresponding to the first device mode.

19. The device according to claim 17, characterized in that The relationship building module further includes a second determining unit; The second determining unit is configured to: In response to determining the first candidate list as the first program list corresponding to the first device mode, adding other applications to a second candidate list and displaying the second candidate list, the other applications including programs in the installed programs other than the programs in the first program list; In response to a confirmation operation on the second candidate list, the second candidate list is determined as a second program list corresponding to the second device mode.

20. The device according to claim 19, characterized in that The second determining unit is further configured to, in response to a modification operation on the second candidate list, determine the modified second candidate list as the second program list corresponding to the second device mode.

21. An electronic device, characterized in that: The device comprises: a first screen, a second screen, a processor, and a memory for storing a computer program; The processor is configured to, when executing the computer program, implement: In response to receiving a permission usage request triggered by an application, determining a current display screen of the electronic device from the first screen and the second screen, the permission usage request being used to request use of a target system permission; Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen; In response to finding the application program in the current program list, the application program is allowed to use the target system permission.

22. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the following is achieved: In response to receiving a permission usage request triggered by an application, determining a current display screen of the electronic device from the first screen and the second screen, wherein the permission usage request is used to request the use of a target system permission; Searching for the application in a current program list associated with the current display screen, wherein the current program list includes at least one program that is allowed to use the target system permission when the electronic device uses the current display screen; In response to finding the application program in the current program list, the application program is allowed to use the target system permission.