Software license control method, device and equipment based on open source Hongmeng operating system
By applying the business layer and license management layer to automatically adjust software permissions in the open source Hongmeng operating system, the problem of insufficient or over-granting in traditional license control methods is solved, and a more reasonable resource allocation and security strategy is realized to ensure that software permissions are similar to those of the same type The software is consistent, improving user trust and system security.
Patent Information
- Application Number
- CN202411147385.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-21
AI Technical Summary
In the open source Hongmeng operating system environment, traditional software license control methods have problems such as insufficient permission allocation or excessive granting, resulting in limited software functions or security risks, and it is difficult to effectively manage software permissions.
The software information is obtained through the application business layer and passed to the license management layer, the target software collection is determined according to the software type, its license permission information is obtained, and the license permission change information is generated using the preset model, software permissions are automatically adjusted, and manual configuration is reduced, and efficiency is improved. And obtain confirmation through the user interaction layer to increase transparency and security.
A more reasonable resource allocation and security policy is implemented to ensure that software permissions are consistent with similar software, avoid security problems caused by excessive permissions, and improve user trust and system security.
Smart Images

Figure CN118656807B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a software license control method, device and equipment based on the open source Hongmeng operating system. Background Art
[0002] With the popularity of the open source Hongmeng operating system, more and more applications and software have begun to be developed and run on it. The open source Hongmeng operating system provides a rich API and framework, allowing developers to build software with complex functions and good user experience. However, this also brings up the issue of software license control, especially in terms of software rights management.
[0003] Traditional software licensing control methods often rely on static permission allocation rules, that is, all permissions are preset when the software is installed, and users can only accept or reject these permissions. Although this method is simple, it has obvious shortcomings in practical applications. On the one hand, it may limit the normal function of the software because some necessary permissions are not correctly granted at the beginning of installation; on the other hand, it may also lead to excessive permission granting, posing risks to user privacy and system security.
[0004] In response to the above problems, in the open source Hongmeng operating system environment, how to effectively control software licensing rights has become a key issue that needs to be solved urgently. Summary of the invention
[0005] The present application provides a software license control method, device and equipment based on the open source Hongmeng operating system, which is used to solve the technical problem of how to effectively control the licensing rights of software in the open source Hongmeng operating system environment.
[0006] In a first aspect, the present application provides a software license control method based on an open source Hongmeng operating system, which is applied to a software license control device, wherein the software license control device includes: an application business layer and a license management layer; the method includes:
[0007] Acquire software information of the software to be licensed through the application service layer, and transmit the software information to the license management layer, wherein the software information includes software type information and permission information to be licensed;
[0008] The licensing management layer determines a target software set according to the software type information, wherein the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition;
[0009] The licensing management layer obtains a licensing permission information set of the target software set, wherein the licensing permission information in the licensing permission information set is the licensing permission information of the corresponding target software in the target software set;
[0010] The license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information.
[0011] In the above scheme, the application business layer obtains software information and passes it to the license management layer. The license management layer determines the target software set according to the software type information, and obtains the license permission information from the target software set, thereby using the preset model to generate license permission change information, change the software license permission, and then by comparing the software type, ensure that the software obtains similar permissions as its similar software, so as to achieve more reasonable resource allocation and security strategies. In addition, the license permission is automatically adjusted according to the software type, reducing the workload of manual configuration and improving efficiency. In particular, when the software to be licensed is installed for the first time, through the above scheme, while ensuring the rapid configuration of necessary license permissions to ensure the normal use of the software, it can also avoid software security issues caused by excessive license permissions.
[0012] Optionally, the software license control device further includes: a user interaction layer; before changing the license permission of the software to be licensed according to the license permission change information, further includes:
[0013] Displaying software information and permission change information through the user interaction layer;
[0014] Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer;
[0015] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0016] The permission management layer transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer.
[0017] In the above solution, the user interaction layer displays software information and permission change information, and after obtaining user confirmation information, the permission management layer executes the change. Allowing users to view and confirm permission changes increases transparency and improves user trust in system security. In addition, it ensures that permission changes are in line with user intentions and reduces security risks caused by misoperation.
[0018] Optionally, the software license control device further includes: a data storage layer; after the software information and the license authority change information are displayed through the user interaction layer, further includes:
[0019] If the permission authority change confirmation information is not obtained through the user interaction layer within the preset time period, the user interaction layer sends permission change timeout information to the permission management layer;
[0020] Correspondingly, the step of changing the permission of the software to be licensed according to the permission change information includes:
[0021] The licensing management layer determines data output permission information and data input permission information based on the licensing permission change information, and sends the data input permission information to the data storage layer so that the data storage layer opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed.
[0022] In the above scheme, if the user does not confirm within the specified time, the user interaction layer sends a timeout message. The permission management layer opens data input permissions and closes data output permissions based on the change information. Thus, by setting a timeout protection mechanism, the permission change is prevented from being in an uncertain state, thereby enhancing system security. In addition, in terms of data flow control, by limiting data output, potential data leakage is prevented and sensitive information is protected.
[0023] Optionally, the permission management layer uses a preset permission authorization determination model and generates permission permission change information according to the permission information to be permitted and the permission permission information set, including:
[0024] The permission management layer uses formula 1 and sets the permission information according to the permission information set. Determine permission reference information , where Formula 1 is:
[0025]
[0026] in, The target software set The license information corresponding to the target software, Reference information for the permission Middle Permission status; Used to determine the permission information set A common permission category sequence of each permission information in; The function is used to determine the permission status in the common permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then ;
[0027] The permission management layer is based on the permission information to be permitted and the permission reference information Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information is the same as the permission category in the permission reference information, then it is configured to be the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, then it is configured to be an unauthorized state.
[0028] In the above scheme, the license authority reference information is determined by the above formula 1, and the license authority change information is generated according to the reference information, so as to ensure the consistency of authority. This ensures that the software authority is consistent with similar software and maintains the overall compatibility and stability of the system. In addition, through the precise control of the authority status, a more detailed authority management strategy is achieved. In particular, when the software to be licensed is installed for the first time, through the above scheme, while ensuring the rapid configuration of the necessary license authority to ensure the normal use of the software, it can also avoid software security issues caused by excessive license authority.
[0029] Optionally, after the permission management layer uses a preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, the method further includes:
[0030] The permission management layer uses formula 2 and sets the permission information according to the permission information set. Determine extended permissions information , where Formula 2 is:
[0031]
[0032] in, Used to determine the permission information set A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in the merged permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding permission information exists in If the permission status of all permission categories is authorized, then , if the permission information set If the permission status of the permission category corresponding to each permission information in is unauthorized, then ;
[0033] The permission management layer generates permission extension information according to the permission information to be permitted and the permission extension information;
[0034] The permission management layer generates permission confirmation information according to the permission change information and the permission extension information, wherein the permission status of the permission category in the permission confirmation information is unauthorized in the permission change information and is authorized in the permission extension information;
[0035] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0036] A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and an authorization trigger component arranged after each permission category of the permission confirmation information, and the authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
[0037] In the above scheme, the permission extension information is determined by the above formula 2, and the permission confirmation information is generated to allow the user to confirm the additional permissions. This allows the software to request additional permissions, improving the flexibility and extensibility of the software functions. In addition, the user can decide whether to accept the additional permissions, increasing the user's control over personal data. It is worth noting that the above-mentioned permission extension information determines the reasonable permission authorization scope of similar software, and displays the reasonable permission authorization scope to the user, effectively avoiding displaying too much unnecessary information to the user, thereby effectively improving the efficiency of the user's configuration of software-related permission.
[0038] Optionally, in the permission management layer, according to the permission information to be permitted and the permission extension information After the extended permission information is generated, it also includes:
[0039] The permission management layer determines a permission extension set according to the permission extension information ,in, Extend the set for the permissions Middle target permission categories;
[0040] The permission management layer uses formula 3 and according to the target permission category In the target software collection The permission status in determines the permission characteristic value , the formula 3 is:
[0041]
[0042] in, For the target software collection Middle The target software's license status, if it is authorized, then If it is unauthorized, then ; For the target software collection Middle The frequency of use of the target software within the preset time period; For the target software collection The number of target software in
[0043] Correspondingly, the permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each permission category of the permission confirmation information, including:
[0044] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission characteristic value corresponding to the target permission category is If the target permission category has a corresponding permission characteristic value greater than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission status to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0045] In the above scheme, the extended set of license rights is determined, the characteristic value of the license rights is calculated, and the behavior of the authorization trigger component is adjusted according to the characteristic value. Therefore, the recommended configuration of the relevant license rights category is adjusted based on the frequency of software use, so as to further improve the efficiency and pertinence of the user's subsequent configuration of software license rights. In addition, by providing an intuitive interface, it is easy for users to understand and manage complex permission settings.
[0046] Optionally, Formula 3 is used at the permission management layer, and according to the target permission category In the target software collection The permission status in determines the permission characteristic value After that, it also includes:
[0047] The permission management layer uses formula 4 and according to the target permission category In the target software collection The permission status in the permission characteristic value Update to generate permission characteristic update values , the formula 4 is:
[0048]
[0049] in, is a time node within the preset time period, is the number of time nodes set within the preset duration, is the preset time attenuation coefficient;
[0050] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission feature update value corresponding to the target permission category is If the target permission category has a corresponding permission feature update value greater than a preset permission feature threshold, the authorization trigger component is used to switch the corresponding permission state to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0051] In the above scheme, the licensing authority characteristic value is updated through the above formula 4 to further optimize the authority management, so as to dynamically adjust the authority through the time decay coefficient, adapt to the changes in software usage patterns and user habits, and improve the timeliness of authority management.
[0052] In a second aspect, the present application provides a software license control device, including: an application service layer and a license management layer;
[0053] Acquire software information of the software to be licensed through the application service layer, and transmit the software information to the license management layer, wherein the software information includes software type information and permission information to be licensed;
[0054] The licensing management layer determines a target software set according to the software type information, wherein the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition;
[0055] The licensing management layer obtains a licensing permission information set of the target software set, wherein the licensing permission information in the licensing permission information set is the licensing permission information of the corresponding target software in the target software set;
[0056] The license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information.
[0057] Optionally, the software license control device further includes: a user interaction layer; before changing the license permission of the software to be licensed according to the license permission change information, further includes:
[0058] Displaying software information and permission change information through the user interaction layer;
[0059] Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer;
[0060] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0061] The permission management layer transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer.
[0062] Optionally, the software license control device further includes: a data storage layer; after the software information and the license authority change information are displayed through the user interaction layer, further includes:
[0063] If the permission authority change confirmation information is not obtained through the user interaction layer within the preset time period, the user interaction layer sends permission change timeout information to the permission management layer;
[0064] Correspondingly, the step of changing the permission of the software to be licensed according to the permission change information includes:
[0065] The licensing management layer determines data output permission information and data input permission information based on the licensing permission change information, and sends the data input permission information to the data storage layer so that the data storage layer opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed.
[0066] Optionally, the permission management layer uses a preset permission authorization determination model and generates permission permission change information according to the permission information to be permitted and the permission permission information set, including:
[0067] The permission management layer uses formula 1 and sets the permission information according to the permission information set. Determine permission reference information , where Formula 1 is:
[0068]
[0069] in, The target software set The license information corresponding to the target software, Reference information for the permission Middle Permission status; Used to determine the permission information set A common permission category sequence of each permission information in; The function is used to determine the permission status in the common permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then ;
[0070] The permission management layer is based on the permission information to be permitted and the permission reference information Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information is the same as the permission category in the permission reference information, then it is configured to be the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, then it is configured to be an unauthorized state.
[0071] Optionally, after the permission management layer uses a preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, the method further includes:
[0072] The permission management layer uses formula 2 and sets the permission information according to the permission information set. Determine extended permissions information , where Formula 2 is:
[0073]
[0074] in, Used to determine the permission information set A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in the merged permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding permission information exists in If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of all permission categories is unauthorized, then ;
[0075] The permission management layer is configured to determine the permission information to be permitted and the permission extension information Generate extended permission information;
[0076] The permission management layer generates permission confirmation information according to the permission change information and the permission extension information, wherein the permission status of the permission category in the permission confirmation information is unauthorized in the permission change information and is authorized in the permission extension information;
[0077] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0078] A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and an authorization trigger component arranged after each permission category of the permission confirmation information, and the authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
[0079] Optionally, in the permission management layer, according to the permission information to be permitted and the permission extension information After the extended permission information is generated, it also includes:
[0080] The permission management layer determines a permission extension set according to the permission extension information ,in, Extend the set for the permissions Middle target permission categories;
[0081] The permission management layer uses formula 3 and according to the target permission category In the target software collection The permission status in determines the permission characteristic value , the formula 3 is:
[0082]
[0083] in, For the target software collection Middle The target software's license status, if it is authorized, then If it is unauthorized, then ; The target software set The frequency of use of the target software within the preset time period; For the target software collection The number of target software in
[0084] Correspondingly, the permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each permission category of the permission confirmation information, including:
[0085] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission characteristic value corresponding to the target permission category is If the target permission category has a corresponding permission characteristic value greater than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission status to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0086] Optionally, Formula 3 is used at the permission management layer, and according to the target permission category In the target software collection The permission status in determines the permission characteristic value After that, it also includes:
[0087] The permission management layer uses formula 4 and according to the target permission category In the target software collection The permission status in the permission characteristic value Update to generate permission characteristic update values , the formula 4 is:
[0088]
[0089] in, is a time node within the preset time period, is the number of time nodes set within the preset duration, is the preset time attenuation coefficient;
[0090] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission feature update value corresponding to the target permission category is If the target permission category has a corresponding permission feature update value greater than a preset permission feature threshold, the authorization trigger component is used to switch the corresponding permission state to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0091] In a third aspect, the present application provides an electronic device, including:
[0092] processor; and,
[0093] A memory, configured to store executable instructions of the processor;
[0094] The processor is configured to perform any possible method described in the first aspect by executing the executable instructions.
[0095] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any possible method described in the first aspect.
[0096] The software license control method, device and equipment based on the open source Hongmeng operating system provided in this application obtains the software information of the software to be licensed through the application business layer, and transmits the software information to the license management layer, so that the license management layer determines the target software set according to the software type information, and then the license management layer obtains the license permission information set of the target software set, and then uses the preset license authorization determination model through the license management layer, and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information, thereby achieving more reasonable resource allocation and security policies. In addition, the license permission is automatically adjusted according to the software type, reducing the workload of manual configuration and improving efficiency. In particular, when the software to be licensed is installed for the first time, through the above scheme, while ensuring the rapid configuration of necessary license permissions to ensure the normal use of the software, it can also avoid software security issues caused by excessive license permissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0098] Figure 1 It is a flowchart of a software license control method based on the open source Hongmeng operating system according to an example embodiment of the present application;
[0099] Figure 2 is a flowchart of a software license control method based on the open source Hongmeng operating system according to another exemplary embodiment of the present application;
[0100] Figure 3 is a structural schematic diagram of a software license control device according to an exemplary embodiment of the present application;
[0101] Figure 4It is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application.
[0102] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0103] 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 implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0104] In order to solve the above problems, in the embodiment provided by the present application, the application business layer is responsible for collecting software types and licensing requirements and passing them to the licensing management layer. The licensing management layer determines the target software set according to the software type, analyzes its licensing information, and generates reference information and change information. The user interaction layer displays relevant information and obtains user confirmation to handle timeouts. In addition, according to the licensing change information, the input and output permissions of the data storage layer are adjusted. In addition, the licensing management layer intelligently generates permission changes to be confirmed based on the extended information and software usage for user review and confirmation. It can be seen that by analyzing the information of the software to be licensed, the licensing permissions of similar software are automatically determined from the target software set, and this is used as a reference to generate new licensing permission change information. Before the license is changed, the software information and change details are displayed through the user interaction layer to obtain the user's confirmation, increase transparency and user control. If the user does not confirm the license change within the preset time, the data output permission of the software is automatically restricted to ensure data security. In addition, the software's licensing permissions can also be adjusted according to the software usage and historical licensing information to ensure that neither excessive authorization nor restriction of necessary functions is achieved. In addition, by introducing licensing characteristic values and update values, permissions can be intelligently adjusted according to the frequency of software use and historical licensing status to improve system security and resource utilization.
[0105] Figure 1 1 is a flowchart of a software license control method based on the open source Hongmeng operating system according to an exemplary embodiment of the present application. Figure 1 As shown, the software license control method based on the open source Hongmeng operating system provided in this embodiment includes:
[0106] S101. Obtain software information of the software to be licensed through the application business layer, and transmit the software information to the license management layer.
[0107] In this step, the software information of the software to be licensed is obtained through the application business layer, and the software information is transmitted to the license management layer. The software information includes software type information and permission information to be licensed.
[0108] Specifically, the application service layer may receive relevant information of the software to be licensed through an interface or API, including but not limited to the unique identifier of the software, version number, software type information, and requested permission list, etc. The application service layer may be designed to receive license applications from software developers or users, and submit software information to the license management layer through relevant preset communication protocols.
[0109] S102: The licensing management layer determines a target software set according to the software type information.
[0110] In this step, the licensing management layer determines a target software set according to the software type information, and the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition.
[0111] Specifically, the license management layer queries a database or other storage system based on the received software type information, and screens out other software with the same or similar software type to form a target software set. The license management layer can retrieve target software records with the same software type identifier through a database query statement, such as SQL. The above-mentioned preset type matching condition can be software of the same type or software of a similar type.
[0112] S103: The license management layer obtains a set of license authority information of the target software set.
[0113] In this step, the licensing management layer obtains the licensing rights information set of the target software set, and the licensing rights information in the licensing rights information set is the licensing rights information of the corresponding target software in the target software set.
[0114] Specifically, the permission management layer extracts the permission information of each software from the target software collection, including the various permissions that the software has been granted. This step may involve database query to read the permission status of the target software from the permission table. These permissions may include accessing the network, reading and writing files, using the camera, obtaining geographic location, etc.
[0115] S104: The licensing management layer uses a preset licensing authorization determination model and generates licensing authority change information according to the permission information to be permitted and the licensing authority information set.
[0116] In this step, the license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information.
[0117] Specifically, the licensing management layer uses a preset licensing authorization determination model, combines the permission information requested by the software to be licensed and the licensing permission information of the target software collection, and determines the licensing permission change information. The licensing management layer may use statistical analysis, machine learning algorithms, or rule engines to determine which permissions the software to be licensed should obtain and whether the existing permissions should be adjusted. For example, if most of the software in the target software collection has the permission to access the network, then the software to be licensed may also be granted the same permission.
[0118] Furthermore, the license management layer updates the license status of the software based on the generated license permission change information. This involves updating the license record of the software in the database, or directly modifying the access control list of the software at the operating system level to reflect the new permission status. The software information and license permission change information are displayed through the user interaction layer, waiting for user confirmation, and then the confirmation information is fed back to the license management layer. The user interaction layer can be a graphical user interface that displays the name, type, requested permission change details of the software, and a confirmation button for the user to click.
[0119] In a possible implementation, the permission management layer can use Formula 1 and set the permission information according to Determine permission reference information , where Formula 1 is:
[0120]
[0121] in, The target software collection The license information corresponding to the target software, Refer to the permission information Middle Permission status; A collection of permission information used to determine A common permission category sequence of each permission information in; The function is used to determine the permission status in a common permission category sequence. Corresponding to the first in the common permission category sequence The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then .
[0122] The permission management layer is based on the permission information to be permitted and the permission reference information Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information is the same as the permission category in the permission reference information, it is configured to be the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, it is configured to be an unauthorized state.
[0123] Specifically, the licensing management layer collects the licensing information of all software in the target software set to form a set of licensing information. The licensing management layer may read this information from a database or configuration file. The licensing information of each target software includes all the permission categories and states authorized by the software. Then, the licensing reference information is determined using Formula 1. The reference information contains the common licensing category sequence and its state of all target software. For each licensing category, the licensing status of all software in the target software set is checked. If all software are authorized for a certain category, the status of the category in the reference information is also authorized; if at least one software is not authorized, the status is unauthorized. The licensing management layer creates licensing change information based on the permission information requested by the software to be licensed and the above reference information. Compare the permission requested by the software to be licensed with the reference information. If the requested permission exists in the reference information and is in an authorized state, the permission is kept unchanged; if the requested permission does not exist in the reference information or is in an unauthorized state, it is configured as an unauthorized state. In certain cases, if the user does not confirm the license change within a preset time, the licensing management layer will automatically determine the permission status of data input and output. The license management layer generates data output permission permission information and data input permission permission information. Usually, data output permission is closed and data input permission is opened as a default security measure. In addition, the status of each category in the common license permission category sequence can also be calculated using Formula 1. For each software in the target software set, its license permission information is checked. If the status of all software in a certain license permission category is consistent and authorized, the status of the category in the reference information is also authorized, otherwise it is unauthorized. Based on the request of the software to be licensed and the reference information, specific license permission change information is generated. The license management layer compares the reference information with the request of the software to be licensed to ensure that the changed license permission meets both the security standards of the reference information and the functional requirements of the software. It can be seen that the above-mentioned logic for generating license permission change information ensures that the license permission of the new software can refer to the security practices of similar software and meet the functional requirements of the software. At the same time, when the user does not respond in time, a conservative default permission strategy will be adopted to protect data security. This mechanism provides a solution that balances security and availability in software license control.
[0124] In this embodiment, the software information of the software to be licensed is obtained through the application business layer, and the software information is passed to the license management layer, so that the license management layer determines the target software set according to the software type information, and then the license management layer obtains the license permission information set of the target software set, and then the license management layer uses the preset license authorization determination model, and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information, thereby realizing more reasonable resource allocation and security strategy. In addition, the license permission is automatically adjusted according to the software type, reducing the workload of manual configuration and improving efficiency. In particular, when the software to be licensed is installed for the first time, through the above scheme, while ensuring the rapid configuration of necessary license permissions to ensure the normal use of the software, it can also avoid software security problems caused by excessive license permissions.
[0125] Specifically, by analyzing the software type information, the target software set is automatically determined, so that the license permission change information can be intelligently generated based on the license permission information of similar software to ensure the rationality and security of the software license permission. This intelligent adjustment reduces manual intervention, improves the efficiency and accuracy of license control, and also reduces the risk of over-authorization or under-authorization. In addition, the dynamically generated license permission change information allows the software's license permission to be adjusted according to the software type and the licensing status of similar software, adapting to different software needs and usage scenarios, and enhancing the flexibility of license management. This adjustment mechanism can respond to the increase and decrease of software functions and changes in security policies in a timely manner to ensure that the software runs in the best license state. In addition, by referring to the license permission information of the target software set, it can ensure that the permissions of the software to be licensed are consistent with similar software, improve the compatibility between software, and reduce operation problems caused by differences in permissions. At the same time, this method can also enhance the security of the software, because the adjustment of the license permission is based on the practice of existing software, reducing potential security vulnerabilities and attack surfaces. In addition, the entire license control process can also increase user participation. Users can confirm before changing the license permission, increase transparency and sense of control, and improve users' trust in software licenses. By closing data output permissions without user confirmation, you can effectively prevent unauthorized data leakage and protect user privacy and system data security. Through sophisticated permission management, you can avoid unnecessary resource consumption such as CPU, memory and network bandwidth, optimize the allocation of system resources, and improve overall performance and response speed.
[0126] Figure 2 1 is a flowchart of a software license control method based on the open source Hongmeng operating system according to another exemplary embodiment of the present application. Figure 2 As shown, the software license control method based on the open source Hongmeng operating system provided in this embodiment includes:
[0127] S201. Obtain software information of the software to be licensed through the application business layer, and transmit the software information to the license management layer.
[0128] In this step, the software information of the software to be licensed is obtained through the application business layer, and the software information is transmitted to the license management layer. The software information includes software type information and permission information to be licensed.
[0129] Specifically, the application service layer may receive relevant information of the software to be licensed through an interface or API, including but not limited to the unique identifier of the software, version number, software type information, and requested permission list, etc. The application service layer may be designed to receive license applications from software developers or users, and submit software information to the license management layer through relevant preset communication protocols.
[0130] S202: The licensing management layer determines a target software set according to the software type information.
[0131] In this step, the licensing management layer determines a target software set according to the software type information, and the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition.
[0132] Specifically, the license management layer queries a database or other storage system based on the received software type information, and screens out other software with the same or similar software type to form a target software set. The license management layer can retrieve target software records with the same software type identifier through a database query statement, such as SQL. The above-mentioned preset type matching condition can be software of the same type or software of a similar type.
[0133] S203: The license management layer obtains a set of license authority information of the target software set.
[0134] In this step, the licensing management layer obtains the licensing rights information set of the target software set, and the licensing rights information in the licensing rights information set is the licensing rights information of the corresponding target software in the target software set.
[0135] Specifically, the permission management layer extracts the permission information of each software from the target software collection, including the various permissions that the software has been granted. This step may involve database query to read the permission status of the target software from the permission table. These permissions may include accessing the network, reading and writing files, using the camera, obtaining geographic location, etc.
[0136] S204: The permission management layer uses a preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set.
[0137] Specifically, the licensing management layer uses a preset licensing authorization determination model, combines the permission information requested by the software to be licensed and the licensing permission information of the target software collection, and determines the licensing permission change information. The licensing management layer may use statistical analysis, machine learning algorithms, or rule engines to determine which permissions the software to be licensed should obtain and whether the existing permissions should be adjusted. For example, if most of the software in the target software collection has the permission to access the network, then the software to be licensed may also be granted the same permission.
[0138] Furthermore, the license management layer updates the license status of the software based on the generated license permission change information. This involves updating the license record of the software in the database, or directly modifying the access control list of the software at the operating system level to reflect the new permission status. The software information and license permission change information are displayed through the user interaction layer, waiting for user confirmation, and then the confirmation information is fed back to the license management layer. The user interaction layer can be a graphical user interface that displays the name, type, requested permission change details of the software, and a confirmation button for the user to click.
[0139] In a possible implementation, the permission management layer uses Formula 2 and sets the permission information according to Determine extended permissions information , where Formula 2 is:
[0140]
[0141] in, A collection of permission information used to determine A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in a sequence of merged permission categories. The corresponding merged permission category sequence The permission status of a permission category, if the permission information set The corresponding permission information exists in If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of all permission categories is unauthorized, then .
[0142] The permission management layer extends the information based on the permission information to be permitted and the permission information Generates extended permissions information.
[0143] The licensing management layer generates permission pending confirmation information based on permission change information and permission extension information. The permission category in the permission pending confirmation information has a permission status of unauthorized in the permission change information and an authorization status in the permission extension information.
[0144] In addition, a permission pending confirmation interface can also be displayed through the user interaction layer. The permission pending confirmation interface includes permission pending confirmation information and an authorization trigger component set after each permission category of the permission pending confirmation information. The authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
[0145] Specifically, the license management layer uses Formula 2, which is used to determine the merged license rights category sequence of all software license rights in the license rights information set. If in the target software set, for a specific license rights category, the license rights status of all software is authorized, then the status of this category in the merged sequence is also authorized; conversely, if there is any software whose license rights status for this category is unauthorized, then the status of this category in the merged sequence is also marked as unauthorized.
[0146] Based on the merged permission category sequence and the permission information of the software to be licensed, the permission management layer generates permission extension information. This step identifies those permission that were not originally requested in the software to be licensed but are commonly present in the target software collection. The permission management layer compares the permission change information (i.e., the information adjusted based on the permission reference information of the target software collection) and the permission extension information to find out those permission categories whose status is unauthorized in the change information but authorized in the extension information. These categories are compiled into the permission confirmation information and are ready to be submitted to the user for final confirmation. The user interaction layer displays the interface containing the permission confirmation information to the user, and each permission category to be confirmed is followed by an authorization trigger component. The user can manually decide whether to activate a specific permission by triggering these components. This design gives the user direct control over the software permission. When the user makes a decision by triggering the authorization trigger component, the corresponding permission status will be updated immediately, that is, from unauthorized to authorized, or vice versa.
[0147] Suppose a software to be licensed requests access to location information and camera permissions, but the software in the target software collection generally also has permission to read the contact list. In the permission change information, the permission to read the contact list is set to unauthorized by default, perhaps due to security policies. However, the permission extension information will show that this permission is common in the target software collection. Therefore, the permission confirmation information will include the "Read Contact List" category, and the user can see this item on the permission confirmation interface and decide whether to activate it.
[0148] Further, at the permission management layer, according to the permission information to be permitted and the permission extension information After generating the permission extension information, the permission management layer can also determine the permission extension set according to the permission extension information. ,in, Extending a collection for permissions Middle target permission categories;
[0149] The permission management layer uses formula 3 and is based on the target permission category. In the target software collection The permission status in determines the permission characteristic value , Formula 3 is:
[0150]
[0151] in, Target Software Collection Middle The target software's license status, if it is authorized, then If it is unauthorized, then ; Target Software Collection Middle The frequency of use of the target software within the preset time period; Target Software Collection The number of target software in
[0152] Correspondingly, a permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes permission confirmation information and an authorization trigger component set after each permission category of the permission confirmation information, including:
[0153] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes permission confirmation information and an authorization trigger component set after each target permission category of the permission confirmation information. If the target permission category has a corresponding permission characteristic value greater than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission status to non-authorized after the trigger. If the value is less than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0154] Specifically, after generating the extended permission information, the permission management layer will identify a series of target permission categories, which constitute the extended permission set. These categories are those permission that do not exist in the original request of the software to be licensed, but are widely used in the target software set. In order to evaluate the importance of each target permission category, the permission management layer will use Formula 3 to calculate the permission feature value of each category. This value reflects the correlation between the use frequency of the software in the target software set and the corresponding permission status. Then, the permission feature value will be compared with the preset permission feature threshold. If the feature value of a target permission category is higher than the threshold, it indicates that this permission is not common or rarely used in the target software set, and may be of low value to the user. Therefore, in the permission confirmation interface, the corresponding authorization trigger component will switch the permission status to unauthorized after being triggered. On the contrary, if the feature value is lower than the threshold, it indicates that this permission is common and frequently used in the target software set, and may be of high value to the user. The authorization trigger component will switch the permission status to authorized after being triggered.
[0155] Optionally, the permission confirmation interface displayed by the user interaction layer will dynamically change according to the permission characteristic value of each target permission category. The user can see the characteristic value of each permission, as well as the status prompt of the authorization trigger component, indicating the expected permission status change after the user triggers it.
[0156] Assume that in the target software collection, most software uses the permission "read contacts" and uses it frequently, so the calculated permission characteristic value is greater than the preset threshold. This means that in the permission confirmation interface, the authorization trigger component for reading contacts will be designed to be in the authorized state by default, and automatically switch to the unauthorized state after being triggered, simplifying the user's interaction process of granting and closing permissions. Conversely, if the permission characteristic value of "access GPS positioning" in the target software collection is lower than the threshold, indicating that it is not a commonly used permission, the authorization trigger component will switch to the authorized state after the user triggers it, thereby increasing the user's security and privacy protection.
[0157] Furthermore, Formula 3 is used at the permission management level, and according to the target permission category In the target software collection The permission status in determines the permission characteristic value After that, the permission management layer can also use Formula 4 and according to the target permission category In the target software collection Permission status vs. permission characteristic value in Update the value of the permission feature , to generate, Formula 4 is:
[0158]
[0159] in, It is a time node within the preset duration. The number of time nodes set within the preset duration. is the preset time attenuation coefficient;
[0160] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes permission confirmation information and an authorization trigger component set after each target permission category of the permission confirmation information, wherein if the target permission category has multiple corresponding permission feature update values If the target permission category has more than the corresponding permission feature update value, the authorization trigger component is used to switch the corresponding permission status to non-authorized after the trigger. If the value is less than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0161] Specifically, after determining the license right characteristic values, the license management layer will then perform time decay processing on these characteristic values to generate license right characteristic update values. This process takes into account the trend of license rights changing over time and ensures that the license control decision can reflect the latest software usage patterns in a timely manner.
[0162] The licensing management layer will use Formula 4 to calculate the licensing feature update value. This formula takes into account the licensing status at multiple time points. The weight of each time point decreases as it is closer to the current time point. The preset time decay coefficient is used to adjust this decay effect. The calculated licensing feature update value will be compared with the preset licensing feature threshold again to determine the response of the authorization trigger component after being triggered. This comparison process ensures that the dynamic adjustment of licensing rights can adapt to changes in software usage patterns in a timely manner. The user interaction layer will display the licensing confirmation interface based on the latest licensing feature update value. The response of the authorization trigger component will be dynamically adjusted based on the comparison results of the feature update value of each target licensing category with the preset threshold.
[0163] Assume that after a period of time, the usage frequency of the permission "read location information" in the software collection decreases, causing its characteristic update value to be lower than the preset threshold. At this time, when the user sees the authorization trigger component of "read location information" in the permission confirmation interface, the default state is set to the unauthorized state, and it will switch to the authorized state after being triggered. On the contrary, if another permission such as "read address book" becomes more common due to recent software usage trends, even if its initial characteristic value is lower than the threshold, but the characteristic update value exceeds the threshold, then the authorization trigger component will be designed to default to the authorized state and automatically switch to the unauthorized state after being triggered.
[0164] S205: Display software information and permission change information through the user interaction layer.
[0165] Specifically, the user interaction layer (e.g., a graphical user interface GUI) will display basic information about the software to be licensed, including the software name, version, developer, etc., as well as the license permission change information generated by the license management layer. This information may include a list of new permissions requested by the software, a description of the permissions, and a brief explanation of why these permissions are required.
[0166] S206: Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer.
[0167] Specifically, there will be a confirmation button or checkbox on the user interface, and after reading the software information and the license change information, the user can choose to accept or reject the changes. If the user agrees to the changes, they can send the license change confirmation information to the license management layer by clicking the confirmation button.
[0168] S207: Change the permission of the software to be licensed according to the permission change information.
[0169] In this step, the license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information.
[0170] S208. The permission management layer transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer.
[0171] Specifically, once the permission change is executed, the permission management layer sends a message to the user interaction layer that the permission change is complete. The user interaction layer then displays a notification or pop-up window to inform the user that the permission change has been successfully completed. This can include a simple confirmation message, such as "Software permission has been updated", or a more detailed list of changes to let the user know which specific permissions have been modified.
[0172] Suppose a user is installing a new weather app that requests access to location data to provide a local weather forecast. The user interaction layer will first display a dialog box that lists the permissions the app is requesting (e.g., "Allow access to your location") and explains why this permission is needed (e.g., "In order to provide accurate weather forecasts"). The user can choose to "Accept" or "Deny." If the user chooses "Accept," a confirmation signal is sent through the user interaction layer to the permission management layer, which then updates the software's permissions according to the permission change information. Once completed, the user interaction layer will display a message, such as: "Location access permission has been granted, you can now use the weather app."
[0173] Based on the above embodiment, the software license control device may further include: a data storage layer. Correspondingly, after the software information and the license permission change information are displayed through the user interaction layer, if the license permission change confirmation information is not obtained through the user interaction layer within a preset time period, the user interaction layer sends a permission change timeout information to the license management layer.
[0174] In addition, the licensing management layer determines the data output permission permission information and the data input permission permission information according to the permission change information, and sends the data input permission permission information to the data storage layer, so that the data storage layer opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed.
[0175] Specifically, after displaying the software information and the permission change information, the user interaction layer will start a timer and wait for the user to respond within a preset time (for example, 30 seconds or 1 minute) to confirm whether to accept the permission change. If the user interaction layer fails to receive the user's confirmation information within the preset time, it will automatically send a permission change timeout message to the permission management layer. This indicates that the user may have ignored the request or is temporarily unable to make a decision. When the permission change information is confirmed, the permission management layer generates data output permission permission information and data input permission permission information based on this information. For the software to be licensed, the data input permission will be opened, while the data output permission will be closed. This means that the software can receive data input (for example, receive data from users or external sources), but cannot output data without permission (for example, upload data to a server or share data with other applications).
[0176] Suppose a user is installing an application that requires a network connection and needs to access the user's location information. On the user interaction layer, the application's software information and the requested permission change information, namely access to location data, are displayed. The user has 30 seconds to confirm the change. If the user does not respond within this time, the user interaction layer will send a timeout message to the permission management layer.
[0177] The permission management layer will then determine the data input permission information and the data output permission information based on the permission change information. In this case, the permission management layer may open the data input permission so that the application can receive location information from GPS, but at the same time close the data output permission to prevent the application from uploading location data or other sensitive information to the remote server without permission.
[0178] This mechanism ensures that even if the user does not respond in time, the system can still protect the user's data security while allowing the application to run with limited permissions. In this way, the system balances the needs of user experience and data privacy protection.
[0179] Figure 3 FIG. 1 is a schematic diagram of a software license control device according to an exemplary embodiment of the present application. Figure 3 As shown, the software license control device 300 provided in this embodiment includes: an application service layer 310 and a license management layer 320;
[0180] Acquire software information of the software to be licensed through the application service layer 310, and transmit the software information to the license management layer 320, wherein the software information includes software type information and permission information to be licensed;
[0181] The license management layer 320 determines a target software set according to the software type information, wherein the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition;
[0182] The license management layer 320 obtains the license permission information set of the target software set, where the license permission information in the license permission information set is the license permission information of the corresponding target software in the target software set;
[0183] The license management layer 320 uses a preset license authorization determination model and generates license permission change information according to the permission information to be permitted and the license permission information set, so as to change the license permission of the software to be permitted according to the license permission change information.
[0184] Optionally, the software license control device further includes: a user interaction layer; before changing the license permission of the software to be licensed according to the license permission change information, further includes:
[0185] Displaying software information and permission change information through the user interaction layer;
[0186] Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer 320;
[0187] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0188] The permission management layer 320 transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer.
[0189] Optionally, the software license control device further includes: a data storage layer 330; after the software information and the license authority change information are displayed through the user interaction layer, further includes:
[0190] If the permission permission change confirmation information is not obtained through the user interaction layer within the preset time period, the user interaction layer sends permission change timeout information to the permission management layer 320;
[0191] Correspondingly, the step of changing the permission of the software to be licensed according to the permission change information includes:
[0192] The licensing management layer 320 determines the data output permission permission information and the data input permission permission information according to the licensing permission change information, and sends the data input permission permission information to the data storage layer 330, so that the data storage layer 330 opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed.
[0193] Optionally, the permission management layer 320 uses a preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, including:
[0194] The permission management layer 320 uses formula 1 and sets the permission information according to the permission information set. Determine permission reference information , where Formula 1 is:
[0195]
[0196] in, The target software set The license information corresponding to the target software, Reference information for the permission Middle Permission status; Used to determine the permission information set A common permission category sequence of each permission information in; The function is used to determine the permission status in the common permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then ;
[0197] The permission management layer 320 is configured to store the permission information according to the permission information to be permitted and the permission reference information. Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information is the same as the permission category in the permission reference information, then it is configured to be the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, then it is configured to be an unauthorized state.
[0198] Optionally, after the permission management layer 320 uses a preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, the method further includes:
[0199] The permission management layer 320 uses formula 2 and according to the permission information set Determine extended permissions information , where Formula 2 is:
[0200]
[0201] in, Used to determine the permission information set A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in the merged permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding permission information exists in If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of all permission categories is unauthorized, then ;
[0202] The permission management layer 320 is configured to store the permission information according to the permission information to be permitted and the permission extension information. Generate extended permission information;
[0203] The permission management layer 320 generates permission confirmation information according to the permission change information and the permission extension information, wherein the permission status of the permission category in the permission confirmation information is unauthorized in the permission change information and is authorized in the permission extension information;
[0204] Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes:
[0205] A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and an authorization trigger component arranged after each permission category of the permission confirmation information, and the authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
[0206] Optionally, in the permission management layer 320, according to the permission information to be permitted and the permission extension information After the extended permission information is generated, it also includes:
[0207] The permission management layer 320 determines a permission extension set according to the permission extension information. ,in, Extend the set for the permissions Middle target permission categories;
[0208] The permission management layer 320 uses formula 3 and according to the target permission category In the target software collection The permission status in determines the permission characteristic value , the formula 3 is:
[0209]
[0210] in, For the target software collection Middle The target software's license status, if it is authorized, then If it is unauthorized, then ; For the target software collection Middle The frequency of use of the target software within the preset time period; For the target software collection The number of target software in
[0211] Correspondingly, the permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each permission category of the permission confirmation information, including:
[0212] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission characteristic value corresponding to the target permission category is If the target permission category has a corresponding permission characteristic value greater than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission status to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0213] Optionally, Formula 3 is used in the permission management layer 320, and according to the target permission category In the target software collection The permission status in determines the permission characteristic value After that, it also includes:
[0214] The permission management layer 320 uses formula 4 and according to the target permission category In the target software collection The permission status in the permission characteristic value Update to generate permission characteristic update values , the formula 4 is:
[0215]
[0216] in, is a time node within the preset time period, is the number of time nodes set within the preset duration, is the preset time attenuation coefficient;
[0217] The permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each target permission category of the permission confirmation information, wherein if the permission feature update value corresponding to the target permission category is If the target permission category has a corresponding permission feature update value greater than a preset permission feature threshold, the authorization trigger component is used to switch the corresponding permission state to non-authorized after being triggered. If the value is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorization after being triggered.
[0218] Figure 4 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. Figure 4 As shown, an electronic device 400 provided in this embodiment includes: a processor 401 and a memory 402; wherein:
[0219] The memory 402 is used to store computer programs, and the memory may also be a flash memory.
[0220] The processor 401 is used to execute the execution instructions stored in the memory to implement each step in the above method. For details, please refer to the relevant description in the above method embodiment.
[0221] Optionally, the memory 402 may be independent or integrated with the processor 401 .
[0222] When the memory 402 is a device independent of the processor 401, the electronic device 400 may further include:
[0223] The bus 403 is used to connect the memory 402 and the processor 401 .
[0224] This embodiment further provides a readable storage medium, in which a computer program is stored. When at least one processor of an electronic device executes the computer program, the electronic device executes the methods provided in the above-mentioned various implementation modes.
[0225] This embodiment also provides a program product, which includes a computer program stored in a readable storage medium. At least one processor of the electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device implements the methods provided in the above various embodiments.
[0226] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0227] It should be understood that the present application is not limited to the precise 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 application is limited only by the appended claims.
Claims
1. A software license control method based on the open source Hongmeng operating system, characterized in that: Applied to a software license control device, the software license control device comprises: an application service layer and a license management layer; the method comprises: Acquire software information of the software to be licensed through the application service layer, and transmit the software information to the license management layer, wherein the software information includes software type information and permission information to be licensed; The licensing management layer determines a target software set according to the software type information, wherein the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition; The licensing management layer obtains a licensing permission information set of the target software set, wherein the licensing permission information in the licensing permission information set is the licensing permission information of the corresponding target software in the target software set; The license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information; The software license control device further includes: a user interaction layer; before changing the license authority of the to-be-licensed software according to the license authority change information, further includes: Displaying software information and permission change information through the user interaction layer; Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer; Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes: The permission management layer transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer; The software license control device further comprises: a data storage layer; after the software information and the license authority change information are displayed through the user interaction layer, further comprising: If the permission permission change confirmation information is not obtained through the user interaction layer within the preset time period, the user interaction layer sends permission change timeout information to the permission management layer; Correspondingly, changing the license permission of the software to be licensed according to the license permission change information includes: The licensing management layer determines data output permission permission information and data input permission permission information according to the permission permission change information, and sends the data input permission permission information to the data storage layer, so that the data storage layer opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed; The permission management layer uses a preset permission authorization determination model and generates permission permission change information according to the permission information to be permitted and the permission permission information set, including: The permission management layer uses formula 1 and sets the permission information according to the permission information set. Determine permission reference information , where Formula 1 is: in, The target software set The license information corresponding to the target software, Reference information for the permission Middle Permission status; Used to determine the permission information set A common permission category sequence of each permission information in; The function is used to determine the permission status in the common permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then ; The permission management layer is based on the permission information to be permitted and the permission reference information Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information has the same permission category in the permission reference information, it is configured as the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, it is configured as a non-authorized state; After the permission management layer uses the preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, the method further includes: The permission management layer uses formula 2 and sets the permission information according to the permission information set. Determine extended permissions information , where Formula 2 is: in, Used to determine the permission information set A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in the merged permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set There is permission information corresponding to the If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of all permission categories is unauthorized, then ; The permission management layer is configured to determine the permission information to be permitted and the permission extension information Generate extended permission information; The permission management layer generates permission confirmation information according to the permission change information and the permission extension information, wherein the permission status of the permission category in the permission confirmation information is unauthorized in the permission change information and is authorized in the permission extension information; Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes: A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and an authorization trigger component arranged after each permission category of the permission confirmation information, and the authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
2. The software license control method based on the open source Hongmeng operating system according to claim 1 is characterized in that: In the permission management layer, according to the permission information to be permitted and the permission extension information After the extended permission information is generated, it also includes: The permission management layer determines a permission extension set according to the permission extension information; The licensing management layer determines a licensing right characteristic value according to a licensing right status of a target licensing right category in the target software collection; Correspondingly, the permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component set after each permission category of the permission confirmation information, including: A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component arranged after each target permission category of the permission confirmation information, wherein, if the permission characteristic value corresponding to the target permission category is greater than a preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to unauthorized after being triggered, and if the permission characteristic value corresponding to the target permission category is less than the preset permission characteristic threshold, the authorization trigger component is used to switch the corresponding permission state to authorized after being triggered.
3. The software license control method based on the open source Hongmeng operating system according to claim 2 is characterized in that: After the license management layer determines the license right characteristic value according to the license right status of the target license right category in the target software set, the method further includes: The licensing management layer compares the licensing right feature value with the target licensing right category in the target software set according to the licensing right status of the target licensing right category in the target software set. performing an update to generate a permission characteristic update value; A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and the authorization trigger component arranged after each target permission category of the permission confirmation information, wherein, if the permission feature update value corresponding to the target permission category is greater than the preset permission feature threshold, the authorization trigger component is used to switch the corresponding permission state to unauthorized after being triggered, and if the permission feature update value corresponding to the target permission category is less than the preset permission feature threshold, the authorization trigger component is used to switch the corresponding permission state to authorized after being triggered.
4. A software license control device, characterized in that: include: Application business layer and permission management layer; Acquire software information of the software to be licensed through the application service layer, and transmit the software information to the license management layer, wherein the software information includes software type information and permission information to be licensed; The licensing management layer determines a target software set according to the software type information, wherein the software type of the target software in the target software set and the software type of the software to be licensed meet a preset type matching condition; The licensing management layer obtains a licensing permission information set of the target software set, wherein the licensing permission information in the licensing permission information set is the licensing permission information of the corresponding target software in the target software set; The license management layer uses a preset license authorization determination model and generates license permission change information according to the permission information to be licensed and the license permission information set, so as to change the license permission of the software to be licensed according to the license permission change information; The software license control device further includes: a user interaction layer; before changing the license authority of the to-be-licensed software according to the license authority change information, further includes: Displaying software information and permission change information through the user interaction layer; Acquire permission change confirmation information through the user interaction layer, and transmit the permission change confirmation information to the permission management layer; Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes: The permission management layer transmits permission change completion information to the user interaction layer, so that the permission change completion information is displayed on the user interaction layer; The software license control device further comprises: a data storage layer; after the software information and the license authority change information are displayed through the user interaction layer, further comprising: If the permission permission change confirmation information is not obtained through the user interaction layer within the preset time period, the user interaction layer sends permission change timeout information to the permission management layer; Correspondingly, changing the license permission of the software to be licensed according to the license permission change information includes: The licensing management layer determines data output permission permission information and data input permission permission information according to the permission permission change information, and sends the data input permission permission information to the data storage layer, so that the data storage layer opens the data input permission of the software to be licensed and closes the data output permission of the software to be licensed; The permission management layer uses a preset permission authorization determination model and generates permission permission change information according to the permission information to be permitted and the permission permission information set, including: The permission management layer uses formula 1 and sets the permission information according to the permission information set. Determine permission reference information , where Formula 1 is: in, The target software set The license information corresponding to the target software, Reference information for the permission Middle Permission status; Used to determine the permission information set A common permission category sequence of each permission information in; The function is used to determine the permission status in the common permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set The corresponding first If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of a permission category is unauthorized, then ; The permission management layer is based on the permission information to be permitted and the permission reference information Generate permission change information, wherein each permission category in the permission change information corresponds to each permission category in the permission information to be permitted, and if the permission category in the permission change information has the same permission category in the permission reference information, it is configured as the same permission state as in the permission reference information; if the same permission category does not exist in the permission reference information, it is configured as a non-authorized state; After the permission management layer uses the preset permission authorization determination model and generates permission change information according to the permission information to be permitted and the permission information set, the method further includes: The permission management layer uses formula 2 and sets the permission information according to the permission information set. Determine extended permissions information , where Formula 2 is: in, Used to determine the permission information set A sequence of merged permission categories of each permission information in ; The function is used to determine the permission status in the merged permission category sequence, Corresponding to the first The permission status of a permission category, if the permission information set There is permission information corresponding to the If the permission status of all permission categories is authorized, then , if the permission information set The corresponding first If the permission status of all permission categories is unauthorized, then ; The permission management layer is configured to determine the permission information to be permitted and the permission extension information Generate extended permission information; The permission management layer generates permission confirmation information according to the permission change information and the permission extension information, wherein the permission status of the permission category in the permission confirmation information is unauthorized in the permission change information and is authorized in the permission extension information; Correspondingly, after changing the permission of the software to be licensed according to the permission change information, the method further includes: A permission confirmation interface is displayed through the user interaction layer, and the permission confirmation interface includes the permission confirmation information and an authorization trigger component arranged after each permission category of the permission confirmation information, and the authorization trigger component is used to change the permission status of the corresponding permission category after being triggered.
5. An electronic device, characterized in that: include: processor; as well as, A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 3 by executing the executable instructions.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
Citation Information
Patent Citations
Permission processing method and device, storage medium and terminal
CN111444539A
Software license control method, device and equipment based on open source gap operating system
CN116842481A
