Terminal device management method, apparatus, medium, and device
By setting up independent detection function partitions and user function partitions in the terminal device and dynamically mounting them according to the operating mode, the isolation between production detection functions and user application functions is achieved, which solves the problem of production detection function failure caused by changes in user-end functions and reduces the production and operation costs of enterprises.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN TCL NEW-TECH CO LTD
- Filing Date
- 2026-04-08
- Publication Date
- 2026-07-03
AI Technical Summary
In existing technologies, the user-side product functions and production-side detection functions of terminal equipment are coupled, which leads to the failure of production detection functions, causing production line stagnation and increasing the production and operation costs of enterprises.
Independent detection function partitions and user function partitions are set up in the terminal device, and one is dynamically selected and mounted according to the operating mode to achieve complete isolation of the two types of functions. Production detection is performed through the detection function partition, and user response is provided through the user function partition.
It effectively avoids the impact of user software changes on production testing functions, eliminates the risk of production line shutdowns, and significantly reduces enterprise production and operating costs.
Smart Images

Figure CN122331835A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of terminal equipment technology, and in particular to a terminal equipment management method, apparatus, medium, and device. Background Technology
[0002] Currently, the software systems of terminal devices often integrate two types of functions: one is product application functions for users, and the other is product testing functions for factory production. These two types of functions belong to different application scenarios, yet coexist in the same system architecture.
[0003] The user-end product functions are diverse. Once they are adjusted or defects are fixed, it is very likely to affect the coupled production and testing functions. In severe cases, it may paralyze the function, directly causing the production line to stop, and thus significantly increasing the company's production and operating costs. Summary of the Invention
[0004] Therefore, it is necessary to provide terminal equipment management methods, devices, media, and equipment to solve the problem that the coupling between user-facing product application functions and factory production-facing product testing functions in the existing technology may lead to product testing function failure, directly causing production line shutdowns, and thus significantly increasing the production and operating costs of enterprises.
[0005] In a first aspect, embodiments of this application provide a terminal device management method, applied to a target terminal device, wherein the target terminal device is provided with independent detection function partitions and user function partitions, and the method includes: The current operating mode of the target terminal device is detected; wherein, the current operating mode includes production mode and user mode, in which the detection function partition is mounted as a working data partition, and in which the user function partition is mounted as a working data partition in the user mode; When the current operating mode is production mode, production detection is performed using data within the detection function partition; When the current operating mode is user mode, user responses are performed using data within the user function partition.
[0006] In some embodiments of this application, the methods for setting up independent detection function partitions and user function partitions include: Obtain the pre-written packet; The pre-set detection function partition image and user function partition image in the pre-written package are burned to the corresponding storage partition of the target terminal device, so that independent detection function partition and user function partition are set in the target terminal device.
[0007] In some embodiments of this application, obtaining the pre-written packet includes: Obtain a pre-copy package generated by a reference terminal device; wherein the reference terminal device includes a partitioned and mounted detection function partition, and the reference terminal device obtains a detection function partition image by storing production detection files into the detection function partition and performing mirroring processing on the detection function partition through a mirroring instruction, and then exports the detection function partition image through an export instruction to obtain the pre-copy package.
[0008] In some embodiments of this application, the data within the detection function partition includes process files, application files, and hardware abstraction layer service files. The step of performing production detection using the data within the detection function partition when the current operating mode is production mode includes: When the current operating mode is production mode, the process file is started to perform communication detection with the host computer; Launch the application file to coordinate the detection process and display the detection interface; The hardware abstraction layer service file is started to interface with the hardware module and control its detection.
[0009] In some embodiments of this application, the data within the detection function partition includes production testing files from a reference terminal device, the reference terminal device including a partitioned and mounted detection function partition, and after performing production testing using the data within the detection function partition, the process further includes: When a fault is detected in the production inspection file, an updated inspection function partition image is obtained; wherein, the updated production inspection file is copied and overwritten to the inspection function partition of the reference terminal device to obtain an updated inspection function partition, and the updated inspection function partition is mirrored by a mirroring command to obtain an updated inspection function partition image. The pre-written packet of the target terminal device is replaced based on the updated detection function partition image, so as to update the production detection file.
[0010] In some embodiments of this application, the data within the user function partition includes user applications, system service files, and user interaction resources. When the current operating mode is user mode, responding to users using the data within the user function partition includes: When the current operating mode is user mode, the terminal device application functions are provided through the user application. The system service files are used for parsing user operation commands, scheduling device hardware resources, and managing data storage. The user interaction resources are used to respond to remote control operations, provide interface display feedback, and display operation status prompts.
[0011] In some embodiments of this application, after responding to the user using data within the user function partition, the method further includes: When a user function update requirement is detected, a user function update package is obtained; wherein, the user function update package contains the user application to be updated, system service components and interactive resource files, and the update package is not associated with or coupled with the production test files in the detection function partition; The user function update package is imported into the user function partition to update the data within the user function partition.
[0012] Secondly, embodiments of this application also provide a terminal device management device, applied to a target terminal device, wherein the target terminal device is provided with independent detection function partitions and user function partitions, and the terminal device management device includes: The mode detection module is used to detect the current operating mode of the target terminal device; wherein, the current operating mode includes production mode and user mode, the detection function partition is mounted as a working data partition in the production mode, and the user function partition is mounted as a working data partition in the user mode. The first mode management module is used to perform production detection using data within the detection function partition when the current operating mode is production mode. The second mode management module is used to respond to users using data within the user function partition when the current operating mode is user mode.
[0013] Thirdly, embodiments of this application also provide a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the terminal device management method described above.
[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the aforementioned terminal device management method.
[0015] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.
[0016] This invention provides a terminal device management method, apparatus, medium, and equipment. By setting independent detection function partitions and user function partitions in the target terminal device, and dynamically selecting and mounting the corresponding partition according to the current operating mode, complete isolation between production detection functions and user application functions is achieved. This includes mounting and using only the detection function partition to perform hardware production detection in production mode, and mounting and using only the user function partition to provide a normal user experience in user mode. This solution, through partition isolation and mode-switching mounting, ensures that the two types of functions do not interfere with each other and operate independently. When user-end functions are frequently iterated, modified, or have defects fixed due to diverse needs, only the user function partition is affected, without impacting the fixed detection function partition dedicated to production. This effectively avoids production detection function abnormalities or paralysis caused by user software changes, completely eliminating the risk of production line shutdowns and significantly reducing enterprise production and operating costs and downtime losses. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] in: Figure 1 A flowchart illustrating the terminal device management method; Figure 2 To obtain a schematic diagram of the pre-written packet; Figure 3 This is a schematic diagram of the terminal device management device. Figure 4 This is a structural block diagram of the terminal device. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0022] This invention provides a terminal device management method, apparatus, medium, and equipment.
[0023] Specifically, the terminal device management device can be integrated into the terminal device, which can be a television, mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer (PC) or server, etc. The server can be a single server or a server cluster composed of multiple servers.
[0024] For example, consider a television as an example: To optimize the user experience, software engineers upgraded the decoding module for the "video-on-demand" function. Although the upgraded code had hidden defects, it did not affect users' normal video viewing. However, it unexpectedly caused the factory's function for testing screen display accuracy to be unable to call the hardware testing interface.
[0025] As a result, the screen testing stage of the factory production line completely fails when testing TV hardware, making it impossible to determine whether the hardware is up to standard. Production must be suspended while software engineers identify defects, fix the code, recompile the entire software, and deploy it to the production line equipment. This process often takes several hours or even days, during which the entire production line is at a standstill. This not only incurs direct costs from idle equipment and waiting personnel but can also trigger a chain reaction of order delivery delays, significantly increasing the company's production and operational burden.
[0026] For the above issues, please refer to Figure 1 , Figure 1This is a flowchart illustrating the terminal device management method provided in this application embodiment. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings. Specifically, the terminal device management method provided in this application embodiment is applied to a target terminal device, that is, a target device for management, which has independent detection function partitions and user function partitions. The detection function partition is a storage and operation partition specifically used for storing production detection-related data and carrying out production detection functions. The user function partition is a storage and operation partition specifically used for storing user application-related data and carrying out user application functions.
[0027] The specific process of the terminal device management method provided in this application embodiment is as follows: S101 detects the current operating mode of the target terminal device.
[0028] The current operating modes include production mode and user mode. Production mode refers to the operating mode where the target terminal device is in the factory production stage, used for product inspection before shipment. In production mode, the inspection function partition is mounted as the working data partition. User mode refers to the operating mode where the target terminal device is used to meet the daily application needs of users. In user mode, the user function partition is mounted as the working data partition.
[0029] In some embodiments of this application, the setting of independent detection function partitions and user function partitions specifically involves the following steps: obtaining a pre-written package; burning the preset detection function partition image and user function partition image in the pre-written package to the corresponding storage partition of the target terminal device, so as to set independent detection function partitions and user function partitions in the target terminal device.
[0030] The pre-written package refers to a data package pre-made during the equipment manufacturing process, containing two core files: a detection function partition image and a user function partition image. The detection function partition image is an image file containing all the data, programs, and configuration information required for production testing; after being burned, it can directly form an independent detection function partition on the target terminal device. The user function partition image is an image file containing all the data, programs, and configuration information required for user applications; after being burned, it can directly form an independent user function partition on the target terminal device.
[0031] In some embodiments of this application, the process of obtaining the pre-copy packet is as follows: obtaining the pre-copy packet generated by the reference terminal device.
[0032] The reference terminal device includes pre-defined and mounted testing function partitions. It stores production testing files in these partitions, performs mirroring operations on them using mirroring commands to obtain a testing function partition image, and then exports this image using export commands to obtain a pre-written package. The reference terminal device is the partition template device for the target terminal device, having pre-defined and mounted the testing function partitions. Production testing files refer to the complete set of files supporting the operation of the production testing functions.
[0033] For example, such as Figure 2 As shown, firstly, a terminal device that has been successfully powered on and is running normally is selected as the reference terminal device. The testing function partition is then divided and mounted on this reference terminal device to ensure that the partition has the basic conditions for read / write and operation. Next, the complete set of files supporting production testing (such as hardware testing programs, communication protocol files, testing logic scripts, etc.) is completely stored in the mounted testing function partition of the reference terminal, ensuring that all functional modules required for production testing are in place. Then, an image command (such as the Dump command) is used to completely copy the testing function partition containing the complete production testing files in the reference terminal, generating a testing function partition image containing all data, programs, and configurations within the partition, ensuring that the image file is completely consistent with the original partition content. Finally, an export command (such as the dd command) is used to export the created testing function partition image, which is then integrated with the pre-prepared user function partition image and packaged into a complete pre-written package for subsequent batch partition deployment on target terminal devices.
[0034] Optionally, during the subsequent burning process, the detection function partition in the pre-written package is image-burned to the dedicated storage area of the target terminal device to form an independent detection function partition; at the same time, the user function partition is image-burned to another independent storage area to form a user function partition. The two partitions are logically independent and do not occupy each other's storage resources.
[0035] Optionally, when detecting the current operating mode, the target terminal device actively reads pre-set mode identification information or captures externally input trigger signals. By recognizing and parsing these identifiers or signals, it clearly distinguishes the operating mode that the device currently needs to activate. For example, during the television production stage, the production line issues a production line trigger command, and the terminal device detects this signal and determines it to be in production mode; after the television leaves the factory, the user triggers a default command when turning it on, and the device detects this and determines it to be in user mode.
[0036] Optionally, if the detection is in production mode, the target terminal device will mount the independent detection function partition as a working data partition, and this partition will adopt an unencrypted strategy to adapt to the batch detection scenario of multiple devices on the production line; if the detection is in user mode, the target terminal device will mount the user function partition as a working data partition, and at the same time enable an encryption strategy to ensure the security of user data, ensuring that the user function partition of each motherboard can only run on the corresponding motherboard. The dynamic selection and mounting of the two types of partitions is achieved through mode detection, laying the foundation for subsequent function execution in different scenarios.
[0037] S102, when the current operating mode is production mode, performs production detection by detecting data within the function partition.
[0038] Production testing refers to the process of conducting compliance testing on the hardware performance and software functionality integrity of target terminal devices based on preset data within the testing function zone.
[0039] In some embodiments of this application, the data within the detection function partition includes process files, application files, and hardware abstraction layer service files. When the current operating mode is production mode, production detection is performed using the data within the detection function partition, specifically executing the following steps: When the current operating mode is production mode, the process file is started to communicate with the host computer for detection. The application file is started to coordinate the detection process and display the detection interface. The hardware abstraction layer service file is started to interface with the hardware module and control its detection.
[0040] Among them, process files refer to executable files used to start specific detection-related processes, application files refer to a collection of files used to coordinate the entire production and detection process and provide detection interface display functions, and hardware abstraction layer service files refer to files used to encapsulate the hardware interface details of the target terminal device and provide standardized hardware access services.
[0041] Optionally, upon entering production mode, the process file (such as the Android native process) within the detection function partition is first launched. This file is responsible for establishing a communication connection with the production line's host computer, enabling interactive operations such as receiving detection commands and uploading detection data, ensuring real-time linkage between the terminal device and the host computer. Additionally, the application file is launched. This file is responsible for parsing host computer commands, planning detection steps (such as detecting screen display first, then audio output), and displaying information such as detection progress, detection items, and pass / fail status on the terminal display interface for easy viewing by production line personnel. Furthermore, the Hardware Abstraction Layer (HAL) service file is launched. This file directly interfaces with the terminal device's hardware interfaces (such as screen driver interfaces, audio chip interfaces, network module interfaces, etc.). Based on the scheduling commands of the application file, it controls each hardware module to perform corresponding detection operations (such as screen pixel illumination detection and audio playback frequency detection), and feeds back the hardware operating status to the application file.
[0042] In some embodiments of this application, the data within the detection function partition includes production test files from a reference terminal device. The reference terminal device includes a partitioned and mounted detection function partition. After production test is performed using the data within the detection function partition, the following steps are further performed: When a fault is detected in the production test file, an updated detection function partition image is obtained. Based on the updated detection function partition image, the pre-written packet of the target terminal device is replaced to update the production test file.
[0043] Specifically, the updated production testing files are copied and overwritten to the testing function partition of the reference terminal device to obtain the updated testing function partition. The updated testing function partition is then mirrored using a mirroring command to obtain the updated testing function partition image.
[0044] Optionally, during production testing, if the system detects abnormal test results (such as inability to identify hardware modules or test data exceeding thresholds) and determines that the production testing files are faulty, the problematic production testing files can be modified or replaced on the reference terminal device. The updated complete set of production testing files is then copied and overwritten to the testing function partition of the reference terminal, forming an updated testing function partition. This partition is then imaged using image commands to generate an updated testing function partition image. After the target terminal device obtains the updated testing function partition image, it imports it into the original pre-copy package, replacing the old image to form an updated pre-copy package. The new pre-copy package is then re-burned to the target terminal device, completing the update of the production testing files. Since the testing function partition and the user function partition are independent, there is no need to recompile the entire software system of the terminal device.
[0045] S103, when the current operating mode is user mode, responds to users using data within the user function partition.
[0046] User response refers to the process of responding to user commands and implementing functions based on application data within the user's functional area.
[0047] In some embodiments of this application, the data within the user function partition includes user applications, system service files, and user interaction resources. When the current operating mode is user mode, user responses are performed using the data within the user function partition, specifically executing the following steps: When the current operating mode is user mode, the user application provides terminal device application functions. The system service files are used for parsing user operation commands, scheduling device hardware resources, and managing data storage. The user interaction resources are used for remote control operation responses, interface display feedback, and operation status prompts.
[0048] Among them, user applications refer to various functional programs developed to meet the daily needs of users, system service files refer to the collection of background service files that support the basic operation of terminal devices, and user interaction resources are various resource files used to realize information interaction between users and terminal devices.
[0049] Optionally, upon entering user mode, user applications within the user function partition (such as video playback apps, browsers, settings tools, etc.) can be launched by the user, directly providing the core application functions of the terminal device to meet daily usage needs. In addition, system service files run in real time, responsible for parsing user operation commands (such as remote control buttons and touchscreen operations), scheduling the terminal device's hardware resources (such as CPU, memory, and storage), and managing user data (such as cache files, playback history, and settings parameters) to ensure the normal operation of applications. Furthermore, user interaction resources (such as interface layout files, button response scripts, and status prompt sound effects / icons) can respond in real time to user operations. For example, when a user presses a remote control volume button, the interface displays a volume adjustment bar, and the operation is confirmed through sound effects; when the device successfully connects to the network, the interface displays a network icon, thereby enhancing the user experience.
[0050] In some embodiments of this application, after responding to the user using data within the user function partition, the following steps are further performed: when a user function update request is detected, a user function update package is obtained. The user function update package is imported into the user function partition to update the data within the user function partition.
[0051] The user function update package contains user applications, system service components, and interactive resource files to be updated, and the update package is not associated with or coupled with the production test files in the test function partition.
[0052] Optionally, the system can identify user feature update requests, including but not limited to application version upgrades, system function optimizations, and user interface adjustments, through user-triggered events (such as clicking the application update button) or background detection. In this case, the system obtains the user feature update package from a cloud server or other connected computer devices. This package contains only the user application installation package to be updated, system service component upgrade files, and interactive resource update files, and has no code association or functional coupling with the production detection files in the detection function partition. The user feature update package is then directly imported into the user function partition, replacing the corresponding old files in the partition to complete the user feature update. The entire process only involves the user function partition and will not affect the detection function partition, ensuring that the production detection function is not interfered with.
[0053] The above embodiments achieve complete isolation between production testing functions and user application functions by setting independent testing function partitions and user function partitions in the target terminal device and dynamically selecting and mounting the corresponding partition according to the current operating mode. This includes mounting and using only the testing function partition to perform hardware production testing in production mode, and mounting and using only the user function partition to provide a normal user experience in user mode. This solution, through partition isolation and mode-switching mounting, ensures that the two types of functions do not interfere with each other and operate independently. When user-side functions are frequently iterated, modified, or have defects fixed due to diverse needs, only the user function partition is affected, without impacting the fixed testing function partition dedicated to production. This effectively avoids production testing function abnormalities or paralysis caused by user software changes, completely eliminating the risk of production line shutdowns and significantly reducing enterprise production and operating costs and downtime losses.
[0054] To facilitate better implementation of the terminal device management method of this application, this application also provides a terminal device management apparatus based on the above-described terminal device management method. The meanings of the terms used are the same as in the above-described terminal device management method, and specific implementation details can be found in the descriptions of the method embodiments.
[0055] Please see Figure 3 , Figure 3 This is a schematic diagram of the terminal device management device provided in this application embodiment, applied to a target terminal device. The target terminal device has independent detection function partitions and user function partitions. The terminal device management device includes: The mode detection module 301 is used to detect the current operating mode of the target terminal device; the current operating mode includes production mode and user mode. In production mode, the function partition is detected as a working data partition, and in user mode, the user function partition is detected as a working data partition. The first mode management module 302 is used to perform production detection by detecting data within the function partition when the current operating mode is production mode; The second mode management module 303 is used to respond to users by using data within the user function partition when the current operating mode is user mode.
[0056] The above embodiments, by setting independent detection function partitions and user function partitions in the target terminal device, use the mode detection module 301 to detect the current operating mode of the target terminal device, and the first mode management module 302 and the second mode management module 303 to dynamically select and mount the corresponding partition according to the current operating mode. This achieves complete isolation between production detection functions and user application functions, including mounting and using only the detection function partition to perform hardware production detection in production mode, and mounting and using only the user function partition to provide a normal user experience in user mode. This solution, through partition isolation and mode switching mounting, ensures that the two types of functions do not interfere with each other and operate independently. When user-end functions are frequently iterated, modified, or have defects repaired due to diverse needs, only the user function partition is affected, and the fixed detection function partition dedicated to production is not affected. This effectively avoids abnormal or paralyzed production detection functions due to user software changes, completely eliminates the risk of production line stagnation caused by this, and significantly reduces the enterprise's production and operation costs and downtime losses.
[0057] In some embodiments of this application, the methods for setting up independent detection function partitions and user function partitions include: Obtain the pre-written packet; The pre-set detection function partition image and user function partition image in the pre-written package are burned to the corresponding storage partition of the target terminal device, so that independent detection function partition and user function partition can be set in the target terminal device.
[0058] In some embodiments of this application, obtaining the pre-written packet includes: Obtain the pre-copy package generated by the reference terminal device; wherein the reference terminal device includes a partitioned and mounted detection function partition. The reference terminal device obtains the detection function partition image by storing the production detection file into the detection function partition and performing image processing on the detection function partition through the image processing instruction, and then exports the detection function partition image through the export instruction to obtain the pre-copy package.
[0059] In some embodiments of this application, the data within the detection function partition includes process files, application files, and hardware abstraction layer service files. When the current operating mode is production mode, the first mode management module 302 performs production detection by detecting the data within the detection function partition, including: When the current operating mode is production mode, start the process file to detect communication with the host computer; Launch the application file to coordinate the detection process and display the detection interface; Start the Hardware Abstraction Layer service file to interface with the hardware module and control its detection.
[0060] In some embodiments of this application, the data within the detection function partition includes production testing files from a reference terminal device. The reference terminal device includes a partitioned and mounted detection function partition. After the first mode management module 302 performs production testing using the data within the detection function partition, it further includes: When a fault is detected in the production inspection file, an updated inspection function partition image is obtained. Specifically, the updated production inspection file is copied and overwritten to the inspection function partition of the reference terminal device to obtain the updated inspection function partition. The updated inspection function partition is then imaged using an image command to obtain the updated inspection function partition image. The pre-written packets of the target terminal device are replaced based on the updated detection function partition image, so as to update the production detection files.
[0061] In some embodiments of this application, the data within the user function partition includes user applications, system service files, and user interaction resources. When the current operating mode is user mode, the second mode management module 303 responds to users using the data within the user function partition, including: When the current operating mode is user mode, terminal device application functions are provided through user applications; The system service files are used to parse user operation commands, schedule device hardware resources, and manage data storage. Remote control operation responses, interface display feedback, and operation status prompts are provided through user interaction resources.
[0062] In some embodiments of this application, after the second mode management module 303 responds to the user using data within the user function partition, it further includes: When a user function update requirement is detected, the user function update package is obtained; the user function update package contains the user application to be updated, system service components and interactive resource files, and the update package is not associated with or coupled with the production test files in the test function partition; Import the user feature update package into the user feature partition to update the data within the user feature partition.
[0063] In addition, this application also provides a terminal device, such as Figure 4 As shown, it illustrates the structural diagram of the terminal device involved in this application, specifically: The terminal device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 4 The terminal device structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 401 is the control center of the terminal device. It connects various parts of the terminal device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions and processes data of the terminal device, thereby providing overall monitoring of the terminal device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0064] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0065] The terminal device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0066] The terminal device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0067] Although not shown, the terminal device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the terminal device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402, thereby realizing the steps in any of the terminal device management methods provided in this application embodiment: detecting the current operating mode of the target terminal device; wherein, the current operating mode includes production mode and user mode, in production mode the detection function partition is mounted as a working data partition, and in user mode the user function partition is mounted as a working data partition; when the current operating mode is production mode, production detection is performed by detecting the data in the function partition; when the current operating mode is user mode, user response is performed by detecting the data in the user function partition.
[0068] The above embodiments achieve complete isolation between production testing functions and user application functions by setting independent testing function partitions and user function partitions in the target terminal device and dynamically selecting and mounting the corresponding partition according to the current operating mode. This includes mounting and using only the testing function partition to perform hardware production testing in production mode, and mounting and using only the user function partition to provide a normal user experience in user mode. This solution, through partition isolation and mode-switching mounting, ensures that the two types of functions do not interfere with each other and operate independently. When user-side functions are frequently iterated, modified, or have defects fixed due to diverse needs, only the user function partition is affected, without impacting the fixed testing function partition dedicated to production. This effectively avoids production testing function abnormalities or paralysis caused by user software changes, completely eliminating the risk of production line shutdowns and significantly reducing enterprise production and operating costs and downtime losses.
[0069] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0070] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0071] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the terminal device management methods provided in this application.
[0072] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0073] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0074] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the terminal device management methods provided in this application, the beneficial effects that any of the terminal device management methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0075] The present application provides a detailed description of a terminal device management method, apparatus, terminal device, and computer-readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A terminal device management method, characterized by, The method, applied to a target terminal device having independent detection function partitions and user function partitions, includes: The current operating mode of the target terminal device is detected; wherein, the current operating mode includes production mode and user mode, in which the detection function partition is mounted as a working data partition, and in which the user function partition is mounted as a working data partition; When the current operating mode is production mode, production detection is performed using data within the detection function partition; When the current operating mode is user mode, user responses are performed using data within the user function partition.
2. The terminal device management method according to claim 1, characterized by, The setup methods for independent detection function partitions and user function partitions include: Obtain the pre-written packet; The pre-set detection function partition image and user function partition image in the pre-written package are burned to the corresponding storage partition of the target terminal device, so that independent detection function partition and user function partition are set in the target terminal device.
3. The terminal device management method according to claim 2, characterized by, The acquisition of the pre-written packet includes: Obtain a pre-copy package generated by a reference terminal device; wherein the reference terminal device includes a partitioned and mounted detection function partition, and the reference terminal device obtains a detection function partition image by storing production detection files into the detection function partition and performing mirroring processing on the detection function partition through a mirroring instruction, and then exports the detection function partition image through an export instruction to obtain the pre-copy package.
4. The terminal device management method according to claim 1, characterized by, The data within the detection function partition includes process files, application files, and hardware abstraction layer service files. When the current operating mode is production mode, production detection is performed using the data within the detection function partition, including: When the current operating mode is production mode, the process file is started to perform communication detection with the host computer; Launch the application file to coordinate the detection process and display the detection interface; The hardware abstraction layer service file is started to interface with the hardware module and control its detection.
5. The terminal device management method according to claim 1, characterized in that, The data within the detection function partition includes production detection files from a reference terminal device. The reference terminal device includes partitioned and mounted detection function partitions. After performing production detection using the data within the detection function partition, the process further includes: When a fault is detected in the production inspection file, an updated inspection function partition image is obtained; wherein, the updated production inspection file is copied and overwritten to the inspection function partition of the reference terminal device to obtain an updated inspection function partition, and the updated inspection function partition is mirrored by a mirroring command to obtain an updated inspection function partition image. The pre-written packet of the target terminal device is replaced based on the updated detection function partition image, so as to update the production detection file.
6. The terminal device management method according to claim 1, characterized in that, The data within the user function partition includes user applications, system service files, and user interaction resources. When the current operating mode is user mode, responding to users using the data within the user function partition includes: When the current operating mode is user mode, the terminal device application functions are provided through the user application. The system service files are used for parsing user operation commands, scheduling device hardware resources, and managing data storage. The user interaction resources are used to respond to remote control operations, provide interface display feedback, and display operation status prompts.
7. The terminal device management method according to claim 1, characterized in that, After responding to the user using data within the user function partition, the process further includes: When a user function update requirement is detected, a user function update package is obtained; wherein, the user function update package contains the user application to be updated, system service components and interactive resource files, and the update package is not associated with or coupled with the production test files in the detection function partition; The user function update package is imported into the user function partition to update the data within the user function partition.
8. A terminal device management device, characterized in that, Applied to a target terminal device, the target terminal device having independent detection function partitions and user function partitions, the terminal device management device includes: The mode detection module is used to detect the current operating mode of the target terminal device; wherein, the current operating mode includes production mode and user mode, the detection function partition is mounted as a working data partition in the production mode, and the user function partition is mounted as a working data partition in the user mode. The first mode management module is used to perform production detection using data within the detection function partition when the current operating mode is production mode. The second mode management module is used to respond to users using data within the user function partition when the current operating mode is user mode.
9. A computer-readable storage medium, characterized in that, The device stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
10. A terminal device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.