[go: up one dir, main page]

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
configuration file
color
instruction
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.)
Expired - Fee Related
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
Expired - Fee Related 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

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

终端的主题切换方法、装置、存储介质与电子设备Terminal theme switching method, device, storage medium and electronic equipment

背景技术Background technique

为了提高个性化配置,大多数终端的主题颜色需要与终端电池盖颜色相匹配,通过软件和维护生产管理系统来实现自动配置。In order to improve personalized configuration, the theme color of most terminals needs to match the color of the battery cover of the terminal, and automatic configuration is realized through software and maintenance production management system.

但是对于不需要个性化配置的用户而言,可能要求采用默认壁纸,不希望与电池盖颜色相匹配。相关技术中,一般是通过人工方式来将主题设置为默认主题。在这种方式中,可能存在漏操作的问题,切换效率较低,且容易出现误操作导致准确性较低,从而影响切换效果、成本较高。However, for users who do not need personalized configuration, it may be required to use the default wallpaper, which does not want to match the color of the battery cover. In related technologies, the theme is generally set as the default theme manually. In this way, there may be a problem of missing operations, the switching efficiency is low, and misoperations are prone to occur, resulting in low accuracy, thereby affecting the switching effect and increasing the cost.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

发明内容Contents of the invention

本公开提供了一种终端的主题切换方法、终端的主题切换装置、计算机可读存储介质与电子设备,进而至少在一定程度上克服操作准确性较差的问题。The present disclosure provides a terminal theme switching method, a terminal theme switching device, a computer-readable storage medium, and an electronic device, thereby overcoming the problem of poor operation accuracy at least to a certain extent.

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or in part, be learned by practice of the present disclosure.

根据本公开的第一方面,提供一种终端的主题切换方法,包括:获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。According to the first aspect of the present disclosure, there is provided a terminal theme switching method, including: obtaining a configuration file corresponding to an identification code comparison tool, and sending the configuration file to the terminal, and the configuration file is based on the terminal's generated by a hardware identification code; 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 be compatible with the The terminal's battery cover color is not relevant to the target theme.

根据本公开的第一方面,提供一种终端的主题切换装置,包括:配置文件获取模块,用于获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;主题擦除模块,用于响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。According to the first aspect of the present disclosure, there is provided a terminal theme switching device, including: a configuration file acquisition module, configured to acquire a configuration file corresponding to an identification code comparison tool, and send the configuration file to the terminal, the The configuration file is generated according to the hardware identification code of the terminal; the theme erasing module is configured to respond to the color erasing instruction in the configuration file, and perform an erasing operation on the theme of the terminal through the color erasing instruction , to automatically switch the theme of the terminal to a target theme that is not related to the color of the battery cover of the terminal.

根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的终端的主题切换方法。According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for switching the theme of a terminal described in any one of the above-mentioned terminals is implemented.

根据本公开的一个方面,提供一种电子设备,包括:处理器;存储器,用于存储所述处理器的可执行指令;以及其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的终端的主题切换方法。According to an aspect of the present disclosure, there is provided 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 described in any one of the above.

本公开实施例中提供的终端的主题切换方法、终端的主题切换装置、计算机可读存储介质与电子设备,通过获取由终端的硬件识别码而生成的用于表示识别码对比工具的配置文件,进而在检测到配置文件中的擦除指令时,根据擦除指令来对终端的主题进行擦除操作,以将终端的主题自动切换为目标主题。一方面,可以根据配置文件中的擦除指令来直接对终端的主题进行擦除操作,自动将终端的主题切换为目标主题。由于可以根据配置文件的擦除指令来执行主题的擦除操作,通过擦除颜色标志位来将主题切换为目标主题,避免了人工操作时可能造成的误操作,提高了主题切换的效率和准确性。另一方面,通过配置文件来擦除主题的方法可以应用至所有类型的终端,避免了漏操作,也增加了应用范围和可操作性,提高了实用性和切换的可靠性。The terminal theme switching method, terminal theme switching device, computer-readable storage medium, and electronic device provided in the embodiments of the present disclosure obtain the configuration file used to represent the identification code comparison tool generated by the terminal hardware identification code, Furthermore, when the erasing instruction in the configuration file is detected, an erasing operation is performed on the theme of the terminal according to the erasing instruction, so as to automatically switch the theme of the terminal to the target theme. On the one hand, the theme of the terminal can be directly wiped according to the wipe instruction in the configuration file, and the theme of the terminal can be automatically switched to the target theme. Since the erasing operation of the theme can be performed according to the erasing command of the configuration file, the theme can be switched to the target theme by erasing the color flag, which avoids possible misoperations caused by manual operations, and improves the efficiency and accuracy of theme switching sex. On the other hand, the method of erasing the theme through the configuration file can be applied to all types of terminals, which avoids missing operations, increases the scope of application and operability, and improves the practicality and reliability of switching.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施方式,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Apparently, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.

图1示出本示例性实施方式中用于实现终端的主题切换方法的系统架构的示意图;FIG. 1 shows a schematic diagram of a system architecture for implementing a method for switching a theme of a terminal in this exemplary embodiment;

图2示出本示例性实施方式中一种终端的主题切换方法的流程图;FIG. 2 shows a flowchart of a method for switching a theme of a terminal in this exemplary embodiment;

图3示出本示例性实施方式中执行指令的具体流程示意图;FIG. 3 shows a specific schematic flow chart of executing instructions in this exemplary embodiment;

图4示出本示例性实施方式中一种终端的主题切换装置的结构框图;Fig. 4 shows a structural block diagram of a theme switching device of a terminal in this exemplary embodiment;

图5示出本示例性实施方式中用于实现上述方法的电子设备的示意图。Fig. 5 shows a schematic diagram of an electronic device for implementing the above method in this exemplary embodiment.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many 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 in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details being omitted, or other methods, components, devices, steps, etc. may be adopted. 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 repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor means and/or microcontroller means.

图1中示意性示出了本公开实施例的方法的系统架构图,如图1所示,该系统架构100可以包括终端101以及工具端102。终端101可以是各种客户端,例如可以为各种具有显示功能的手持设备(智能手机)以及平板电脑等等。工具端可以为能够用于执行指令的设备,例如可以为便携式计算机、台式计算机或者是专用工具等等,此处不作限定。FIG. 1 schematically shows a system architecture diagram of a method according to an embodiment of the present disclosure. 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) and tablet computers with display functions. The tool end may be a device capable of executing instructions, such as a portable computer, a desktop computer, or a special tool, etc., which is not limited here.

应该注意的是,图1所示的终端101的数目仅仅是示例性的,根据实际需要,可以设置任意数目的终端101,此处不做限定。It should be noted that the number of terminals 101 shown in FIG. 1 is only exemplary, and any number of terminals 101 may be set according to actual needs, which is not limited here.

基于图1中所示的系统架构,本公开实施例中提供了一种终端的主题切换方法,其执行主体可以为工具端。图2中示意性示出了本公开实施例中终端的主题切换方法的流程图,参考图2中所示,主要包括步骤S210至步骤S220,详细介绍如下:Based on the system architecture shown in FIG. 1 , an embodiment of the present disclosure provides a method for switching a theme of a terminal, and the executing subject of the method may be a tool terminal. Fig. 2 schematically shows a flowchart of a method for switching topics of a terminal in an embodiment of the present disclosure. Referring to Fig. 2 , it mainly includes steps S210 to S220, which are described in detail as follows:

在步骤S210中,获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;In step S210, the configuration file corresponding to the identification code comparison tool is obtained, and the configuration file is sent to the terminal, and the configuration file is generated according to the hardware identification code of the terminal;

在步骤S220中,响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。In step S220, in response to the color erasing instruction in the configuration file, an erasing operation is performed on the theme of the terminal through the color erasing instruction, so as to automatically switch the theme of the terminal to be the same as that of the terminal The color of the battery cover is not related to the target theme.

本公开实施例中提供的终端的主题切换方法,一方面,可以根据配置文件中的颜色擦除指令来直接对终端的主题进行擦除操作,自动将终端的主题切换为目标主题。由于可以根据配置文件的颜色擦除指令来执行主题的擦除操作,通过擦除颜色标志位来将主题切换为目标主题,避免了人工操作时可能造成的误操作,提高了主题切换的效率和准确性。另一方面,通过配置文件中的颜色擦除指令对主题进行擦除的方法,可以应用至所有类型的终端,增加了应用范围和可操作性,提高了实用性。The terminal theme switching method provided in the embodiments of the present disclosure, on the one hand, can directly perform an erasing operation on 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. Since the erasing operation of the theme can be performed according to the color erasing command of the configuration file, the theme can be switched to the target theme by erasing the color flag bit, which avoids possible misoperations caused by manual operations, and improves the efficiency and efficiency of theme switching. accuracy. On the other hand, the method of erasing the theme through the color erasing command in the configuration file can be applied to all types of terminals, which increases the application range and operability, and improves the practicability.

接下来,结合附图对本公开实施例中的终端的主题切换方法进行详细解释说明。Next, the subject switching method of the terminal in the embodiments of the present disclosure will be explained in detail with reference to the accompanying drawings.

在步骤S210中,获取识别码对比工具对应的配置文件并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成。In step S210, the configuration file corresponding to the identification code comparison tool is acquired and sent to the terminal, the configuration file is generated according to the hardware identification code of the terminal.

本公开实施例中,识别码对比工具指的是用于对终端进行配置检测的工具端,可以为电脑或者是专用工具端。检测的终端指的是未出厂的终端,例如出厂之前的手机等等。终端可以使用识别码来区分和唯一表示,此处的识别码可以为IMEI(InternationalMobile Equipment Identity,国际移动设备识别码),即手机序列号,用于在移动电话网络中识别每一部独立的手机等移动通信设备。基于此,识别码对比工具例如可以为国际移动设备识别码对比工具。In the embodiments of the present disclosure, the identification code comparison tool refers to a tool end used for configuration detection of a terminal, which may be a computer or a special tool end. The detected terminal refers to a terminal that has not been shipped from the factory, such as a mobile phone before leaving the factory. The terminal can be distinguished and uniquely represented by an identification code. The identification code here can be IMEI (International Mobile Equipment Identity, International Mobile Equipment Identity), that is, the serial number of the mobile phone, which is used to identify each independent mobile phone in the mobile phone network and other mobile communication devices. Based on this, the identification code comparison tool may be, for example, an international mobile equipment identification code comparison tool.

本公开实施例中,对于该识别码对比工具而言,可以为其配置对应的配置文件,以用于对识别码对比工具对终端使用的功能而进行配置。一个工具端可以应用于不同类型的终端,只需要设置终端对应的配置文件即可。例如,工具端可以应用于终端A、终端B等等,但是终端A和终端B对应的配置文件不同。具体地,识别码对比工具对应的配置文件可以根据终端的硬件识别码而单独设置,其中终端的硬件识别码可以包括终端的机型名(手机型号)以及国家后缀,例如,ABC1+.CN。配置文件可以用于表示多个类型的指令,具体可以包括身份识别卡检查指令以及颜色擦除指令,且其中的颜色擦除指令可以包括多个指令,例如颜色擦除指令可以由用于擦除颜色标志位的擦除指令以及总清除指令而形成。此处的身份识别卡检查指令指的是SIM(Subscriber Identity Module)卡检查指令。SIM卡检查指令用于检查终端中是否存在用户识别卡。在配置文件中,颜色擦除指令可以位于身份识别卡检查指令之后(即先执行身份识别卡检查指令,再执行颜色擦除指令)。在颜色擦除指令中,如果存在多个不同的指令,则多个不同的指令之间的排列顺序可以不作具体限定,只要总清除指令排列在最后即可。即,先执行擦除指令再执行总清除指令。举例而言,配置文件中用于擦除颜色标志位的擦除指令位于身份识别卡检查指令之后,总清除指令排列在最后。也就是说,在身份识别卡检查指令之后添加颜色擦除指令,以根据终端的硬件识别码得到识别码对比工具针对于每一个终端的配置文件。需要说明的是,对于不同的终端而言,均可以按照硬件识别码单独设置识别码对比工具的后台配置文件,因此可以获取识别码对比工具对于每个终端而言具有针对性的配置文件,提高识别码对比工具的配置文件的准确性和针对性。In the embodiment of the present disclosure, for the identification code comparison tool, a corresponding configuration file may be configured for it, so as to configure the functions of the identification code comparison tool for terminals. A tool end can be applied to different types of terminals, just need to set the configuration file corresponding to the terminal. For example, the tool side can be applied to terminal A, terminal B, etc., but the configuration files corresponding to terminal A and terminal B are different. Specifically, the configuration file corresponding to the identification code comparison tool can be set independently according to the terminal hardware identification code, wherein the terminal hardware identification code can include the terminal model name (mobile phone model) and the country suffix, for example, ABC1+.CN. The configuration file can be used to represent multiple types of instructions, specifically, it can include identification card checking instructions and color erasing instructions, and the color erasing instruction can include multiple instructions, for example, the color erasing instruction can be used to erase The erase command of the color flag bit and the general clear command are formed. The ID card checking instruction here refers to the SIM (Subscriber Identity Module) card checking instruction. The SIM card checking instruction is used to check whether there is a subscriber identity card in the terminal. In the configuration file, the color erasing instruction may be placed after the ID card checking instruction (that is, the ID card checking instruction is executed first, and then the color erasing instruction is executed). In the color erasing instruction, if there are multiple different instructions, the sequence of the multiple different instructions may not be specifically limited, as long as the general clearing instruction is arranged at the end. That is, the erase command is executed first and then the general erase command is executed. For example, in the configuration file, the erasing command for erasing the color flag is located after the identification card checking command, and the general clearing command is arranged at the end. That is to say, the color erasing instruction is added after the ID card checking instruction, so as to obtain the configuration file of the identification code comparison tool for each terminal according to the hardware identification code of the terminal. It should be noted that, for different terminals, the background configuration file of the identification code comparison tool can be set separately according to the hardware identification code, so that the identification code comparison tool can obtain a specific configuration file for each terminal, and improve The accuracy and relevance of the ID comparison tool's profile.

继续参考图2中所示,在步骤S220中,响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。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 that the terminal’s The theme is automatically switched to a target theme not related to the color of the battery cover of the terminal in question.

本公开实施例中,终端指的是无需个性化主题配置的终端,具体可以根据国家而确定,例如某一个国家的所有手机都无需配置个性化主题。配置文件中可以包含多个指令,多个指令可以包括身份识别卡检查指令、用于擦除颜色标志位的擦除指令以及总清除指令,还可以包括除了上述指令之外的其他类型的指令。因此可以首先判断当前执行的指令的类型,具体可以通过配置文件对终端的配置参数进行逐一对比,以获取对于配置参数的对比结果。此处的配置参数可以为终端本身的性能参数,例如可以包括但不限于内存、软件版本、密钥以及国家标识码等等。配置文件中可以包含与配置参数中的每一个参数对应的操作指令,例如可以包括对比内存的指令A1,还可以包括对比软件版本的指令C3等等。一个指令可以对应于一个配置参数,且一个配置参数可以通过多条指令来具体表示。所有的指令均可以为ADB(Android Debug Bridge,安卓调试桥指令)。安卓调试桥指令可以为连接安卓手机与电脑端的桥梁,可以让用户在电脑端上对手机进行全面的操作。借助安卓调试桥指令工具,可以管理设备或手机模拟器的状态。还可以进行多个手机操作,如安装软件、系统升级、运行各种命令等等。In the embodiments of the present disclosure, a terminal refers to a terminal that does not need to be configured with a personalized theme, which may be 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, and the plurality of instructions may include an identification card checking instruction, an erasing instruction for erasing the color flag bit, and a general clearing instruction, and may also include other types of instructions besides the above-mentioned instructions. Therefore, the type of the currently executed command can be judged first, and specifically, the configuration parameters of the terminal can be compared one by one through the configuration file to obtain a comparison result of the configuration parameters. The configuration parameters here may be performance parameters of the terminal itself, for example, may include but not limited to memory, software version, key, country identification code, and so on. The configuration file may contain operation instructions corresponding to each parameter in the configuration parameters, for example, it may include an instruction A1 for comparing memory, and it may also include an instruction C3 for comparing software versions, and so on. One instruction may correspond to one configuration parameter, and one configuration parameter may be specifically represented by multiple instructions. All commands can be ADB (Android Debug Bridge, Android Debug Bridge command). The Android debugging bridge command can be a bridge connecting the Android mobile phone and the computer terminal, allowing the user to perform comprehensive operations on the mobile phone on the computer terminal. With the Android Debug Bridge command tool, you can manage the state of your device or phone emulator. You can also perform multiple mobile phone operations, such as installing software, system upgrades, running various commands, and so on.

在进行对比时,可以根据配置文件中的代码信息,对所述硬件识别码对应的终端逐条发送所述多条指令;在将多条指令发送至终端后,可以对终端执行所述多条指令对应的指令操作,以对所述终端的所述配置参数进行对比得到每个配置参数是否符合要求的对比结果。与此同时,终端可以将对比得到的对比结果发送至工具端,以使工具端对接收到的对比结果来进行判断,得到对比结果通过或对比结果未通过的判断结果。若判断结果为对比结果未通过,则重新根据配置文件执行指令。若判断结果为对比结果通过,则停止根据配置文件执行指令,确定过站结束,即可以确定执行完整个检测流程。在多个指令的执行过程中,可以根据过站记录进行追溯和跟踪。过站记录指的是所有指令的指令记录(例如每个指令执行成功或执行失败等等)。根据过站记录,可以得到每个所有指令的执行情况,以便于进行修改或者是重新执行指令等操作。本公开实施例中,可以对指令执行结果进行提醒,以便于进行人工验证等等。When making a comparison, the multiple instructions can be sent one by one to the terminal corresponding to the hardware identification code according to the code information in the configuration file; after the multiple instructions are sent to the terminal, the multiple instructions can be executed on the terminal The corresponding instruction is operated to compare the configuration parameters of the terminal to obtain a comparison result of whether each configuration parameter meets requirements. At the same time, the terminal can send the comparison result obtained by the comparison to the tool end, so that the tool end can judge the received comparison result and obtain a judgment result of the comparison result passing or the comparison result failing. If the judgment result is that the comparison result fails, execute the command again according to the configuration file. If the judgment result is that the comparison result is passed, the execution of the instruction according to the configuration file is stopped, and the completion of the stop is determined, that is, the entire detection process can be determined to be executed. During the execution of multiple instructions, it can be traced and tracked according to the transit records. The transit record refers to the command record of all commands (for example, each command executes successfully or fails, etc.). According to the station-passing records, the execution status of each instruction can be obtained, so as to modify or re-execute the instruction and other operations. In the embodiment of the present disclosure, the execution result of the instruction may be reminded, so as to facilitate manual verification and the like.

在多条指令中,如果检测到当前执行的指令为配置文件中的颜色擦除指令,则可以响应于配置文件中的颜色擦除指令,通过调用颜色擦除指令来对终端进行擦除操作。现有的终端中,由于为了使得终端满足个性化需求,一般都是按照终端的电池盖颜色来配置对应的主题,但是由于有些地区的用户不需要这种针对性配置,因此需要取消设置的个性化主题。因此本公开实施例中在进行擦除时,主要是针对终端的主题进行擦除操作。此处的主题可以包括终端的主题以及壁纸等等。本公开实施例中,为了避免人工方式取消个性化主题时可能导致的误操作,可以通过为工具端设置的配置文件来对终端的主题进行一键擦除,可以避免人工操作导致的误操作,提高主题切换的准确性,且提高擦除效果。Among the multiple 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 invoking the color erasing instruction in response to the color erasing instruction in the configuration file. In the existing terminals, in order to make the terminal meet the personalized needs, the corresponding theme is generally configured according to the color of the battery cover of the terminal, but because users in some areas do not need this targeted configuration, it is necessary to cancel the set personality theme. Therefore, when erasing is performed in the embodiment of the present disclosure, the erasing operation is mainly performed on the theme of the terminal. The theme here may include the theme and wallpaper of the terminal, and so on. In the embodiment of the present disclosure, in order to avoid misoperations that may be caused when the personalized theme is canceled manually, the theme of the terminal can be erased with one click through the configuration file set for the tool end, which can avoid misoperations caused by manual operations. Improve the accuracy of theme switching, and improve the erasing effect.

本公开实施例中,进行擦除操作的终端指的是主题与终端的电池盖颜色存在匹配关系的终端,即已经为终端配置了与终端的电池盖颜色存在匹配关系的主题。进行擦除操作的具体步骤可以包括以下两个步骤:步骤一、通过用于擦除颜色标志位的擦除指令对所述终端的颜色标志位进行擦除,并解除所述颜色标志位与所述主题之间的匹配关系。颜色标志位为用于表示终端的电池盖颜色的标志信息,一种电池盖颜色可对应于一种颜色标志位。颜色标志位可以为十六进制颜色码,例如金色#FFD700。颜色标志位还可以是RGB值,例如金色(255,215,0)。当终端的颜色标志位确定之后,即可以确定终端的电池盖颜色以及与其匹配的主题。In the embodiments of the present disclosure, the terminal performing the erasing operation refers to a terminal whose theme has a matching relationship with the battery cover color of the terminal, that is, a theme that has a matching relationship with the battery cover color of the terminal has been configured for the terminal. The specific steps for performing the erasing operation may include the following two steps: Step 1. Erase the color flag of the terminal through an erase command for erasing the color flag, and release the color flag from the color flag. The matching relationship between the above topics. The color flag is flag information used to indicate the color of the battery cover of the terminal, and one color of the battery cover may correspond to one color flag. The color flag can be a hexadecimal color code, such as gold #FFD700. The color flag can also be an RGB value, such as gold (255, 215, 0). After the color flag of the terminal is determined, the battery cover color of the terminal and the matching theme can be determined.

在现有的终端中,硬件识别码可以与电池盖颜色对应的至少一个颜色标志位进行关联,以使得每个终端的硬件识别码都能对应至少一个颜色标志位。需要说明的是,同一个硬件识别码还可以对应于多个颜色标志位。例如,当电池盖颜色为通过多种颜色形成的复色时,该硬件识别码即可对应多种不同的颜色标志位。In an existing terminal, the hardware identification code can 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 multiple color flags. For example, when the color of the battery cover is a complex color formed by multiple colors, the hardware identification code can correspond to multiple different color flags.

基于此,首先可以根据用于擦除颜色标志位的擦除指令对终端的颜色标志位进行擦除,以解除所述颜色标志位与所述主题之间的匹配关系,从而解除终端的电池盖颜色与主题之间的匹配关系。其中,如果硬件识别码对应一个颜色标志位,则擦除该颜色标志位;如果硬件识别码对应多个颜色标志位,则擦除所有的颜色标志位。例如,可以将金色#FFD700删除或者是改为0等等。由于颜色标志位与终端的主题之间存在匹配关系,擦除颜色标志位后由于不存在颜色标志位,因此无法继续与主题进行匹配,从而解除了二者之间的匹配关系。本公开实施例中通过配置文件中的用于擦除颜色标志位的擦除指令擦除终端的颜色标志位,可以自动解除颜色标志位与终端的主题之间的匹配关系,以使得硬件识别码不存在对应的颜色标志位,同时使得硬件识别码与主题之间不相关。Based on this, firstly, the color flag of the terminal can be erased according to the erasing instruction for erasing the color flag, so as to release the matching relationship between the color flag and the theme, thereby releasing the battery cover of the terminal The matching relationship between colors and themes. Wherein, if the hardware identification code corresponds to one color flag, the color flag is erased; if the hardware identification code corresponds to multiple color flags, all the color flags are erased. For example, the golden #FFD700 can be deleted or changed to 0 and so on. Because there is a matching relationship between the color flag and the theme of the terminal, after erasing the color flag, since there is no color flag, it cannot continue to match with the theme, thereby canceling the matching relationship between the two. In the embodiment of the present disclosure, by erasing the color flag of the terminal through the erase instruction for erasing the color flag in the configuration file, the matching relationship between the color flag and the theme of the terminal can be automatically released, so that the hardware identification code There is no corresponding color flag, and at the same time makes the hardware identification code and the theme irrelevant.

步骤二、通过所述总清除指令对所述终端的数据进行擦除操作,以将所述终端的主题切换为所述目标主题。进一步地,由于颜色擦除指令中还包括总清除指令,因此可以根据总清除指令继续对终端的颜色进行擦除。总清除指令用于清除终端中的所有数据,此处的数据具体可以为与终端中的所有与主题相关的设置数据。总清除指令可以理解为对终端进行出厂设置,以便于清除所有的个性化设置数据,并调用默认主题作为目标主题,以将当前的主题自动切换为目标主题。本公开实施例中通过用于擦除颜色标志位的擦除指令以及总清除指令的结合,能够将按照硬件识别码对应的终端的电池盖颜色来配置该终端对应的主题,自动切换为与终端的电池盖颜色无关的目标主题。此处的目标主题可以为默认主题或者是通用主题,即对于类型相同的所有的终端而言,其目标主题都是相同的,而不存在差异化。Step 2: Erase the data of the terminal through the general clear command, so as to switch the theme of the terminal to the target theme. Further, since the color erasing instruction also includes a general clearing instruction, the color of the terminal can be continuously erased according to the general clearing instruction. The general clear command is used to clear all data in the terminal, and the data here may specifically be all theme-related setting data in the terminal. The general clearing instruction can be understood as performing factory settings on the terminal, so as to clear all personalized setting data, and calling the default theme as the target theme, so as to automatically switch the current theme to the target theme. In the embodiment of the present disclosure, through the combination of the erasing command for erasing the color flag and the general clearing command, 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 automatically switched to the terminal The battery cover color has nothing to do with the target theme. The target theme here can be a default theme or a common theme, that is, for all terminals of the same type, the target themes are the same without differentiation.

本公开实施例中,对于后端包装流程,可以实现自动恢复默认壁纸,避免了人工切换时由于漏操作而导致的风险,节省了人力成本,并且可以根据过站记录进行追溯和跟踪。本公开实施例的方法,可以推广到其他有此需求的机型的终端当中,通过为其他机型的终端引入配置文件,避免了人为操作导致的异常,增加了通用性和可用性,提高切换壁纸和主题的准确性,也能提高切换效果。In the embodiment of the present disclosure, for the back-end packaging process, the default wallpaper can be automatically restored, avoiding the risk caused by missing operations during manual switching, saving labor costs, and can be traced and tracked according to the station records. The method of the embodiment of the present disclosure can be extended to terminals of other models that have this requirement. By introducing configuration files for terminals of other models, abnormalities caused by human operations are avoided, versatility and usability are increased, and wallpaper switching is improved. And the accuracy of the theme can also improve the switching effect.

需要补充的是,若检测到将终端的主题切换为目标主题的操作失败,则可以认为出现异常,因此可以通过人工操作进行手动切换。若切换失败,则可认为终端异常,需要进行筛选等操作。What needs to be added is that if it is detected that the operation of switching the theme of the terminal to the target theme fails, it can be considered as abnormal, so manual switching can be performed through manual operation. If the switching fails, it can be considered that the terminal is abnormal, and operations such as screening are required.

图3中示意性示出了执行指令的流程图,参考图3中所示,主要包括以下步骤S301至步骤S309,其中:FIG. 3 schematically shows a flow chart of executing instructions. Referring to FIG. 3 , it mainly includes the following steps S301 to S309, wherein:

在步骤S301中,打开工具端。In step S301, the tool end is opened.

在步骤S302中,选择终端的机型和出货国家。In step S302, the terminal model and shipping country are selected.

在步骤S303中,按照需求单独设置的配置文件,并在配置文件中增加安卓调试桥指令。In step S303, a configuration file is individually set according to requirements, and an Android debugging bridge instruction is added to the configuration file.

在步骤S304中,工具端调用该终端对应的配置文件。In step S304, the tool side invokes the configuration file corresponding to the terminal.

在步骤S305中,将所述配置文件置入终端中。In step S305, the configuration file is put into the terminal.

在步骤S306中,工具端给终端发送指令,此处的指令为配置文件中包含的每一条指令。In step S306, the tool end sends instructions to the terminal, where the instructions are each instruction included in the configuration file.

在步骤S307中,终端执行对应的指令。In step S307, the terminal executes the corresponding instruction.

在步骤S308中,终端返回对应的指令的结果。若返回的结果为通过,则转至步骤S309;若返回的结果为未通过,则返回至步骤S305中。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 not pass, go back to step S305.

在步骤S309中,过站结束(即流程结束)。In step S309, the station passing ends (that is, the process ends).

通过图3中的技术方案,通过为工具端配置对应的配置文件,进而根据配置文件中的用于擦除颜色标志位的擦除指令以及总清除指令来对终端的颜色标志位进行一键擦除,提高了擦除的效率以及准确性,能够更准确更高效地将终端的主题切换为目标主题。Through the technical solution in Figure 3, by configuring the corresponding configuration file for the tool end, and then according to the erase command and the general clear command for erasing the color flag in the configuration file, one-click erasing of the color flag of the terminal In addition, the erasing efficiency and accuracy are improved, and the theme of the terminal can be switched to the target theme more accurately and efficiently.

本公开实施例中,还提供了一种终端的主题切换装置,参考图4中所示,该终端的主题切换装置400主要包括配置文件获取模块401以及主题擦除模块402,其中:In the embodiment of the present disclosure, a terminal theme switching device is also provided. Referring to FIG. 4 , the terminal theme switching device 400 mainly includes a configuration file acquisition module 401 and a theme erasing module 402, wherein:

配置文件获取模块401,用于获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;The configuration file obtaining module 401 is configured to obtain a configuration file corresponding to the identification code comparison tool, and send the configuration file to the terminal, the configuration file is generated according to the hardware identification code of the terminal;

主题擦除模块402,用于响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。The theme erasing module 402, configured to respond to the 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 be the same as The terminal's battery cover color is not relevant to the target theme.

在本公开的一种示例性实施例中,所述配置文件包括身份识别卡检查指令以及所述颜色擦除指令,所述颜色擦除指令包括用于擦除颜色标志位的擦除指令以及总清除指令。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 an overall Clear command.

在本公开的一种示例性实施例中,主题擦除模块包括:第一擦除模块,用于通过用于擦除颜色标志位的擦除指令对所述终端的颜色标志位进行擦除,以解除所述颜色标志位与所述主题之间的匹配关系;第二擦除模块,用于通过所述总清除指令对所述终端的数据进行擦除操作,以将所述终端的主题切换为所述目标主题。In an exemplary embodiment of the present disclosure, the theme erasing module includes: a first erasing module, configured to erase the color flag bit of the terminal through an erasing instruction for erasing the color flag bit, To release the matching relationship between the color flag bit and the theme; the second erasing module is used to perform an erasing operation on the data of the terminal through the general clear command, so as to switch the theme of the terminal for the target subject.

在本公开的一种示例性实施例中,所述装置还包括:主题确定模块,用于若检测到所述擦除操作完成,则将所述终端的默认主题作为所述目标主题,并将所述终端的主题自动切换为所述目标主题。In an exemplary embodiment of the present disclosure, the device further includes: a theme determination module, configured to use the default theme of the terminal as the target theme if it is detected that the erasing operation is completed, and set The theme of the terminal is automatically switched to the target theme.

在本公开的一种示例性实施例中,所述装置还包括:参数对比模块,用于通过所述配置文件对所述终端的配置参数进行对比,以得到对于所述配置参数的对比结果。In an exemplary embodiment of the present disclosure, the device further includes: a parameter comparison module, configured to compare the configuration parameters of the terminal through the configuration file, so as to obtain a comparison result of the configuration parameters.

在本公开的一种示例性实施例中,参数对比模块被配置为:根据所述配置文件中的代码信息,对所述硬件识别码对应的终端发送所述多条指令;对所述终端执行所述多条指令对应的指令操作,并对所述终端的所述配置参数的执行结果进行对比得到所述对比结果。In an exemplary embodiment of the present disclosure, the parameter comparison module is configured to: send the multiple instructions to the terminal corresponding to the hardware identification code according to the code information in the configuration file; Instruction operations corresponding to the multiple instructions, 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 device further includes: a first determination module, configured to determine that the instruction operation corresponding to the instruction is completed if the comparison result is determined to be passed; a second determination module, It is used for continuing to execute the instruction operation corresponding to the instruction if it is determined that the comparison result is not passed.

需要说明的是,上述终端的主题切换装置中各模块的具体细节已经在对应的终端的主题切换方法的各个步骤中进行了详细描述,因此此处不再赘述。It should be noted that, the specific details of each module in the theme switching apparatus of the above terminal have been described in detail in each step of the corresponding terminal theme switching method, so details are not repeated here.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although steps of the methods of the present disclosure are depicted in the drawings in a particular order, there is no requirement or implication that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.

在本公开的实施例中,还提供了一种能够实现上述方法的电子设备。In an embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which can be collectively referred to herein as "circuit", "module" or "system".

下面参照图5来描述根据本公开的这种实施方式的电子设备500。图5显示的电子设备500仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 500 according to this embodiment of the present disclosure is described below with reference to FIG. 5 . The electronic device 500 shown in FIG. 5 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.

如图5所示,电子设备500以通用计算设备的形式表现。电子设备500的组件可以包括但不限于:上述至少一个处理单元510、上述至少一个存储单元520、连接不同系统组件(包括存储单元520和处理单元510)的总线530、显示单元540。As shown in FIG. 5, electronic device 500 takes the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one storage unit 520, a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510), and a display unit 540.

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元510执行,使得所述处理单元510执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元510可以执行如图2中所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 510, so that the processing unit 510 executes various exemplary methods according to the present disclosure described in the "Exemplary Methods" section of this specification. Implementation steps. For example, the processing unit 510 may execute the steps shown in FIG. 2 .

存储单元520可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)5201和/或高速缓存存储单元5202,还可以进一步包括只读存储单元(ROM)5203。The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and/or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .

存储单元520还可以包括具有一组(至少一个)程序模块5205的程序/实用工具5204,这样的程序模块5205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。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, Implementations of networked environments may be included in each or some combination of these examples.

总线530可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速接口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 530 may represent 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 area using any of a variety of bus structures. bus.

电子设备500也可以与一个或多个外部设备600(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备500交互的设备通信,和/或与使得该电子设备500能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口550进行。并且,电子设备500还可以通过网络适配器560与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器560通过总线530与电子设备500的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备500使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 500 can also communicate with one or more external devices 600 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 500, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 550 . Moreover, the electronic device 500 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 560 . As shown, the network adapter 560 communicates with other modules of the electronic device 500 through the bus 530 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with 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 system, etc.

在本公开的实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned method in this specification is stored. In some possible implementation manners, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section above in this specification.

根据本公开的实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to the program product for implementing the above method according to the embodiment of the present disclosure, it may adopt a portable compact disk read only memory (CD-ROM) and include program codes, and may run on a terminal device such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may reside on 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。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.

可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming language - such as "C" or a similar programming language. 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 to execute. In cases involving 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., using an Internet service provider). business to connect via the Internet).

此外,上述附图仅是根据本公开实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned drawings are only schematic illustrations of processes included in the methods according to the embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not imply or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1.一种终端的主题切换方法,其特征在于,包括:1. A subject switching method of a terminal, characterized in that, comprising: 获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;Obtain the configuration file corresponding to the identification code comparison tool, and send the configuration file to the terminal, the configuration file is generated according to the hardware identification code of the terminal; 响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。In response to the color erasing instruction in the configuration file, an erasing operation is performed on the theme of the terminal through the color erasing instruction, so as to automatically switch the theme of the terminal to a color different from that of the battery cover of the terminal. Related target topics. 2.根据权利要求1所述的终端的主题切换方法,其特征在于,所述配置文件包括身份识别卡检查指令以及所述颜色擦除指令,所述颜色擦除指令包括用于擦除颜色标志位的擦除指令以及总清除指令。2. The method for switching the theme of a terminal according to claim 1, wherein the configuration file includes an ID card checking instruction and the color erasing instruction, and the color erasing instruction includes an instruction for erasing a color mark bit erase command and total clear command. 3.根据权利要求2所述的终端的主题切换方法,其特征在于,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题包括:3. The method for switching the theme of the terminal according to claim 2, characterized in that, the theme of the terminal is erased through the color erasing instruction, so as to automatically switch the theme of the terminal to be compatible with the theme of the terminal. Target topics that are not related to the color of the terminal's battery cover include: 通过用于擦除颜色标志位的擦除指令对所述终端的颜色标志位进行擦除,以解除所述颜色标志位与所述主题之间的匹配关系;Erasing the color flag of the terminal through an erase command for erasing the color flag, so as to release the matching relationship between the color flag and the theme; 通过所述总清除指令对所述终端的数据进行擦除操作,以将所述终端的主题切换为所述目标主题。The data of the terminal is erased by the general clear command, so as to switch the theme of the terminal to the target theme. 4.根据权利要求1或2所述的终端的主题切换方法,其特征在于,所述方法还包括:4. The subject switching method of the terminal according to claim 1 or 2, characterized in that the method further comprises: 若检测到所述擦除操作完成,则将所述终端的默认主题作为所述目标主题,并将所述终端的主题自动切换为所述目标主题。If it is detected that the erasing operation is completed, the default theme of the terminal is used as the target theme, and the theme of the terminal is automatically switched to the target theme. 5.根据权利要求1所述的终端的主题切换方法,其特征在于,所述方法还包括:5. The terminal theme switching method according to claim 1, characterized in that the method further comprises: 通过所述配置文件对所述终端的配置参数进行对比,以得到对于所述配置参数的对比结果。The configuration parameters of the terminal are compared through the configuration file, so as to obtain a comparison result of the configuration parameters. 6.根据权利要求5所述的终端的主题切换方法,其特征在于,通过所述配置文件对所述终端的配置参数进行对比,以得到对于所述配置参数的对比结果包括:6. The terminal theme switching method according to claim 5, characterized in that, comparing the configuration parameters of the terminal through the configuration file, so as to obtain a comparison result for the configuration parameters comprises: 根据所述配置文件中的代码信息,对所述硬件识别码对应的终端发送所述多条指令;sending the multiple instructions to the terminal corresponding to the hardware identification code according to the code information in the configuration file; 对所述终端执行所述多条指令对应的指令操作,并对所述终端的所述配置参数的执行结果进行对比得到所述对比结果。executing instruction operations corresponding to the multiple instructions on the terminal, and comparing execution results of the configuration parameters of the terminal to obtain the comparison result. 7.根据权利要求6所述的终端的主题切换方法,其特征在于,所述方法还包括:7. The terminal theme switching method according to claim 6, characterized in that the method further comprises: 若确定所述对比结果为通过,则确定完成所述指令对应的指令操作;If it is determined that the comparison result is passed, then it is determined that the instruction operation corresponding to the instruction is completed; 若确定所述对比结果为未通过,则继续执行所述指令对应的指令操作。If it is determined that the comparison result is not passed, continue to execute the instruction operation corresponding to the instruction. 8.一种终端的主题切换装置,其特征在于,包括:8. A theme switching device for a terminal, comprising: 配置文件获取模块,用于获取识别码对比工具对应的配置文件,并将所述配置文件发送至所述终端,所述配置文件根据所述终端的硬件识别码而生成;The configuration file obtaining module is used to obtain the configuration file corresponding to the identification code comparison tool, and send the configuration file to the terminal, and the configuration file is generated according to the hardware identification code of the terminal; 主题擦除模块,用于响应于所述配置文件中的颜色擦除指令,通过所述颜色擦除指令对所述终端的主题进行擦除操作,以将所述终端的主题自动切换为与所述终端的电池盖颜色不相关的目标主题。A theme erasing module, configured to respond to the 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 be consistent with the The color of the terminal's battery cover is not relevant to the target theme. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任意一项所述的终端的主题切换方法。9. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the terminal theme switching method according to any one of claims 1-7 is implemented. 10.一种电子设备,其特征在于,包括:10. An electronic device, characterized in that it comprises: 处理器;processor; 存储器,用于存储所述处理器的可执行指令;以及a memory for storing executable instructions of the processor; and 其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-7任意一项所述的终端的主题切换方法。Wherein, the processor is configured to execute the terminal theme switching method according to any one of claims 1-7 by executing the executable instructions.
CN202010292436.8A 2020-04-14 2020-04-14 Theme switching method and device for terminal, storage medium and electronic equipment Expired - Fee Related 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 Expired - Fee Related 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 大卫·伯顿 Mobile 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 大卫·伯顿 Mobile 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
US9563442B2 (en) Baseboard management controller and method of loading firmware
CN113360379B (en) Program test environment creation method and program test environment creation device
CN105095078A (en) Systematic automation testing device and method and calculating device
CN115454869A (en) Interface automation test method, device, equipment and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN107678949A (en) Realize the automated testing method of embedded device different communication mode
CN110457154A (en) Abnormal service processing method and device, storage medium, and communication terminal
CN112199283A (en) Program test control and execution method and corresponding device, equipment and medium
CN106933754A (en) A kind of USB drives recognition methods and device
US20240319984A1 (en) Ecu upgrade method and device, and readable storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN105159703A (en) Factory setting restoration method and system
CN101505331A (en) Method and apparatus for updating system software of smart phone
CN113360440A (en) Processor communication control method and related product
CN114745313A (en) Terminal remote testing method, apparatus, electronic device and readable medium
CN111562956B (en) Theme switching method and device for terminal, storage medium and electronic equipment
CN114296754A (en) Chip platform upgrade method and related device
CN113360161B (en) Resource upgrading method and related products
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
CN109413714B (en) Method, device, storage medium and terminal for processing user agent information
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN115328764A (en) Test code optimization method and related equipment based on automated test
CN113326192A (en) Application testing method, device, equipment and storage medium for mobile terminal
CN111641419B (en) Version identification method, control method and system of radio frequency power amplifier of terminal
CN113867761B (en) A power module firmware detection system and method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230407

CF01 Termination of patent right due to non-payment of annual fee