CN113946348A - Terminal software function adapting method, system, electronic equipment and storage medium - Google Patents
Terminal software function adapting method, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113946348A CN113946348A CN202111121193.2A CN202111121193A CN113946348A CN 113946348 A CN113946348 A CN 113946348A CN 202111121193 A CN202111121193 A CN 202111121193A CN 113946348 A CN113946348 A CN 113946348A
- Authority
- CN
- China
- Prior art keywords
- software function
- target
- hardware
- terminal
- executing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a software function adapting method, a system, electronic equipment and a storage medium of a terminal, wherein the software function adapting method comprises the following steps: setting an associated directory in a terminal, wherein hardware configuration information corresponding to a plurality of software functions is stored in the associated directory; when detecting that a target software function of a terminal is triggered, failing to acquire a hardware file corresponding to the target software function, reading hardware configuration information corresponding to the target software function from the associated directory; configuring and executing the target software function based on the corresponding hardware configuration information. When detecting that the user software interface can not obtain the hardware file to be processed, the invention searches and stores the hardware to be processed based on the preset associated directory and searches the corresponding hardware file at the storage position, thereby obtaining the file content and executing the processing.
Description
Technical Field
The invention belongs to the application field of android systems, and particularly relates to a method and a system for adapting software functions of a terminal, electronic equipment and a storage medium.
Background
With the continuous evolution of the Android system, various product forms can be derived based on the Android system. In the actual research and development process, independent development and maintenance cannot be performed on each different product, and the Android software scheme is universally used for adapting to different hardware product forms.
The main current scheme is to create boards (boards) of multiple products in one Android software scheme, and configure software functions in different boards respectively.
However, the Android software scheme is not the final implementation, and the hardware specification of the product is changed if the project is in the process of using the scheme. In this case, some configurations will be abnormal and the software functions will not be adaptable.
Disclosure of Invention
The technical problem to be solved by the present invention is to overcome the above-mentioned defects in the prior art, and provide a method, a system, an electronic device and a storage medium for adapting a software function of a terminal.
The invention solves the technical problems through the following technical scheme:
a software function adapting method of a terminal, the software function adapting method comprising:
setting an associated directory in a terminal, wherein hardware configuration information corresponding to a plurality of software functions is stored in the associated directory;
when detecting that a target software function of a terminal is triggered, failing to acquire a hardware file corresponding to the target software function, reading hardware configuration information corresponding to the target software function from the associated directory;
configuring and executing the target software function based on the corresponding hardware configuration information.
Preferably, the software adaptation method further includes:
and when detecting that the target software function of the terminal is triggered, based on the detection of the existence of the hardware file corresponding to the target software function by the associated directory, executing the step of reading the hardware configuration information corresponding to the target software function from the associated directory.
Preferably, the hardware configuration information includes hardware corresponding to the execution of the software function in the terminal and a storage address of the hardware, and the configuring and executing the target software function based on the corresponding hardware configuration information includes:
acquiring target hardware corresponding to the target software function and a target storage address of the target hardware;
extracting a target hardware file for executing the target software function from the target storage address;
executing the target software function based on the target hardware file.
Preferably, the hardware configuration information includes specific hardware information corresponding to a software function executed in the terminal, and the configuring and executing the target software function based on the corresponding hardware configuration information includes:
reading target specific hardware information corresponding to the target software function;
executing the target software function based on the target specific hardware information.
A software function adaptation system of a terminal, the software function adaptation system comprising:
the system comprises a presetting module, a processing module and a processing module, wherein the presetting module is used for setting an associated directory in a terminal, and the associated directory stores hardware configuration information corresponding to a plurality of software functions;
the first detection module is used for calling the information reading module when detecting that a target software function of the terminal is triggered and a hardware file corresponding to the target software function fails to be acquired;
the information reading module is used for reading hardware configuration information corresponding to the target software function from the associated directory;
and the execution module is used for configuring and executing the target software function based on the corresponding hardware configuration information.
Preferably, the software adaptation system further comprises:
and the second detection module is used for calling the information reading module when detecting that the target software function of the terminal is triggered and detecting that a hardware file corresponding to the target software function exists on the basis of the associated directory.
Preferably, the hardware configuration information includes hardware corresponding to the software function executed in the terminal and a storage address of the hardware, and the execution module includes:
an address acquisition unit, configured to acquire target hardware corresponding to the target software function and a target storage address of the target hardware;
a hardware file extraction unit for extracting a target hardware file for executing the target software function from the target storage address;
a software function execution unit for executing the target software function based on the target hardware file.
Preferably, the hardware configuration information includes specific hardware information corresponding to a software function executed in the terminal, and the execution module includes:
a specific information reading unit configured to read target specific hardware information corresponding to the target software function;
a software function execution unit for executing the target software function based on the target specific hardware information.
An electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the software adaptation method of the terminal.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the software adaptation method of the terminal described above.
The positive progress effects of the invention are as follows: when detecting that the user software interface can not obtain the hardware file to be processed, searching the file storing the hardware to be processed based on the preset associated directory and the corresponding hardware file at the storage position, and further obtaining the file content and executing the processing.
Drawings
Fig. 1 is a flowchart of a method for adapting software functions of a terminal according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of an implementation manner of step 30 in the method for adapting a software function of a terminal according to embodiment 1 of the present invention.
Fig. 3 is a flowchart of another implementation manner of step 30 in the method for adapting software functions of a terminal according to embodiment 1 of the present invention.
Fig. 4 is a flowchart of a method for adapting software functions of a terminal according to embodiment 2 of the present invention.
Fig. 5 is a schematic block diagram of a software function adaptation system of a terminal according to embodiment 3 of the present invention.
Fig. 6 is a module diagram of a software function adaptation system of a terminal according to embodiment 4 of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
A software function adapting method of a terminal, as shown in fig. 1, the software function adapting method includes:
and step 40, configuring and executing the target software function based on the corresponding hardware configuration information.
In this embodiment, the hardware configuration information includes hardware corresponding to the software function executed in the terminal and a storage address of the hardware, and an implementation manner of the step 40 is provided, as shown in fig. 2, and includes:
step 401, acquiring target hardware corresponding to a target software function and a target storage address of the target hardware;
step 402, extracting a target hardware file for executing a target software function from a target storage address;
step 403, executing the target software function based on the target hardware file.
In this embodiment, the hardware configuration information includes specific hardware information corresponding to the software function executed in the terminal, and another implementation manner of the providing step 40 is as shown in fig. 3, and includes:
step 411, reading target specific hardware information corresponding to the target software function;
step 412, executing the target software function based on the target specific hardware information.
In this embodiment, when it is detected that the user software interface cannot acquire the hardware file to be processed, the file storing the hardware to be processed is searched based on the preset association directory, and the corresponding hardware file is searched at the storage location, so as to acquire the file content and execute the processing.
Example 2
The software adaptation method of the terminal of this embodiment is further improved on the basis of embodiment 1, as shown in fig. 4, after step 10, the software adaptation method further includes:
and 21, detecting whether a hardware file corresponding to the target software function exists or not based on the associated directory when the target software function of the terminal is triggered, and executing the step 30 if the hardware file corresponding to the target software function exists. If not, the software function is invalid and cannot be executed.
In this embodiment, when it is detected that a user wants to use a certain software function, whether a hardware file dependent on the software function exists may be found in advance according to the software function of the associated directory, and specifically, a file may be found through a storage location of associated hardware stored in the associated directory, and if the file exists, the software function is controlled to take effect, and the corresponding file is further extracted to perform configuration execution.
Example 3
A software function adapting system of a terminal, as shown in fig. 5, the software function adapting system comprising:
the system comprises a presetting module, a processing module and a processing module, wherein the presetting module is used for setting an associated directory in a terminal, and the associated directory stores hardware configuration information corresponding to a plurality of software functions; it should be noted that the association list is obtained by the development and maintenance personnel of the software function according to collection and arrangement.
The first detection module is used for calling the information reading module when detecting that a target software function of the terminal is triggered and a hardware file corresponding to the target software function fails to be acquired;
the information reading module is used for reading hardware configuration information corresponding to the target software function from the associated directory;
and the execution module is used for configuring and executing the target software function based on the corresponding hardware configuration information.
In this embodiment, the hardware configuration information includes hardware corresponding to a software function executed in the terminal and a storage address of the hardware, and the execution module includes:
an address acquisition unit, configured to acquire target hardware corresponding to the target software function and a target storage address of the target hardware;
a hardware file extraction unit for extracting a target hardware file for executing the target software function from the target storage address;
a software function execution unit for executing the target software function based on the target hardware file.
In this embodiment, the hardware configuration information includes specific hardware information corresponding to a software function executed in the terminal, and the execution module includes:
a specific information reading unit configured to read target specific hardware information corresponding to the target software function;
the software function execution unit is further configured to execute the target software function based on the target specific hardware information.
In this embodiment, when it is detected that the user software interface cannot acquire the hardware file to be processed, the file storing the hardware to be processed is searched based on the preset association directory, and the corresponding hardware file is searched at the storage location, so as to acquire the file content and execute the processing.
Example 4
The software adaptation system of the terminal of this embodiment is further improved on the basis of embodiment 3, as shown in fig. 6, the software adaptation system further includes:
and the second detection module is used for calling the information reading module when detecting that the target software function of the terminal is triggered and detecting that a hardware file corresponding to the target software function exists on the basis of the associated directory.
In this embodiment, when it is detected that the user software interface cannot acquire the hardware file to be processed, the file storing the hardware to be processed is searched based on the preset association directory, and the corresponding hardware file is searched at the storage location, so as to acquire the file content and execute the processing.
Example 5
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the software adaptation method of the terminal of embodiment 1 or 2 when executing the computer program.
Fig. 7 is a schematic structural diagram of an electronic device provided in this embodiment. FIG. 7 illustrates a block diagram of an exemplary electronic device 90 suitable for use in implementing embodiments of the present invention. The electronic device 90 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the electronic device 90 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 that connects the various system components (including the memory 92 and the processor 91).
The bus 93 includes a data bus, an address bus, and a control bus.
The processor 91 executes various functional applications and data processing by running a computer program stored in the memory 92.
The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 90 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via a network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 90 via the bus 93. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
A computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the software adaptation method of the terminal of embodiment 1 or 2.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible embodiment, the invention can also be implemented in the form of a program product comprising program code for causing a terminal device to perform a software adaptation method implementing the terminal described in embodiment 1 or 2, when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.
Claims (10)
1. A software function adapting method of a terminal is characterized by comprising the following steps:
setting an associated directory in a terminal, wherein hardware configuration information corresponding to a plurality of software functions is stored in the associated directory;
when detecting that a target software function of a terminal is triggered, failing to acquire a hardware file corresponding to the target software function, reading hardware configuration information corresponding to the target software function from the associated directory;
configuring and executing the target software function based on the corresponding hardware configuration information.
2. The software adaptation method of the terminal according to claim 1, wherein the software adaptation method further comprises:
and when detecting that the target software function of the terminal is triggered, based on the detection of the existence of the hardware file corresponding to the target software function by the associated directory, executing the step of reading the hardware configuration information corresponding to the target software function from the associated directory.
3. The software adapting method of the terminal according to claim 1 or 2, wherein the hardware configuration information includes hardware corresponding to the execution of the software function in the terminal and a storage address of the hardware, and the configuring and executing the target software function based on the corresponding hardware configuration information includes:
acquiring target hardware corresponding to the target software function and a target storage address of the target hardware;
extracting a target hardware file for executing the target software function from the target storage address;
executing the target software function based on the target hardware file.
4. The software adaptation method of the terminal according to claim 1 or 2, wherein the hardware configuration information includes specific hardware information corresponding to execution of a software function in the terminal, and the configuring and executing the target software function based on the corresponding hardware configuration information includes:
reading target specific hardware information corresponding to the target software function;
executing the target software function based on the target specific hardware information.
5. A software function adaptation system of a terminal, the software function adaptation system comprising:
the system comprises a presetting module, a processing module and a processing module, wherein the presetting module is used for setting an associated directory in a terminal, and the associated directory stores hardware configuration information corresponding to a plurality of software functions;
the first detection module is used for calling the information reading module when detecting that a target software function of the terminal is triggered and a hardware file corresponding to the target software function fails to be acquired;
the information reading module is used for reading hardware configuration information corresponding to the target software function from the associated directory;
and the execution module is used for configuring and executing the target software function based on the corresponding hardware configuration information.
6. The software adaptation system of the terminal of claim 5, further comprising:
and the second detection module is used for calling the information reading module when detecting that the target software function of the terminal is triggered and detecting that a hardware file corresponding to the target software function exists on the basis of the associated directory.
7. The software adaptation system of the terminal according to claim 5 or 6, wherein the hardware configuration information includes hardware corresponding to the software function executed in the terminal and a storage address of the hardware, and the executing module includes:
an address acquisition unit, configured to acquire target hardware corresponding to the target software function and a target storage address of the target hardware;
a hardware file extraction unit for extracting a target hardware file for executing the target software function from the target storage address;
a software function execution unit for executing the target software function based on the target hardware file.
8. The software adaptation system of the terminal according to claim 5 or 6, wherein the hardware configuration information includes specific hardware information corresponding to the execution of the software function in the terminal, and the execution module includes:
a specific information reading unit configured to read target specific hardware information corresponding to the target software function;
a software function execution unit for executing the target software function based on the target specific hardware information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the software adaptation method of the terminal of any of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that said program, when executed by a processor, implements a software adaptation method for a terminal according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111121193.2A CN113946348A (en) | 2021-09-24 | 2021-09-24 | Terminal software function adapting method, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111121193.2A CN113946348A (en) | 2021-09-24 | 2021-09-24 | Terminal software function adapting method, system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113946348A true CN113946348A (en) | 2022-01-18 |
Family
ID=79328602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111121193.2A Pending CN113946348A (en) | 2021-09-24 | 2021-09-24 | Terminal software function adapting method, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113946348A (en) |
-
2021
- 2021-09-24 CN CN202111121193.2A patent/CN113946348A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019140828A1 (en) | Electronic apparatus, method for querying logs in distributed system, and storage medium | |
US10437703B2 (en) | Correlation of source code with system dump information | |
US8171406B1 (en) | Automating user interface navigation | |
US9665469B2 (en) | System and method of runtime downloading of debug code and diagnostics tools in an already deployed baseboard management controller (BMC) devices | |
US9354964B2 (en) | Tag based selection of test scripts for failure analysis | |
US20150186246A1 (en) | Including kernel object information in a user dump | |
US8799716B2 (en) | Heap dump occurrence detection | |
CN110929128A (en) | Data crawling method, device, equipment and medium | |
CN103716384A (en) | Method and device for realizing cloud storage data synchronization in cross-data-center manner | |
US10754748B2 (en) | System and method for constructing extensible event log with javascript object notation (JSON) encoded payload data | |
CN113760306A (en) | Method and device for installing software, electronic equipment and storage medium | |
CA3150581A1 (en) | Method, apparatus, and system for incremental update of graphs | |
US11188449B2 (en) | Automated exception resolution during a software development session based on previous exception encounters | |
US9367380B2 (en) | Dynamically altering error logging activities in a computing system | |
US10129328B2 (en) | Centralized management of webservice resources in an enterprise | |
CN109783440B (en) | Data storage method, data retrieval method, data storage device, medium and electronic equipment | |
CN113946348A (en) | Terminal software function adapting method, system, electronic equipment and storage medium | |
US11977636B2 (en) | Storage transaction log | |
CN112241141B (en) | Hardware configuration method, system, device and medium of PLC control system | |
CN113590367B (en) | Exit processing method, system, device and storage medium of application program | |
CN110334430B (en) | Automatic labeling method, system, equipment and storage medium for cable bracket in drawing | |
CN113448758A (en) | Task processing method and device and terminal equipment | |
CN113656378A (en) | Server management method, device and medium | |
CN108509252B (en) | Virtual machine starting device and method and host | |
JP2006079485A (en) | Method for information collection for fault analysis in electronic computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |