Application permission management and control method and terminal

By obtaining the authorized information of the signed user, generating extension and control information, and modifying the original configuration file, the shortcomings of application permission management in the OpenHarmony operating system are solved, and the security control of sensitive fields is achieved, and data security is improved.

CN119089430APending Publication Date: 2024-12-06FUJIAN WISBO DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411133375.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The signature method of the existing OpenHarmony operating system cannot effectively manage application permissions, especially in industry terminals that require extended permissions, and cannot safely control sensitive fields.

Method used

By obtaining the authorized information of the signed user, determining the signature information of the application package to be signed, generating extension information and control information, modifying the original configuration file, performing permission expansion and sensitive field signatures, ensuring signature security.

Benefits of technology

It realizes the control of signature permissions for different users, expands the scope of permissions, and improves the security of application permissions and data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089430A_ABST
    Figure CN119089430A_ABST
Patent Text Reader

Abstract

The invention discloses an application permission management and control method and a terminal. The method comprises the following steps: acquiring authorized information of a signature user and a to-be-signed application package; determining to-be-signed information of the to-be-signed application package based on the authorized information; respectively generating expansion information and control information according to the to-be-signed information; analyzing the to-be-signed application package to obtain an original configuration file; modifying the original configuration file according to the extension information to obtain a target configuration file; performing signature operation on the target configuration file according to the management and control information; if the signature is successful, packaging the signed target configuration file and the to-be-signed application package to generate a target application package; and performing signature operation on the target application package to obtain a signed application package. According to the method, authority extension can be realized based on the original signature of the swan mongolian system, and the sensitive field of the application authority is subjected to security management and control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method and terminal for controlling application permissions. Background Art

[0002] As the security and stability of OpenHarmony, the open source Hongmeng system, continues to improve, more and more device manufacturers are beginning to adopt Hongmeng as the operating system for their hardware devices, such as POS (Point Of Sale), cash registers, PDAs (Personal Digital Assistants) and police equipment.

[0003] The native configuration of operating systems such as OpenHarmony provides a set of application signing and verification mechanisms. After the user signs the application developed based on its operating system, it can be installed on the device of the corresponding operating system. The signing method currently used by OpenHarmony is carried out on the development tools dedicated to Hongmeng. The permissions that can be granted in the Profile (an application configuration file) during application development are all OpenHarmony's native Profile permissions. For some industry equipment, it is necessary to add some extended permissions on this basis and manage them. For example, on POS devices, it is necessary to increase the calling permissions for the card module, code scanning module, and printing module. In addition, the native signature based on the development tools dedicated to Hongmeng cannot control some sensitive fields, so developers can freely define the application level and application privileges developed, and for industry terminals with higher security requirements, it is necessary to control the application level and application privileges that developers can develop. Summary of the invention

[0004] The technical problem to be solved by the present invention is: to provide a method and terminal for managing application permissions, which can implement permission extension based on the native signature of the Hongmeng system and perform security management on sensitive fields of application permissions.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A method for controlling application permissions, including:

[0007] Obtain the authorized information of the signing user and the application package to be signed;

[0008] Determining the information to be signed of the application package to be signed based on the authorized information;

[0009] Generate extended information and control information respectively according to the information to be signed;

[0010] Parsing the application package to be signed to obtain an original configuration file;

[0011] Modify the original configuration file according to the extended information to obtain a target configuration file;

[0012] Performing a signing operation on the target configuration file according to the control information;

[0013] If the signature is successful, the signed target configuration file and the application package to be signed are packaged to generate a target application package;

[0014] A signing operation is performed on the target application package to obtain a signed application package.

[0015] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0016] A terminal for controlling application permissions includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, each step in the above-mentioned method for controlling application permissions is implemented.

[0017] The beneficial effects of the present invention are: obtaining the authorized information of the signing user and the application package to be signed, determining the information to be signed of the application package to be signed based on the authorized information, thereby limiting the signing authority of the signing user to achieve the management and control of the signing authority of different users. Based on the information to be signed, the extended information and the control information are respectively generated, and the original configuration file is modified by the extended information to achieve permission extension, and because the extended information is determined based on the authorized information, the operation and maintenance personnel can effectively manage the scope of the extended permissions. At the same time, the target configuration file after the permission extension is signed based on the control information to achieve the management and control of sensitive fields and improve the security of the signature. While the present invention realizes permission extension based on the native signature mechanism of the Hongmeng system, it can also perform security management and control on the sensitive fields of application permissions, effectively improving data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart of a method for controlling application permissions provided by an embodiment of the present invention;

[0019] Figure 2 A data interaction diagram of a method for controlling application permissions provided by an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of an interface for managing users provided by an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of a signature user interface provided by an embodiment of the present invention;

[0022] Figure 5 Another data interaction diagram of a method for controlling application permissions provided by an embodiment of the present invention;

[0023] Figure 6 A schematic diagram of the structure of an application permission management and control terminal provided in an embodiment of the present invention;

[0024] Description of labels:

[0025] 100. A terminal for managing and controlling application permissions; 101. A memory; 102. A processor. DETAILED DESCRIPTION

[0026] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0027] An embodiment of the present invention provides a method for managing and controlling application permissions, including:

[0028] Obtain the authorized information of the signing user and the application package to be signed;

[0029] Determining the information to be signed of the application package to be signed based on the authorized information;

[0030] Generate extended information and control information respectively according to the information to be signed;

[0031] Parsing the application package to be signed to obtain an original configuration file;

[0032] Modify the original configuration file according to the extended information to obtain a target configuration file;

[0033] Performing a signing operation on the target configuration file according to the control information;

[0034] If the signature is successful, the signed target configuration file and the application package to be signed are packaged to generate a target application package;

[0035] A signing operation is performed on the target application package to obtain a signed application package.

[0036] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the authorized information of the signing user and the application package to be signed, determining the information to be signed of the application package to be signed based on the authorized information, thereby limiting the signing authority of the signing user to achieve the management and control of the signing authority of different users. Based on the information to be signed, the extended information and the control information are respectively generated, and the original configuration file is modified by the extended information to achieve permission extension, and because the extended information is determined based on the authorized information, the operation and maintenance personnel can effectively manage the scope of the extended permissions. At the same time, the target configuration file after the permission extension is signed based on the control information to achieve the management and control of sensitive fields and improve the security of the signature. While the present invention realizes permission extension based on the native signature mechanism of the Hongmeng system, it can also perform security management and control on the sensitive fields of application permissions, effectively improving data security.

[0037] Furthermore, before obtaining the authorized information of the signing user and the application package to be signed, the method further includes:

[0038] In response to the login operation of the management user, a two-way communication channel is established with the signature management end according to the private key in the login information;

[0039] Based on the two-way communication channel, the authorized information of the signing user is set through the signature management terminal, the authorized information includes a user extended permission set, a certificate list and a first key storage area, and the certificate list is bound to the first key storage area.

[0040] From the above description, it can be seen that a two-way communication channel is created for the signature management end based on the public and private keys in the management user login information, thereby ensuring the security of data transmission between the user end and the signature management end. At the same time, the certificate list is bound to the first key storage area, thereby limiting the key area used by the signing user and preventing the signing user from accessing other keys.

[0041] Further, the determining the information to be signed of the application package to be signed based on the authorized information includes:

[0042] In response to a selection instruction of the signing user in the authorized information, the information to be signed of the application package to be signed is generated according to the authorized information selected by the selection instruction.

[0043] From the above description, it can be seen that the authorized information of the signing user limits the scope of the signing authority that can be selected, thereby realizing the control of the permissions added by the user and ensuring the security of application data.

[0044] Furthermore, the information to be signed includes an application extension permission set, a signing certificate, a second key storage area, and special permissions;

[0045] Generating the extended information and the control information respectively according to the information to be signed includes:

[0046] Generate extended information according to the application extended permission set, key information of the signing certificate and the second key storage area;

[0047] The control information is generated according to the level information of the signature certificate and the special authority.

[0048] As can be seen from the above description, based on the application extension permission set, the signing certificate and the second key storage area, the extension information is generated to modify the original configuration file, thereby realizing the extension of the application permissions. Based on the level information and special permissions of the signing certificate, the control information is generated to sign the target configuration file, thereby controlling the application level and application privileges that the signing user can develop.

[0049] Further, the modifying the original configuration file according to the extended information to obtain the target configuration file includes:

[0050] The key information of the signing certificate is overwritten into the first field in the original configuration file, and the application extension permission set and the second key storage area are written into the second field in the original configuration file to obtain a target configuration file.

[0051] As can be seen from the above description, the key information of the signature certificate is overwritten to the first field of the original configuration file to ensure the format legitimacy of the original configuration file. At the same time, the application extension permission set and the second key storage area are written into the second field of the original configuration file to implement the addition of the application calling permission, and the second key storage area can distinguish the key access areas of different signing users to prevent different signing users from accessing the same key.

[0052] Further, the signing operation on the target configuration file according to the control information includes:

[0053] Performing a signing operation on the target configuration file through the signature management terminal and the signature service terminal, and parsing the permission application level and sensitive permissions of the target configuration file;

[0054] If the permission application level is consistent with the level information of the signing certificate, and the sensitive permission is consistent with the special permission, the signature is successful.

[0055] From the above description, it can be seen that in the process of signing the target configuration file, the permission application level and sensitive permissions of the target configuration file remain the fields of the original configuration file, so the permission application level is compared with the level information currently selected by the signing user, and the sensitive permissions are compared with the special permissions currently selected by the signing user. When both are consistent, it means that the permission application level and sensitive permissions defined by the current application meet the permissions authorized by the signing user, so the signature is successful. This realizes the control of application levels and application privileges, and improves the security of application data.

[0056] Furthermore, the signing operation on the target configuration file through the signature management terminal and the signature service terminal includes:

[0057] The signature management terminal indexes the signature parameters corresponding to the signature certificate, and the signature management terminal forwards the signature parameters to the signature service terminal;

[0058] The signature service end indexes a signature key corresponding to the signature certificate, and performs a signature operation on the target configuration file according to the signature parameter and the signature key.

[0059] From the above description, it can be seen that the signature management terminal communicates with the signature service terminal to avoid direct communication with the signature service terminal, and the signature operation is completed based on the signature service terminal, thereby ensuring the security of the signature environment. The signature parameters are determined in the signature management terminal to ensure that the target configuration file can be signed in a legal manner; the signature key is stored in the signature service terminal to ensure the security of the key.

[0060] Further, packaging the signed target configuration file and the application package to be signed to generate a target application package includes:

[0061] Recombining the signed target configuration file with the signature certificate to generate a signature block;

[0062] The signature block and the application package to be signed are packaged to generate a target application package.

[0063] From the above description, it can be seen that the signed target configuration file and the application package to be signed are recombined and packaged in the native application package mode to obtain the target application package, which can achieve the control of application permissions while avoiding the problem of subsequent application package format errors.

[0064] Further, the step of performing a signing operation on the target application package to obtain a signed application package includes:

[0065] Calculating summary information of the target application package, and performing a signing operation on the summary information through the signature management end and the signature service end to obtain signed summary information;

[0066] The signed summary information, the signed target configuration file and the signing certificate are reassembled to obtain a signed application package.

[0067] From the above description, it can be seen that the method of signing based on summary information can greatly reduce the amount of data transmission between ends, thereby improving the signing speed, compared with signing the entire application package.

[0068] Another embodiment of the present invention provides an application permission management terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, each step in the above-mentioned application permission management method is implemented.

[0069] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the authorized information of the signing user and the application package to be signed, determining the information to be signed of the application package to be signed based on the authorized information, thereby limiting the signing authority of the signing user to achieve the management and control of the signing authority of different users. Based on the information to be signed, the extended information and the control information are respectively generated, and the original configuration file is modified by the extended information to achieve permission extension, and because the extended information is determined based on the authorized information, the operation and maintenance personnel can effectively manage the scope of the extended permissions. At the same time, the target configuration file after the permission extension is signed based on the control information to achieve the management and control of sensitive fields and improve the security of the signature. While the present invention realizes permission extension based on the native signature mechanism of the Hongmeng system, it can also perform security management and control on the sensitive fields of application permissions, effectively improving data security.

[0070] The embodiment of the present invention provides a method and terminal for controlling application permissions, which can be applied to the application installation scenario of the Hongmeng system platform, can implement permission extension based on the native signature of the Hongmeng system, and perform security control on sensitive fields of application permissions. The following is an explanation through a specific embodiment:

[0071] Please refer to Figure 1 , Embodiment 1 of the present invention is:

[0072] A method for controlling application permissions, including:

[0073] S1. Obtain the authorized information of the signing user and the application package to be signed.

[0074] In some embodiments, in response to the login operation of the signing user, the authorization information of the signing user is obtained through the signature management terminal. The signing user can log in through the Ukey method or the system account method. The Ukey is a hardware device used for security authentication and encryption and decryption, also known as USB Key or USB security token.

[0075] Specifically, before step S1, the method further includes:

[0076] S101. In response to a login operation of a management user, a two-way communication channel is created with a signature management terminal according to a private key in the login information.

[0077] In some embodiments, in response to a login operation of the management user, the management user's account is authenticated through the signature management terminal, and after the authentication is passed, a two-way communication channel is created at the signature management terminal based on the private key.

[0078] In some embodiments, the management user uses Ukey to log in. After the management user logs in, a two-way https channel is established with the signature management end using the private key preset in Ukey.

[0079] S102: Based on the two-way communication channel, the authorized information of the signing user is set through the signature management terminal, the authorized information includes a user extended permission set, a certificate list and a first key storage area, and the certificate list is bound to the first key storage area.

[0080] In some embodiments, the management user sets the user extended permission set of the signing user through the signature management terminal, wherein the content set by the management user includes the permission set name, permission set value, permission set type, and the permission set applicable signature type, etc.

[0081] In some embodiments, there are often many application signing certificates for device manufacturers or device owners. By authorizing some of the signing users' certificates, that is, setting a certificate list, different signing users can only use the certificates they are authorized to sign for signing.

[0082] In some embodiments, KAP, i.e., Key Arrangement Pool key storage area, is used to limit the scope of the key storage area that the application has permission to access, and KAPID is the area range identifier, and KAPID includes a front domain and a back domain, wherein the front domain is the first key storage area, and the back domain is the second key storage area, and the second key storage area is filled according to the application that needs to be signed.

[0083] S2. Determine the information to be signed of the application package to be signed based on the authorized information.

[0084] Specifically, the step S2 includes:

[0085] S21, in response to the selection instruction of the signing user in the authorized information, generating the information to be signed of the application package to be signed according to the authorized information selected by the selection instruction, wherein the information to be signed includes an application extension permission set, a signing certificate, a second key storage area and special permissions.

[0086] In some embodiments, the authorized information of the signing user is displayed on the display screen of the user end through a pop-up window, an online website or other interface. After the signing user adds the application package to be signed, the user selects or inputs the authorized information required for the signature of the application package to be signed on the interface. In some embodiments, the application extension permission set is selected from the user extension permission set, and the signing certificate is selected from the certificate list. When the signing user completes the selection, the signing operation is initiated to execute step S3.

[0087] S3. Generate extended information and control information respectively according to the information to be signed.

[0088] Specifically, step S3 includes:

[0089] S31. Generate extended information according to the application extended permission set, key information of the signing certificate, and the second key storage area.

[0090] S32. Generate control information according to the level information of the signature certificate and the special authority.

[0091] S4. Parse the application package to be signed to obtain an original configuration file.

[0092] In some embodiments, the application package to be signed is first parsed to obtain a signature block, and then the original configuration file is parsed from the signature block, where the original configuration file is a profile file.

[0093] S5. Modify the original configuration file according to the extended information to obtain a target configuration file.

[0094] Specifically, step S5 includes:

[0095] S51. Overwrite the key information of the signing certificate into the first field in the original configuration file, and write the application extension permission set and the second key storage area into the second field in the original configuration file to obtain a target configuration file.

[0096] In some embodiments, key information of the signing certificate includes the certificate validity period and the content of the issuing certificate.

[0097] In some embodiments, before obtaining the application package to be signed, a second field needs to be added to the end of the original configuration file of the application package to be signed. The second field is used to define some custom permissions and KAP areas that the device manufacturer needs to extend on the Hongmeng system. Therefore, the second field of the original configuration file defaults to an empty value.

[0098] S6. Perform a signing operation on the target configuration file according to the control information.

[0099] Specifically, step S6 includes:

[0100] S61. Perform a signing operation on the target configuration file through the signature management terminal and the signature service terminal, and parse the permission application level and sensitive permissions of the target configuration file.

[0101] S62. If the permission application level is consistent with the level information of the signature certificate, and the sensitive permission is consistent with the special permission, the signature is successful.

[0102] In some embodiments, if the permission application level is inconsistent with the level information of the signing certificate, or the sensitive permission is inconsistent with the special permission, the signature fails and a prompt is given.

[0103] Specifically, in step S61: performing a signing operation on the target configuration file by the signature management terminal and the signature service terminal includes:

[0104] S611. The signature management terminal indexes the signature parameters corresponding to the signature certificate, and the signature management terminal forwards the signature parameters to the signature service terminal.

[0105] In some embodiments, the signature parameters are indexed according to the ID number of the signature certificate, and the signature parameters include the filling method and signature algorithm corresponding to the signature.

[0106] S612: Index a signature key corresponding to the signature certificate through the signature service end, and perform a signing operation on the target configuration file according to the signature parameter and the signature key.

[0107] In some embodiments, the signature key is indexed according to the ID number of the signature certificate. The signature key is a signature execution module stored in the signature service end after the private key is encrypted by the local key of the signature encryption machine. After obtaining the signature parameters and the signature key, the signature execution module requests the signature encryption machine to sign the target configuration file. The signature encryption machine uses the local key to decrypt the private key and then performs the signing operation.

[0108] S7. If the signature is successful, the signed target configuration file and the application package to be signed are packaged to generate a target application package.

[0109] Specifically, the step S7 includes:

[0110] S71. Recombine the signed target configuration file with the signature certificate to generate a signature block.

[0111] S72: Pack the signature block and the application package to be signed to generate a target application package.

[0112] S8. Perform a signing operation on the target application package to obtain a signed application package.

[0113] Specifically, the step S8 includes:

[0114] S81. Calculate summary information of the target application package, and perform a signing operation on the summary information through the signature management end and the signature service end to obtain signed summary information.

[0115] S82: Recombine the signed summary information, the signed target configuration file, and the signing certificate to obtain a signed application package.

[0116] Please refer to Figures 2 to 5 , Embodiment 2 of the present invention is:

[0117] A method for controlling application permissions is applied to a signature system dedicated to the Hongmeng system. The signature system includes a user end and a server end, wherein the server end includes a signature management end and a signature business end. The signature management end includes an account module, an extended permission management module, a certificate and KAP management module, and a signature business front-end module. The signature business end includes a signature encryption machine and a signature execution module. The user end executes the above method, such as Figure 2 and Figure 5 As shown, the following steps are included:

[0118] S110. The management user logs in through Ukey and uses the private key preset in Ukey to establish a two-way https channel with the signature management end.

[0119] S120: After the management user successfully logs in, the user extended permission set of the signing user is set and stored through the extended permission management module, and the list of certificates authorized by the signing user and the binding relationship between the certificate and the KAP front domain are set and stored through the certificate and KAP management module.

[0120] like Figure 3 As shown, the special permissions authorized to the signed user include AllowAppDataNotCleared and AllowAppMultiProcess, and the extended permissions authorized to the signed user include algorithm module, buzzer device, component management, and data collection.

[0121] S130, the signing user logs in through Ukey, obtains the user extended permission set, certificate list and KAP front domain of the signing user from the extended permission management module and the certificate and KAP management module, and displays them on the display screen of the user end.

[0122] like Figure 4 As shown, the certificate list authorized by the signing user is the profile certificate, whose KAP prefix domain is 0001, and the user extended permission set is the financial module permission set. The permission set values ​​of the financial module permission set include deep.permission.ALGORITHM_NORMAL, deep.permission.BEEPER_NORMAL, deep.permission.CMS_NORMAL, deep.permission.DATASHEET_NORMAL, deep.permission.EMVL2_ADMIN, deep.permission.INSERTCARD_SYSTEM, and deep.permission.LED_NORMAL.

[0123] S140. After the signing user adds the HAP (Hongmeng system application installation package) to be signed, he selects the signing certificate, KAP back-domain, special permissions and application extension permission set required for signing the application package to be signed in the interface of step S130 to initiate the signing operation.

[0124] like Figure 4 As shown, the signing certificate selected by the signing user is ISV-Profile Signature-Normal, the KAP post-domain is empty, the special permission is AllowAppDataNotCleared, and the application extension permission set is permission.ALGORITHM_NORMAL, deep.permission.BEEPER_NORMAL, and deep.permis sion.CMS_NORMAL.

[0125] S150, in response to the signing operation, the user end parses the HAP to be signed to obtain the profile file, and modifies and controls the profile file according to the signing certificate, KAP back domain, special permissions, and application extension permission set selected when initiating the signing operation to obtain the target profile file. Its modification and control strategies are shown in Table 1.

[0126] Table 1 Partial content of a profile file

[0127]

[0128]

[0129] S160: The user terminal sends a first signature request to the signature service front-end module. The first signature request includes a signature certificate ID and a target profile file to be signed.

[0130] S170. The signature service front-end module indexes the filling method and signature algorithm corresponding to the signature certificate according to the signature certificate ID, and sends a second signature request to the signature execution module. The second signature request includes the signature certificate ID, the target profile file to be signed, the signature filling method and the signature algorithm.

[0131] S180. The signature execution module indexes the encrypted private key corresponding to the signature certificate according to the signature certificate ID, and sends a third signature request to the signature encryption machine. The third signature request includes the target profile file to be signed, the signature filling method, the signature algorithm and the encrypted private key.

[0132] S190. After decrypting the private key based on the local key, the signature encryption machine performs the signing operation, and after completing the signing, returns the signed target profile file to the user end.

[0133] S200. The user end generates a signature block using the native combination method of the Hongmeng system by combining the signed target profile file and the signature certificate, and then packages the signature block and the HAP to be signed into the target HAP.

[0134] S210: The user terminal calculates the summary data of the target HAP, and performs a signing operation on the summary data based on the above steps S160 to S190 to obtain signed summary data.

[0135] S220: The user terminal combines the signed summary data, the target HAP, and the signature certificate into a signed HAP.

[0136] Please refer to Figure 6 , Embodiment 3 of the present invention is:

[0137] A terminal 100 for controlling application permissions includes a memory 101, a processor 102, and a computer program stored in the memory 101 and running on the processor 102. When the processor 102 executes the computer program, each step in a method for controlling application permissions in Embodiment 1 and Embodiment 2 is implemented.

[0138] In summary, the present invention provides a method and terminal for controlling application permissions. First, the management user sets the authorized information of the signing user, thereby controlling the signing permissions of the signing user. Then the signing user obtains its authorized information and the application package to be signed, and determines the information to be signed of the application package to be signed based on the authorized information, thereby limiting the signing permissions of the application package to be signed. Then the user end generates extended information and control information based on the information to be signed, and modifies the original configuration file through the extended information, thereby realizing permission extension. Since the extended information is determined based on the authorized information, the operation and maintenance personnel can effectively manage the scope of the extended permissions. Finally, based on the control information, it is determined whether the application level and application privileges applied for by the target configuration file after the permission extension meet the signing permissions of the signing user, thereby realizing the control of the application level and application privileges and improving the signature security. While realizing permission extension based on the native signature mechanism of the Hongmeng system, the present invention can also perform security control on sensitive fields of application permissions, effectively improving data security.

[0139] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for controlling application permissions, characterized in that: include: Obtain the authorized information of the signing user and the application package to be signed; Determining the information to be signed of the application package to be signed based on the authorized information; Generate extended information and control information respectively according to the information to be signed; Parsing the application package to be signed to obtain an original configuration file; Modify the original configuration file according to the extended information to obtain a target configuration file; Performing a signing operation on the target configuration file according to the control information; If the signature is successful, the signed target configuration file and the application package to be signed are packaged to generate a target application package; A signing operation is performed on the target application package to obtain a signed application package.

2. A method for controlling application permissions according to claim 1, characterized in that: Before obtaining the authorized information of the signing user and the application package to be signed, the method further includes: In response to the login operation of the management user, a two-way communication channel is established with the signature management end according to the private key in the login information; Based on the two-way communication channel, the authorized information of the signing user is set through the signature management terminal, the authorized information includes a user extended permission set, a certificate list and a first key storage area, and the certificate list is bound to the first key storage area.

3. The method for controlling application permissions according to claim 1, characterized in that: The determining the information to be signed of the application package to be signed based on the authorized information includes: In response to a selection instruction of the signing user in the authorized information, the information to be signed of the application package to be signed is generated according to the authorized information selected by the selection instruction.

4. The method for controlling application permissions according to claim 1, characterized in that: The information to be signed includes an application extension permission set, a signing certificate, a second key storage area, and special permissions; Generating the extended information and the control information respectively according to the information to be signed includes: Generate extended information according to the application extended permission set, key information of the signing certificate and the second key storage area; The control information is generated according to the level information of the signature certificate and the special authority.

5. A method for controlling application permissions according to claim 4, characterized in that: Modifying the original configuration file according to the extended information to obtain the target configuration file includes: The key information of the signing certificate is overwritten into the first field in the original configuration file, and the application extension permission set and the second key storage area are written into the second field in the original configuration file to obtain a target configuration file.

6. A method for controlling application permissions according to claim 4, characterized in that: The signing operation on the target configuration file according to the control information includes: Performing a signing operation on the target configuration file through the signature management terminal and the signature service terminal, and parsing the permission application level and sensitive permissions of the target configuration file; If the permission application level is consistent with the level information of the signing certificate, and the sensitive permission is consistent with the special permission, the signature is successful.

7. A method for controlling application permissions according to claim 6, characterized in that: The signing operation on the target configuration file by the signature management terminal and the signature service terminal includes: The signature management terminal indexes the signature parameters corresponding to the signature certificate, and the signature management terminal forwards the signature parameters to the signature service terminal; The signature service end indexes a signature key corresponding to the signature certificate, and performs a signature operation on the target configuration file according to the signature parameter and the signature key.

8. The method for controlling application permissions according to claim 6, characterized in that: The step of packaging the signed target configuration file and the application package to be signed to generate a target application package includes: Recombining the signed target configuration file with the signature certificate to generate a signature block; The signature block and the application package to be signed are packaged to generate a target application package.

9. The method for controlling application permissions according to claim 6, characterized in that: The performing a signing operation on the target application package to obtain a signed application package comprises: Calculating summary information of the target application package, and performing a signing operation on the summary information through the signature management end and the signature service end to obtain signed summary information; The signed summary information, the signed target configuration file and the signing certificate are reassembled to obtain a signed application package.

10. An application permission management terminal, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps in the method for managing application permissions as described in any one of claims 1 to 9.