Theme switching method and device, equipment, medium and program product

By processing the theme design files of the vehicle terminal and rendering them in an isolated sandbox, the problem of low accuracy in theme switching was solved, and efficient and low-cost theme package generation was achieved.

CN120995984APending Publication Date: 2025-11-21CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511163370.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-19
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of theme switching in vehicle terminals is low because resource names, variable names, method names, or layer node names are the same. Furthermore, theme package generation is inefficient and costly.

Method used

The server extracts and adapts data from the original theme design file, generates layer tree structure data and resource data, adds a unique prefix to the layer node name, hashes and renames the resource files, generates the target theme package, and renders it in the isolated sandbox of the vehicle terminal.

Benefits of technology

It improves the accuracy of theme switching, reduces the duration of theme switching, increases the efficiency of theme package generation, and reduces costs, all without requiring a system restart.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120995984A_ABST
    Figure CN120995984A_ABST
Patent Text Reader

Abstract

The invention relates to a theme switching method and device, equipment, a medium and a program product, and the method comprises the steps: processing an original theme design file through a server, obtaining first layer tree structure data and initial resource data, adding a unique prefix to the name of each layer node in the first layer tree structure data, and carrying out the first layer tree structure data and the initial resource data; obtaining second layer tree structure data; and performing hash renaming on each resource file in the initial resource data to obtain target resource data, generating a target theme pack in combination with the second layer tree structure data, and sending the target theme pack to the vehicle-mounted terminal. And the vehicle-mounted terminal performs rendering according to the target theme pack in the created isolation sandbox to generate a target theme interface. According to the scheme, by adding the unique prefix to the name of the layer node, performing hash renaming on the resource file and performing rendering in the isolation sandbox, the uniqueness of the layer node name, the resource name, the variable name and the method name can be ensured, and the accuracy of theme switching is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicles, in particular to a theme switching method, device, equipment, medium and program product. BACKGROUND

[0002] With the continuous development of science and technology, as a device for human-vehicle interaction, a vehicle terminal in a vehicle can be used by a user to adjust related settings of the vehicle. The vehicle terminal can beautify a displayed interface according to a theme package, and generate corresponding controls according to data in the theme package to form a theme interface.

[0003] In the prior art, when theme switching is performed, the vehicle terminal renders according to a new theme package, and generates controls to form a theme interface. When rendering, resource names, variable names, method names and layer node names in the theme package are used to find corresponding data to generate controls.

[0004] However, since other theme packages in the vehicle terminal can have the same resource names, variable names, method names or layer node names as the new theme package, when theme switching is performed, controls can be generated using part of the data of the other theme packages, which results in low accuracy of theme switching. SUMMARY

[0005] One of the purposes of the present application is to provide a theme switching method to solve the problem of low accuracy of theme switching caused by the possibility of control errors when theme switching is performed in the prior art. The second purpose is to provide a theme switching device. The third purpose is to provide a server. The fourth purpose is to provide a vehicle terminal. The fifth purpose is to provide a readable storage medium. The sixth purpose is to provide a computer program product.

[0006] To achieve the above purposes, the technical solutions adopted by the present application are as follows:

[0007] In a first aspect, the present application provides a theme switching method applied to a server, comprising:

[0008] performing data extraction processing and adaptation processing on the obtained original theme design file to obtain first layer tree structure data and initial resource data;

[0009] for each layer node in the first layer tree structure data, adding a unique prefix to the name of the layer node according to the data of the layer node to obtain second layer tree structure data;

[0010] performing hash renaming on each resource file in the initial resource data to obtain target resource data;

[0011] According to the second layer tree structure data and the target resource data, a target theme package is generated;

[0012] The target theme package is sent to the vehicle terminal.

[0013] Further, the data extraction processing and adaptation processing are performed on the obtained original theme design file to obtain first layer tree structure data and initial resource data, including:

[0014] According to a preset data extraction model, data extraction processing is performed on the original theme design file to obtain initial layer tree structure data and the initial resource data;

[0015] According to the obtained environment parameters of the vehicle terminal, the initial layer tree structure data is converted to obtain the first layer tree structure data.

[0016] Further, the conversion of the initial layer tree structure data according to the obtained environment parameters of the vehicle terminal to obtain the first layer tree structure data includes:

[0017] According to the correspondence between the environment parameters and the conversion rule library, a target conversion rule library corresponding to the environment parameters of the vehicle terminal is obtained;

[0018] According to the target conversion rule library, the initial layer tree structure data is converted to obtain the first layer tree structure data.

[0019] Further, the adding of a unique prefix to the name of the layer node according to the data of the layer node includes:

[0020] The node hash value of the data of the layer node is calculated;

[0021] According to the node hash value, a name prefix of the layer node is generated;

[0022] The name prefix is added in front of the name of the layer node.

[0023] Further, before the adding of a unique prefix to the name of the layer node according to the data of the layer node to obtain the second layer tree structure data for each layer node in the first layer tree structure data, the method further includes:

[0024] According to a preset classification model, control classification processing is performed on the first layer tree structure data to obtain a control data set;

[0025] For each first control structure data in the control data set, according to style data and position data in the first control structure data and a control type identifier carried by the first control structure data, determine second control structure data corresponding to the first control structure data;

[0026] According to the second control structure data corresponding to each first control structure data in the control data set, generate third layer tree structure data;

[0027] For each layer node in the first layer tree structure data, according to the data of the layer node, add a unique prefix to the name of the layer node to obtain second layer tree structure data, comprising:

[0028] For each layer node in the third layer tree structure data, according to the data of the layer node, add a unique prefix to the name of the layer node to obtain second layer tree structure data.

[0029] Further, the determining of the second control structure data corresponding to the first control structure data according to the style data and the position data in the first control structure data and the control type identifier carried by the first control structure data comprises:

[0030] According to the position data and the control type identifier, obtain corresponding reference style data and reference position data;

[0031] If the style data is different from the reference style data, or the position data is different from the reference position data, update the style data to the reference style data and update the position data to the reference position data to obtain the second control structure data corresponding to the first control structure data;

[0032] If the style data is the same as the reference style data and the position data is the same as the reference position data, the first control structure data is taken as the second control structure data corresponding to itself.

[0033] Further, before the generating of the third layer tree structure data according to the second control structure data corresponding to each first control structure data in the control data set, the method further comprises:

[0034] For each second control structure data, according to the obtained environmental parameters of the vehicle-mounted terminal, perform simulation verification on the second control structure data to obtain a verification result of the second control structure data, the verification result indicating whether the simulation verification passes;

[0035] The third layer tree structure data is generated according to the second control structure data corresponding to each first control structure data in the control data set.

[0036] If the verification results of all the second control structure data indicate that the simulation verification is passed, the third layer tree structure data is generated according to the second control structure data corresponding to each first control structure data in the control data set.

[0037] In a second aspect, the application provides a theme switching method applied to a vehicle-mounted terminal, comprising:

[0038] Receiving a target theme package sent by a server, wherein the target theme package comprises second layer tree structure data in which a unique prefix is added to the name of each layer node and target resource data in which a hash renaming is performed on a resource file;

[0039] Creating an isolated sandbox corresponding to the target theme package;

[0040] Rendering the target theme package in the isolated sandbox to generate a target theme interface.

[0041] Further, after the isolated sandbox corresponding to the target theme package is created, the method further comprises:

[0042] Adding a proxy interception layer outside the isolated sandbox to obtain an intercepted isolated sandbox;

[0043] The rendering of the target theme package in the isolated sandbox to generate a target theme interface comprises:

[0044] Rendering the target theme package in the intercepted isolated sandbox to generate a target theme interface.

[0045] Further, the method further comprises:

[0046] In response to a user's uninstallation operation, deleting the second layer tree structure data and the target resource data in the target theme package.

[0047] In a third aspect, the application provides a theme switching device, comprising:

[0048] A processing module is configured to:

[0049] Performing data extraction processing and adaptation processing on the obtained original theme design file to obtain first layer tree structure data and initial resource data;

[0050] For each layer node in the first layer tree structure data, a unique prefix is added to the name of the layer node according to the data of the layer node to obtain second layer tree structure data;

[0051] hash-renaming each resource file in the initial resource data to obtain target resource data;

[0052] generating a target theme package according to the second layer tree structure data and the target resource data;

[0053] a sending module configured to send the target theme package to a vehicle terminal.

[0054] In a fourth aspect, the present application provides a theme switching device, comprising:

[0055] a receiving module configured to receive a target theme package sent by a server, the target theme package comprising second layer tree structure data with a prefix added to a layer node name and target resource data that is hash-renamed;

[0056] a processing module configured to create an isolated sandbox corresponding to the target theme package;

[0057] a rendering module configured to render in the isolated sandbox according to the target theme package to generate a target theme interface.

[0058] In a fifth aspect, the present application provides a server, comprising:

[0059] a processor, a memory, and a communication interface;

[0060] the memory is configured to store executable instructions of the processor;

[0061] wherein the processor is configured to execute the theme switching method of any one of the first aspect via execution of the executable instructions.

[0062] In a sixth aspect, the present application provides a vehicle terminal, comprising:

[0063] a processor, a memory, and a communication interface;

[0064] the memory is configured to store executable instructions of the processor;

[0065] wherein the processor is configured to execute the theme switching method of any one of the second aspect via execution of the executable instructions.

[0066] In a seventh aspect, the present application provides a readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the theme switching method of any one of the first aspect or the second aspect.

[0067] In an eighth aspect, the present application provides a computer program product comprising a computer program, the computer program being executed by a processor to implement the theme switching method of any one of the first aspect or the second aspect.

[0068] Advantages of the present application:

[0069] (1) The present application extracts and processes data of the obtained original theme design file through the server, obtains first layer tree structure data and initial resource data, and then adds a unique prefix to the name of each layer node in the first layer tree structure data to obtain second layer tree structure data; hashes and renames each resource file in the initial resource data to obtain target resource data; and then generates a target theme package according to the second layer tree structure data and the target resource data and sends it to the vehicle terminal. The vehicle terminal creates an isolated sandbox corresponding to the target theme package, and renders according to the target theme package in the isolated sandbox to generate a target theme interface. This scheme adds a unique prefix to the name of the layer node, hashes and renames the resource file, and renders in the isolated sandbox, which can ensure the uniqueness of the layer node name, resource name, variable name and method name, and thus improve the accuracy of theme switching.

[0070] (2) The present application directly processes the original theme design file to obtain the target theme package, without the need for staff to process the original theme design file, which can improve the generation efficiency of the theme package and reduce costs. BRIEF DESCRIPTION OF DRAWINGS

[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0072] Figure 1 Technical problem schematic diagram of prior art provided for the present application;

[0073] Figure 2 Flowchart of theme switching method embodiment one provided for the present application;

[0074] Figure 3 Flowchart of theme switching method embodiment two provided for the present application;

[0075] Figure 4 Flowchart of theme switching method embodiment three provided for the present application;

[0076] Figure 5 Architectural schematic diagram of intercepting an isolated sandbox provided for the present application;

[0077] Figure 6 Flowchart of uninstalling a theme package provided for the present application;

[0078] Figure 7 Structural schematic diagram of theme switching device embodiment one provided for the present application;

[0079] Figure 8 Figure 2 is a structural schematic diagram of a subject switching device according to an embodiment of the present application;

[0080] Figure 9 Figure 3 is a structural schematic diagram of a server according to an embodiment of the present application;

[0081] Figure 10 Figure 4 is a structural schematic diagram of a vehicle terminal according to an embodiment of the present application.

[0082] The above figures have shown the specific embodiments of the present application, which will be described in more detail hereinafter. These figures and the written description are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0083] The embodiments of the present application will be described hereinafter with reference to the drawings and preferred embodiments, and other advantages and effects of the present application can be easily understood by those skilled in the art from the contents disclosed in the present specification. The present application can also be implemented or applied in other different specific embodiments, and each detail in the present specification can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, but not for limiting the protection scope of the present application.

[0084] It should be noted that the figures provided in the following embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the figures, but not drawn according to the number, shape and size of the components in actual implementation, and the type, number and ratio of each component in actual implementation can be arbitrarily changed, and the layout type of the components can also be more complex.

[0085] With the continuous development of technology, more and more functions are realized through vehicle terminals, and more and more vehicle applications are also realized in vehicle terminals. The vehicle terminal can beautify the displayed interface according to the theme package, and generate corresponding controls according to the data in the theme package to form a theme interface.

[0086] In the prior art, when the theme is switched, the vehicle terminal will be rendered according to the new theme package, and the controls will be regenerated to form a theme interface. The resource name, variable name, method name and layer node name in the theme package will be used to find the corresponding data to generate the controls.

[0087] However, when multiple running topics exist in the vehicle terminal, the other topic package and the new topic package can have the same resource name, variable name, method name or layer node name. When the vehicle terminal performs theme switching according to the new topic package, the part of data of the other topic package can be used to generate a control, which can cause low accuracy of theme switching.

[0088] In addition, when the theme is a system theme, theme switching needs to be performed by firmware upgrade, which requires restarting the system, resulting in long theme switching time. In the prior art, a staff member needs to write code according to a theme design file to generate a theme package, resulting in low efficiency and high cost of theme package generation.

[0089] For example, Figure 1 The technical problems of the prior art provided in the present application are shown in the technical problem schematic diagram as Figure 1 The prior art has the problems of low accuracy of theme switching, long theme switching time, low efficiency and high cost of theme package generation.

[0090] To solve the problems in the prior art, the inventors found, in the process of researching theme switching methods, that ensuring the uniqueness of layer node names, resource names, variable names and method names, i.e., avoiding using names in other theme packages, can reduce the occurrence of control abnormality and improve the accuracy of theme switching. The server processes an original theme design file to obtain first layer tree structure data and initial resource data, and then adds a uniqueness prefix to the name of each layer node in the first layer tree structure data to obtain second layer tree structure data. After performing hash renaming on each resource file in the initial resource data to obtain target resource data, the target theme package is generated in combination with the second layer tree structure data, and then sent to the vehicle terminal. The vehicle terminal performs rendering in the created isolated sandbox according to the target theme package to generate a target theme interface. This scheme ensures the uniqueness of layer node names by adding a uniqueness prefix to the name of each layer node, ensures the uniqueness of resource names by performing hash renaming on resource files, and ensures the uniqueness of variable names and method names by performing rendering in the isolated sandbox, thereby improving the accuracy of theme switching. The target theme package is obtained by directly processing the original theme design file, which eliminates the need for a staff member to process the original theme design file, thereby improving the efficiency of theme package generation and reducing costs. The system does not need to be restarted, thereby reducing the theme switching time. Based on the above inventive concept, the theme switching scheme in the present application is designed.

[0091] The application scenarios of the theme switching method provided in the present application are described below.

[0092] Exemplarily, in this application scenario, the system of the vehicle terminal needs to switch the theme. After the designer completes the original theme design file, the original theme design file is uploaded to the server through the terminal device. The original theme design file can be a file in the Sketch format.

[0093] The server performs data extraction processing and adaptation processing on the obtained original theme design file to obtain first layer tree structure data and initial resource data.

[0094] Further, a unique prefix is added to the name of each layer node in the first layer tree structure data to obtain second layer tree structure data; and each resource file in the initial resource data is renamed by hashing to obtain target resource data.

[0095] Then, the target theme package is generated according to the second layer tree structure data and the target resource data, and the target theme package is sent to the vehicle terminal.

[0096] After the vehicle terminal receives the target theme package, an isolated sandbox corresponding to the target theme package is created, and then the target theme package is rendered in the isolated sandbox to generate a target theme interface.

[0097] It should be noted that the above scenario is only an example of an application scenario provided by the embodiments of the present application, and the actual form of various devices included in the scenario is not limited, nor is the interaction mode between the devices limited. In the specific application of the scheme, the actual needs can be set.

[0098] Next, the technical scheme of the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in detail in some embodiments.

[0099] Figure 2 The flowchart of the theme switching method embodiment provided by the present application is shown in the figure. The embodiments of the present application add a unique prefix to the name of the layer node, rename the resource file by hashing, and then generate the target theme package and send it to the vehicle terminal. The vehicle terminal renders the target theme package in the generated isolated sandbox. The method in this embodiment can be realized by software, hardware or a combination of software and hardware. As shown in the figure, the theme switching method specifically includes the following steps: Figure 2

[0100] S201: The server performs data extraction processing and adaptation processing on the obtained original theme design file to obtain first layer tree structure data and initial resource data.

[0101] ​In this step, when the theme needs to be switched, the designer uploads the original theme design file to the server, and the server can obtain the original theme design file, and then performs data extraction processing and adaptation processing on the original theme design file to obtain the first layer tree structure data and the initial resource data.

[0102] Specifically, according to a preset data extraction model, the original theme design file is subjected to data extraction processing to obtain initial layer tree structure data and initial resource data.

[0103] The preset data extraction model is a pre-trained large language model for determining layer tree structure data and resource data according to a theme design file. The preset data extraction model can extract the to-be-processed layer tree structure data and the initial resource data from the original theme design file. The to-be-processed layer tree structure data includes data of a plurality of layer nodes, and the data of the layer nodes includes data required for drawing a control. The initial resource data includes resource files, which can be text, pictures, audio, etc. The preset data extraction model can also determine the type of each layer node, perform vector path conversion on a layer node of a vector graph type, and perform bitmap separation on a layer node of a bitmap type to obtain the initial layer tree structure data.

[0104] For example, the vector path conversion of the layer node can be performed in the following manner: the data of the layer node includes coordinates of points required for drawing a control, and a curve is generated according to the coordinates to complete the vector path conversion. The bitmap separation of the layer node can be performed in the following manner: the data of the layer node includes a bitmap, and the bitmap is stored in the initial resource data to complete the bitmap separation. The vector path conversion and the bitmap separation can not only improve the rendering efficiency, but also improve the rendering effect.

[0105] After obtaining the initial layer tree structure data, the initial layer tree structure data is converted according to the obtained environment parameters of the vehicle-mounted terminal to obtain the first layer tree structure data.

[0106] That is, the target conversion rule library corresponding to the environment parameters of the vehicle-mounted terminal is obtained according to the correspondence between the preset environment parameters and the conversion rule library. Then, the initial layer tree structure data is converted according to the rules in the target conversion rule library to obtain the first layer tree structure data.

[0107] It should be noted that the environment parameters include at least one of an operating system type, a software development kit (SDK) version number, a graphics processing unit (GPU) model, etc., and the embodiments of the present application do not limit the environment parameters, which can be determined according to actual conditions.

[0108] For example, the rules in the target conversion rule library can be: deleting the code containing style.filter, adding the corresponding pad function of the environment parameter before the lastItem command, replacing background with bgColor, etc. The embodiments of the present application do not limit the rules in the target conversion rule library, which can be determined according to actual conditions.

[0109] S202: The server adds a unique prefix to the name of each layer node in the first layer tree structure data according to the data of the layer node, to obtain second layer tree structure data.

[0110] In this step, after the server obtains the first layer tree structure data and the initial resource data, in order to avoid abnormal generation of controls caused by repeated layer node names, a unique prefix is added to the name of each layer node in the first layer tree structure data, to obtain second layer tree structure data,

[0111] That is, for each layer node in the first layer tree structure data, a unique prefix is added to the name of the layer node according to the data of the layer node.

[0112] Specifically, the node hash value of the data of the layer node is calculated first. Then, the name prefix of the layer node is generated according to the node hash value, and finally the name prefix is added to the name of the layer node.

[0113] It should be noted that the node hash value can be used as the name prefix, or the node hash value can be combined with an auxiliary field as the name prefix. The auxiliary field can be a field formed at the current time, a random number, a theme version number, etc.

[0114] S203: The server performs hash renaming on each resource file in the initial resource data to obtain target resource data.

[0115] In this step, after the server obtains the first layer tree structure data and the initial resource data, in order to avoid abnormal generation of controls caused by repeated resource file names, hash renaming is performed on each resource file in the initial resource data to obtain target resource data.

[0116] That is, for each resource file in the initial resource data, the hash value of the resource file is calculated, and the hash value is used as the new name of the resource file.

[0117] It should be noted that after calculating the hash value of a resource file, the hash value can be combined with an auxiliary field as the new name of the resource file. The auxiliary field can be a field formed at the current time, a random number, a theme version number, etc.

[0118] It should be noted that the execution sequence of steps S202 and S203 can be: first performing step S202, and then performing step S203; or first performing step S203, and then performing step S202; or performing step S202 and step S203 at the same time. The embodiment of the present application does not limit the execution sequence of steps S202 and S203, which can be determined according to actual conditions.

[0119] S204: The server generates a target theme package according to the second layer tree structure data and the target resource data.

[0120] In this step, after obtaining the second layer tree structure data and the target resource data, the server generates a target theme package according to the second layer tree structure data and the target resource data.

[0121] S205: The server sends the target theme package to the vehicle terminal.

[0122] In this step, after generating the target theme package, the server sends the target theme package to the vehicle terminal in order to perform theme switching by the vehicle terminal.

[0123] In an implementation manner, the server can calculate a first hash value of the target theme package, and then encrypt the first hash value to obtain a target signature. Then, the server sends the target theme package and the target signature to the vehicle terminal.

[0124] S206: After receiving the target theme package sent by the server, the vehicle terminal creates an isolated sandbox corresponding to the target theme package.

[0125] In this step, after the server sends the target theme package to the vehicle terminal, the vehicle terminal can receive the target theme package, and then creates an isolated sandbox corresponding to the target theme package in order to avoid abnormal generation of controls caused by repeated variable names and method names.

[0126] The target theme package includes second layer tree structure data in which layer node names are added with unique prefixes and target resource data in which resource files are renamed by hashing.

[0127] In an implementation manner, if the server sends the target theme package and the target signature to the vehicle terminal, the vehicle terminal decrypts the target signature to obtain a second hash value. Then, the vehicle terminal calculates a third hash value of the target theme package. If the second hash value is the same as the third hash value, it indicates that the target theme package is normal, and the vehicle terminal creates an isolated sandbox corresponding to the target theme package. If the second hash value is not the same as the third hash value, it indicates that the target theme package is abnormal, and the vehicle terminal discards the target theme package and outputs a theme package abnormality prompt message. By verifying whether the second hash value is the same as the third hash value, it is determined whether the target theme package is normal, which can improve the security of the target theme package.

[0128] It should be noted that the target theme package can be a theme package of a system of the vehicle terminal, or a theme package of a vehicle application in the vehicle terminal.

[0129] S207: The vehicle terminal renders according to the target theme package in the isolated sandbox to generate a target theme interface.

[0130] In this step, after the vehicle terminal generates the isolated sandbox, the vehicle terminal renders according to the target theme package in the isolated sandbox to generate a target theme interface.

[0131] The target theme package includes second layer tree structure data and target resource data, each layer node in the second layer tree structure data is added with a unique prefix, and each resource file in the target resource data is renamed by hashing, so that when the data is searched according to the name of the layer node and the name of the resource file, only unique data can be found, and the control can be normally rendered and generated.

[0132] When rendering, the vehicle terminal updates the resource path to the path where the target resource data is located.

[0133] Since the rendering is performed in the isolated sandbox, the isolated sandbox is an independent container, the target theme package is loaded and rendered in the container, and variable names and method names outside the container are not used, so that the control can be normally rendered and generated.

[0134] For example, the isolated sandbox is an iframe container, the global document object can be deleted and replaced with a virtual DOM interface.

[0135] The theme switching method provided in this embodiment performs data extraction processing and adaptation processing on the obtained original theme design file through a server to obtain first layer tree structure data and initial resource data, and then adds a unique prefix to the name of each layer node in the first layer tree structure data to obtain second layer tree structure data; each resource file in the initial resource data is renamed by hashing to obtain target resource data; and then the target theme package is generated according to the second layer tree structure data and the target resource data and sent to the vehicle terminal. The vehicle terminal creates an isolated sandbox corresponding to the target theme package, renders according to the target theme package in the isolated sandbox, and generates a target theme interface. Compared with the prior art in which controls are generated using data of other font packages due to repeated resource names, variable names, method names, or layer node names, the present scheme can ensure the uniqueness of the layer node name, the resource name, the variable name, and the method name by adding a unique prefix to the name of the layer node, renaming the resource file by hashing, and rendering in the isolated sandbox, thereby improving the accuracy of theme switching.

[0136] In addition, the target theme package is obtained by directly processing the original theme design file, without the need for staff to process the original theme design file, so that the generation efficiency of the theme package is improved and the cost is reduced. When the theme package is a theme package of a vehicle-mounted terminal system, the system does not need to be restarted, and the theme switching efficiency is improved.

[0137] Figure 3 The flowchart of the second embodiment of the theme switching method provided in the application is shown in the above embodiment. After the server obtains the first layer tree structure data and before obtaining the second layer tree structure data, the first layer tree structure data is updated. As shown in the figure, the theme switching method specifically includes the following steps: Figure 3

[0138] S301: According to the preset classification model, the control classification processing is performed on the first layer tree structure data to obtain a control data set.

[0139] In this step, after the server obtains the first layer tree structure data, in order to improve the accuracy of control generation, the first layer tree structure data can be updated. First, according to the preset classification model, the control classification processing is performed on the first layer tree structure data to obtain a control data set.

[0140] The preset classification model is a machine learning model pre-trained for generating a control data set according to layer tree structure data. The preset classification model can classify the layer nodes in the first layer tree structure data, each class corresponding to a control, and then for each class of layer nodes, the data of the class of layer nodes in the first layer tree structure data is taken as a first control structure data. The preset classification model determines the control type identifier according to the data of the class of layer nodes in the first layer tree structure data, and carries the first control structure data with the control type identifier. The first control structure data is an element in the control data set.

[0141] It should be noted that the control type identifier is an identifier representing the control type, and the control type can be a button, a switch, an icon, a progress bar, etc. The application embodiment does not limit the space type, which can be determined according to the actual situation.

[0142] S302: For each first control structure data in the control data set, according to the style data and position data in the first control structure data and the control type identifier carried by the first control structure data, determine the second control structure data corresponding to the first control structure data.

[0143] ​In this step, after the server obtains the control data set, for each first control structure data in the control data set, the server determines the second control structure data corresponding to the first control structure data according to the style data and the position data in the first control structure data and the control type identifier carried by the first control structure data.

[0144] Specifically, according to the position data and the control type identifier, the corresponding reference style data and reference position data are obtained. The corresponding reference style data and reference position data can be determined according to the preset position data, the space type identifier, and the corresponding relationship between the reference style data and the reference position data.

[0145] If the style data is different from the reference style data or the position data is different from the reference position data, it indicates that the generated control will be abnormal. In this case, the style data is updated to the reference style data, and the position data is updated to the reference position data, to obtain the second control structure data corresponding to the first control structure data.

[0146] If the style data is the same as the reference style data and the position data is the same as the reference position data, it indicates that the generated space will not be abnormal. In this case, the first control structure data is taken as the second control structure data corresponding to itself.

[0147] S303: Generate third layer tree structure data according to the second control structure data corresponding to each first control structure data in the control data set.

[0148] In this step, after the server determines the second control structure data corresponding to each first control structure data, the server generates third layer tree structure data according to the second control structure data corresponding to each first control structure data in the control data set. Each first control structure data in the first layer tree structure data can be replaced by the corresponding second control structure data to obtain the third layer tree structure data.

[0149] In an implementation manner, before generating the third layer tree structure data according to the second control structure data corresponding to each first control structure data in the control data set, the server can perform simulation verification on each second control structure data according to the obtained environmental parameters of the vehicle-mounted terminal, to obtain a verification result of the second control structure data. The verification result indicates whether the simulation verification is passed.

[0150] If the verification results of all the second control structure data indicate that the simulation verification is passed, the third layer tree structure data is generated according to the second control structure data corresponding to each first control structure data in the control data set. If the verification result of at least one second control structure data indicates that the simulation verification is not passed, the current theme switching process is ended.

[0151] It should be noted that the manner of simulating verification on the second control data structure data can be that the server simulates a virtual vehicle terminal according to the environmental parameters of the vehicle terminal, and then renders the second control data structure data in the virtual vehicle terminal, confirms whether an error occurs, determines whether the rendering result is the same as the preset result, and whether the rendering time length is less than the preset time length threshold. If no error occurs, the rendering result is the same as the preset result, and the rendering time length is less than the preset time length threshold, a verification result indicating that the simulation verification is passed is generated. If an error occurs, the rendering result is not the same as the preset result, or the rendering time length is greater than or equal to the preset time length threshold, a verification result indicating that the simulation verification is not passed is generated. The preset time length threshold can be 0.5 seconds, 1 second, 3 seconds, etc. The preset time length threshold is not limited in the embodiment of the application, and can be determined according to actual conditions.

[0152] S304: For each layer node in the third layer tree structure data, a unique prefix is added to the name of the layer node according to the data of the layer node, to obtain second layer tree structure data.

[0153] In this step, after the server obtains the third layer tree structure data, for each layer node in the third layer tree structure data, a unique prefix is added to the name of the layer node according to the data of the layer node, to obtain second layer tree structure data.

[0154] It should be noted that this step is similar to step S202 in embodiment one, and will not be repeated here.

[0155] The theme switching method provided in this embodiment can improve the accuracy of the generated control in subsequent rendering by updating the first layer tree structure data according to the style data and position data of the first control structure data in the control data set, and the control type identifier carried thereby, to obtain third layer tree structure data.

[0156] Figure 4 The flowchart of the theme switching method provided in embodiment three of the application is based on the above-mentioned embodiments, and the embodiment of the application explains the case where the vehicle terminal adds a proxy interception layer outside the isolated sandbox. As shown in the figure, the theme switching method specifically includes the following steps: Figure 4

[0157] S401: Add a proxy interception layer outside the isolated sandbox to obtain an intercepted isolated sandbox.

[0158] ​In this step, after the vehicle terminal sound test isolation sandbox, in order to intercept the target theme package in the code access to some application programming interface (Application Programming Interface, API for short), the proxy interception layer can be added outside the isolation sandbox, and the interception isolation sandbox is obtained.

[0159] The proxy interception layer includes a blacklist. When the code in the target theme package accesses the API in the blacklist, the proxy interception layer will prevent access, which can prevent malicious or erroneous code from affecting the normal operation of the vehicle application or the entire vehicle system.

[0160] For example, the blacklist includes eval, Function constructor, CAN_BUS, Geolocation and other APIs.

[0161] It should be noted that the vehicle terminal can add a unique prefix to each layer node in the second layer tree structure data in the target theme package.

[0162] For example, Figure 5 The architecture diagram of the interception isolation sandbox provided in the present application is shown in Figure 5 As shown, the gray layer represents the isolation sandbox, the black layer represents the proxy interception layer, the target theme package is rendered in the isolation sandbox, and the proxy interception layer is outside the isolation sandbox.

[0163] S402: rendering in the interception isolation sandbox according to the target theme package to generate a target theme interface.

[0164] It should be noted that this step is similar to step S207 in example one, and will not be repeated here.

[0165] The theme switching method provided in this embodiment can improve the running safety of the vehicle terminal by adding a proxy interception layer outside the isolation sandbox.

[0166] The following describes the case of uninstalling the target theme package by the theme switching method provided in the present application.

[0167] When the user wants to uninstall the target theme package, the vehicle terminal is operated to uninstall, and the vehicle terminal responds to the uninstall operation of the user to delete the second layer tree structure data and the target resource data in the target theme package to release the memory resource occupation.

[0168] It should be noted that if the target theme package includes a JS file, the vehicle terminal also needs to delete the JS file.

[0169] For example, Figure 6 The flowchart of uninstalling the theme package provided in the present application is shown in Figure 6As shown, the vehicle terminal deletes the second layer tree structure data in the target theme package, deletes the JS file, and deletes the target resource data in sequence.

[0170] The theme switching method provided in the embodiment achieves unloading of the target theme package by deleting the second layer tree structure data and the target resource data in the target theme package, reduces memory resource occupation, and does not leave residual data.

[0171] The following is a device embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0172] Figure 7 The structure diagram of the theme switching device embodiment one provided in the present application; the device can be integrated in the server in the above-mentioned method embodiments, or can be realized through the server in the above-mentioned method embodiments. As shown, Figure 7 The theme switching device 70 includes:

[0173] The processing module 71 is configured to:

[0174] perform data extraction processing and adaptation processing on the obtained original theme design file to obtain first layer tree structure data and initial resource data;

[0175] For each layer node in the first layer tree structure data, a unique prefix is added to the name of the layer node according to the data of the layer node to obtain second layer tree structure data;

[0176] Each resource file in the initial resource data is subjected to hash renaming to obtain target resource data;

[0177] The target theme package is generated according to the second layer tree structure data and the target resource data;

[0178] The sending module 72 is configured to send the target theme package to the vehicle terminal.

[0179] Further, the processing module 71 is specifically configured to:

[0180] The original theme design file is subjected to data extraction processing according to a preset data extraction model to obtain initial layer tree structure data and the initial resource data;

[0181] The initial layer tree structure data is converted according to the obtained environment parameters of the vehicle terminal to obtain the first layer tree structure data.

[0182] Further, the processing module 71 is specifically configured to:

[0183] According to the correspondence relationship between the environmental parameters and the conversion rule library, a target conversion rule library corresponding to the environmental parameters of the vehicle terminal is acquired;

[0184] According to the target conversion rule library, the initial layer tree structure data is converted to obtain the first layer tree structure data.

[0185] Further, the processing module 71 is specifically further used for:

[0186] calculating a node hash value of the data of the layer node;

[0187] generating a name prefix of the layer node according to the node hash value;

[0188] adding the name prefix before the name of the layer node.

[0189] Further, before the processing module 71 adds a unique prefix to the name of each layer node in the first layer tree structure data according to the data of the layer node to obtain the second layer tree structure data, the processing module 71 is further used for:

[0190] According to a preset classification model, the first layer tree structure data is subjected to control classification processing to obtain a control data set;

[0191] For each first control structure data in the control data set, according to the style data and the position data in the first control structure data and the control type identifier carried by the first control structure data, a second control structure data corresponding to the first control structure data is determined;

[0192] According to the second control structure data corresponding to each first control structure data in the control data set, third layer tree structure data is generated;

[0193] The processing module 71 is specifically further used for adding a unique prefix to the name of each layer node in the third layer tree structure data according to the data of the layer node to obtain the second layer tree structure data.

[0194] Further, the processing module 71 is specifically further used for:

[0195] According to the position data and the control type identifier, corresponding reference style data and reference position data are acquired;

[0196] If the style data is different from the reference style data, or the position data is different from the reference position data, the style data is updated as the reference style data, and the position data is updated as the reference position data, to obtain second control structure data corresponding to the first control structure data;

[0197] If the style data is the same as the reference style data, and the position data is the same as the reference position data, the first control structure data is taken as second control structure data corresponding to the first control structure data.

[0198] Further, before the processing module 71 generates third layer tree structure data according to second control structure data corresponding to each first control structure data in the control data set, the processing module 71 is further configured to:

[0199] For each second control structure data, the second control structure data is simulated and verified according to the obtained environmental parameter of the vehicle-mounted terminal, to obtain a verification result of the second control structure data, the verification result indicating whether the simulation and verification pass;

[0200] The processing module 71 is specifically further configured to generate third layer tree structure data according to second control structure data corresponding to each first control structure data in the control data set, if the verification results of all second control structure data indicate that the simulation and verification pass.

[0201] The subject switching device provided in the embodiment is used to implement the technical solution of the server in any one of the foregoing method embodiments, and has similar implementation principles and technical effects, which will not be described herein again.

[0202] Figure 8 FIG. 2 is a structural schematic diagram of a subject switching device according to Embodiment Two of the present application; the device can be integrated in the vehicle-mounted terminal in the foregoing method embodiments, or can be implemented by the vehicle-mounted terminal in the foregoing method embodiments. As shown in the figure, the subject switching device 80 includes: Figure 8

[0203] A receiving module 81 is configured to receive a target subject package sent by a server, the target subject package including second layer tree structure data with a prefix added to a layer node name and target resource data with a hash renamed;

[0204] A processing module 82 is configured to create an isolated sandbox corresponding to the target subject package;

[0205] A rendering module 83 is configured to perform rendering in the isolated sandbox according to the target subject package, to generate a target subject interface.

[0206] ​Further, after the isolated sandbox corresponding to the target theme package is created, the processing module 82 is further configured to add an agent interception layer outside the isolated sandbox to obtain an intercepted isolated sandbox.

[0207] The rendering module 83 is specifically configured to render in the intercepted isolated sandbox according to the target theme package to generate a target theme interface.

[0208] Further, the processing module 82 is further configured to delete the second layer tree structure data and the target resource data in the target theme package in response to a user uninstallation operation.

[0209] The theme switching device provided in the embodiment is used to implement the technical solution of the vehicle-mounted terminal in any one of the method embodiments, and has similar implementation principles and technical effects, which will not be described here.

[0210] Figure 9 A structural schematic diagram of a server is provided in the present application. As shown in the figure, the server 90 includes: Figure 9

[0211] a processor 91, a memory 92, and a communication interface 93;

[0212] The memory 92 is configured to store executable instructions of the processor 91.

[0213] The processor 91 is configured to implement the technical solution of the server in any one of the method embodiments by executing the executable instructions.

[0214] Optionally, the memory 92 can be independent or integrated with the processor 91.

[0215] Optionally, when the memory 92 is independent of the processor 91, the server 90 can further include:

[0216] a bus 94, the memory 92 and the communication interface 93 are connected with the processor 91 through the bus 94 and complete communication with each other, and the communication interface 93 is configured to communicate with other devices.

[0217] Optionally, the communication interface 93 can be implemented by a transceiver. The communication interface is configured to realize communication between the database access device and other devices (for example, a client, a read-write library and a read-only library). The memory can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory.

[0218] ​The bus 94 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.

[0219] The processor described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0220] The server is used to execute the technical solutions of the server in any of the preceding method embodiments, and has similar implementation principles and technical effects, which will not be described here.

[0221] Figure 10 A structural schematic diagram of a vehicle terminal is provided in the present application. As shown in the figure, the vehicle terminal 1000 includes: Figure 10

[0222] A processor 1001, a memory 1002, and a communication interface 1003;

[0223] The memory 1002 is used to store executable instructions of the processor 1001;

[0224] The processor 1001 is configured to execute the technical solutions of the vehicle terminal in any of the preceding method embodiments by executing the executable instructions.

[0225] Optionally, the memory 1002 can be independent or integrated with the processor 1001.

[0226] Optionally, when the memory 1002 is independent of the processor 1001, the vehicle terminal 1000 can further include:

[0227] A bus 1004, the memory 1002 and the communication interface 1003 are connected with the processor 1001 through the bus 1004 and complete communication with each other, and the communication interface 1003 is used to communicate with other devices.

[0228] ​Optionally, the communication interface 1003 can be implemented by a transceiver. The communication interface is used to realize the communication between the database access device and other devices (for example, a client, a read-write library and a read-only library). The storage can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory.

[0229] The bus 1004 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.

[0230] The processor described above can be a general-purpose processor, including a central processing unit CPU, a network processor NP, etc.; can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0231] The vehicle terminal is used to execute the technical solutions of the vehicle terminal in any of the preceding method embodiments, and the implementation principles and technical effects are similar, which will not be described here.

[0232] The embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to implement the technical solutions provided by any of the preceding method embodiments.

[0233] The embodiment of the present application further provides a readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the technical solutions provided by any of the preceding method embodiments.

[0234] The readable storage medium described above can be implemented by any type of volatile or non-volatile storage device or their combination, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk or an optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0235] An example readable storage medium is coupled to the processor such that the processor can read information from the readable storage medium and can write information to the readable storage medium. Of course, the readable storage medium can also be a part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.

[0236] The division of units is only a logical functional division, and in actual implementation, there can be another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0237] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0238] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.

[0239] If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.

[0240] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. The program executes to perform the steps of the above-mentioned method embodiments; and the foregoing storage medium includes various storage media that can store program codes, such as ROM, RAM, magnetic disk or optical disk.

[0241] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A theme switching method, characterized in that, Applied to servers, including: The original theme design file is processed for data extraction and adaptation to obtain the first layer tree structure data and initial resource data. For each layer node in the first layer tree structure data, a unique prefix is ​​added to the name of the layer node according to the data of the layer node to obtain the second layer tree structure data; Each resource file in the initial resource data is hashed and renamed to obtain the target resource data; Based on the second layer tree structure data and the target resource data, a target theme package is generated; The target theme package is sent to the vehicle terminal.

2. The method according to claim 1, characterized in that, The process of extracting and adapting data from the acquired original theme design file yields the first layer tree structure data and initial resource data, including: According to the preset data extraction model, the original theme design file is processed to extract data to obtain the initial layer tree structure data and the initial resource data; Based on the environmental parameters obtained from the vehicle terminal, the initial layer tree structure data is transformed to obtain the first layer tree structure data.

3. The method according to claim 2, characterized in that, The step of converting the initial layer tree structure data according to the acquired environmental parameters of the vehicle terminal to obtain the first layer tree structure data includes: Based on the correspondence between environmental parameters and the conversion rule base, the target conversion rule base corresponding to the environmental parameters of the vehicle terminal is obtained; The initial layer tree structure data is transformed according to the target transformation rule base to obtain the first layer tree structure data.

4. The method according to claim 1, characterized in that, The step of adding a unique prefix to the name of the layer node based on the data of the layer node includes: Calculate the node hash value of the data of the layer nodes; Generate a naming prefix for the layer nodes based on the node hash value; Add the naming prefix before the name of the layer node.

5. The method according to any one of claims 1 to 4, characterized in that, Before adding a unique prefix to the name of each layer node in the first layer tree structure data to obtain the second layer tree structure data, the method further includes: Based on a preset classification model, the first layer tree structure data is processed to classify controls, resulting in a control data set. For each first control structure data in the control data set, the second control structure data corresponding to the first control structure data is determined based on the style data and position data in the first control structure data, as well as the control type identifier carried by the first control structure data. Based on the second control structure data corresponding to each first control structure data in the control data set, generate the third layer tree structure data; For each layer node in the first layer tree structure data, a unique prefix is ​​added to the name of the layer node based on the data of the layer node to obtain the second layer tree structure data, including: For each layer node in the third layer tree structure data, a unique prefix is ​​added to the name of the layer node based on the data of the layer node to obtain the second layer tree structure data.

6. The method according to claim 5, characterized in that, The step of determining the second control structure data corresponding to the first control structure data based on the style data and position data in the first control structure data, and the control type identifier carried by the first control structure data, includes: Based on the location data and the control type identifier, obtain the corresponding baseline style data and baseline position data; If the style data is different from the baseline style data, or the position data is different from the baseline position data, then the style data is updated to the baseline style data, and the position data is updated to the baseline position data, to obtain the second control structure data corresponding to the first control structure data; If the style data is the same as the baseline style data, and the position data is the same as the baseline position data, then the first control structure data is used as its corresponding second control structure data.

7. The method according to claim 5, characterized in that, Before generating the third layer tree structure data based on the second control structure data corresponding to each first control structure data in the control data set, the method further includes: For each second control structure data, the second control structure data is simulated and verified according to the environmental parameters of the acquired vehicle terminal to obtain the verification result of the second control structure data. The verification result indicates whether the simulation verification is successful. The step of generating third-layer tree structure data based on the second control structure data corresponding to each first control structure data in the control data set includes: If the verification results of all second control structure data indicate that the simulation verification is successful, then the third layer tree structure data is generated based on the second control structure data corresponding to each first control structure data in the control data set.

8. A theme switching method, characterized in that, Applications in vehicle-mounted terminals include: Receive a target theme package sent by the server. The target theme package includes second-layer tree structure data with layer node names prefixed with unique prefixes and target resource data with resource files hashed and renamed. Create an isolation sandbox corresponding to the target theme package; The target theme interface is generated by rendering within the isolated sandbox based on the target theme package.

9. The method according to claim 8, characterized in that, After creating the isolation sandbox corresponding to the target theme package, the method further includes: By adding a proxy interception layer outside the isolation sandbox, an interception isolation sandbox is obtained; The process of rendering the target theme interface within the isolated sandbox based on the target theme package includes: The target theme interface is generated by rendering the target theme package within the interception and isolation sandbox.

10. The method according to claim 8 or 9, characterized in that, The method further includes: In response to the user's uninstallation operation, the second-layer tree structure data and target resource data in the target theme package are deleted.

11. A theme switching device, characterized in that, include: Processing module, used for: The original theme design file is processed for data extraction and adaptation to obtain the first layer tree structure data and initial resource data. For each layer node in the first layer tree structure data, a unique prefix is ​​added to the name of the layer node according to the data of the layer node to obtain the second layer tree structure data; Each resource file in the initial resource data is hashed and renamed to obtain the target resource data; Based on the second layer tree structure data and the target resource data, a target theme package is generated; The sending module is used to send the target theme package to the vehicle terminal.

12. A theme switching device, characterized in that, include: The receiving module is used to receive the target theme package sent by the server. The target theme package includes second-layer tree structure data with the layer node names prefixed and target resource data with hash renaming. The processing module is used to create an isolation sandbox corresponding to the target theme package; The rendering module is used to render the target theme package in the isolated sandbox to generate the target theme interface.

13. A server, characterized in that, include: Processor, memory, communication interface; The memory is used to store the executable instructions of the processor; The processor is configured to execute the topic switching method according to any one of claims 1 to 7 by executing the executable instructions.

14. A vehicle-mounted terminal, characterized in that, include: Processor, memory, communication interface; The memory is used to store the executable instructions of the processor; The processor is configured to execute the topic switching method of any one of claims 8 to 10 by executing the executable instructions.

15. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the topic switching method according to any one of claims 1 to 7, or any one of claims 8 to 10.

16. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, is used to implement the topic switching method according to any one of claims 1 to 7, or any one of claims 8 to 10.