Software development method and device, computer equipment, readable storage medium and program product
By extracting and parsing permission and method information from the HarmonyOS software development kit, the time and cycle problems caused by manual analysis by developers were solved, realizing automatic analysis of the software development kit and improving software development efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, developers need to manually analyze the HarmonyOS software development kit, which leads to high project implementation time costs and extended cycles, affecting software development efficiency.
By obtaining the path to the HarmonyOS software development kit, target tags are extracted based on preset rules, and permission and method information in the target files are parsed. This information is then used to develop software for integration into the HarmonyOS system.
It enables automated analysis of software development kits, improving analysis efficiency and thus increasing software development efficiency.
Smart Images

Figure CN121722367A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a software development method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of computer technology, the HarmonyOS operating system emerged. HarmonyOS provides a compatible development toolkit (IDE) to enable software developed by developers based on this toolkit to be compatible with HarmonyOS. Therefore, to ensure successful integration of developed software into HarmonyOS, developers need to analyze the toolkit. However, currently, developers typically need to analyze the files within the toolkit, which increases project implementation time costs, delays the project implementation cycle, and is detrimental to software development efficiency. Summary of the Invention
[0003] Therefore, it is necessary to provide a software development method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve software development efficiency in response to the above-mentioned technical problems.
[0004] Firstly, this application provides a software development method, including:
[0005] The path to obtain the software development kit for the HarmonyOS system;
[0006] The target tags are obtained based on the preset rules of the software development kit. The target files in the path are parsed based on the target tags to obtain the permission information and method information in the target files. The method information is used to execute the permission information.
[0007] The target software is developed based on the permission information and the method information so that it can be integrated into the HarmonyOS system.
[0008] In one embodiment, parsing the target file in the path based on the target tag includes:
[0009] Extract the target code corresponding to the namespace from the target file;
[0010] Locate the target tag in the target code and extract the tag code corresponding to the target tag;
[0011] The tag code is parsed to obtain the permission information and the corresponding method information.
[0012] In one embodiment, the permission information includes a permission name, the method information includes function information, and parsing the tag code to obtain the permission information and the method information includes:
[0013] If the tag code contains a permission tag and a behavior tag, then the permission name corresponding to the permission tag and the function information corresponding to the behavior tag are obtained.
[0014] In one embodiment, the target tags include interface tags, enumeration tags, and class tags.
[0015] In one embodiment, developing the target software based on the permission information and the method information includes:
[0016] The functional information of the target software is analyzed to obtain the permission information associated with the target function corresponding to the functional information, and the method information corresponding to the permission information is obtained, so that the developers can develop the target function based on the permission information and method information associated with the target function.
[0017] In one embodiment, before parsing the target files in the path based on the preset rules of the software development kit, the process includes:
[0018] Obtain the file extensions of all files in the path. If the file extension is the target extension, then the file is determined to be the target file.
[0019] Secondly, this application also provides a software development apparatus, comprising:
[0020] The toolkit acquisition module is used to obtain the path to the HarmonyOS software development kit;
[0021] The parsing module is used to obtain target tags based on the preset rules of the software development kit, parse the target files in the path based on the target tags, and obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information.
[0022] The development module is used to develop the target software based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
[0023] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0024] The path to obtain the software development kit for the HarmonyOS system;
[0025] The target tags are obtained based on the preset rules of the software development kit. The target files in the path are parsed based on the target tags to obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information.
[0026] The target software is developed based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
[0027] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0028] The path to obtain the software development kit for the HarmonyOS system;
[0029] The target tags are obtained based on the preset rules of the software development kit. The target files in the path are parsed based on the target tags to obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information.
[0030] The target software is developed based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
[0031] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0032] The path to obtain the software development kit for the HarmonyOS system;
[0033] The target tags are obtained based on the preset rules of the software development kit. The target files in the path are parsed based on the target tags to obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information.
[0034] The target software is developed based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
[0035] The aforementioned software development method, apparatus, computer equipment, computer-readable storage medium, and computer program product obtain the path of the HarmonyOS software development kit (SDK) and target tags based on the SSD's preset rules. Then, based on the target tags, they parse the target files in the path to obtain permission information and corresponding method information within the target files. The method information is used to execute the permission information. Subsequently, the target software can be developed based on the permission information and the corresponding method information, enabling the target software to be integrated into the HarmonyOS system. This allows for automatic analysis of the SSD, thereby improving the efficiency of SSD analysis and ultimately enhancing software development efficiency. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating a software development method in one embodiment;
[0038] Figure 2 This is a flowchart illustrating the process of parsing a software development kit in one embodiment;
[0039] Figure 3 This is a schematic diagram illustrating permission information and corresponding method information in one embodiment.
[0040] Figure 4 This is a flowchart illustrating the process of parsing the target file in another embodiment;
[0041] Figure 5 This is a structural block diagram of a software development apparatus in one embodiment;
[0042] Figure 6 This is an internal structural diagram of a computer device in one embodiment;
[0043] Figure 7 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0045] In one exemplary embodiment, such as Figure 1 As shown, a software development method is provided. This embodiment uses the application of this method to a terminal as an example for illustration. It can be understood that this method can also be applied to a server, and also to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps 102 to 106. Wherein:
[0046] Step 102: Obtain the path to the HarmonyOS software development kit.
[0047] HarmonyOS is a full-scenario intelligent operating system built on OpenHarmony and is no longer compatible with Android. It uses a completely new HarmonyOS kernel, replacing the original Linux kernel, thus improving system security and smoothness. The HarmonyOS Software Development Kit (SDK) is a toolset for developing HarmonyOS applications and meta-services. Developers can analyze this SSD to develop software adapted to HarmonyOS based on the analysis results.
[0048] For example, a terminal can access all files within a software development kit (SDK) via its file directory path. This file directory path can be the root path of the SSD.
[0049] In some embodiments, the software development kit (SDK) can be obtained directly, then the SSD can be decompressed to obtain its root path.
[0050] Step 104: Obtain target tags based on the preset rules of the software development kit, parse the target files in the path based on the target tags, and obtain the permission information and corresponding method information in the target files. The method information is used to execute permission information.
[0051] Permission information represents the specific permissions that an application needs to request and use when running on the HarmonyOS system. Examples include permissions to make phone calls and permissions to access Wi-Fi information. Method information refers to the specific functions or methods that an application needs to call to perform a specific operation (permission) or access specific system resources during software development. The software development kit's default rules include permission description information and action description information. Permission description information can include permission tags to identify permission information. Action description information can include method tags to identify method information. That is, when a permission tag exists in a file, the code content within a specific range after that permission tag is the permission information. When a method tag exists in a file, the code content within a specific range after that method tag is the method information. Optionally, the code content within a specific range can be determined based on specific symbols. For example, if the symbol "{" exists after a method tag, reading the code content after the method tag and finding the symbol "}" corresponding to that "{" will result in the content between "{" and "}" being the code content within the specific range after the method tag.
[0052] Therefore, in this step, the terminal can obtain target tags based on the preset rules of the software development kit (SDK), and then parse the target files in the path based on the target tags to obtain the permission information and the corresponding method information in the target files. The target tags are the permission tags and method tags described above. The extension of the target file is the target file extension, such as ".ts". Since the SSD contains various types of files, such as user guide files and SSD description files, and permission and method information reside in specific file types, such as TypeScript files, to speed up parsing, target files can be first filtered out from all files in the SSD. Then, the permission information and corresponding method information are extracted from the target files.
[0053] Since permission information and corresponding method information reside within namespaces, in some embodiments, the file content of the target file can be pre-parsed. If the file content includes a namespace, the target file continues to be parsed. If the file content does not include a namespace, the target file is no longer processed, and the process continues with the next target file until all target files have been parsed. The namespace is used to organize code and avoid naming conflicts. Namespaces in the file content can be identified using the keyword "namespace".
[0054] In some embodiments, after parsing the target file, the resulting permission information and corresponding method information are stored in an association table. The data structure of the association table can be a Map, where the permission information can be the key of a record in the Map, and the method information is the value corresponding to that key.
[0055] Step 106: Develop the target software based on the permission information and the corresponding method information so that the target software can be integrated into the HarmonyOS system.
[0056] After parsing the software development kit to obtain permission information and corresponding method information, the target software can be developed based on this permission information and corresponding method information.
[0057] In some embodiments, the functional information of the target software can be analyzed to obtain the permission information associated with the target function corresponding to the functional information. Then, the method information corresponding to the permission information is obtained, so that developers can develop the target function based on the permission information and method information associated with the target function.
[0058] In some embodiments, sensitive information can also be obtained based on the acquired permission information and corresponding method information for software development. Sensitive information is information that requires user authorization when the software is applied. For example, if the software application needs to access the permission to make a phone call, a corresponding authorization pop-up needs to appear before making the call, allowing the user to interact with the pop-up and then granting the phone call permission based on the user's interaction. Therefore, during software development, the relevant code for the pop-up needs to be developed, including the handling after user authorization and the handling after user denial of authorization.
[0059] In the aforementioned software development method, the path of the HarmonyOS software development kit (SDK) is obtained, and target tags are acquired based on the SSD's preset rules. Then, the target files in the path are parsed based on the target tags to obtain permission information and corresponding method information. The method information is used to execute permission information. Subsequently, the target software can be developed based on the permission information and the corresponding method information so that the target software can be integrated into the HarmonyOS system. This enables automatic analysis of the SSD without the need for manual analysis of each file in the SSD, thereby improving the efficiency of SSD analysis and ultimately improving software development efficiency.
[0060] In one exemplary embodiment, such as Figure 2 As shown, parsing the target file in the path based on the target tag includes steps 202 to 206. Wherein:
[0061] Step 202: Extract the target code corresponding to the namespace from the target file.
[0062] The contents of the target file may include not only the code corresponding to the namespace, but also other code such as the file header and implementation code. Therefore, it is necessary to extract the target code corresponding to the namespace from the target file, that is, the code in the namespace{…} section.
[0063] Step 204: Locate the target tag in the target code and extract the tag code corresponding to the target tag.
[0064] Optionally, target tags may include interface tags (such as interface), enumeration tags (such as enum), and class tags (such as class). The tag code corresponding to the target tag is the code within a specific scope that follows the target tag, such as interface{…}, enum{…}, class{…}.
[0065] For example, after obtaining the target code, it is analyzed line by line. If the keywords "interface," "enum," or "class" are found in a line of code, the corresponding tag code is extracted.
[0066] Step 206: Parse the tag code to obtain permission information and corresponding method information.
[0067] Next, the tag code corresponding to the extracted target tag is parsed to extract permission information and corresponding method information from the tag code.
[0068] For example, for the tag code corresponding to a certain target tag, the tag code can be analyzed line by line. If a permission tag exists in the tag code, the permission name corresponding to the permission tag can be obtained. For example, for Figure 3 The data has a permission tag of "ohos.permission", and the keyword "RUN_DYN_CODE" following this permission tag is the corresponding permission name. Then, the implementation method corresponding to this permission name is extracted. The function information corresponding to this permission can be located through the behavior tag. For example, if the behavior tag is "method", then the content after "method" is parsed to obtain the corresponding function information (such as deleteAbc() and its corresponding parameter types).
[0069] In this embodiment, by parsing the file content and locating tags within the file content, permission and method information can be quickly obtained. This improves both the parsing speed and accuracy, and reduces the impact of other code (such as comments) in the file content on the parsing.
[0070] In some embodiments, if no method information is parsed after the permission information is extracted, the permission information is not stored in the association table to ensure the importance of the permission information in the association table and reduce unnecessary permissions from interfering with developers.
[0071] In one implementation, after obtaining permission information and corresponding method information, the functional information of the target software can be analyzed to obtain the permission information associated with the target function. Then, the method information corresponding to the permission information is obtained, enabling developers to develop the target function based on the permission and method information associated with it. For example, the required permissions can be declared in the application's configuration file based on the obtained permission information. When the application needs to implement the target function, code requesting the corresponding permission and checking whether the corresponding permission has been obtained are written in the software development code before implementing the target function. If the corresponding permission has been confirmed, the target function is then implemented based on the method corresponding to that permission. For example, in a camera app, permission to open the camera needs to be requested, and after authorization, the corresponding method is called to open the camera. By uniformly parsing the files within the software development kit beforehand to obtain permission information and corresponding method information, developers can quickly determine the corresponding code based on the obtained permission and method information, thereby improving software development efficiency.
[0072] In one exemplary embodiment, to improve the efficiency of software development, the software development kit (SDK) can be analyzed in advance so that developers can develop software based on the analysis results, thereby improving the efficiency of software development.
[0073] For example, such as Figure 4 As shown, developers or other operations and maintenance personnel can first download the HarmonyOS NEXT system's software development kit, such as the HarmonyOS NEXT SDK file, from a third-party website. After obtaining the path to the software development kit, the terminal can locate the target file to be analyzed. That is, after obtaining the path to the HarmonyOS system's software development kit, the terminal can obtain target tags based on the software development kit's preset rules, and then parse the target file in the path based on the target tags to obtain the permission information and corresponding method information in the target file. The method information can be used to obtain execution permission information. The software development kit's preset rules describe the target tags corresponding to the permission information and corresponding method information in the target file, thus allowing the target tags to be obtained based on the preset rules.
[0074] During the parsing of target files in a path based on target tags, since permission information and corresponding method information are stored in namespaces, the target code corresponding to the namespace can be extracted from the target file first. It's understandable that if a file does not have a namespace, then that file is not a target file and does not need to be parsed. For example, namespaces are identified by "namespace," so if the code written in a file does not contain "namespace," then that file is not a target file.
[0075] After extracting the target code, it can be analyzed. Specifically, target tags are located within the target code, and the corresponding tag code is extracted. For example, the "interface," "enum," and "class" tags are searched for in the target code. If these tags are found, permission information and corresponding method information are extracted from their corresponding tag code. Permission and method information can also be found based on their respective tags. For example, permission information can be located by the "ohos.permission" tag, and method information by the "method" tag. For instance, the name of the permission is obtained through the permission tag, and the corresponding execution function is obtained through the method tag. For example, in Figure *, the permission name is "RUN_DYN_CODE," and the execution function is "deleteAbc(abcPath:string)." After obtaining the above data, the permission name and its corresponding execution function are stored in a data structure, such as a Map. This allows each permission in the SDK file to be mapped to its corresponding action. When developers are developing software, they can determine the permissions required based on the software's functions, and then determine the corresponding execution methods and functions based on those permissions, thus enabling the software to be successfully integrated into the HarmonyOS system.
[0076] In some embodiments, the path to the software development kit can be entered on the terminal's display interface, so that the terminal can send the software development kit to the server, and the server can parse the files in the software development kit.
[0077] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.
[0078] Based on the same inventive concept, this application also provides a software development apparatus for implementing the software development method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more software development apparatus embodiments provided below can be found in the limitations of the software development method described above, and will not be repeated here.
[0079] In one exemplary embodiment, such as Figure 5 As shown, a software development apparatus 500 is provided, including: a toolkit acquisition module 501, a parsing module 502, and a development module 503, wherein:
[0080] Toolkit acquisition module 501 is used to obtain the path of the HarmonyOS software development kit;
[0081] The parsing module 502 is used to obtain target tags based on the preset rules of the software development kit, parse the target file in the path based on the target tags, and obtain the permission information and corresponding method information in the target file. The method information is used to execute the permission information.
[0082] The development module 503 is used to develop the target software based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
[0083] In some embodiments, the parsing module 502 is further configured to extract the target code corresponding to the namespace from the target file; locate the target tag in the target code and extract the tag code corresponding to the target tag; parse the tag code to obtain permission information and corresponding method information.
[0084] In some embodiments, the permission information includes the permission name, the method information includes the function information, and the parsing module 502 is further configured to obtain the permission name corresponding to the permission tag and the function information corresponding to the behavior tag if the tag code contains a permission tag and a behavior tag.
[0085] In some embodiments, the development module 503 is used to analyze the functional information of the target software, obtain the permission information associated with the target function corresponding to the functional information, and obtain the method information corresponding to the permission information, so that the developers can develop the target function based on the permission information and method information associated with the target function.
[0086] In some embodiments, the toolkit acquisition module 501 is further configured to obtain the extensions of all files in the path, and if the extension is the target extension, then the file is determined to be the target file.
[0087] Each module in the aforementioned software development device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0088] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data for parsing software development kits. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a software development methodology. For example, a server receives a software development kit sent by a terminal, processes the software development kit, and obtains permission information and corresponding method information.
[0089] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a software development methodology. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0090] Those skilled in the art will understand that Figure 7 or Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0091] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0092] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0093] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0094] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0095] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0096] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0097] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A software development method, characterized in that, The method includes: The path to obtain the software development kit for the HarmonyOS system; The target tags are obtained based on the preset rules of the software development kit. The target files in the path are parsed based on the target tags to obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information. The target software is developed based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
2. The method according to claim 1, characterized in that, The parsing of the target file in the path based on the target tag includes: Extract the target code corresponding to the namespace from the target file; Locate the target tag in the target code and extract the tag code corresponding to the target tag; The tag code is parsed to obtain the permission information and the corresponding method information.
3. The method according to claim 2, characterized in that, The permission information includes a permission name, the method information includes function information, and parsing the tag code to obtain the permission information and the corresponding method information includes: If the tag code contains a permission tag and a behavior tag, then the permission name corresponding to the permission tag and the function information corresponding to the behavior tag are obtained.
4. The method according to claim 2, characterized in that, The target tags include interface tags, enumeration tags, and class tags.
5. The method according to claim 1, characterized in that, The development of the target software based on the permission information and the corresponding method information includes: The functional information of the target software is analyzed to obtain the permission information associated with the target function corresponding to the functional information, and the method information corresponding to the permission information is obtained, so that the developers can develop the target function based on the permission information and method information associated with the target function.
6. The method according to claim 2, characterized in that, Before parsing the target files in the path based on the preset rules of the software development kit, the process includes: Obtain the file extensions of all files in the path. If the file extension is the target extension, then the file is determined to be the target file.
7. A software development apparatus, characterized in that, The device includes: The toolkit acquisition module is used to obtain the path to the HarmonyOS software development kit; The parsing module is used to obtain target tags based on the preset rules of the software development kit, parse the target files in the path based on the target tags, and obtain the permission information and corresponding method information in the target files. The method information is used to execute the permission information. The development module is used to develop the target software based on the permission information and the corresponding method information, so that the target software can be integrated into the HarmonyOS system.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.