Compatible Configuration Method, Device, Computer Equipment and Medium for System Characteristics
By obtaining the identification information of the Android system motherboard, determining the target characteristics and adding them to the configuration file, the functional abnormalities caused by the inability to modify the characteristics in the Android system are solved, and a compatible configuration of the system characteristics is achieved.
Patent Information
- Application Number
- CN202111217368.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2041-10-19
AI Technical Summary
The characteristics defined in the configuration file of the Android system are fixed and cannot be modified according to specific needs, resulting in the same feature of the same module being unable to be configured at the same time in different projects, which may lead to functional abnormalities.
By obtaining the identification information of the system motherboard, determining the target characteristics, and obtaining them from the configuration file and adding them to the feature list, the compatible configuration of the system characteristics is achieved.
It avoids abnormal application functions, realizes compatible configuration of system characteristics, and meets the needs of different projects.
Smart Images

Figure CN114115811B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communication technologies, and particularly to a method, apparatus, computer device, and medium for compatible configuration of system characteristics. Background Art
[0002] The Android system is currently widely used on various devices, and the functions developed based on the Android platform are becoming more and more diverse. Usually, many conventional requirements can be achieved based on the existing support of the platform. However, in some special cases, customization is required on the platform. For example, the characteristics in SystemConfig on the Android system may be customized.
[0003] Currently, the configuration file of the Android system defines the characteristics required by various modules, but the configured characteristics are fixed and cannot be modified according to specific requirements. For example, for the same characteristic of the same module, when different projects have different requirements for this characteristic, it cannot be configured simultaneously in the software. And when some characteristics are not configured properly in the system, there may be functional abnormalities in some applications of Google or other third parties, which has a great impact on the implementation of the project. Therefore, it is necessary to perform compatible configuration of system characteristics. Summary of the Invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, apparatus, computer device, and medium for compatible configuration of system characteristics.
[0005] An embodiment of the present disclosure provides a method for compatible configuration of system characteristics, the method including:
[0006] Obtain the identification information corresponding to the main board of the system;
[0007] Determine the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics;
[0008] Obtain the target characteristics from the configuration file of the system characteristics, and add the target characteristics to the characteristic list corresponding to the system.
[0009] In one embodiment, the determining the target characteristics corresponding to the system according to the identification information includes:
[0010] Query the correspondence table of identification information and project information stored in advance, where the project information is determined according to development requirements;
[0011] Obtain the project information corresponding to the identification information from the correspondence table;
[0012] Determine the device attribute information of the device corresponding to the system according to the project information;
[0013] Determine the target characteristics corresponding to the system through the device attribute information.
[0014] In one embodiment, obtaining the target characteristic from the configuration file of the system characteristics and adding the target characteristic to the characteristic list corresponding to the system includes:
[0015] Read the configuration file to obtain all system characteristics included in the configuration file;
[0016] Determine whether the target characteristic is included in all system characteristics;
[0017] If so, add the target characteristic to the characteristic list corresponding to the system.
[0018] In one embodiment, the method further includes:
[0019] If the target characteristic is not included in all system characteristics, send a message to the corresponding terminal to rewrite the configuration file;
[0020] Receive the new configuration file transmitted by the terminal, and read the new configuration file to obtain the target characteristic;
[0021] Add the target characteristic to the characteristic list corresponding to the system.
[0022] In one embodiment, before obtaining the target characteristic from the configuration file of the system characteristics and adding the target characteristic to the characteristic list corresponding to the system, it further includes:
[0023] Obtain the storage path corresponding to the configuration file in the system;
[0024] Obtain the configuration file according to the storage path.
[0025] In one embodiment, after adding the target characteristic to the characteristic list corresponding to the system, it further includes:
[0026] Transmit the characteristic list to the application layer through the corresponding software interface for the application programs in the application layer to call.
[0027] In one embodiment, the identification information determines the corresponding model of the main board through the identification circuit configured in the main board and then defines it through the corresponding variable.
[0028] An embodiment of the present disclosure provides a compatible configuration device for system characteristics, and the device includes:
[0029] An acquisition module, configured to acquire identification information corresponding to the main board of the system;
[0030] A determination module, configured to determine a target characteristic corresponding to the system according to the identification information, wherein different identification information corresponds to different target characteristics;
[0031] An addition module, configured to acquire the target characteristic from a configuration file of the system characteristics and add the target characteristic to a characteristic list corresponding to the system.
[0032] In one embodiment, the determination module is specifically configured to:
[0033] Query a correspondence table of identification information and project information stored in advance, wherein the project information is determined according to development requirements;
[0034] Acquire the project information corresponding to the identification information from the correspondence table;
[0035] Determine device attribute information of a device corresponding to the system according to the project information;
[0036] Determine the target characteristic corresponding to the system through the device attribute information.
[0037] In one embodiment, the addition module is specifically configured to:
[0038] Read the configuration file to obtain all system characteristics included in the configuration file;
[0039] Determine whether the target characteristic is included in all system characteristics;
[0040] If so, add the target characteristic to the characteristic list corresponding to the system.
[0041] In one embodiment, the addition module is further specifically configured to:
[0042] If the target characteristic is not included in all system characteristics, send a message to a corresponding terminal to rewrite the configuration file;
[0043] Receive a new configuration file transmitted by the terminal, read the new configuration file, and obtain the target characteristic;
[0044] Add the target characteristic to the characteristic list corresponding to the system.
[0045] In one embodiment, the device further includes:
[0046] A path acquisition module, configured to acquire the target feature from the configuration file of the system features, and acquire the storage path corresponding to the configuration file in the system before adding the target feature to the feature list corresponding to the system.
[0047] A file acquisition module, configured to acquire the configuration file according to the storage path.
[0048] In one embodiment, the apparatus further includes:
[0049] A transmission module, configured to transmit the feature list to the application layer through a corresponding software interface for an application program in the application layer to call after adding the target feature to the feature list corresponding to the system.
[0050] In one embodiment, the identification information is defined through a corresponding variable after determining the model corresponding to the main board according to the identification circuit configured in the main board.
[0051] An embodiment of the present disclosure provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the compatible configuration method for system features provided in any embodiment of the present disclosure are implemented.
[0052] An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the compatible configuration method for system features provided in any embodiment of the present disclosure are implemented.
[0053] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art: First, obtain the identification information corresponding to the main board of the system, and then determine the target feature corresponding to the system according to the identification information, where different identification information corresponds to different target features. Finally, obtain the target feature from the configuration file of the system features and add the target feature to the feature list corresponding to the system. Through the above solution, the system features can be compatibly configured to avoid the situation of abnormal application functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0055] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0056] Figure 1 It is a schematic flowchart of a method for compatible configuration of system characteristics provided by an embodiment of the present disclosure;
[0057] Figure 2 It is a schematic flowchart of another method for compatible configuration of system characteristics provided by an embodiment of the present disclosure;
[0058] Figure 3 It is a schematic flowchart of yet another method for compatible configuration of system characteristics provided by an embodiment of the present disclosure;
[0059] Figure 4 It is a schematic structural diagram of a device for compatible configuration of system characteristics provided by an embodiment of the present disclosure;
[0060] Figure 5 It is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure. Specific embodiments
[0061] In order to more clearly understand the above-mentioned objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0062] Many specific details are set forth in the following description in order to provide a thorough understanding of the present disclosure, but the present disclosure may be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0063] In one embodiment, as Figure 1 shown, a method for compatible configuration of system characteristics is provided. In this embodiment, the method is mainly illustrated by taking its application to a server as an example. It can be understood that the method can also be applied to a terminal, and can also be applied 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:
[0064] S110, obtain the identification information corresponding to the motherboard of the system.
[0065] Among them, the system can be the Android operating system. The motherboard is one of the important components of a computer. It is usually a rectangular circuit board on which the main circuit systems that make up the computer are installed. It can include elements such as the basic input / output system chip, input / output control chip, keyboard and panel control switch interfaces, indicator plug-ins, expansion slots, and DC power supply connectors for the motherboard and expansion cards. During the software development process of the Android system, it is usually combined with the motherboard. The motherboard of the system can be understood as the motherboard that can drive the Android operating system. The identification information can be understood as the identification that can represent the identity of the motherboard, such as the motherboard number, motherboard name, or motherboard identity document (Identity document, abbreviated as ID), etc.
[0066] In the prior art, the characteristics required by various modules are defined in the configuration file of the Android system, but the configured characteristics are fixed and cannot be modified according to specific requirements, which causes inconvenience to actual applications. In this embodiment, in order to achieve compatible configuration of system characteristics, product information involved in different development projects is distinguished from the motherboard in advance. Therefore, it is necessary to first obtain the identification information corresponding to the motherboard of the system, so as to determine which motherboard drives the system, which is convenient for subsequent determination of the target characteristics corresponding to the system according to the identification information of the motherboard.
[0067] S120, determine the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics.
[0068] Among them, the target characteristics can be understood as the characteristics required by the system corresponding to the identification information.
[0069] Since different identification information corresponds to different target characteristics, after determining the identification information of the motherboard, the attribute information of the devices involved in the current motherboard can be determined according to the identification information, and the target characteristics required by the system can be determined according to the attribute information of the devices.
[0070] S130, obtain the target characteristics from the configuration file of the system characteristics and add the target characteristics to the characteristic list corresponding to the system.
[0071] Among them, the configuration file can be understood as a code file pre-written by developers, which can usually be placed in the software framework (Framework) code of the Android system, such as SystemConfig. The configuration file contains many characteristics. System Feature can be understood as the functional characteristics supported in the system Framework.
[0072] After determining the target features corresponding to the system, it is also necessary to obtain the target features from the configuration file of the system features. After obtaining the target features, add the target features to the feature list corresponding to the system to facilitate subsequent calls.
[0073] The compatible configuration method for system features provided in this embodiment first obtains the identification information corresponding to the main board of the system, and then determines the target features corresponding to the system according to the identification information. Among them, different identification information corresponds to different target features. Finally, obtain the target features from the configuration file of the system features and add the target features to the feature list corresponding to the system. Through the above solution, the system features can be compatibly configured to avoid abnormal application functions.
[0074] In this embodiment, optionally, after adding the target features to the feature list corresponding to the system, it further includes:
[0075] Transmit the feature list to the application layer through the corresponding software interface for the application programs in the application layer to call.
[0076] Among them, the software interface can be an application programming interface or other interfaces, and this embodiment does not make specific limitations.
[0077] In this embodiment, after adding the target features to the feature list corresponding to the system, transmitting the feature list to the application layer through the corresponding software interface can facilitate the calling of each application program included in the application layer, thereby implementing the corresponding functions.
[0078] In this embodiment, optionally, the identification information is defined through a corresponding variable after determining the model corresponding to the main board according to the identification circuit configured in the main board.
[0079] Specifically, the main boards can be distinguished according to different models in advance, such as main board (Board) A, Board B, or Board C, etc. Each model of main board is configured with an identification circuit, and the identification circuit can be a custom circuit with different levels of a preset number of bits. Thus, the software of the system can determine the model corresponding to the main board according to the identification circuit configured in the main board. At the same time, defining a variable in the software can be used for recording and distinguishing the main board on the software. Among them, the preset number of bits can be set in advance or determined according to the actual situation, and this embodiment does not make specific limitations.
[0080] Figure 2 It is a schematic flowchart of another compatible configuration method for system features provided by an embodiment of the present disclosure. This embodiment is further extended and optimized based on the above embodiment. Among them, a possible implementation manner of S120 is as follows:
[0081] S1201. Query the pre-stored correspondence table between identification information and project information, where the project information is determined according to development requirements.
[0082] Among them, the development requirements can be understood as the requirements corresponding to the development project during the development process based on the Android system. They can be pre-set or adjusted according to the actual situation. This embodiment does not limit this.
[0083] During the development process of the Android system, there may be multiple development projects, and different development projects correspond to different development requirements. Therefore, the project information can be determined according to the development requirements. Query the pre-stored correspondence table between identification information and project information locally or at a preset storage location, which is convenient for subsequently obtaining the project information corresponding to the identification information from the correspondence table.
[0084] S1202. Obtain the project information corresponding to the identification information from the correspondence table.
[0085] By querying the correspondence table, the project information corresponding to the identification information of the main board can be obtained, so as to obtain the specific project information of the development project applied to the current main board.
[0086] S1203. Determine the device component attribute information of the device corresponding to the system according to the project information.
[0087] After obtaining the project information, according to the project information, the specific devices involved in the system and the device component attribute information of the devices can be determined in the current development project. The device component attribute information can specifically include device models, device suppliers, and users corresponding to the devices, etc.
[0088] S1204. Determine the target characteristics of the system through the device component attribute information.
[0089] According to the attribute information of the device, the specific functions of the device can be obtained, so as to determine the target characteristics of the system. For example, assume that BoardA is used in development project A, the device corresponding to development project A is camera A, and the device component attribute of camera A is to support Autofocus. Then, the target characteristic of the system is the characteristic that camera A supports Autofocus; assume that BoardB (different from BoardA) is used in development project B (different from development project A), the device corresponding to development project B is camera B, and the device component attribute of camera B is not to support Autofocus. Then, the target characteristic of the system is the characteristic that camera B does not support Autofocus.
[0090] Through the above steps S1201 - S1204, the target characteristics of the system can be determined more accurately, so as to achieve the compatible configuration of the system characteristics.
[0091] Figure 3 It is a schematic flowchart of another compatible configuration method for system characteristics provided by an embodiment of the present disclosure. This embodiment is further extended and optimized based on the above embodiment. Further, a possible implementation manner of S130 is as follows:
[0092] S1301, read the configuration file to obtain all system characteristics included in the configuration file.
[0093] By reading the configuration file, all system characteristics included in the configuration file can be obtained, which is convenient for subsequently determining whether the target characteristic is included in all system characteristics.
[0094] S1302, determine whether the target characteristic is included in all system characteristics.
[0095] If yes, execute S1303; if no, execute S1304.
[0096] S1303, add the target characteristic to the characteristic list corresponding to the system.
[0097] If the target characteristic is included in the system characteristics, add the target characteristic to the characteristic list corresponding to the system.
[0098] S1304, send a message to rewrite the configuration file to the corresponding terminal.
[0099] If the target characteristic is not included in the system characteristics, send a message to rewrite the configuration file to the corresponding terminal so that a new configuration file can be received and the target characteristic can be obtained from the new configuration file. Herein, the terminal can be an electronic device used by developers.
[0100] S1305, receive the new configuration file transmitted by the terminal and read the new configuration file to obtain the target characteristic.
[0101] Receive the new configuration file transmitted by the terminal and obtain the target characteristic by reading the new configuration file.
[0102] After S1305, execute S1303.
[0103] In this embodiment, optionally, before obtaining the target characteristic from the configuration file of the system characteristics and adding the target characteristic to the characteristic list corresponding to the system, it further includes:
[0104] Obtain the storage path corresponding to the configuration file in the system;
[0105] Obtain the configuration file according to the storage path.
[0106] Specifically, after generating an image file by compiling the code corresponding to the project information, the configuration file has been placed in the corresponding storage path in the system. This storage path can be determined according to the system. For example, it is stored in the vendor / etc or system / etc directory. According to the storage path, the configuration file can be obtained, which is convenient for subsequently obtaining the target feature from the configuration file of the system features and adding the target feature to the corresponding feature list of the system, thereby realizing the compatible configuration of the system features. This is beneficial for subsequently implementing upper-layer applications and compatibility testing, as well as solving the problem of using devices with different features in a single development project. There are also more choices for device selection in the development project.
[0107] Figure 4 FIG. is a schematic structural diagram of a device for compatible configuration of system features provided by an embodiment of the present disclosure; this device is configured in a computer device and can implement the method for compatible configuration of system features in any embodiment of the present application. The device specifically includes the following:
[0108] An obtaining module 410, configured to obtain identification information corresponding to the main board of the system;
[0109] A determining module 420, configured to determine the target feature corresponding to the system according to the identification information, where different identification information corresponds to different target features;
[0110] An adding module 430, configured to obtain the target feature from the configuration file of the system features and add the target feature to the corresponding feature list of the system.
[0111] In this embodiment, optionally, the determining module 420 is specifically configured to:
[0112] Query a pre-stored correspondence table between the identification information and the project information, where the project information is determined according to the development requirements;
[0113] Obtain the project information corresponding to the identification information from the correspondence table;
[0114] Determine the device attribute information of the device corresponding to the system according to the project information;
[0115] Determine the target feature corresponding to the system through the device attribute information.
[0116] In this embodiment, optionally, the adding module 430 is specifically configured to:
[0117] Read the configuration file to obtain all system features included in the configuration file;
[0118] Determine whether the target feature is included in all system features;
[0119] If so, add the target feature to the corresponding feature list of the system.
[0120] In this embodiment, optionally, the adding module 430 is further specifically configured to:
[0121] If the target feature is not included in all system features, send a message to the corresponding terminal to rewrite the configuration file;
[0122] Receive the new configuration file transmitted by the terminal, and read the new configuration file to obtain the target feature;
[0123] Add the target feature to the corresponding feature list of the system.
[0124] In this embodiment, optionally, the device further includes:
[0125] A path acquisition module, configured to acquire the storage path corresponding to the configuration file in the system before acquiring the target feature from the configuration file of the system features and adding the target feature to the corresponding feature list of the system;
[0126] A file acquisition module, configured to acquire the configuration file according to the storage path.
[0127] In this embodiment, optionally, the device further includes:
[0128] A transmission module, configured to transmit the feature list to the application layer through the corresponding software interface for the application programs in the application layer to call after adding the target feature to the corresponding feature list of the system.
[0129] In this embodiment, optionally, the identification information is defined through a corresponding variable after determining the model number corresponding to the main board according to the identification circuit configured in the main board.
[0130] Through the system feature compatibility configuration device provided by the embodiments of the present disclosure, first obtain the identification information corresponding to the main board of the system, then determine the target features corresponding to the system according to the identification information, where different identification information corresponds to different target features, and finally obtain the target features from the configuration file of the system features and add the target features to the corresponding feature list of the system. Through the above solution, the system features can be compatibly configured to avoid the situation of abnormal application functions.
[0131] For the specific limitations of the compatible configuration device for system characteristics, reference can be made to the limitations of the compatible configuration method for system characteristics in the foregoing text, which will not be elaborated here. Each module in the above-mentioned compatible configuration device for system characteristics can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0132] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 5 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for compatible configuration of system characteristics.
[0133] Those skilled in the art can understand that Figure 5 the structure shown in
[0134] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout. Figure 5 In one embodiment, the compatible configuration device for system characteristics provided by the present application can be implemented in the form of a computer program, and the computer program can run on a computer device as
[0135] shown. Each program module constituting the computer device can be stored in the memory of the computer device, and the computer program constituted by each program module enables the processor to execute the steps in the method for compatible configuration of system characteristics in each embodiment of the present application described in this specification.
[0136] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; querying a pre-stored correspondence table between the identification information and project information, where the project information is determined according to development requirements; obtaining the project information corresponding to the identification information from the correspondence table; determining the device attribute information of the devices corresponding to the system according to the project information; determining the target characteristics corresponding to the system through the device attribute information; obtaining the target characteristics from the configuration file of the system characteristics and adding the target characteristics to the characteristics list corresponding to the system.
[0137] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; reading the configuration file to obtain all the system characteristics included in the configuration file; determining whether the target characteristics are included in all the system characteristics; if so, adding the target characteristics to the characteristics list corresponding to the system.
[0138] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; obtaining the storage path corresponding to the configuration file in the system; obtaining the configuration file according to the storage path; obtaining the target characteristics from the configuration file of the system characteristics and adding the target characteristics to the characteristics list corresponding to the system.
[0139] In the embodiments of the present disclosure, by obtaining the identification information corresponding to the motherboard of the system, determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics, obtaining the target characteristics from the configuration file of the system characteristics, and adding the target characteristics to the characteristics list corresponding to the system, it is possible to perform compatible configuration on the system characteristics and avoid the situation of abnormal application functions.
[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining identification information corresponding to the motherboard of the system; determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; obtaining the target characteristics from the configuration file of the system characteristics and adding the target characteristics to the characteristics list corresponding to the system.
[0141] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; querying a pre-stored correspondence table between the identification information and project information, where the project information is determined according to development requirements; obtaining the project information corresponding to the identification information from the correspondence table; determining the device attribute information of the device corresponding to the system according to the project information; determining the target characteristics corresponding to the system through the device attribute information; obtaining the target characteristics from the configuration file of the system characteristics and adding the target characteristics to the characteristics list corresponding to the system.
[0142] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; reading the configuration file to obtain all the system characteristics included in the configuration file; determining whether the target characteristics are included in all the system characteristics; if so, adding the target characteristics to the characteristics list corresponding to the system.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: obtaining identification information corresponding to the motherboard of the system; determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; obtaining the storage path corresponding to the configuration file in the system; obtaining the configuration file according to the storage path; obtaining the target characteristics from the configuration file of the system characteristics and adding the target characteristics to the characteristics list corresponding to the system.
[0144] By obtaining the identification information corresponding to the motherboard of the system, determining the target characteristics corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics, obtaining the target characteristics from the configuration file of the system characteristics, and adding the target characteristics to the characteristics list corresponding to the system, the embodiments of the present disclosure can perform compatible configuration on the system characteristics and avoid the situation of abnormal application functions.
[0145] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM), etc.
[0146] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, 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, it should be considered as the scope recorded in this specification.
[0147] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A compatible configuration method for system characteristics, characterized in that, The method includes: Obtaining identification information corresponding to the main board of the system; Determining a target characteristic corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; Obtaining the target characteristic from a configuration file of the system characteristics and adding the target characteristic to a characteristic list corresponding to the system; Transmitting the characteristic list to an application layer through a corresponding software interface for an application program in the application layer to call.
2. The method according to claim 1, wherein The determining the target characteristic corresponding to the system according to the identification information includes: Querying a pre-stored correspondence table between identification information and project information, where the project information is determined according to development requirements; Obtaining the project information corresponding to the identification information from the correspondence table; Determining device attribute information of a device corresponding to the system according to the project information; Determining the target characteristic corresponding to the system through the device attribute information.
3. The method according to claim 1, characterized in that, The obtaining the target characteristic from the configuration file of the system characteristics and adding the target characteristic to the characteristic list corresponding to the system includes: Reading the configuration file to obtain all system characteristics included in the configuration file; Determining whether the target characteristic is included in all system characteristics; If so, adding the target characteristic to the characteristic list corresponding to the system.
4. The method according to claim 3, wherein It further includes: If the target characteristic is not included in all system characteristics, sending a message to a corresponding terminal to rewrite the configuration file; Receiving a new configuration file transmitted by the terminal, reading the new configuration file, and obtaining the target characteristic; Adding the target characteristic to the characteristic list corresponding to the system.
5. The method according to claim 1, characterized in that Before obtaining the target characteristic from the configuration file of the system characteristics and adding the target characteristic to the characteristic list corresponding to the system, it further includes: Obtaining a storage path corresponding to the configuration file in the system; Obtaining the configuration file according to the storage path.
6. The method according to any one of claims 1-5, characterized in that The identification information is defined through a corresponding variable after determining the model corresponding to the main board according to an identification circuit configured in the main board.
7. A compatible configuration device for system characteristics, characterized in that, The device includes: An obtaining module, configured to obtain identification information corresponding to the main board of the system; A determining module, configured to determine a target characteristic corresponding to the system according to the identification information, where different identification information corresponds to different target characteristics; An adding module, configured to obtain the target characteristic from a configuration file of the system characteristics and add the target characteristic to a characteristic list corresponding to the system; A transmitting module, configured to transmit the characteristic list to an application layer through a corresponding software interface for an application program in the application layer to call after adding the target characteristic to the characteristic list corresponding to the system.
8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the compatible configuration method for system characteristics 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 program is executed by a processor, it implements the steps of the compatible configuration method for system characteristics according to any one of claims 1 to 6.
Citation Information
Patent Citations
System configuration method and device and storage medium
CN109614157A
Compatibility parameter determination method and device, electronic equipment and storage medium
CN113296984A