Terminal management tree updating method and device, storage medium and terminal
By identifying and saving the node information of the target category in the terminal management tree, the problem of loss of important information during the update process is solved, and the reliable definition of new equipment functions and the update reliability of the terminal management tree are realized.
Patent Information
- Application Number
- CN202411433189.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-07
AI Technical Summary
During the update process of the terminal management tree, it is easy to cause the information of important nodes to be lost, resulting in the device being unable to implement new functions.
By determining the nodes belonging to the target category in the terminal management tree, it is independent, saved to the independent node database, and processing the independent node database and the deletion terminal management tree respectively during updates to ensure that important information is not lost.
It effectively ensures that important information in the terminal management tree is not lost, improves the success rate of the definition of new equipment functions, and ensures the update reliability of the terminal management tree.
Smart Images

Figure CN119396800A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal management technology, and in particular to a terminal management tree updating method, device, storage medium and terminal. Background Art
[0002] The Device Management (DM) protocol (OMA DM protocol) of the Open Mobile Alliance (OMA) is a protocol specifically used for terminal management, derived from the OMA SyncML protocol. The OMA DM protocol defines a set of standards for information exchange between servers and terminals. Through the OMA DM protocol, the server can perform various management functions such as parameter configuration, data collection, fault diagnosis, and firmware updates on terminal devices. For example, a large number of mobile operators manage mobile terminals based on the OMA DM protocol.
[0003] The function implementation of the client based on the OMA DM protocol is based on the terminal management tree (DM Tree). The terminal management tree defines the nodes that the client needs to support, the control permissions of these nodes, the corresponding functions and other node information. These nodes are given different functions. For example, the corresponding function of a certain node is to obtain the APN information of the current device and set the user APN information, so that the user's network can be restored.
[0004] As functions are added or removed, some new nodes will be defined to implement new functions for the device. Therefore, the terminal management tree needs to be updated to enable the device to implement new functions. However, in some scenarios, the update of the terminal management tree is prone to the loss of important node information that has been maintained. If the terminal management tree is not updated, the node information of the new function that needs to be defined cannot be loaded, and the new function of the device cannot be implemented. Summary of the invention
[0005] The embodiment of the present application provides a terminal management tree update solution, which can update the terminal management tree while effectively ensuring that important information in the terminal management tree is not lost, and prompt the definition success rate of new functions of the device.
[0006] The embodiments of the present application provide the following technical solutions:
[0007] According to one embodiment of the present application, a terminal management tree updating method includes: determining nodes belonging to a target category among a plurality of nodes included in a terminal management tree to obtain nodes to be independent; removing node information of the nodes to be independent from the terminal management tree to obtain a pruned terminal management tree; saving the node information of the nodes to be independent to an independent node database; and if a management tree update is required, performing node classification updates on the independent node database and the pruned terminal management tree respectively.
[0008] In some embodiments of the present application, the node classification update is performed on the independent node database and the deleted terminal management tree respectively, including: uninstalling the deleted terminal management tree and loading a new version of the terminal management tree through the terminal management engine; and updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version of the terminal management tree.
[0009] In some embodiments of the present application, before uninstalling the deleted terminal management tree, the method also includes: loading the deleted terminal management tree, and reading the specified data in the deleted terminal management tree into the local cache; after loading the new version of the terminal management tree, the method also includes: loading the new version of the terminal management tree, and writing the specified data in the local cache into the new version of the terminal management tree.
[0010] In some embodiments of the present application, after the node information of the node to be independent is saved in the independent node database, the method also includes: recording the identifier of the node to be independent in a target category node record file; updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree, including: through the terminal management engine, according to the identifier in the target category node record file, determining the node corresponding to the identifier from the nodes belonging to the target category in the new version terminal management tree; updating the node information in the independent node database according to the node information of the node corresponding to the identifier.
[0011] In some embodiments of the present application, after recording the identifier of the node to be independent in the target category node record file, the method further includes: marking the version numbers of the terminal management tree and the target category node record file in a predetermined configuration file; if a management tree update is required, before performing node classification updates on the independent node database and the deleted terminal management tree respectively, the method further includes: after the device is restarted, determining whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; if not, determining the current terminal management tree as the new version terminal management tree, and triggering a management tree update.
[0012] In some embodiments of the present application, after updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the method further includes: if the nodes belonging to the target category in the new version terminal management tree include updated nodes other than the nodes corresponding to the identifier, saving the node information of the updated nodes to the independent node database; and removing the node information of the nodes belonging to the target category from the new version terminal management tree.
[0013] In some embodiments of the present application, determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree to obtain the nodes to be independent includes: classifying the multiple nodes included in the terminal management tree to obtain the nodes corresponding to the functions in the device; and determining the nodes to be independent from the nodes corresponding to the functions in the device.
[0014] According to one embodiment of the present application, a terminal management tree updating device includes: a classification module, which is used to determine the nodes belonging to the target category among the multiple nodes included in the terminal management tree, and obtain the nodes to be independent; a removal module, which is used to remove the node information of the nodes to be independent from the terminal management tree, and obtain the pruned terminal management tree; a saving module, which is used to save the node information of the nodes to be independent to an independent node database; and an update module, which is used to perform node classification update on the independent node database and the pruned terminal management tree respectively if a management tree update is required.
[0015] In some embodiments of the present application, the update module is used to: uninstall the deleted terminal management tree and load the new version terminal management tree through the terminal management engine; and update the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree.
[0016] In some embodiments of the present application, before the unloading of the deleted terminal management tree, the device also includes a reading module, which is used to: load the deleted terminal management tree, and read the specified data in the deleted terminal management tree into the local cache; after the loading of the new version of the terminal management tree, the device also includes a writing module, which is used to: load the new version of the terminal management tree, and write the specified data in the local cache into the new version of the terminal management tree.
[0017] In some embodiments of the present application, after the node information of the node to be independent is saved in the independent node database, the device also includes a recording module for: recording the identifier of the node to be independent in a target category node record file; the update module is used to: determine, through the terminal management engine, according to the identifier in the target category node record file, the node corresponding to the identifier from the nodes belonging to the target category in the new version terminal management tree; and update the node information in the independent node database according to the node information of the node corresponding to the identifier.
[0018] In some embodiments of the present application, after recording the identifier of the node to be independent in the target category node record file, the device also includes a marking module, which is used to: mark the version numbers of the terminal management tree and the target category node record file and record the marked version number in a predetermined configuration file; if a management tree update is required, before performing node classification updates on the independent node database and the deleted terminal management tree respectively, the device also includes an update judgment module, which is used to: after the device is restarted, determine whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; if not, determine the current terminal management tree as the new version terminal management tree, and trigger a management tree update.
[0019] In some embodiments of the present application, after updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the update module is also used to: if the nodes belonging to the target category in the new version terminal management tree include update nodes other than the nodes corresponding to the identifier, save the node information of the update nodes to the independent node database; and remove the node information of the nodes belonging to the target category from the new version terminal management tree.
[0020] In some embodiments of the present application, the classification module is used to: classify the multiple nodes included in the terminal management tree to obtain nodes corresponding to functions in the device; and determine the nodes to be independent from the nodes corresponding to the functions in the device.
[0021] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.
[0022] According to another embodiment of the present application, a terminal may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0023] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.
[0024] In an embodiment of the present application, nodes belonging to a target category among a plurality of nodes included in a terminal management tree are determined to obtain nodes to be independent; node information of the nodes to be independent is removed from the terminal management tree to obtain a pruned terminal management tree; node information of the nodes to be independent is saved in an independent node database; if a management tree update is required, node classification updates are performed respectively through the independent node database and the pruned terminal management tree.
[0025] In this way, by determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree as the nodes to be independent, then removing the node information of the nodes to be independent from the terminal management tree and saving the node information of the nodes to be independent to the independent node database, when the management tree needs to be updated, the node classification is updated through the independent node database and the deleted terminal management tree respectively, so that the terminal management tree can be dynamically updated to add new nodes after the device leaves the factory, and it is ensured that important node information will not be lost in the independent node database. Furthermore, the terminal management tree can be updated while effectively ensuring that important information in the terminal management tree is not lost, and the success rate of defining new functions of the device can be prompted. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A flow chart of a terminal management tree updating method according to an embodiment of the present application is shown.
[0028] Figure 2 A node classification flow chart according to an embodiment of the present application is shown.
[0029] Figure 3 A node update flow chart according to an embodiment of the present application is shown.
[0030] Figure 4 A block diagram of a terminal management tree updating device according to an embodiment of the present application is shown.
[0031] Figure 5 A block diagram of a terminal according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0032] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.
[0033] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).
[0034] For example, the terminal management tree update method provided by the embodiment of the present disclosure includes a series of steps, but the terminal management tree update method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the terminal management tree update device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on the information.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0036] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0037] Figure 1The flowchart of the terminal management tree updating method according to an embodiment of the present application is schematically shown. The execution subject of the terminal management tree updating method can be any device with processing capability, such as a television, a computer, a mobile phone, a smart watch, and a home appliance.
[0038] like Figure 1 As shown, the terminal management tree updating method may include steps S110 to S140.
[0039] Step S110, determine the nodes belonging to the target category among the multiple nodes included in the terminal management tree, and obtain the nodes to be independent; step S120, remove the node information of the nodes to be independent from the terminal management tree, and obtain the deleted terminal management tree; step S130, save the node information of the nodes to be independent to the independent node database; step S140, if the management tree needs to be updated, the node classification is updated through the independent node database and the deleted terminal management tree respectively.
[0040] The terminal management tree (DM Tree) defines the nodes that the client needs to support as well as the control permissions, corresponding functions and other node information of these nodes. For the local terminal management tree, the device can determine the nodes belonging to the target category among the multiple nodes included in the terminal management tree, and use the nodes belonging to the target category in the local terminal management tree as the nodes to be obtained as independent nodes.
[0041] Furthermore, the device can remove the node information of the node to be independent from the terminal management tree to obtain a deleted terminal management tree that does not include the node information of the node to be independent, and save the node information of the node to be independent to the independent node database, so that the node information in the local terminal management tree is classified and stored, thereby reducing the effective amount of node information stored in the local terminal management tree and reducing the complexity of updating the terminal management tree.
[0042] Furthermore, when the management tree needs to be updated, node classification updates can be performed through the independent node database and the deleted terminal management tree. The node information in the local terminal management tree is updated by classification, and some important node information is stored in the independent node database, which can ensure that it is updated while avoiding loss.
[0043] In this way, by determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree as the nodes to be independent, then removing the node information of the nodes to be independent from the terminal management tree and saving the node information of the nodes to be independent to the independent node database, when the management tree needs to be updated, the node classification is updated through the independent node database and the deleted terminal management tree respectively, so that the terminal management tree can be dynamically updated to add new nodes after the device leaves the factory, and it is ensured that important node information will not be lost in the independent node database. Furthermore, the terminal management tree can be updated while effectively ensuring that important information in the terminal management tree is not lost, and the success rate of defining new functions of the device can be prompted.
[0044] Described below Figure 1 When the terminal management tree is updated under the embodiment, further optional specific embodiments are provided under each step performed.
[0045] In one embodiment, see Figure 2 , the step of determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree to obtain the nodes to be independent includes: step S210, classifying the multiple nodes included in the terminal management tree to obtain the nodes corresponding to the functions in the device; step S220, determining the nodes to be independent from the nodes corresponding to the functions in the device.
[0046] The multiple nodes included in the terminal management tree are classified to obtain "nodes corresponding to functions" and "other nodes" in the device. The node information of the node corresponding to the function in the device will save the value or setting related to the current behavior and status of the device. For example, a node information "*** / Sound / Volumes / Bluetooth" represents the volume of the device's Bluetooth. "Other nodes" are usually server accounts, addresses or other nodes that are not strongly related to the device. For example, a node information "*** / AppAddr / Addr" saves the address information of the server.
[0047] The nodes corresponding to the functions in the device are determined as the target category's independent nodes. Then, the nodes corresponding to the functions can be separated from the terminal management tree and saved in an independent node database. By saving and updating these node information through the independent node database, it can be effectively ensured that the nodes related to the device functions will not be lost when the terminal management tree is updated, thereby prompting the device's performance.
[0048] Further, in one embodiment, the method of determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree to obtain the nodes to be independent includes: obtaining a user-defined node classification table, classifying the multiple nodes included in the terminal management tree according to the user-defined node classification table, and obtaining the nodes belonging to the target category as the nodes to be independent.
[0049] In one embodiment, the node classification update is performed on the independent node database and the deleted terminal management tree respectively, including:
[0050] The terminal management tree after deletion is uninstalled and a new version of the terminal management tree is loaded through the terminal management engine; and the node information in the independent node database is updated according to the node information of the nodes belonging to the target category in the new version of the terminal management tree.
[0051] When the terminal management engine (DM engine) updates the terminal management tree, in an embodiment of the present application, the terminal management engine unloads the deleted terminal management tree and loads the new version of the terminal management tree. Then, the terminal management engine updates the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version of the terminal management tree, and thus node classification updates can be performed on the independent node database and the deleted terminal management tree respectively.
[0052] Furthermore, in one embodiment, before uninstalling the deleted terminal management tree, the method also includes: loading the deleted terminal management tree, and reading specified data in the deleted terminal management tree into a local cache; after loading the new version of the terminal management tree, the method also includes: loading the new version of the terminal management tree, and writing the specified data in the local cache into the new version of the terminal management tree.
[0053] See also Figure 3 In this embodiment, node classification update is performed on the independent node database and the deleted terminal management tree respectively, which may specifically include step S310, step S320, step S330 and step S340.
[0054] Step S310, through the terminal management engine, load the deleted terminal management tree, and read the specified data in the deleted terminal management tree into the local cache; step S320, unload the deleted terminal management tree, and load the new version terminal management tree; step S330, load the new version terminal management tree, and write the specified data in the local cache into the new version terminal management tree; step S340, according to the node information of the node belonging to the target category in the new version terminal management tree, update the node information in the independent node database.
[0055] That is, in this embodiment, before uninstalling the deleted terminal management tree, the terminal management engine further reads the specified data in the deleted terminal management tree into the local cache, and then, after loading the new version of the terminal management tree, the terminal management engine loads the new version of the terminal management tree and writes the specified data in the local cache into the new version of the terminal management tree. Thus, the user account and the like can be cached as the specified data before writing, and the loss of these specified data can be further avoided when updating the deleted terminal management tree, and the update reliability of the terminal management tree can be further improved.
[0056] In one embodiment, after saving the node information of the node to be independent to the independent node database, the method also includes: recording the identifier of the node to be independent in a target category node record file; updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree, including: through the terminal management engine, according to the identifier in the target category node record file, determining the node corresponding to the identifier from the nodes belonging to the target category in the new version terminal management tree; updating the node information in the independent node database according to the node information of the node corresponding to the identifier.
[0057] After saving the node information of the node to be independent to the independent node database, the embodiment of the present application further records the identification of the node to be independent in the target category node record file, so that the terminal management engine can identify the nodes belonging to the target category (that is, the node to be independent) based on the target category node record file.
[0058] Furthermore, when updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree, the terminal management engine can determine the "node corresponding to the identifier" from the "nodes belonging to the target category in the new version terminal management tree" according to the identifier in the target category node record file, and then, according to the node information of the "node corresponding to the identifier" in the new version terminal management tree, the node information in the independent node database can be accurately updated, for example, the node information in the independent node database can be deleted or changed.
[0059] Furthermore, in one embodiment, after recording the identifier of the node to be independent in the target category node record file, the method also includes: marking the version numbers of the terminal management tree and the target category node record file and recording the marked version numbers in a predetermined configuration file; if a management tree update is required, before performing node classification updates on the independent node database and the deleted terminal management tree respectively, the method also includes: after the device is restarted, determining whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; if not, determining the current terminal management tree as the new version terminal management tree, and triggering a management tree update.
[0060] In this embodiment, the version numbers of the local terminal management tree and the target category node record file are marked, and the marked version number is recorded in the predetermined configuration file. After the device is restarted, if the device receives the version number of the current terminal management tree sent by the server through the OTA service, if it is judged that the version number of the current terminal management tree in the device is inconsistent with the version number in the predetermined configuration file, the current terminal management tree can be determined as a new version of the terminal management tree, and the management tree update can be triggered in a timely and reliable manner.
[0061] In one embodiment, after updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the method may further include:
[0062] If the nodes belonging to the target category in the new version terminal management tree include update nodes other than the nodes corresponding to the identifier, the node information of the update nodes is saved in the independent node database; and the node information of the nodes belonging to the target category is removed from the new version terminal management tree.
[0063] If the "nodes belonging to the target category" in the new version of the terminal management tree include updated nodes other than the "nodes corresponding to the identifier", the terminal management engine saves the node information of the updated node to the independent node database, and can add new functions for the device by updating the new node.
[0064] After completing the update of the node information in the independent node database, the node information of the nodes belonging to the target category is removed from the new version terminal management tree, thereby obtaining a new deleted terminal management tree and an updated independent node database, which can be further updated based on the embodiment of the present application when an update is needed later.
[0065] In order to facilitate better implementation of the terminal management tree updating method provided in the embodiment of the present application, the embodiment of the present application also provides a terminal management tree updating device based on the terminal management tree updating method. The meanings of the terms are the same as those in the terminal management tree updating method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a terminal management tree updating device according to an embodiment of the present application is shown.
[0066] like Figure 4 As shown, the terminal management tree updating device 400 may include: a classification module 410 may be used to determine the nodes belonging to the target category among the multiple nodes included in the terminal management tree, and obtain the nodes to be independent; a removal module 420 may be used to remove the node information of the nodes to be independent from the terminal management tree, and obtain the pruned terminal management tree; a saving module 430 may be used to save the node information of the nodes to be independent to an independent node database; an updating module 440 may be used to perform node classification updates on the independent node database and the pruned terminal management tree respectively if a management tree update is required.
[0067] In some embodiments of the present application, the update module is used to: uninstall the deleted terminal management tree and load the new version terminal management tree through the terminal management engine; and update the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree.
[0068] In some embodiments of the present application, before the unloading of the deleted terminal management tree, the device also includes a reading module, which is used to: load the deleted terminal management tree, and read the specified data in the deleted terminal management tree into the local cache; after the loading of the new version of the terminal management tree, the device also includes a writing module, which is used to: load the new version of the terminal management tree, and write the specified data in the local cache into the new version of the terminal management tree.
[0069] In some embodiments of the present application, after the node information of the node to be independent is saved in the independent node database, the device also includes a recording module for: recording the identifier of the node to be independent in a target category node record file; the update module is used to: determine, through the terminal management engine, according to the identifier in the target category node record file, the node corresponding to the identifier from the nodes belonging to the target category in the new version terminal management tree; and update the node information in the independent node database according to the node information of the node corresponding to the identifier.
[0070] In some embodiments of the present application, after recording the identifier of the node to be independent in the target category node record file, the device also includes a marking module, which is used to: mark the version numbers of the terminal management tree and the target category node record file and record the marked version number in a predetermined configuration file; if a management tree update is required, before performing node classification updates on the independent node database and the deleted terminal management tree respectively, the device also includes an update judgment module, which is used to: after the device is restarted, determine whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; if not, determine the current terminal management tree as the new version terminal management tree, and trigger a management tree update.
[0071] In some embodiments of the present application, after updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the update module is also used to: if the nodes belonging to the target category in the new version terminal management tree include update nodes other than the nodes corresponding to the identifier, save the node information of the update nodes to the independent node database; and remove the node information of the nodes belonging to the target category from the new version terminal management tree.
[0072] In some embodiments of the present application, the classification module is used to: classify the multiple nodes included in the terminal management tree to obtain nodes corresponding to functions in the device; and determine the nodes to be independent from the nodes corresponding to the functions in the device.
[0073] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0074] In addition, the present application embodiment also provides a terminal, such as Figure 5 As shown, Figure 5 A block diagram of a terminal according to an embodiment of the present application is shown, specifically:
[0075] The terminal may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will appreciate that Figure 5 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0076] The processor 501 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the terminal as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0077] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0078] The terminal also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0079] The terminal may further include an input unit 504, which may 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.
[0080] Although not shown, the terminal may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 501 in the terminal will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, so as to realize various functions in the aforementioned embodiments of the present application, such as the processor 501 may perform the following steps:
[0081] Determine the nodes belonging to the target category among the multiple nodes included in the terminal management tree to obtain the nodes to be independent; remove the node information of the nodes to be independent from the terminal management tree to obtain the pruned terminal management tree; save the node information of the nodes to be independent to the independent node database; if the management tree needs to be updated, perform node classification update on the independent node database and the pruned terminal management tree respectively.
[0082] In some embodiments of the present application, the node classification update is performed on the independent node database and the deleted terminal management tree respectively, including: uninstalling the deleted terminal management tree and loading a new version of the terminal management tree through the terminal management engine; and updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version of the terminal management tree.
[0083] In some embodiments of the present application, before uninstalling the deleted terminal management tree, the method also includes: loading the deleted terminal management tree, and reading the specified data in the deleted terminal management tree into the local cache; after loading the new version of the terminal management tree, the method also includes: loading the new version of the terminal management tree, and writing the specified data in the local cache into the new version of the terminal management tree.
[0084] In some embodiments of the present application, after the node information of the node to be independent is saved in the independent node database, the method also includes: recording the identifier of the node to be independent in a target category node record file; updating the node information in the independent node database according to the node information of the nodes belonging to the target category in the new version terminal management tree, including: through the terminal management engine, according to the identifier in the target category node record file, determining the node corresponding to the identifier from the nodes belonging to the target category in the new version terminal management tree; updating the node information in the independent node database according to the node information of the node corresponding to the identifier.
[0085] In some embodiments of the present application, after recording the identifier of the node to be independent in the target category node record file, the method further includes: marking the version numbers of the terminal management tree and the target category node record file in a predetermined configuration file; if a management tree update is required, before performing node classification updates on the independent node database and the deleted terminal management tree respectively, the method further includes: after the device is restarted, determining whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; if not, determining the current terminal management tree as the new version terminal management tree, and triggering a management tree update.
[0086] In some embodiments of the present application, after updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the method further includes: if the nodes belonging to the target category in the new version terminal management tree include updated nodes other than the nodes corresponding to the identifier, saving the node information of the updated nodes to the independent node database; and removing the node information of the nodes belonging to the target category from the new version terminal management tree.
[0087] In some embodiments of the present application, determining the nodes belonging to the target category among the multiple nodes included in the terminal management tree to obtain the nodes to be independent includes: classifying the multiple nodes included in the terminal management tree to obtain the nodes corresponding to the functions in the device; and determining the nodes to be independent from the nodes corresponding to the functions in the device.
[0088] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0089] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.
[0090] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0091] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0092] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0093] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. A terminal management tree updating method, characterized in that: include: Determine a node belonging to a target category among a plurality of nodes included in a terminal management tree, and obtain a node to be independent; Removing the node information of the node to be independent from the terminal management tree to obtain a deleted terminal management tree; Saving the node information of the node to be independent to an independent node database; If the management tree needs to be updated, node classification updates are performed on the independent node database and the deleted terminal management tree respectively.
2. The method according to claim 1, characterized in that The updating of node classification for the independent node database and the deleted terminal management tree respectively includes: Uninstalling the deleted terminal management tree and loading a new version of the terminal management tree through the terminal management engine; and The node information in the independent node database is updated according to the node information of the nodes belonging to the target category in the new version terminal management tree.
3. The method according to claim 2, characterized in that Before uninstalling the deleted terminal management tree, the method further includes: Loading the deleted terminal management tree, and reading the specified data in the deleted terminal management tree into the local cache; After the new version of the terminal management tree is loaded, the method further includes: The new version terminal management tree is loaded, and the specified data in the local cache is written into the new version terminal management tree.
4. The method according to claim 2, characterized in that: After the node information of the node to be independent is saved in the independent node database, the method further includes: Recording the identifier of the node to be independent in the target category node record file; The updating of the node information in the independent node database according to the node information of the node belonging to the target category in the new version terminal management tree includes: Determining, by the terminal management engine, a node corresponding to the identifier from nodes belonging to the target category in the new version terminal management tree according to the identifier in the target category node record file; The node information in the independent node database is updated according to the node information of the node corresponding to the identifier.
5. The method according to claim 4, characterized in that After recording the identifier of the node to be independent in the target category node record file, the method further includes: Marking the version numbers of the terminal management tree and the target category node record file and recording the marked version numbers in a predetermined configuration file; If it is necessary to update the management tree, before performing node classification update on the independent node database and the deleted terminal management tree respectively, the method further includes: After the device is restarted, determining whether the version number of the current terminal management tree in the device is consistent with the version number in the predetermined configuration file; If not, the current terminal management tree is determined as the new version terminal management tree, and management tree update is triggered.
6. The method according to claim 4, characterized in that After updating the node information in the independent node database according to the node information of the node corresponding to the identifier, the method further includes: If the nodes belonging to the target category in the new version terminal management tree include an update node other than the node corresponding to the identifier, then the node information of the update node is saved in the independent node database; The node information of the nodes belonging to the target category is removed from the new version terminal management tree.
7. The method according to any one of claims 1 to 6, characterized in that: The step of determining a node belonging to a target category among a plurality of nodes included in the terminal management tree to obtain a node to be independent includes: Classifying multiple nodes included in the terminal management tree to obtain nodes corresponding to functions in the device; The nodes corresponding to the functions in the device are determined as the nodes to be independent.
8. A terminal management tree updating device, characterized in that: include: A classification module, used to determine nodes belonging to a target category among a plurality of nodes included in the terminal management tree, and obtain nodes to be independent; A removal module, used to remove the node information of the node to be independent from the terminal management tree to obtain a deleted terminal management tree; A saving module, used for saving the node information of the node to be independent to an independent node database; The updating module is used for performing node classification update on the independent node database and the deleted terminal management tree respectively if the management tree needs to be updated.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. A terminal, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.