CN111562956B - Theme switching method and device for terminal, storage medium and electronic equipment - Google Patents

Theme switching method and device for terminal, storage medium and electronic equipment Download PDF

Info

Publication number
CN111562956B
CN111562956B CN202010292436.8A CN202010292436A CN111562956B CN 111562956 B CN111562956 B CN 111562956B CN 202010292436 A CN202010292436 A CN 202010292436A CN 111562956 B CN111562956 B CN 111562956B
Authority
CN
China
Prior art keywords
terminal
theme
instruction
color
erasing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010292436.8A
Other languages
Chinese (zh)
Other versions
CN111562956A (en
Inventor
廖应麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010292436.8A priority Critical patent/CN111562956B/en
Publication of CN111562956A publication Critical patent/CN111562956A/en
Application granted granted Critical
Publication of CN111562956B publication Critical patent/CN111562956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The present disclosure provides a theme switching method of a terminal, a theme switching device of a terminal, a storage medium and an electronic device, and relates to the technical field of computers, wherein the theme switching method of the terminal includes: acquiring a configuration file corresponding to an identification code comparison tool, and sending the configuration file to the terminal, wherein the configuration file is generated according to a hardware identification code of the terminal; responding to a color erasing instruction in the configuration file, and erasing the theme of the terminal through the color erasing instruction so as to automatically switch the theme of the terminal into a target theme irrelevant to the color of a battery cover of the terminal. The technical scheme disclosed by the invention can improve the efficiency and the accuracy of theme switching of the terminal.

Description

Theme switching method and device for terminal, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a theme switching method for a terminal, a theme switching apparatus for a terminal, a computer-readable storage medium, and an electronic device.
Background
In order to improve the personalized configuration, the theme color of most terminals needs to be matched with the color of a battery cover of the terminal, and the automatic configuration is realized through software and a maintenance production management system.
But for users who do not require personalized configurations, default wallpaper may be required, and color matching with the battery cover is not desirable. In the related art, the theme is generally set as the default theme manually. In this way, there may be a problem of operation leakage, the switching efficiency is low, and it is easy for misoperation to occur, resulting in low accuracy, thereby affecting the switching effect and having high cost.
It is noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure and therefore may include information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
The disclosure provides a theme switching method of a terminal, a theme switching device of the terminal, a computer readable storage medium and an electronic device, thereby overcoming the problem of poor operation accuracy at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, a method for switching a theme of a terminal is provided, including: acquiring a configuration file corresponding to an identification code comparison tool, and sending the configuration file to the terminal, wherein the configuration file is generated according to a hardware identification code of the terminal; responding to a color erasing instruction in the configuration file, and erasing the theme of the terminal through the color erasing instruction so as to automatically switch the theme of the terminal into a target theme irrelevant to the color of a battery cover of the terminal.
According to a first aspect of the present disclosure, there is provided a theme switching apparatus of a terminal, including: the configuration file acquisition module is used for acquiring a configuration file corresponding to the identification code comparison tool and sending the configuration file to the terminal, wherein the configuration file is generated according to a hardware identification code of the terminal; and the theme erasing module is used for responding to a color erasing instruction in the configuration file, and erasing the theme of the terminal through the color erasing instruction so as to automatically switch the theme of the terminal into a target theme irrelevant to the color of the battery cover of the terminal.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a theme switching method of a terminal described in any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing executable instructions of the processor; and wherein the processor is configured to perform the theme switching method of the terminal of any one of the above via execution of the executable instructions.
According to the theme switching method of the terminal, the theme switching device of the terminal, the computer readable storage medium and the electronic device, the configuration file which is generated by the hardware identification code of the terminal and used for representing the identification code comparison tool is obtained, and then when an erasing instruction in the configuration file is detected, the theme of the terminal is erased according to the erasing instruction, so that the theme of the terminal is automatically switched to the target theme. On one hand, the theme of the terminal can be directly erased according to the erasing instruction in the configuration file, and the theme of the terminal is automatically switched to the target theme. The erasing operation of the theme can be executed according to the erasing instruction of the configuration file, and the theme is switched to the target theme by erasing the color zone bit, so that misoperation possibly caused by manual operation is avoided, and the efficiency and the accuracy of theme switching are improved. On the other hand, the method for erasing the theme through the configuration file can be applied to all types of terminals, so that operation omission is avoided, the application range and operability are also increased, and the practicability and switching reliability are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure. It is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained from those drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram showing a system architecture for implementing a theme switching method of a terminal in the present exemplary embodiment;
fig. 2 is a flowchart illustrating a theme switching method of a terminal in the present exemplary embodiment;
FIG. 3 is a detailed flow diagram of the execution of instructions in the exemplary embodiment;
fig. 4 is a block diagram showing a configuration of a theme switching apparatus of a terminal in the present exemplary embodiment;
fig. 5 shows a schematic diagram of an electronic device for implementing the above method in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
A system architecture diagram of a method of an embodiment of the present disclosure is schematically illustrated in fig. 1, and as shown in fig. 1, the system architecture 100 may include a terminal 101 and a tool end 102. The terminal 101 may be various clients, such as various handheld devices (smart phones) with display functions, tablet computers, and the like. The tool end may be a device capable of executing instructions, and may be, for example, a portable computer, a desktop computer, or a special tool, and the like, without limitation.
It should be noted that the number of the terminals 101 shown in fig. 1 is only exemplary, and any number of the terminals 101 may be provided according to practical needs, and is not limited herein.
Based on the system architecture shown in fig. 1, the embodiment of the present disclosure provides a theme switching method for a terminal, and an execution main body of the theme switching method may be a tool end. Fig. 2 schematically shows a flowchart of a theme switching method of a terminal in the embodiment of the present disclosure, and with reference to fig. 2, the method mainly includes steps S210 to S220, and the following steps are introduced in detail:
in step S210, a configuration file corresponding to the identifier comparison tool is obtained and sent to the terminal, where the configuration file is generated according to the hardware identifier of the terminal;
in step S220, in response to the color erasing instruction in the configuration file, the theme of the terminal is erased through the color erasing instruction, so as to automatically switch the theme of the terminal to a target theme unrelated to the battery cover color of the terminal.
On one hand, the theme switching method of the terminal provided in the embodiment of the disclosure can directly erase the theme of the terminal according to the color erasing instruction in the configuration file, and automatically switch the theme of the terminal to the target theme. The erasing operation of the theme can be executed according to the color erasing instruction of the configuration file, and the theme is switched to the target theme by erasing the color zone bit, so that misoperation possibly caused by manual operation is avoided, and the efficiency and the accuracy of theme switching are improved. On the other hand, the method for erasing the theme through the color erasing instruction in the configuration file can be applied to all types of terminals, so that the application range and operability are increased, and the practicability is improved.
Next, a theme shift method of a terminal in the embodiment of the present disclosure is explained in detail with reference to the drawings.
In step S210, a configuration file corresponding to the identifier comparison tool is obtained and sent to the terminal, where the configuration file is generated according to the hardware identifier of the terminal.
In the embodiment of the present disclosure, the identification code comparison tool refers to a tool end for performing configuration detection on a terminal, and may be a computer or a special tool end. The detected terminal refers to a terminal that is not shipped from the factory, such as a handset before shipment. The terminal can be distinguished and uniquely represented by using an identification code, where the identification code may be an International Mobile Equipment Identity (IMEI), that is, a Mobile phone serial number, for identifying each independent Mobile phone and other Mobile communication devices in a Mobile phone network. Based on this, the identification code comparison tool may be, for example, an international mobile equipment identification code comparison tool.
In the embodiment of the present disclosure, for the identification code comparison tool, a corresponding configuration file may be configured for the identification code comparison tool, so as to configure the function of the identification code comparison tool used for the terminal. One tool terminal can be applied to different types of terminals, and only configuration files corresponding to the terminals need to be set. For example, the tool side may be applied to terminal a, terminal B, and the like, but the configuration files corresponding to terminal a and terminal B are different. Specifically, the configuration file corresponding to the identifier comparison tool may be set separately according to the hardware identifier of the terminal, where the hardware identifier of the terminal may include a model name (mobile phone model) of the terminal and a national suffix, e.g., ABC1+. CN. The configuration file may be used to indicate a plurality of types of instructions, and specifically may include an id card checking instruction and a color erasing instruction, and the color erasing instruction may include a plurality of instructions, for example, the color erasing instruction may be formed by an erasing instruction for erasing a color flag bit and a total clearing instruction. The id card check command is referred to as a SIM (Subscriber Identity Module) card check command. The SIM card check instruction is used to check whether a subscriber identity card is present in the terminal. In the configuration file, the color erasing command may be located after the id card checking command (i.e., the id card checking command is executed first, and then the color erasing command is executed). In the color erasing command, if there are a plurality of different commands, the arrangement order between the plurality of different commands may not be particularly limited as long as the total clear command is arranged at the end. That is, the erase command is executed first and then the total clear command is executed. For example, the erase command for erasing the color flag bit in the configuration file is located after the id card check command, and the total clear command is arranged at the end. That is, a color erasing command is added after the id card checking command to obtain the configuration file of the id comparison tool for each terminal according to the hardware id of the terminal. It should be noted that, for different terminals, the background configuration file of the identification code comparison tool can be set independently according to the hardware identification code, so that the configuration file which has pertinence to each terminal by the identification code comparison tool can be obtained, and the accuracy and pertinence of the configuration file of the identification code comparison tool are improved.
Continuing to refer to fig. 2, in step S220, in response to the color erasing instruction in the configuration file, the theme of the terminal is erased through the color erasing instruction, so as to automatically switch the theme of the terminal to the target theme unrelated to the battery cover color of the terminal.
In the embodiment of the present disclosure, the terminal refers to a terminal that does not need to be configured with a personalized theme, and may be specifically determined according to a country, for example, all mobile phones in a certain country do not need to be configured with a personalized theme. The configuration file may contain a plurality of instructions, which may include an id card check instruction, an erase instruction for erasing the color flag bit, and a total clear instruction, and may further include other types of instructions besides the above-mentioned instructions. Therefore, the type of the currently executed instruction can be judged firstly, and specifically, the configuration parameters of the terminal can be compared one by one through the configuration file to obtain the comparison result of the configuration parameters. The configuration parameters may be performance parameters of the terminal itself, and may include, but are not limited to, a memory, a software version, a key, a country identification code, and the like. The configuration file may include an operation instruction corresponding to each of the configuration parameters, for example, the operation instruction may include an instruction A1 for comparing the memory, and may further include an instruction C3 for comparing the software version, and the like. One instruction may correspond to one configuration parameter, and one configuration parameter may be specifically represented by a plurality of instructions. All instructions may be ADB (Android Debug Bridge instruction). The android debug bridge instruction can be a bridge connecting an android mobile phone and a computer end, and a user can comprehensively operate the mobile phone on the computer end. With the help of the android debug bridge instruction tool, the state of the device or the mobile phone simulator can be managed. Multiple handset operations may also be performed, such as installing software, system upgrades, running various commands, and so forth.
During comparison, the plurality of instructions can be sent to the terminal corresponding to the hardware identification code one by one according to the code information in the configuration file; after the instructions are sent to the terminal, the instruction operation corresponding to the instructions can be executed on the terminal, so that the configuration parameters of the terminal are compared to obtain a comparison result of whether each configuration parameter meets the requirement. Meanwhile, the terminal can send the comparison result obtained by comparison to the tool end, so that the tool end can judge the received comparison result to obtain a judgment result that the comparison result passes or the comparison result fails. And if the judgment result is that the comparison result is not passed, executing the instruction again according to the configuration file. And if the judgment result is that the comparison result passes, stopping executing the instruction according to the configuration file, and determining that the station-crossing is finished, namely determining to execute the whole detection process. During the execution of a plurality of instructions, the tracing and tracking can be carried out according to the station-crossing records. The stop log refers to the instruction log of all instructions (e.g., each instruction execution succeeds or fails, etc.). According to the station-crossing record, the execution condition of each instruction can be obtained, so that the instructions can be modified or re-executed. In the embodiment of the disclosure, the instruction execution result can be reminded, so as to facilitate manual verification and the like.
In the plurality of instructions, if it is detected that the currently executed instruction is a color erasing instruction in the configuration file, the terminal may be erased by calling the color erasing instruction in response to the color erasing instruction in the configuration file. In the existing terminal, in order to enable the terminal to meet personalized requirements, a corresponding theme is generally configured according to the color of a battery cover of the terminal, but since users in some regions do not need the targeted configuration, the set personalized theme needs to be cancelled. Therefore, in the embodiment of the present disclosure, when erasing is performed, an erasing operation is mainly performed on the subject of the terminal. The theme here may include a theme of the terminal, wallpaper, and the like. In the embodiment of the disclosure, in order to avoid misoperation which may be caused when the personalized theme is cancelled manually, the theme of the terminal can be erased by one key through the configuration file set for the tool end, so that the misoperation caused by manual operation can be avoided, the accuracy of theme switching is improved, and the erasing effect is improved.
In the embodiment of the present disclosure, the terminal performing the erasing operation refers to a terminal having a theme matching with the battery cover color of the terminal, that is, a theme matching with the battery cover color of the terminal has been configured for the terminal. The specific steps of performing the erase operation may include the following two steps: the method comprises the steps of firstly, erasing the color zone bit of the terminal through an erasing instruction for erasing the color zone bit, and removing the matching relation between the color zone bit and the theme. The color flag is flag information for indicating a color of a battery cover of the terminal, and one battery cover color may correspond to one color flag. The color flag bit may be a hexadecimal color code, such as gold # FFD700. The color flag bit may also be an RGB value, such as gold (255, 215, 0). After the color flag bit of the terminal is determined, the battery cover color of the terminal and the theme matched with the battery cover color can be determined.
In the existing terminal, the hardware identification code may be associated with at least one color flag corresponding to the color of the battery cover, so that the hardware identification code of each terminal can correspond to at least one color flag. It should be noted that the same hardware identification code may also correspond to a plurality of color flag bits. For example, when the battery cover is a multi-color battery cover formed by multiple colors, the hardware identification code can correspond to multiple different color flag bits.
Based on the above, the color flag bit of the terminal can be erased according to the erasing instruction for erasing the color flag bit, so as to remove the matching relationship between the color flag bit and the theme, and thus remove the matching relationship between the battery cover color of the terminal and the theme. If the hardware identification code corresponds to a color zone bit, the color zone bit is erased; and if the hardware identification code corresponds to a plurality of color zone bits, erasing all the color zone bits. For example, gold # FFD700 may be deleted or changed to 0, and so on. Because the color zone bit is matched with the theme of the terminal, the color zone bit cannot be continuously matched with the theme because the color zone bit does not exist after the color zone bit is erased, and the matching relation between the color zone bit and the theme is relieved. In the embodiment of the present disclosure, the color flag of the terminal is erased through the erase instruction for erasing the color flag in the configuration file, so that the matching relationship between the color flag and the theme of the terminal can be automatically released, so that the hardware identification code does not have a corresponding color flag, and meanwhile, the hardware identification code is unrelated to the theme.
And secondly, erasing the data of the terminal through the total clearing instruction so as to switch the theme of the terminal into the target theme. Further, since the color erasing command also includes the total clearing command, the color of the terminal can be continuously erased according to the total clearing command. The total clearing instruction is used for clearing all data in the terminal, and the data can be specifically all setting data related to the theme in the terminal. The total removal instruction may be understood as factory setting of the terminal, so as to remove all personalized setting data, and call a default theme as a target theme, so as to automatically switch a current theme to the target theme. In the embodiment of the disclosure, through the combination of the erasing instruction for erasing the color flag bit and the total clearing instruction, the theme corresponding to the terminal can be configured according to the battery cover color of the terminal corresponding to the hardware identification code, and the theme can be automatically switched to the target theme unrelated to the battery cover color of the terminal. The target theme here may be a default theme or a general theme, i.e. the target theme is the same for all terminals of the same type, without differentiation.
In the embodiment of the disclosure, for the back-end packaging process, the default wallpaper can be automatically recovered, the risk caused by missing operation during manual switching is avoided, the labor cost is saved, and the tracing and tracking can be performed according to the station-crossing records. The method of the embodiment of the disclosure can be popularized to other terminals of models with the requirement, and by introducing the configuration file to the terminals of other models, the abnormity caused by manual operation is avoided, the universality and the usability are increased, the accuracy of wallpaper and theme switching is improved, and the switching effect can also be improved.
It should be added that if it is detected that the operation of switching the theme of the terminal to the target theme fails, it may be considered that an abnormality occurs, and thus manual switching may be performed through manual operation. If the switching fails, the terminal is considered to be abnormal, and operations such as screening and the like are required.
A flowchart for executing instructions is schematically shown in fig. 3, and referring to the flowchart shown in fig. 3, mainly includes the following steps S301 to S309, where:
in step S301, the tool end is opened.
In step S302, the model and shipment country of the terminal are selected.
In step S303, configuration files are set individually as required, and an android debug bridge instruction is added to the configuration files.
In step S304, the tool side calls a configuration file corresponding to the terminal.
In step S305, the configuration file is placed in the terminal.
In step S306, the tool sends an instruction to the terminal, where the instruction is each instruction included in the configuration file.
In step S307, the terminal executes the corresponding instruction.
In step S308, the terminal returns the result of the corresponding instruction. If the returned result is pass, go to step S309; if the returned result is a failure, the process returns to step S305.
In step S309, the station-crossing ends (i.e., the flow ends).
Through the technical scheme in fig. 3, the color flag bit of the terminal is erased by one key according to the corresponding configuration file configured for the tool terminal and the erasing instruction and the total clearing instruction for erasing the color flag bit in the configuration file, so that the erasing efficiency and accuracy are improved, and the theme of the terminal can be switched to the target theme more accurately and efficiently.
In the embodiment of the present disclosure, a theme switching apparatus of a terminal is further provided, and as shown in fig. 4, the theme switching apparatus 400 of the terminal mainly includes a configuration file obtaining module 401 and a theme erasing module 402, where:
a configuration file obtaining module 401, configured to obtain a configuration file corresponding to the identifier comparison tool, and send the configuration file to the terminal, where the configuration file is generated according to a hardware identifier of the terminal;
the theme erasing module 402 is configured to respond to a color erasing instruction in the configuration file, and perform an erasing operation on the theme of the terminal through the color erasing instruction, so as to automatically switch the theme of the terminal to a target theme unrelated to the battery cover color of the terminal.
In an exemplary embodiment of the present disclosure, the configuration file includes an id card checking instruction and the color erasing instruction, and the color erasing instruction includes an erasing instruction for erasing a color flag bit and a total clearing instruction.
In one exemplary embodiment of the present disclosure, the subject erase module includes: the first erasing module is used for erasing the color zone bit of the terminal through an erasing instruction for erasing the color zone bit so as to remove the matching relation between the color zone bit and the theme; and the second erasing module is used for erasing the data of the terminal through the total clearing instruction so as to switch the theme of the terminal into the target theme.
In an exemplary embodiment of the present disclosure, the apparatus further includes: and the theme determining module is used for taking the default theme of the terminal as the target theme and automatically switching the theme of the terminal into the target theme if the erasing operation is detected to be completed.
In an exemplary embodiment of the present disclosure, the apparatus further includes: and the parameter comparison module is used for comparing the configuration parameters of the terminal through the configuration file to obtain a comparison result of the configuration parameters.
In an exemplary embodiment of the disclosure, the parameter comparison module is configured to: sending the plurality of instructions to a terminal corresponding to the hardware identification code according to the code information in the configuration file; and executing the instruction operation corresponding to the instructions on the terminal, and comparing the execution results of the configuration parameters of the terminal to obtain the comparison result.
In an exemplary embodiment of the present disclosure, the apparatus further includes: the first determining module is used for determining to finish the instruction operation corresponding to the instruction if the comparison result is determined to be passed; and the second determining module is used for continuously executing the instruction operation corresponding to the instruction if the comparison result is determined to be failed.
It should be noted that, the specific details of each module in the theme switching apparatus of the terminal are already described in detail in each step of the theme switching method of the corresponding terminal, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken into multiple step executions, etc.
In an embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the disclosure is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, a bus 530 that couples various system components (including the memory unit 520 and the processing unit 510), and a display unit 540.
Wherein the storage unit stores program code that is executable by the processing unit 510 to cause the processing unit 510 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification. For example, the processing unit 510 may perform the steps as shown in fig. 2.
The memory unit 520 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM) 5201 and/or a cache memory unit 5202, and may further include a read-only memory unit (ROM) 5203.
Storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 530 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration interface, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 500, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. As shown, the network adapter 560 communicates with the other modules of the electronic device 500 over a bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
In an embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
According to the program product for implementing the above method of the embodiments of the present disclosure, it may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not so limited, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A theme switching method of a terminal is characterized by comprising the following steps:
acquiring a configuration file corresponding to an identification code comparison tool, and sending the configuration file to the terminal, wherein the configuration file is generated according to a hardware identification code of the terminal;
and responding to a color erasing instruction in the configuration file, and erasing the theme of the terminal through the color erasing instruction so as to automatically switch the theme of the terminal into a target theme irrelevant to the color of a battery cover of the terminal.
2. The method for switching the theme of the terminal according to claim 1, wherein the configuration file includes an id card check instruction and the color erase instruction, and the color erase instruction includes an erase instruction for erasing a color flag bit and a total clear instruction.
3. The method for switching the theme of the terminal according to claim 2, wherein the erasing the theme of the terminal through the color erasing command to automatically switch the theme of the terminal to the target theme unrelated to the battery cover color of the terminal comprises:
erasing the color zone bit of the terminal through an erasing instruction for erasing the color zone bit so as to remove the matching relation between the color zone bit and the theme;
and erasing the data of the terminal through the total clearing instruction so as to switch the theme of the terminal into the target theme.
4. The method for switching theme of the terminal according to claim 1 or 2, wherein the method further comprises:
and if the erasing operation is detected to be completed, taking the default theme of the terminal as the target theme, and automatically switching the theme of the terminal into the target theme.
5. The method for switching theme of the terminal according to claim 1, wherein the method further comprises:
and comparing the configuration parameters of the terminal through the configuration file to obtain a comparison result of the configuration parameters.
6. The method according to claim 5, wherein comparing the configuration parameters of the terminal with the configuration file to obtain the comparison result of the configuration parameters comprises:
according to the code information in the configuration file, the plurality of instructions are sent to the terminal corresponding to the hardware identification code;
and executing instruction operation corresponding to the plurality of instructions on the terminal, and comparing the execution results of the configuration parameters of the terminal to obtain the comparison result.
7. The method for switching the theme of the terminal according to claim 6, wherein the method further comprises:
if the comparison result is determined to be passed, determining to finish the instruction operation corresponding to the instruction;
and if the comparison result is determined to be failed, continuing to execute the instruction operation corresponding to the instruction.
8. A theme switching apparatus of a terminal, comprising:
the configuration file acquisition module is used for acquiring a configuration file corresponding to the identification code comparison tool and sending the configuration file to the terminal, wherein the configuration file is generated according to a hardware identification code of the terminal;
and the theme erasing module is used for responding to a color erasing instruction in the configuration file, and erasing the theme of the terminal through the color erasing instruction so as to automatically switch the theme of the terminal into a target theme irrelevant to the color of the battery cover of the terminal.
9. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the theme switching method of the terminal according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor; and
wherein the processor is configured to perform the theme switching method of the terminal of any one of claims 1-7 via execution of the executable instructions.
CN202010292436.8A 2020-04-14 2020-04-14 Theme switching method and device for terminal, storage medium and electronic equipment Active CN111562956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010292436.8A CN111562956B (en) 2020-04-14 2020-04-14 Theme switching method and device for terminal, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010292436.8A CN111562956B (en) 2020-04-14 2020-04-14 Theme switching method and device for terminal, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111562956A CN111562956A (en) 2020-08-21
CN111562956B true CN111562956B (en) 2023-04-07

Family

ID=72074411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010292436.8A Active CN111562956B (en) 2020-04-14 2020-04-14 Theme switching method and device for terminal, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111562956B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279285A (en) * 2013-06-25 2013-09-04 深圳市中兴移动通信有限公司 Scenery color picking based theme switching method and mobile terminal
CN103853606A (en) * 2012-11-29 2014-06-11 北京三星通信技术研究有限公司 Application program switching method and device
CN104793871A (en) * 2015-04-29 2015-07-22 小米科技有限责任公司 Background color matching method and device
CN107145349A (en) * 2017-04-28 2017-09-08 珠海市魅族科技有限公司 Method for switching theme, device, computer installation and computer-readable recording medium
CN107172288A (en) * 2017-05-27 2017-09-15 上海斐讯数据通信技术有限公司 A kind of method and system of mobile phone theme automatic adaptation mobile phone shell
CN107438398A (en) * 2015-01-06 2017-12-05 大卫·伯顿 Portable wearable monitoring system
CN109525729A (en) * 2018-11-27 2019-03-26 Oppo(重庆)智能科技有限公司 Theme colors match control method, device, system and computer-readable storage medium
CN110737550A (en) * 2018-07-20 2020-01-31 Oppo(重庆)智能科技有限公司 Color identification detection method and device for terminal equipment
CN110851155A (en) * 2019-10-22 2020-02-28 北京四达时代软件技术股份有限公司 Method and device for changing theme colors of set top box interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2813953A1 (en) * 2013-06-12 2014-12-17 STV Central Limited Accessing data relating to topics
US10402061B2 (en) * 2014-09-28 2019-09-03 Microsoft Technology Licensing, Llc Productivity tools for content authoring

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853606A (en) * 2012-11-29 2014-06-11 北京三星通信技术研究有限公司 Application program switching method and device
CN103279285A (en) * 2013-06-25 2013-09-04 深圳市中兴移动通信有限公司 Scenery color picking based theme switching method and mobile terminal
CN107438398A (en) * 2015-01-06 2017-12-05 大卫·伯顿 Portable wearable monitoring system
CN104793871A (en) * 2015-04-29 2015-07-22 小米科技有限责任公司 Background color matching method and device
CN107145349A (en) * 2017-04-28 2017-09-08 珠海市魅族科技有限公司 Method for switching theme, device, computer installation and computer-readable recording medium
CN107172288A (en) * 2017-05-27 2017-09-15 上海斐讯数据通信技术有限公司 A kind of method and system of mobile phone theme automatic adaptation mobile phone shell
CN110737550A (en) * 2018-07-20 2020-01-31 Oppo(重庆)智能科技有限公司 Color identification detection method and device for terminal equipment
CN109525729A (en) * 2018-11-27 2019-03-26 Oppo(重庆)智能科技有限公司 Theme colors match control method, device, system and computer-readable storage medium
CN110851155A (en) * 2019-10-22 2020-02-28 北京四达时代软件技术股份有限公司 Method and device for changing theme colors of set top box interface

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Smartphone Assisted Colourimetric Detection and Quantification of Pb2+ and Hg2+ Ions Using Ag Nanoparticles from Aqueous Medium;Neethu Emmanuel;《IEEE SENSORS JOURNAL》;第20卷(第15期);8512-8519 *
基于深度视觉语义嵌入的视频缩略图推荐;张梦琴;《北京航空航天大学学报》;第45卷(第12期);2479-2486 *
顾及空间与光谱差异的单幅遥感影像自适应云雾去除方法;祁琼;《武汉大学学报·信息科学版》;第44卷(第9期);1369-1376 *

Also Published As

Publication number Publication date
CN111562956A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN108614718B (en) The method, apparatus and realization device of start-up operation system
CN107678875B (en) Fault detection and automatic repair method, device, terminal and storage medium
CN109791497B (en) Method, device and terminal for executing hot patch
CN101453373A (en) Near-end maintenance method, system and equipment for device
CN112199284A (en) Program automation testing method and corresponding device, equipment and medium
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN114138644A (en) BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
CN109002305A (en) A kind of update method and its system of device program
CN110333964B (en) Abnormality log processing method and device, electronic equipment and storage medium
CN112199283A (en) Program test control and execution method and corresponding device, equipment and medium
CN111562956B (en) Theme switching method and device for terminal, storage medium and electronic equipment
KR100605031B1 (en) A method for upgrading and restoring embeded systems by using usb memory device
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN116662050A (en) Error injection support function verification method, device, terminal and medium
CN104536892A (en) Software online debugging method and system
CN114168482A (en) Test method of vehicle control unit
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114296754A (en) Chip platform upgrading method and related device
CN114496053A (en) Data anomaly detection method, device and equipment and computer readable storage medium
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
CN108446219B (en) Application program operation method, system, medium and computing device
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant