Device Control Method, Device, Management Device and Storage Medium
By managing the update package management program on the device and receiving function file packages on the shell application, the control function of the target board is automatically updated, which solves the complicated board manufacturer docking problem in the existing technology, and improves the efficiency and security of control function updates.
Patent Information
- Application Number
- CN202210653648.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-06-09
AI Technical Summary
In the prior art, when adding new control functions to the target board on the management device, it requires manual connection with the board manufacturer, which is cumbersome and has systemic risks.
The update package management program and shell application on the management device receive the function file package sent by the terminal device, and automatically update the control function of the target board without the need for re-signing of the board manufacturer.
Automatic update of control functions is realized, the process is simplified, the update efficiency is improved, the security is enhanced, and system risks are avoided.
Smart Images

Figure CN114968305B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a device control method, device, management device, and storage medium. Background Art
[0002] With the rapid development of science and technology, there are more and more various management devices. A board can be installed on the management device, and the display device can be controlled through the board on the management device.
[0003] In related technologies, different board manufacturers have different control methods for the same control function. If a target control instruction is received, it is necessary to determine the installed target board, and then determine the target control method of the target board for the target control instruction. The display device is controlled by the target board according to the target control method. Among them, because different board manufacturers have different system call methods, when a new function is added to the target board, the board manufacturer needs to re-sign the target board before the target board can call the system interface, and then a new control function can be added to the target board.
[0004] However, in related technologies, when adding a new control function to the target board on the management device, it is necessary to manually connect with the corresponding board manufacturer, and the process is relatively cumbersome. Summary of the Invention
[0005] The purpose of the present invention is to provide a device control method, device, management device, and storage medium for the above-mentioned deficiencies in the prior art, so as to solve the problem that when adding a new control function to the target board on the management device in related technologies, it is necessary to manually connect with the corresponding board manufacturer, and the process is relatively cumbersome.
[0006] To achieve the above object, the technical solutions adopted in the embodiments of the present invention are as follows:
[0007] In a first aspect, an embodiment of the present invention provides a device control method, which is applied to a management device installed with a target board. A shell application program and an update package management program are running in the target board, and the method includes:
[0008] Receiving a function file package sent by a terminal device through the update package management program;
[0009] Updating an initial function file package in the shell application program running on the target board according to the function file package, so that the management device has a control function corresponding to the function file package, and the control function is a function for controlling a display device.
[0010] Optionally, updating the initial function file package in the shell application running on the target board according to the function file package includes:
[0011] Comparing the version number in the function file package with the version number in the initial function file package to obtain a comparison result;
[0012] If the comparison result meets a preset condition, perform a function update on the initial function file package in the shell application according to the function file package.
[0013] Optionally, before updating the initial function file package in the shell application running on the target board according to the function file package, the method further includes:
[0014] Using the shell application to perform a signature verification on the function file package;
[0015] Updating the initial function file package in the shell application running on the target board according to the function file package includes:
[0016] If the signature verification passes, update the initial function file package in the shell application according to the function file package.
[0017] Optionally, using the shell application to perform a signature verification on the function file package includes:
[0018] Using the shell application to obtain the execution file of the function file package and generate summary information of the execution file;
[0019] Using the shell application to decrypt the summary file of the function file package to obtain decrypted summary information;
[0020] Comparing the summary information of the execution file with the decrypted summary information;
[0021] If the summary information of the execution file is the same as the decrypted summary information, it is determined that the signature verification of the function file package passes.
[0022] Optionally, the method further includes:
[0023] Using the shell application to receive a call request and usage parameters sent by the terminal device through a target application; the call request includes: an application program interface of a preset function;
[0024] Using the shell application to call the system permission of the display device through the application program interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function;
[0025] Use the shell application to obtain the execution result of the preset function from the display device and return the execution result to the terminal device.
[0026] Optionally, before using the shell application to call the system permission of the display device through the application programming interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function, the method further includes:
[0027] Use the shell application to perform signature verification on the call request;
[0028] The step of using the shell application to call the system permission of the display device through the application programming interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function includes:
[0029] If the signature verification passes, use the shell application to call the system permission of the display device through the application programming interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function.
[0030] Optionally, after receiving the function file package sent by the terminal device through the update package management program, the method further includes:
[0031] Establish a communication connection between the update package management program and the shell application in a cross-process call manner;
[0032] Obtain the function file package from the update package management program through the shell application.
[0033] In a second aspect, an embodiment of the present invention further provides a device control device, which is applied to a management device installed with a target board, and a shell application and an update package management program are running on the target board. The device control device includes:
[0034] A receiving module, configured to receive the function file package sent by the terminal device through the update package management program;
[0035] An update module, configured to update the initial function file package in the shell application running on the target board according to the function file package, so that the management device has the control function corresponding to the function file package, and the control function is a function for controlling a display device.
[0036] Optionally, the update module is specifically configured to compare the version number in the function file package with the version number in the initial function file package to obtain a comparison result; if the comparison result meets a preset condition, the initial function file package in the shell application is updated according to the function file package.
[0037] Optionally, the device further includes:
[0038] The first verification module is used to perform signature verification on the function file package by using the shell application;
[0039] The update module is specifically configured to, if the signature verification passes, update the initial function file package in the shell application according to the function file package.
[0040] Optionally, the first verification module is specifically configured to use the shell application to obtain the execution file of the function file package, generate digest information of the execution file; use the shell application to decrypt the digest file of the function file package to obtain the decrypted digest information; compare the digest information of the execution file and the decrypted digest information; if the digest information of the execution file is the same as the decrypted digest information, it is determined that the signature verification of the function file package passes.
[0041] Optionally, the device further includes:
[0042] The first receiving module is used to receive, by using the shell application, a call request and usage parameters sent by the terminal device through a target application; the call request includes: an application program interface of a preset function;
[0043] The call module is used to use the shell application to call the system permission of the display device through the application program interface of the preset function according to the call request and the usage parameters, so as to control the display device to execute the preset function;
[0044] The return module is used to use the shell application to obtain the execution result of the preset function from the display device and return the execution result to the terminal device.
[0045] Optionally, the device further includes:
[0046] The second verification module is used to perform signature verification on the call request by using the shell application;
[0047] The calling module is specifically configured to, if the signature verification passes, use the shell application program to call the system permission of the display device through the application program interface of the preset function according to the calling request and the usage parameters, so as to control the display device to execute the preset function.
[0048] Optionally, the device further includes:
[0049] A establishing module, configured to establish a communication connection between the update package management program and the shell application program in a cross-process calling manner;
[0050] A obtaining module, configured to obtain the function file package from the update package management program through the shell application program.
[0051] In a third aspect, an embodiment of the present invention further provides a management device, including: a memory and a processor, where the memory stores a computer program executable by the processor, and when the processor executes the computer program, the device control method described in any item of the first aspect above is implemented.
[0052] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is read and executed, the device control method described in any item of the first aspect above is implemented.
[0053] The beneficial effects of the present invention are as follows: An device control method provided by an embodiment of the present invention is applied to a management device installed with a target board. A shell application program and an update package management program are running on the target board, and includes: receiving a function file package sent by a terminal device through the update package management program; updating an initial function file package in the shell application program running on the target board according to the function file package, so that the management device has a control function corresponding to the function file package, and the control function is used to control a display device. The management device installed with the target board receives the function file package sent by the terminal device through the update package management program and the shell application program, and the control function can be automatically updated according to the function file package. When performing function update, it is not necessary for the board manufacturer to sign again, making the update of the control function more convenient and improving the efficiency of the control function update. Description of the Drawings
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained according to these drawings without creative efforts.
[0055] Figure 1A structural schematic diagram of a device control system provided by an embodiment of the present invention;
[0056] Figure 2 A flowchart of a device control method provided by an embodiment of the present invention;
[0057] Figure 3 A flowchart of a device control method provided by an embodiment of the present invention;
[0058] Figure 4 A flowchart of a device control method provided by an embodiment of the present invention;
[0059] Figure 5 A flowchart of a device control method provided by an embodiment of the present invention;
[0060] Figure 6 A flowchart of a device control method provided by an embodiment of the present invention;
[0061] Figure 7 A flowchart of a device control method provided by an embodiment of the present invention;
[0062] Figure 8 A structural schematic diagram of a device control device provided by an embodiment of the present invention;
[0063] Figure 9 A structural schematic diagram of a management device provided by an embodiment of the present invention. Detailed implementation manners
[0064] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention.
[0065] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the scope of protection of the present application.
[0066] In the description of the present application, it should be noted that if terms such as "upper", "lower", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship when the product of this application is normally placed, it is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present application.
[0067] In addition, the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0068] It should be noted that, without conflict, the features in the embodiments of the present application can be combined with each other.
[0069] With the rapid development of science and technology, there are more and more various management devices. A board card can be installed on the management device, and the control of the display device can be achieved through the board card on the management device.
[0070] In the related art, different board card manufacturers have different control methods for the same control function. If a target control instruction is received, it is necessary to determine the installed target board card, and then determine the target control method of the target board card for the target control instruction. The target board card controls the display device according to the target control method. Among them, because different board card manufacturers have different system call methods, when a new function is added to the target board card, the board card manufacturer needs to re-sign the target board card before it can call the system interface through the target board card, and then a new control function can be added to the target board card.
[0071] For example, different board card manufacturers have different API (Application Programming Interface) signatures and API module definitions for different control functions. By way of example, for the screenshot function, the instruction of manufacturer A is: ScreenShotManager.sreenshot(); the instruction of manufacturer B is: SurfaceControl.screenshot(int width, int height); when adding a new control function, it is necessary to interface with the board card manufacturer for the required function, and the process is cumbersome. Moreover, when interfacing with a new manufacturer for existing functions, it is also necessary to re-interface and test.
[0072] In addition, if the process of adding the signature of the board manufacturer is not added, any ordinary application can call the system API, which will include some risky APIs, such as restarting the device, silently installing applications, uninstalling applications, etc., increasing system risks. Therefore, this solution also has significant drawbacks.
[0073] In order to solve the problem in related technologies that when adding a new control function for a target board on a management device, it is necessary to manually connect with the corresponding board manufacturer, and the process is relatively cumbersome. An embodiment of the present application provides a device control method. The management device installed with the target board receives the function file package sent by the terminal device through the update package management program and the shell application program, and can realize the automatic update of the control function according to the function file package. When performing function update, it is not necessary for the board manufacturer to sign again, making the update of the control function more convenient and improving the efficiency of the control function update.
[0074] Figure 1 The following is a schematic structural diagram of a device control system provided by an embodiment of the present invention, as Figure 1 shown, the system may include: a display device 101, a management device 102, and a terminal device 103.
[0075] Among them, a target board 1011 may be installed on the management device 102, and a shell application program and an update package management program are running in the target board 1011. The display device 101 and the management device 102 are communicatively connected, and the terminal device 103 and the management device 102 are also communicatively connected.
[0076] In practical applications, the terminal device 103 can remotely control the function of the display device 101 through the target board 1011 in the management device 102, and obtain the function control result for the display device 101, and can realize remote monitoring and control of the display device 101. The function control may include at least one of the following: screenshot, screen recording, restarting the device, installing applications, etc.
[0077] In the embodiment of the present application, the terminal device 103 can send a call request to the management device 102, the management device 102 can receive the call request, and the management device 102 can use the shell application program to control the display device 101 to execute the corresponding function according to the call request to obtain the function control result; the display device 101 feeds back the function control result to the terminal device 103 through the management device 102.
[0078] In some embodiments, the terminal device 103 may send a function file package to the management device 102. The management device 102 receives the function file package sent by the terminal device 103 through the update package management program, and updates the initial function file package in the shell application running on the target board 1011 according to the function file package, so that the management device 102 has the control function corresponding to the function file package, and the control function is the function of controlling the display device 101.
[0079] The following takes the management device 102 as the execution subject to explain a device control method provided in the embodiments of the present application.
[0080] Figure 2 The flowchart of a device control method provided in the embodiments of the present invention is shown as Figure 2 shown, and the method may include:
[0081] S201. Receive the function file package sent by the terminal device through the update package management program.
[0082] Among them, a target board is installed in the management device, and a shell application and an update package management program are running in the target board.
[0083] It should be noted that the shell application running in the target board is the shell application signed by the board manufacturer, not an empty shell application. Among them, when the shell application is the shell application signed by the board manufacturer, the shell application can call the system permission of the display device.
[0084] In the embodiments of the present application, the management device can be used as the controller of the display device, and the system permission of the display device can also be regarded as the system permission of the management device, that is, the shell application can call the system permission of the display device, and it can also be considered that the shell application can call the system permission of the display device.
[0085] In some embodiments, the terminal device sends a function file package to the management device, and the management device can receive the function file package through the update package management program. Among them, the shell application can be abbreviated as shell.
[0086] S202. Update the initial function file package in the shell application running on the target board according to the function file package, so that the management device has the control function corresponding to the function file package.
[0087] Among them, the control function is the function of controlling the display device.
[0088] Optionally, before the above S201, the terminal device may also send an initial function file package to the management device, and the management device may receive the initial function package file and set the initial function package file in the shell application.
[0089] In the embodiments of the present application, the management device realizes the control function for the display device according to the target board and the shell application program running on the target board. Updating the functions of the target board can also be understood as updating the functions of the shell application program.
[0090] It should be noted that the terminal device can remotely control the functions of the display device through the management device, and the functions that can be controlled include: the control functions corresponding to the function file package.
[0091] In summary, a device control method provided by an embodiment of the present invention is applied to a management device installed with a target board. A shell application program and an update package management program are running in the target board, and the method includes: receiving a function file package sent by a terminal device through the update package management program; updating an initial function file package in the shell application program running on the target board according to the function file package, so that the management device has the control function corresponding to the function file package, and the control function is used to control the display device. The management device installed with the target board receives the function file package sent by the terminal device through the update package management program and the shell application program, and can realize the automatic update of the control function according to the function file package. When performing function update, there is no need for the board manufacturer to sign again, making the update of the control function more convenient and improving the efficiency of the control function update.
[0092] Optionally, Figure 3 The following is a schematic flowchart of a device control method provided by an embodiment of the present invention. As Figure 3 shown, in S201 above, updating the initial function file package in the shell application program running on the target board according to the function file package may include:
[0093] S301. Compare the version number in the function file package with the version number in the initial function file package to obtain a comparison result.
[0094] S302. If the comparison result meets a preset condition, update the function of the initial function file package in the shell application program according to the function file package.
[0095] In some embodiments, the shell application program on the management device may compare the version number in the newly received function file package in the update package management program with the version number in the initial function file package under the current shell application program system folder; determine whether the version number in the newly received function file package in the update package management program is the same as the version number in the initial function file package. If the version number in the newly received function file package is higher than the version number in the initial function file package, replace the initial function file package under the shell application program system folder with the newly received function file package in the update package management program, and dynamically uninstall the initial function file package.
[0096] Optionally, Figure 4 is a schematic flowchart of a device control method provided by an embodiment of the present invention. As Figure 4 shown, before updating the initial function file package in the shell application running on the target board according to the function file package in S202 above, the method may further include:
[0097] S401. Use the shell application to perform signature verification on the function file package.
[0098] Among them, the signature verification method of the function file package set in the shell application can be used to perform signature verification on the function file package.
[0099] The process of updating the initial function file package in the shell application running on the target board according to the function file package in S202 above may include:
[0100] S402. If the signature verification passes, update the initial function file package in the shell application according to the function file package.
[0101] It should be noted that if the signature verification passes, it indicates that the function file package is relatively reliable. Update the initial function file package in the shell application according to the function file package, so as to realize the function update of the target board in the management device. When performing function update, the function file package can be set in the shell application, and the corresponding control function of the display device can be realized based on the shell application in the target board of the management device.
[0102] Optionally, Figure 5 is a schematic flowchart of a device control method provided by an embodiment of the present invention. As Figure 5 shown, the process of using the shell application to perform signature verification on the function file package in S401 above may include:
[0103] S501. Use the shell application to obtain the execution file of the function file package and generate the digest information of the execution file.
[0104] In an embodiment of the present application, the terminal device can obtain the execution file corresponding to the control function and generate the digest of the execution file; encrypt the digest with the private key to generate an encrypted digest file; package the execution file and the encrypted digest file into a function file package, and send the function file package to the management device, and the management device can receive the function file package.
[0105] In some embodiments, the terminal device may upload the function file package to the update package management software of the management device. The update package management software sends the function file package to the shell application. The management device may use the shell application to obtain the execution file of the function file package and generate the digest information of the execution file.
[0106] Optionally, the execution file may include multiple preset requests, caller identity information (preset with the signature of the terminal device), API information that can be used to call the board device system, and information for returning function control results.
[0107] S502. Use the shell application to decrypt the digest file of the function file package to obtain the decrypted digest information.
[0108] Among them, the shell application may include the signature public key of the terminal device.
[0109] In the embodiments of the present application, the management device may use the shell application to decrypt the digest file of the function file package to obtain the decrypted digest information.
[0110] S503. Compare the digest information of the execution file with the decrypted digest information.
[0111] It should be noted that the management device compares whether the digest information of the execution file is the same as the decrypted digest information.
[0112] S504. If the digest information of the execution file is the same as the decrypted digest information, it is determined that the signature verification of the function file package passes.
[0113] Among them, if the digest information of the execution file is the same as the decrypted digest information, it is determined that the signature verification of the function file package passes, indicating that the function file package is reliable and function update can be performed based on the function file package.
[0114] Optionally, Figure 6 is a schematic flowchart of a device control method provided by an embodiment of the present invention. As Figure 6 shown, the method may include:
[0115] S601. Use the shell application to receive the call request and usage parameters sent by the terminal device through the target application.
[0116] In some embodiments, the terminal device may send a call request and usage parameters to the management device. The management device uses the shell application to receive the call request and usage parameters through cross-process calling.
[0117] In addition, the target application may use the system permissions of the display device. Among them, the functions that the target application can request may be the same as the functions corresponding to the function file package.
[0118] S602. Use a shell application to call the system permissions of the display device through the application programming interface with preset functions according to the call request and usage parameters, so as to control the display device to execute the preset functions.
[0119] In the embodiment of the present application, the management device uses a shell application to call the system permissions of the display device through the application programming interface with preset functions according to the call request and usage parameters. The preset function is the control function corresponding to the call request, so as to control the display device to execute the preset functions.
[0120] Exemplarily, the preset functions may include at least one of the following: screenshot, screen recording, restarting the device, installing applications, etc.
[0121] S603. Use a shell application to obtain the execution result of the preset function from the display device and return the execution result of the preset function to the terminal device.
[0122] In some embodiments, the management device may use a shell application to obtain the execution result of the preset function from the display device; and send the execution result of the preset function to the terminal device, and the terminal device may receive the execution result of the preset function.
[0123] Exemplarily, the execution result of the preset function may include at least one of the following: screenshot result, screen recording result, device restart result, application installation result, etc.
[0124] Optionally, Figure 7 It is a schematic flowchart of a device control method provided by an embodiment of the present invention. As Figure 7 shown, before using a shell application in the above S602 to call the system permissions of the display device through the application programming interface with preset functions according to the usage parameters to control the display device to execute the preset functions, the method further includes:
[0125] S701. Use a shell application to perform signature verification on the call request.
[0126] Using a shell application in the above S602 to call the system permissions of the display device through the application programming interface with preset functions according to the call request and usage parameters to control the display device to execute the preset functions may include:
[0127] S702. If the signature verification passes, use a shell application to call the system permissions of the display device through the application programming interface with preset functions according to the call request and usage parameters to control the display device to execute the preset functions.
[0128] It should be noted that the management device may use an asymmetric verification method to perform signature verification on the call request.
[0129] Optionally, the process of receiving the function file package sent by the terminal device in S101 above may include: establishing a communication connection between the update package management program and the shell application in a cross-process call manner; obtaining the function file package from the update package management program through the shell application.
[0130] It should be noted that the terminal device can upload the function file package to the update package management software of the management device, and the update package management software of the management device can send the function file package to the shell application of the management device in a cross-process call manner; the shell application of the management device can receive the function file package.
[0131] In summary, a device control method provided by an embodiment of the present invention is applied to a management device installed with a target board, and a shell application and an update package management program are running in the target board. The method includes: receiving a function file package sent by a terminal device through the update package management program; updating an initial function file package in the shell application running on the target board according to the function file package, so that the management device has a control function corresponding to the function file package, and the control function is used to control a display device. The management device installed with the target board receives the function file package sent by the terminal device through the update package management program and the shell application, and can realize the automatic update of the control function according to the function file package. When performing function update, it is not necessary for the board manufacturer to sign again, which makes the update of the control function more convenient and improves the efficiency of the control function update.
[0132] Moreover, by invoking the system permission of the display device through the shell application of the management device, the security of the display device control can be increased, and system risks can be avoided.
[0133] The following describes a device control device, a board device, a storage medium, etc. for executing the device control method provided in this application. For the specific implementation process and technical effects, refer to the relevant content of the above method, which will not be repeated below.
[0134] Figure 8 The following is a schematic structural diagram of a device control device provided by an embodiment of the present invention, as Figure 8 shown. The device is applied to a management device installed with a target board, and a shell application and an update package management program are running in the target board. The device includes:
[0135] A receiving module 801, configured to receive a function file package sent by a terminal device through an update package management program;
[0136] An update module 802, configured to update an initial function file package in the shell application running on the target board according to the function file package, so that the management device has a control function corresponding to the function file package, where the control function is a function for controlling a display device.
[0137] Optionally, the update module 802 is specifically configured to compare the version number in the function file package with the version number in the initial function file package to obtain a comparison result; if the comparison result meets a preset condition, the initial function file package in the shell application is updated according to the function file package.
[0138] Optionally, the device further includes:
[0139] A first verification module, configured to perform signature verification on the function file package by using the shell application;
[0140] The update module 802 is specifically configured to, if the signature verification passes, update the initial function file package in the shell application according to the function file package.
[0141] Optionally, the first verification module is specifically configured to use the shell application to obtain an execution file of the function file package, generate summary information of the execution file; use the shell application to decrypt a summary file of the function file package to obtain decrypted summary information; compare the summary information of the execution file with the decrypted summary information; if the summary information of the execution file is the same as the decrypted summary information, it is determined that the signature verification of the function file package passes.
[0142] Optionally, the device further includes:
[0143] A first receiving module, configured to use the shell application to receive a call request and usage parameters sent by the terminal device through a target application; the call request includes: an application programming interface of a preset function;
[0144] A call module, configured to use the shell application to call the system permission of the display device through the application programming interface of the preset function according to the call request and the usage parameters, so as to control the display device to execute the preset function;
[0145] A return module, configured to use the shell application to obtain an execution result of the preset function from the display device and return the execution result to the terminal device.
[0146] Optionally, the device further includes:
[0147] The second verification module is used to perform signature verification on the call request by using the shell application program;
[0148] The call module is specifically configured to, if the signature verification passes, use the shell application program to call the system permission of the display device through the application program interface of the preset function according to the call request and the usage parameters, so as to control the display device to execute the preset function.
[0149] Optionally, the device further includes:
[0150] The establishment module is used to establish a communication connection between the update package management program and the shell application program in a cross-process call manner;
[0151] The acquisition module is used to obtain the function file package from the update package management program through the shell application program.
[0152] The above device is used to execute the method provided in the foregoing embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0153] The above modules may be one or more integrated circuits configured to implement the above method. For example: one or more application specific integrated circuits (ASICs), or, one or more microprocessors (digital signal processors, DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when the above certain module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0154] Figure 9 It is a schematic structural diagram of a management device provided by an embodiment of the present invention. The management device is installed with a target board, and a shell application program runs in the target board.
[0155] As Figure 9 shown, the target board further includes: a processor 901 and a memory 902.
[0156] The memory 902 is used to store programs, and the processor 901 calls the programs stored in the memory 902 to execute the method embodiments described above. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0157] Optionally, the present invention further provides a program product, such as a computer-readable storage medium, including a program which is used to execute the method embodiments described above when being executed by a processor.
[0158] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division manners in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.
[0159] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0160] In addition, the functional units in each embodiment of the present invention can be integrated in a processing unit, or each unit exists physically alone, or two or more units are integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0161] The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods described in each embodiment of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks or optical discs that can store program codes.
[0162] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. An apparatus control method, characterized in that, A management device applied to install a target board card, where a shell application program and an update package management program are running in the target board card, including: Receiving a function file package sent by a terminal device through the update package management program; Updating an initial function file package in the shell application program running on the target board card according to the function file package, so that the management device has a control function corresponding to the function file package, the control function is a function for controlling a display device, and the control function includes at least one of screenshot, screen recording, restarting the device, and installing an application. The shell application program is a shell application program signed by the board card manufacturer; Before updating the initial function file package in the shell application program running on the target board card according to the function file package, the method further includes: Using the shell application program to perform signature verification on the function file package; Updating the initial function file package in the shell application program running on the target board card according to the function file package, including: If the signature verification passes, updating the initial function file package in the shell application program according to the function file package; The method further includes: Using the shell application program to receive a call request and usage parameters sent by the terminal device through a target application; the call request includes: an application program interface of a preset function; Using the shell application program to call the system permission of the display device through the application program interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function; Using the shell application program to obtain an execution result of the preset function from the display device and return the execution result to the terminal device.
2. The method according to claim 1, wherein Updating the initial function file package in the shell application program running on the target board card according to the function file package, including: Comparing the version number in the function file package with the version number in the initial function file package to obtain a comparison result; If the comparison result meets a preset condition, performing function update on the initial function file package in the shell application program according to the function file package.
3. The method according to claim 1, characterized in that, Performing signature verification on the function file package using the shell application program, including: Using the shell application program to obtain an execution file of the function file package and generate summary information of the execution file; Using the shell application program to decrypt a summary file of the function file package to obtain decrypted summary information; Comparing the summary information of the execution file with the decrypted summary information; If the summary information of the execution file is the same as the decrypted summary information, determining that the signature verification of the function file package passes.
4. The method according to claim 1, wherein Before using the shell application program to call the system permission of the display device through the application program interface of the preset function according to the call request and the usage parameters to control the display device to execute the preset function, the method further includes: Using the shell application program to perform signature verification on the call request; Using the shell application, according to the call request and the usage parameters, through the application programming interface of the preset function, invoking the system permissions of the display device to control the display device to execute the preset function, includes: If the signature verification passes, using the shell application, according to the call request and the usage parameters, through the application programming interface of the preset function, invoking the system permissions of the display device to control the display device to execute the preset function.
5. The method according to claim 1, wherein After receiving the function file package sent by the terminal device through the update package management program, the method further includes: Establishing a communication connection between the update package management program and the shell application in a cross-process call manner; Obtaining the function file package from the update package management program through the shell application.
6. An apparatus control device, characterized in that, Applied to a management device for installing a target board, where a shell application and an update package management program are running in the target board, includes: A receiving module, configured to receive the function file package sent by the terminal device through the update package management program; A function update module, configured to update the initial function file package in the shell application running on the target board according to the function file package, so that the management device has the control function corresponding to the function file package, the control function is a function for controlling a display device, and the control function includes at least one of screenshot, screen recording, restarting the device, and installing an application, and the shell application is a shell application signed by the board manufacturer; The device further includes: A first verification module, configured to use the shell application to perform signature verification on the function file package; The update module is specifically configured to, if the signature verification passes, update the initial function file package in the shell application according to the function file package; A first receiving module, configured to use the shell application to receive the call request and usage parameters sent by the terminal device through the target application; the call request includes: the application programming interface of the preset function; An invocation module, configured to use the shell application, according to the call request and the usage parameters, through the application programming interface of the preset function, invoke the system permissions of the display device to control the display device to execute the preset function; A return module, configured to use the shell application to obtain the execution result of the preset function from the display device and return the execution result to the terminal device.
7. A management device, characterized in that, Includes: A memory and a processor, the memory stores a computer program executable by the processor, and when the processor executes the computer program, it implements the device control method described in any one of claims 1-5 above.
8. A computer-readable storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is read and executed, it implements the device control method described in any one of claims 1-5 above.
Citation Information
Patent Citations
Application program update method and device, electronic apparatus, server, and storage medium
CN109189459A
Screen control method and system, cloud server and controller
CN111343270A
Firmware program upgrading method and apparatus, and display control device
CN113721953A