CN106161336A - A kind of information updating method, Apparatus and system - Google Patents
A kind of information updating method, Apparatus and system Download PDFInfo
- Publication number
- CN106161336A CN106161336A CN201510134543.7A CN201510134543A CN106161336A CN 106161336 A CN106161336 A CN 106161336A CN 201510134543 A CN201510134543 A CN 201510134543A CN 106161336 A CN106161336 A CN 106161336A
- Authority
- CN
- China
- Prior art keywords
- information
- terminal
- update
- server
- verification
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
本申请公开了一种信息更新方法、装置及系统,该方法获取终端上的特定信息对应的校验信息,判断所述校验信息是否符合预设结果,若是,则确定对所述特定信息进行差分更新,否则,确定对所述特定信息进行全量更新,其中,所述特定信息具体包括固件,所述校验信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种,以及版本号。通过上述方法,由于服务器根据该校验信息,可以确定终端上的固件是否已被修改,若是,则可使用全量更新包对终端上的固件进行全量更新,否则,可使用差分更新包对终端上的固件进行差分更新,进而,可以对终端上的固件更新成功。
The present application discloses an information update method, device and system. The method acquires verification information corresponding to specific information on the terminal, and judges whether the verification information conforms to the preset result. Differential update, otherwise, determine to perform a full update on the specific information, wherein the specific information specifically includes firmware, and the verification information specifically includes at least one of system space, message digest, and cyclic redundancy check code, and version number. Through the above method, since the server can determine whether the firmware on the terminal has been modified according to the verification information, if so, it can use the full update package to update the firmware on the terminal in full, otherwise, it can use the differential update package to update the firmware on the terminal. The firmware of the terminal is differentially updated, and then, the firmware on the terminal can be successfully updated.
Description
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种信息更新方法、装置及系统。The present application relates to the field of computer technology, in particular to an information updating method, device and system.
背景技术Background technique
目前,手机等终端上的固件的更新包(或者,称为升级包)分为两种,一种是全量更新包,一种是差分更新包。At present, there are two types of update packages (or called update packages) of firmware on terminals such as mobile phones, one is a full update package, and the other is a differential update package.
当终端需要更新固件时,可向服务器请求以获取固件的更新包,服务器根据基于固件的版本号,对终端的固件与服务器上保存的各版本的固件进行比较,若终端的固件版本不为最新,服务器可查找用于将终端的固件升级至最新版本的差分更新包,若有该差分更新包,可使用该差分更新包对终端上的固件进行差分更新,若没有该差分更新包,可使用全量更新包(也即,最新版本的固件)对终端上的固件进行全量更新。When the terminal needs to update the firmware, it can request the server to obtain the firmware update package. The server compares the terminal firmware with the firmware of each version stored on the server according to the version number based on the firmware. If the terminal firmware version is not the latest , the server can search for the differential update package used to upgrade the firmware of the terminal to the latest version. If there is such a differential update package, the differential update package can be used to perform a differential update on the firmware on the terminal. If there is no such differential update package, you can use The full update package (that is, the latest version of firmware) performs full update of the firmware on the terminal.
但是,在某些场景下,用户或攻击者有可能获取到对终端的固件进行操作的权限,例如,使用第三方工具获得终端的超级用户权限,进而可以修改终端的固件。在这类情况下,终端的固件的版本号虽然未改变,但终端的固件与服务器保存的相同版本号的固件的实际内容已经不一致,从而可能导致使用差分更新包对终端的固件更新失败,而且,即使重试终端依然会得到差分更新包,无法成功地更新终端的固件。However, in some scenarios, a user or an attacker may obtain permission to operate the terminal firmware, for example, use a third-party tool to obtain the terminal superuser authority, and then modify the terminal firmware. In such cases, although the version number of the terminal's firmware has not changed, the actual content of the terminal's firmware and the firmware of the same version number saved by the server are no longer consistent, which may lead to the failure of using the differential update package to update the terminal's firmware, and , even if you try again, the terminal will still get the differential update package, and the firmware of the terminal cannot be successfully updated.
发明内容Contents of the invention
本申请实施例提供一种信息更新方法、装置及系统,用以解决现有技术中当固件被修改时,基于固件的版本号,使用差分更新包可能对终端的固件更新失败的问题。The embodiments of the present application provide an information update method, device, and system to solve the problem in the prior art that when the firmware is modified, based on the version number of the firmware, using a differential update package may fail to update the firmware of the terminal.
本申请实施例提供的一种信息更新方法,包括:An information updating method provided in an embodiment of the present application includes:
获取终端上的特定信息对应的校验信息;Obtain the verification information corresponding to the specific information on the terminal;
判断所述校验信息是否符合预设结果;judging whether the verification information conforms to a preset result;
若是,则确定对所述特定信息进行差分更新;If yes, then determine to perform a differential update on the specific information;
否则,确定对所述特定信息进行全量更新。Otherwise, it is determined to perform full update on the specific information.
本申请实施例提供的一种信息更新方法,包括:An information updating method provided in an embodiment of the present application includes:
终端针对自身上的特定信息,生成对应的校验信息;The terminal generates corresponding verification information for specific information on itself;
将所述校验信息发送给服务器;Send the verification information to the server;
当接收到所述服务器在判断所述校验信息符合预设结果后,向所述终端发送的提示后,对所述特定信息进行差分更新;After receiving the prompt sent by the server to the terminal after judging that the verification information conforms to the preset result, performing a differential update on the specific information;
当接收到所述服务器在判断所述校验信息不符合预设结果后,向所述终端发送的提示后,对所述特定信息进行全量更新。After receiving the prompt sent by the server to the terminal after judging that the verification information does not conform to the preset result, the specific information is fully updated.
本申请实施例提供的一种信息更新装置,包括:An information updating device provided in an embodiment of the present application includes:
获取模块,用于获取终端上的特定信息对应的校验信息;An acquisition module, configured to acquire verification information corresponding to specific information on the terminal;
更新模块,用于判断所述校验信息是否符合预设结果,若是,则确定对所述特定信息进行差分更新,否则,确定对所述特定信息进行全量更新。The update module is used to judge whether the verification information conforms to the preset result, if so, determine to perform a differential update on the specific information, otherwise, determine to perform a full update on the specific information.
本申请实施例提供的一种信息更新装置,包括:An information updating device provided in an embodiment of the present application includes:
生成模块,用于针对终端上的特定信息,生成对应的校验信息;A generating module, configured to generate corresponding verification information for specific information on the terminal;
发送模块,用于将所述校验信息发送给服务器;a sending module, configured to send the verification information to the server;
更新模块,用于当接收到所述服务器发送的差分更新提示后,对所述特定信息进行差分更新,当接收到所述服务器发送的全量更新提示后,对所述特定信息进行全量更新,其中,所述差分更新提示是由所述服务器在确定所述校验信息符合预设结果后发送的,所述全量更新提示是由所述服务器在确定所述校验信息不符合预设结果后发送的。An update module, configured to perform a differential update on the specific information after receiving the differential update prompt sent by the server, and perform a full update on the specific information after receiving the full update prompt sent by the server, wherein , the differential update prompt is sent by the server after determining that the verification information conforms to a preset result, and the full update prompt is sent by the server after determining that the verification information does not conform to a preset result of.
本申请实施例提供的一种信息更新系统,包括终端和服务器;An information updating system provided in an embodiment of the present application includes a terminal and a server;
所述终端,用于针对自身上的特定信息,生成对应的校验信息,将所述校验信息发送给所述服务器,当接收到所述服务器发送的差分更新提示后,对所述特定信息进行差分更新,当接收到所述服务器发送的全量更新提示后,对所述特定信息进行全量更新;The terminal is configured to generate corresponding check information for specific information on itself, send the check information to the server, and after receiving the difference update prompt sent by the server, check the specific information performing a differential update, and performing a full update of the specific information after receiving the full update prompt sent by the server;
所述服务器,用于接收所述终端发送的所述校验信息,并判断所述校验信息是否符合预设结果,若是,则向所述终端发送差分更新提示,否则,向所述终端发送全量更新提示。The server is configured to receive the verification information sent by the terminal, and determine whether the verification information conforms to a preset result, and if so, send a difference update prompt to the terminal, otherwise, send a difference update prompt to the terminal. Full update notification.
本申请实施例提供一种信息更新方法、装置及系统,该方法获取终端上的特定信息对应的校验信息,判断所述校验信息是否符合预设结果,若是,则确定对所述特定信息进行差分更新,否则,确定对所述特定信息进行全量更新,其中,所述特定信息具体包括固件,所述校验信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种,以及版本号。通过上述方法,由于服务器根据该校验信息,可以确定终端上的固件是否已被修改,若是,则可使用全量更新包对终端上的固件进行全量更新,否则,可使用差分更新包对终端上的固件进行差分更新,进而,可以对终端上的固件更新成功。The embodiment of the present application provides an information update method, device and system. The method acquires the verification information corresponding to the specific information on the terminal, and judges whether the verification information conforms to the preset result. Perform a differential update, otherwise, determine to perform a full update on the specific information, wherein the specific information specifically includes firmware, and the verification information specifically includes at least one of system space, message digest, and cyclic redundancy check code , and the version number. Through the above method, since the server can determine whether the firmware on the terminal has been modified according to the verification information, if so, the full update package can be used to update the firmware on the terminal in full, otherwise, the differential update package can be used to update the firmware on the terminal. The firmware of the terminal is differentially updated, and then, the firmware on the terminal can be successfully updated.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1为本申请实施例提供的信息更新过程;Fig. 1 is the information updating process provided by the embodiment of the present application;
图2为本申请实施例提供的对应于图1的信息更新过程;FIG. 2 is an information update process corresponding to FIG. 1 provided by the embodiment of the present application;
图3为本申请实施例提供的信息更新的详细过程;Fig. 3 is the detailed process of information update provided by the embodiment of the present application;
图4为本申请实施例提供的信息更新装置结构示意图;FIG. 4 is a schematic structural diagram of an information updating device provided in an embodiment of the present application;
图5为本申请实施例提供的另一个信息更新装置结构示意图;FIG. 5 is a schematic structural diagram of another information update device provided by the embodiment of the present application;
图6为本申请实施例提供的信息更新系统示意图。FIG. 6 is a schematic diagram of an information updating system provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
图1为本申请实施例提供的信息更新过程,具体包括以下步骤:Figure 1 is the information update process provided by the embodiment of the present application, which specifically includes the following steps:
S101:获取终端上的特定信息对应的校验信息。S101: Obtain verification information corresponding to specific information on the terminal.
本申请实施例提供的信息更新方法的执行主体可以是:服务器、终端或系统等。所述的执行主体并不构成对本申请的限定,为了便于描述,本申请实施例均以执行主体是服务器为例进行说明。The execution subject of the information update method provided in the embodiment of the present application may be: a server, a terminal, or a system. The execution subject does not constitute a limitation of the present application. For the convenience of description, the embodiments of the present application all take the execution subject as an example for description.
在本申请实施例中,所述的特定信息可以是终端上的软件或者其他特定文件,其中,固件(Firmware)就是终端上的一种典型的软件,一般的,固件被写入终端的带电可擦可编程只读存储器(Electrically Erasable ProgrammableRead-Only Memory,EEPROM),或被固化在终端的只读存储器(Read-OnlyMemory,ROM)中,是与终端的底层硬件直接交互的软件。例如,对于个人计算机(Personal Computer,PC)终端,固化在PC主板上的ROM中的基本输入输出系统(Basic Input Output System,BIOS)就是该PC的固件;对于手机终端,写入手机上的闪存式只读存储器(flashROM)中的手机操作系统就是该手机的固件。为了便于描述,本申请实施例均基于所述的特定信息是终端上的固件的应用场景,对本申请实施例提供的信息更新方法进行说明。In the embodiment of the present application, the specific information may be software or other specific files on the terminal, wherein, firmware (Firmware) is a typical software on the terminal, generally, the firmware is written into the Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), or solidified in the read-only memory (Read-Only Memory, ROM) of the terminal, is software that directly interacts with the underlying hardware of the terminal. For example, for a personal computer (Personal Computer, PC) terminal, the Basic Input Output System (Basic Input Output System, BIOS) solidified in the ROM on the PC motherboard is the firmware of the PC; The mobile phone operating system in the flashROM is exactly the firmware of the mobile phone. For ease of description, the embodiments of the present application are all based on the application scenario in which the specific information is firmware on the terminal, and describe the information update method provided in the embodiments of the present application.
一般的,可以对终端上的固件定期或不定期地进行更新(更新,也可称为升级),使得该固件与服务器上保存的最新版本的固件保持一致,从而改进终端上操作系统的功能和/或修正终端上操作系统的缺陷。Generally, the firmware on the terminal can be regularly or irregularly updated (updated, also referred to as an upgrade), so that the firmware is consistent with the latest version of the firmware stored on the server, thereby improving the functions and functions of the operating system on the terminal. and/or fix bugs in the operating system on the terminal.
在现有技术中,当要对终端上的固件进行更新时,可以由终端向服务器发起固件更新请求,则服务器可将自己保存的、最新版本的固件,或者将该最新版本的固件的下载地址发送给终端,进而通过该终端,对终端的固件进行全量更新,也即,用该最新版本的固件替换掉该终端的固件,使得终端的固件更新至最新版本;进一步的,在实际应用中,若每次都进行全量更新,会增加终端的负担和流量消耗,因此,当要对终端上的固件进行更新时,终端还可以在向服务器发起的固件更新请求中携带自己的固件的版本号,则服务器通过对终端的固件与最新版本的固件的版本的比对,可确定出两者之间的差异,以及可查找到保存的与该差异对应的差分更新包,并将该差分更新包,或者将该差分更新包的下载地址发送给终端,进而通过该终端,对终端的固件进行差分更新,也即,使用差分更新包对终端的固件进行增量更新或部分替换(可统称为差分更新),使得终端的固件更新至最新版本。In the prior art, when the firmware on the terminal is to be updated, the terminal can initiate a firmware update request to the server, and the server can save the latest version of the firmware itself, or the download address of the latest version of the firmware sent to the terminal, and then through the terminal, the firmware of the terminal is fully updated, that is, the firmware of the terminal is replaced with the latest version of the firmware, so that the firmware of the terminal is updated to the latest version; further, in practical applications, If a full update is performed each time, the burden on the terminal and traffic consumption will increase. Therefore, when the firmware on the terminal is to be updated, the terminal can also carry its own firmware version number in the firmware update request initiated to the server. Then the server can determine the difference between the firmware of the terminal and the latest version of the firmware by comparing the versions of the two, and can find the saved differential update package corresponding to the difference, and store the differential update package, Or send the download address of the differential update package to the terminal, and then through the terminal, perform a differential update on the firmware of the terminal, that is, use the differential update package to incrementally update or partially replace the firmware of the terminal (which may be collectively referred to as differential update ), so that the firmware of the terminal is updated to the latest version.
但是,在某些场景下,用户或攻击者有可能获取到对终端的固件进行操作的权限,例如,使用第三方工具对终端进行root,获得超级用户权限,进而可以修改终端的固件。在这类情况下,终端的固件的版本号虽然未改变,但终端的固件与服务器保存的相同版本号的固件的实际内容已经不一致,从而可能导致上述的对终端的固件进行差分更新失败,而且,即使重试终端依然会得到差分更新包,无法成功地更新终端的固件。However, in some scenarios, users or attackers may obtain permission to operate the terminal firmware. For example, use a third-party tool to root the terminal to obtain superuser privileges, and then modify the terminal firmware. In such cases, although the version number of the terminal's firmware has not changed, the actual content of the terminal's firmware and the firmware of the same version number saved by the server are no longer consistent, which may lead to the failure of the above-mentioned differential update of the terminal's firmware, and , even if you try again, the terminal will still get the differential update package, and the firmware of the terminal cannot be successfully updated.
基于上述原因,在本申请实施例中,服务器在对终端的固件进行更新前,可以获取该固件的校验信息,用于对该固件进行校验,以确定该固件是否已经被修改,从而确定后续如何对该固件进行更新。Based on the above reasons, in the embodiment of the present application, before updating the firmware of the terminal, the server can obtain the verification information of the firmware, which is used to verify the firmware to determine whether the firmware has been modified, so as to determine How to update the firmware in the future.
另外,需要说明的是,除了上述的由终端主动发起更新固件的过程以外,同样也可以由服务器主动发起更新固件的过程,具体的,每当服务器上保存了新版本的固件后,可以主动将新版本的固件推送至终端进行实时的固件更新,或者,终端可暂时保存服务器推送的新版本的固件,由用户确定何时进行固件更新。In addition, it should be noted that, in addition to the above-mentioned process initiated by the terminal to update the firmware, the process of updating the firmware can also be initiated by the server. Specifically, whenever a new version of the firmware is saved on the server, it can actively update The new version of the firmware is pushed to the terminal for real-time firmware update, or the terminal can temporarily save the new version of the firmware pushed by the server, and the user determines when to perform the firmware update.
S102:判断所述校验信息是否符合预设结果,若是,则执行步骤S103,否则,执行步骤S104。S102: Determine whether the verification information conforms to a preset result, if yes, execute step S103, otherwise, execute step S104.
S103:确定对所述特定信息进行差分更新。S103: Determine to perform a differential update on the specific information.
S104:确定对所述特定信息进行全量更新。S104: Determine to perform a full update on the specific information.
需要说明的是,服务器在确定要对终端上的特定信息进行的更新方式之后,主动向终端推送相应的更新包(差分包或者全量包),终端接收到该更新包后再对自身上的特定信息进行差分更新或全量更新。或者,服务器也可以只向终端进行提示确定的更新方式,由终端自行从服务器下载相应的更新包,然后,再对自身上的特定信息进行差分更新或全量更新,等等。因此,本申请对在服务器确定更新方式后,后续执行相应的更新动作的执行主体并不做限定,显然,该执行主体既可以是终端,也可以是服务器。It should be noted that after the server determines the update method for the specific information on the terminal, it actively pushes the corresponding update package (differential package or full package) to the terminal, and the terminal updates the specific information on itself after receiving the update package. The information is updated differentially or in full. Alternatively, the server may only prompt the terminal to determine the update method, and the terminal downloads the corresponding update package from the server, and then performs differential update or full update of specific information on itself, and so on. Therefore, the present application does not limit the execution subject that subsequently executes the corresponding update action after the server determines the update mode. Obviously, the execution subject can be either a terminal or a server.
通过上述方法,由于服务器根据终端上固件的校验信息,可以确定该固件是否已被修改,若是,则可使用全量更新包对终端上的固件进行全量更新,否则,可使用差分更新包对终端上的固件进行差分更新,进而,可以对终端上的固件更新成功。Through the above method, the server can determine whether the firmware has been modified according to the verification information of the firmware on the terminal. The firmware on the terminal can be differentially updated, and then the firmware on the terminal can be successfully updated.
在本申请实施例中,对于上述步骤S101,获取终端上的特定信息对应的校验信息,具体包括:接收终端发送的校验信息,其中,所述校验信息是根据所述终端上的特定信息生成的,所述校验信息具体包含所述特定信息的标识信息和特征信息。其中,所述的特征信息可以是任一可用于确定该特定信息是否被修改过的信息。In the embodiment of the present application, for the above step S101, obtaining the verification information corresponding to the specific information on the terminal includes: receiving the verification information sent by the terminal, wherein the verification information is based on the specific information on the terminal information, the check information specifically includes identification information and feature information of the specific information. Wherein, the feature information may be any information that can be used to determine whether the specific information has been modified.
更具体的,当所述的特定信息是固件时,所述的标识信息具体包括版本号,所述特征信息具体包括系统空间(系统空间也可称为:尺寸或大小)、消息摘要、循环冗余校验码中的至少一种。通过对所述的特征信息进行校验,可确定终端上的固件是否已经被修改,进而采用适用的方式对该固件进行更新,使得该固件可更新成功。More specifically, when the specific information is firmware, the identification information specifically includes a version number, and the feature information specifically includes system space (system space can also be called: size or size), message digest, cyclic redundancy At least one of the remaining check codes. By checking the feature information, it can be determined whether the firmware on the terminal has been modified, and then the firmware is updated in an applicable manner, so that the firmware can be updated successfully.
进一步的,在实际应用中,可以由终端根据自身的固件,生成该固件的校验信息,其中,该校验信息具体包含该固件的版本号和特征信息。一般的,版本号可以通过读取该固件的配置文件获得,而对于特征信息,则可根据具体情况采用相应的生成方法,本申请实施例列举了三种(系统空间、消息摘要、循环冗余校验码)适用的表征值作为特征信息,当然,其他任一可以反映该固件是否被修改的表征值同样也可以作为特征信息,对所述的表征值的选取并不构成对本申请的限定。Further, in practical applications, the terminal may generate the verification information of the firmware according to its own firmware, where the verification information specifically includes the version number and feature information of the firmware. Generally, the version number can be obtained by reading the configuration file of the firmware, and for feature information, a corresponding generation method can be adopted according to the specific situation. The embodiment of the present application lists three types (system space, message digest, cyclic redundancy check code) as characteristic information, of course, any other characteristic value that can reflect whether the firmware has been modified can also be used as characteristic information, and the selection of said characteristic value does not constitute a limitation to this application.
在此,分别针对这三种表征值,对生成特征信息的方式进行简单说明。Here, the manner of generating feature information is briefly described for these three kinds of characterization values.
选取系统空间作为特征信息,系统空间可以用字节或比特等单位进行表示,当固件被修改时,固件的系统空间也会发生变化,计算固件包含的全部文件的系统空间,即为固件的系统空间。The system space is selected as the characteristic information. The system space can be expressed in units such as bytes or bits. When the firmware is modified, the system space of the firmware will also change. Calculate the system space of all the files contained in the firmware, which is the system space of the firmware. space.
选取消息摘要作为特征信息,消息摘要是基于单向散列算法,确定出的唯一对应一个消息或文件的固定长度的值,当固件被修改时,固件的消息摘要也会发生变化。常用的单向散列算法包括:消息摘要算法5(Message DigestAlgorithm 5,MD5)、安全哈希算法(Secure Hash Algorithm,SHA)、消息认证代码(Message Authentication Code,MAC)等。The message digest is selected as the characteristic information. The message digest is based on a one-way hash algorithm, and the unique fixed-length value corresponding to a message or file is determined. When the firmware is modified, the message digest of the firmware will also change. Commonly used one-way hash algorithms include: Message Digest Algorithm 5 (MD5), Secure Hash Algorithm (SHA), and Message Authentication Code (MAC).
选取循环冗余校验码作为特征信息,循环冗余校验码是基于取模运算,确定出的对应一个消息或文件的固定长度的值,当固件被修改时,固件的循环冗余校验码也会发生变化。The cyclic redundancy check code is selected as the feature information. The cyclic redundancy check code is based on the modulo operation, and the value corresponding to a fixed length of a message or file is determined. When the firmware is modified, the cyclic redundancy check of the firmware The code will also change.
进一步的,对于上述步骤S102,判断所述校验信息是否符合预设结果,具体包括:在服务器上,查找与所述校验信息对应的标准信息,生成所述标准信息的特征信息,判断所述校验信息包含的特征信息是否与所述标准信息的特征信息相同,若是,则确定所述校验信息符合预设结果,否则,确定所述校验信息不符合预设结果。Further, for the above step S102, judging whether the verification information conforms to the preset result specifically includes: on the server, searching for standard information corresponding to the verification information, generating characteristic information of the standard information, and judging the Whether the characteristic information contained in the verification information is the same as the characteristic information of the standard information, if yes, determine that the verification information conforms to a preset result, otherwise, determine that the verification information does not conform to a preset result.
更进一步的,在服务器上,查找与所述校验信息对应的标准信息,具体包括:在服务器上,查找预先保存的各标准信息,其中,每个标准信息分别包含有自身的标识信息,在查找到的各标准信息中,确定包含的标识信息与所述校验信息包含的标识信息相同的标准信息,作为与所述校验信息对应的标准信息。Furthermore, on the server, searching for the standard information corresponding to the verification information specifically includes: on the server, searching for each standard information stored in advance, wherein each standard information contains its own identification information, in Among the searched standard information, determine the standard information containing the same identification information as the identification information contained in the verification information, as the standard information corresponding to the verification information.
在此,对所述的标准信息进行说明,所有的标准信息均被预先保存在服务器上,当终端上尚未存在特定信息时,终端可从服务器上获取适用于自身的标准信息,此后,终端获取到的标准信息即可成为终端上的特定信息。显然,由于终端获取到标准信息后,可能对该标准信息进行修改,因此,终端上的特定信息与服务器上对应的标准信息可能不相同,也即,被修改之前的特定信息就是:与该特定信息包含的标志信息对应的标准信息。当然,若终端并未对获取到的标准信息进行修改,那么,所述的特定信息与服务器上对应的标准信息相同。Here, the standard information is described. All standard information is pre-stored on the server. When the specific information does not exist on the terminal, the terminal can obtain the standard information applicable to itself from the server. After that, the terminal obtains The received standard information can become the specific information on the terminal. Obviously, since the terminal may modify the standard information after obtaining the standard information, the specific information on the terminal may be different from the corresponding standard information on the server, that is, the specific information before being modified is: the same as the specific information The standard information corresponding to the flag information included in the information. Of course, if the terminal does not modify the acquired standard information, then the specific information is the same as the corresponding standard information on the server.
更具体的,当所述的特定信息是终端上的固件时,所述标准信息具体包括服务器上预先保存的、适用于所述终端的固件。服务器在获取到终端上的固件的版本号和特征信息后,可以保存的、版本号与终端上的固件的版本号相同的固件,并确定保存的该固件的特征信息,然后,判断终端上的固件的特征信息是否与保存的该固件的特征信息相同,若是,则可确定终端上的固件未修改,可以确定进行差分更新,否则,可确定终端上的固件已修改,若进行差分更新可能会失败,因此,可以确定进行全量更新。More specifically, when the specific information is firmware on the terminal, the standard information specifically includes firmware that is pre-stored on the server and is applicable to the terminal. After the server obtains the version number and feature information of the firmware on the terminal, it can save the firmware whose version number is the same as the version number of the firmware on the terminal, and determine the feature information of the saved firmware, and then determine the firmware on the terminal. Whether the feature information of the firmware is the same as the saved feature information of the firmware, if so, it can be determined that the firmware on the terminal has not been modified, and a differential update can be determined, otherwise, it can be determined that the firmware on the terminal has been modified, and if the differential update is performed, it may be Failed, therefore, a full update can be determined.
本申请对在服务器确定对终端上的特定信息的更新方式后,执行该更新方式的执行主体,以及具体的执行方式并不做限定,在此,仅举例说明其中两种可行的执行方式。对于上述步骤S104和S105,确定对所述特定信息进行差分更新,具体包括:服务器向所述终端进行提示,使所述终端从所述服务器获取差分包,并使用获取的差分包,将自身上的所述特定信息差分更新为与所述校验信息对应的标准信息;确定对所述特定信息进行全量更新,具体包括:服务器向所述终端进行提示,使所述终端从所述服务器获取与所述校验信息对应的标准信息,并使用获取的标准信息,将自身上的所述特定信息全量更新为与所述校验信息对应的标准信息。This application does not limit the execution subject and the specific execution method after the server determines the update method of the specific information on the terminal. Here, only two feasible execution methods are illustrated here. For the above steps S104 and S105, determining to perform a differential update on the specific information specifically includes: the server prompts the terminal so that the terminal obtains a differential packet from the server, and uses the obtained differential packet to update itself The specific information is differentially updated to the standard information corresponding to the verification information; determining to update the specific information in full, specifically includes: the server prompts the terminal, so that the terminal obtains the same information from the server The standard information corresponding to the verification information is used, and the obtained standard information is used to update all the specific information on itself to the standard information corresponding to the verification information.
进一步的,为了提高服务器的处理效率,服务器也可以不在接收到终端发送的校验信息后,才实时地确定特征信息,而是可以预先确定并保存每个版本的固件的特征信息,这样的话,服务器在接收到终端发送的校验信息后,可以根据该校验信息包含的版本号,直接在保存的各特征信息中,查找对应的版本号与该校验信息包含的版本号相同的特征信息,再进行比对确定终端上的固件是否已修改。Further, in order to improve the processing efficiency of the server, the server may not determine the feature information in real time after receiving the verification information sent by the terminal, but may pre-determine and save the feature information of each version of the firmware. In this case, After receiving the verification information sent by the terminal, the server can directly search for the characteristic information whose corresponding version number is the same as the version number contained in the verification information in the saved characteristic information according to the version number contained in the verification information , and then compare to determine whether the firmware on the terminal has been modified.
在本申请实施例中,除了采用上述的由终端向服务器发送校验信息的方式之外,还可以采用由服务器向终端发送校验信息的方式,实现信息更新过程。具体的,服务器可根据终端的版本号,确定自身保存的该版本号的固件的校验信息,并发送给终端,然后,由终端将接收到的该校验信息与根据终端上的固件生成的校验信息进行比对,判断终端上的固件是否已修改,并将判断结果发送给服务器,则服务器可根据接收到的判断结果,当判断结果为是时,可通过终端,对终端上的固件进行全量更新,当判断结果为否时,可通过终端,对终端上的固件进行差分更新。这种方式与前一种方式相比,增加了终端与服务器之间的交互次数,但是,可以降低服务器的负担。可以根据实际应用场景的需求,对这两种方式进行选择。In this embodiment of the present application, in addition to the above-mentioned method of sending verification information from the terminal to the server, a method of sending verification information from the server to the terminal may also be used to implement the information update process. Specifically, according to the version number of the terminal, the server can determine the verification information of the firmware of the version number stored by itself, and send it to the terminal. Then, the terminal compares the received verification information with the verification information generated according to the firmware on the terminal. Compare the verification information, judge whether the firmware on the terminal has been modified, and send the judgment result to the server, then the server can check the firmware on the terminal through the terminal when the judgment result is yes. Perform a full update, and when the judgment result is no, you can perform a differential update on the firmware on the terminal through the terminal. Compared with the former method, this method increases the number of interactions between the terminal and the server, but can reduce the load on the server. These two methods can be selected according to the requirements of actual application scenarios.
此外,若由服务器向终端发送校验信息,由于服务器使用的端口可能是固定的,黑客可能会有针对性地攻击该端口,篡改服务器给各终端发送的校验信息,因此,服务器可以对校验信息进行加密和签名后再发送给终端,从而,可以提高服务器与终端的交互过程的安全性;而若由终端向服务器发送校验信息,由于终端一般会使用随机端口,因此,增加了黑客攻击的难度,相对来说这种方式更安全。In addition, if the server sends verification information to the terminal, since the port used by the server may be fixed, hackers may attack the port in a targeted manner and tamper with the verification information sent by the server to each terminal. Therefore, the server can verify the verification information. The verification information is encrypted and signed before being sent to the terminal, thereby improving the security of the interaction process between the server and the terminal; and if the verification information is sent from the terminal to the server, since the terminal generally uses a random port, it increases the security of hackers. The difficulty of the attack, relatively speaking, this method is more secure.
在实际应用中,还可能存在这样的情况:终端上的固件版本与最新固件版本相差甚远,以至于需要获取很多个差分更新包才能将终端上的固件升级至最新版本。在这种情况下,相比于差分更新,对终端上的固件进行全量更新可能更有效率,而且可以减少终端上的存储空间碎片,提高终端的效率。In practical applications, there may also be such a situation: the firmware version on the terminal is far from the latest firmware version, so that many differential update packages need to be obtained to upgrade the firmware on the terminal to the latest version. In this case, compared with differential updating, it may be more efficient to perform a full update of the firmware on the terminal, which can reduce fragmentation of storage space on the terminal and improve the efficiency of the terminal.
另外,在某些场景下,终端根据自身的安全策略,可能会将对固件的修改操作记录在系统日志中,在这种情况下,终端与服务器也可以不核对校验信息,而是仅由终端直接根据系统日志,确定自身的固件是否已修改,若是,则向服务器请求进行全量更新,否则,向服务器请求进行差分更新。需要说明的是,一般的,在未获取超级用户权限时,可能无法读取终端的系统日志。In addition, in some scenarios, according to its own security policy, the terminal may record the modification operation of the firmware in the system log. In this case, the terminal and the server may not check the verification information, but only by the The terminal directly determines whether its own firmware has been modified according to the system log, and if so, requests a full update to the server; otherwise, requests a differential update to the server. It should be noted that, generally, the system log of the terminal may not be read when the superuser authority is not obtained.
在本申请实施例中,所述的特定信息还可以是除固件之外的其他信息,因此,相应的,在判断该其他信息对应的校验信息是否符合预设结果,还可以对该其他信息进行除更新之外的其他处理。所述的处理包括但不限于:更新、锁定、恢复、拆包、封装、加密、解密等操作。In the embodiment of the present application, the specific information can also be other information except firmware. Therefore, correspondingly, when judging whether the verification information corresponding to the other information conforms to the preset result, the other information can also be Do other processing than update. The processing includes, but is not limited to: operations such as updating, locking, restoring, unpacking, encapsulating, encrypting, and decrypting.
如上述步骤所述,当所述的特定信息是终端上的固件时,服务器可根据获取的终端上的固件的校验信息,然后,根据该校验信息,采用适用的方式对该固件进行更新,使得该固件可更新成功。As described in the above steps, when the specific information is the firmware on the terminal, the server can update the firmware in an applicable way according to the acquired verification information of the firmware on the terminal , so that the firmware can be updated successfully.
图2为本申请实施例提供的对应于图1的信息更新过程,具体包括以下步骤:Figure 2 is an information update process corresponding to Figure 1 provided by the embodiment of the present application, which specifically includes the following steps:
S201:终端针对自身上的特定信息,生成对应的校验信息。S201: The terminal generates corresponding verification information for specific information on itself.
S202:将所述校验信息发送给服务器。S202: Send the verification information to the server.
S203:当接收到所述服务器发送的差分更新提示后,对所述特定信息进行差分更新,当接收到所述服务器发送的全量更新提示后,对所述特定信息进行全量更新,其中,所述差分更新提示是由所述服务器在确定所述校验信息符合预设结果后发送的,所述全量更新提示是由所述服务器在确定所述校验信息不符合预设结果后发送的。S203: After receiving the differential update prompt sent by the server, perform a differential update on the specific information, and after receiving the full update prompt sent by the server, perform a full update on the specific information, wherein the The differential update prompt is sent by the server after determining that the verification information conforms to a preset result, and the full update prompt is sent by the server after determining that the verification information does not conform to a preset result.
所述特定信息具体包括终端上的固件,所述校验信息具体包含所述特定信息的标识信息和特征信息,所述标识信息具体包括版本号,所述特征信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种。The specific information specifically includes firmware on the terminal, the verification information specifically includes identification information and feature information of the specific information, the identification information specifically includes a version number, and the feature information specifically includes system space, message digest, At least one of cyclic redundancy check codes.
根据上述的说明,在图3中示出了本申请实施例提供的信息更新的详细过程,具体包括以下步骤:According to the above description, the detailed process of updating the information provided by the embodiment of the present application is shown in Fig. 3, which specifically includes the following steps:
S301:终端生成自身的固件的校验信息,该校验信息包括但不限于版本号、特征信息等。S301: The terminal generates verification information of its own firmware, and the verification information includes but not limited to a version number, feature information, and the like.
S302:终端向服务器发送固件更新请求,该固件升级请求携带有终端生成的校验信息。S302: The terminal sends a firmware update request to the server, and the firmware update request carries verification information generated by the terminal.
基于不同的应用场景,终端同时还可以发送更多的信息给服务器,例如,终端的型号、设备标识等。Based on different application scenarios, the terminal can also send more information to the server at the same time, for example, the model of the terminal, the device identification, and so on.
S303:服务器根据接收到的版本号,查找是否有可版本更新的固件,若是则执行步骤S304,否则,向终端提示当前已为最新版本。S303: According to the received version number, the server searches whether there is firmware that can be updated, and if so, executes step S304; otherwise, prompts the terminal that the current version is the latest version.
另外,在某些场景下,不同型号的终端可能只能使用特定版本的固件,在这种情况下,版本最新的固件不一定适用于终端,因此,服务器可以根据接收到的型号,筛选出该终端适用的、版本更新的固件。In addition, in some scenarios, terminals of different models may only use a specific version of firmware. In this case, the latest version of firmware may not be applicable to the terminal. Therefore, the server can filter out the firmware based on the received model. A newer version of the firmware for the terminal.
S304:服务器根据接收到的版本号,查找保存的该版本号的固件,并确定保存的该固件的特征信息。S304: The server searches for the stored firmware with the version number according to the received version number, and determines the stored feature information of the firmware.
S305:服务器对接收到的特征信息与服务器确定出的特征信息进行比对,确定两者是否相同。S305: The server compares the received characteristic information with the characteristic information determined by the server, and determines whether the two are the same.
S306:服务器当两者相同时,向终端发送固件的差分更新包,当两者不相同时,向终端发送最新版本的固件。S306: When the two are the same, the server sends a firmware differential update package to the terminal, and when the two are not the same, sends the latest version of the firmware to the terminal.
或者,服务器也可以发送固件的差分更新包或最新版本的固件下载地址。另外,在某些场景下,服务器不一定有差分更新包,在这种情况下,无法对终端上的固件进行差分更新,只能进行全量更新。Alternatively, the server may also send a differential update package of the firmware or a download address of the latest version of the firmware. In addition, in some scenarios, the server does not necessarily have a differential update package. In this case, the firmware on the terminal cannot be updated differentially, and only a full update can be performed.
S307:终端根据服务器提供的用于更新固件的信息,相应地对自身的固件进行差分更新或全量更新,使得自身的固件更新至最新版本。S307: According to the information for updating firmware provided by the server, the terminal correspondingly performs a differential update or a full update of its own firmware, so that its own firmware is updated to the latest version.
以上为本申请实施例提供的信息更新方法,基于同样的思路,本申请实施例还提供相应的信息更新装置,如图4、图5所示。The above is the information updating method provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application also provides a corresponding information updating device, as shown in FIG. 4 and FIG. 5 .
图4为本申请实施例提供的信息更新装置结构示意图,具体包括:Fig. 4 is a schematic structural diagram of an information updating device provided in an embodiment of the present application, specifically including:
获取模块401,用于获取终端上的特定信息对应的校验信息;An acquisition module 401, configured to acquire verification information corresponding to specific information on the terminal;
更新模块402,用于判断所述校验信息是否符合预设结果,若是,则确定对所述特定信息进行差分更新,否则,确定对所述特定信息进行全量更新。The updating module 402 is configured to judge whether the verification information conforms to a preset result, and if so, determine to perform a differential update on the specific information, otherwise, determine to perform a full update on the specific information.
所述获取模块401具体用于接收终端发送的校验信息,其中,所述校验信息是根据所述终端上的特定信息生成的,所述校验信息具体包含所述特定信息的标识信息和特征信息。The acquisition module 401 is specifically configured to receive the verification information sent by the terminal, wherein the verification information is generated according to specific information on the terminal, and the verification information specifically includes identification information of the specific information and characteristic information.
所述更新模块402具体用于,在服务器上,查找与所述校验信息对应的标准信息,生成所述标准信息的特征信息,判断所述校验信息包含的特征信息是否与所述标准信息的特征信息相同,若是,则确定所述校验信息符合预设结果,否则,确定所述校验信息不符合预设结果。The update module 402 is specifically configured to, on the server, search for standard information corresponding to the verification information, generate characteristic information of the standard information, and determine whether the characteristic information contained in the verification information is consistent with the standard information. The characteristic information of the two are the same, if yes, determine that the verification information conforms to a preset result, otherwise, determine that the verification information does not conform to a preset result.
所述更新模块402具体用于,在服务器上,查找预先保存的各标准信息,其中,每个标准信息分别包含有自身的标识信息,在查找到的各标准信息中,确定包含的标识信息与所述校验信息包含的标识信息相同的标准信息,作为与所述校验信息对应的标准信息。The update module 402 is specifically configured to, on the server, search for each standard information stored in advance, wherein each standard information contains its own identification information, and determine the identity information contained in the searched standard information and Standard information that includes the same identification information as the verification information is used as standard information corresponding to the verification information.
所述更新模块402具体用于,当判断所述校验信息符合预设结果时,向所述终端进行提示,使所述终端从所述服务器获取差分包,并使用获取的差分包,将自身上的所述特定信息差分更新为与所述校验信息对应的标准信息,当判断所述校验信息不符合预设结果时,向所述终端进行提示,使所述终端从所述服务器获取与所述校验信息对应的标准信息,并使用获取的标准信息,将自身上的所述特定信息全量更新为与所述校验信息对应的标准信息The updating module 402 is specifically configured to, when it is judged that the verification information conforms to a preset result, to prompt the terminal, so that the terminal obtains a differential packet from the server, and uses the obtained differential packet to update itself The specific information difference on the above is updated to the standard information corresponding to the verification information, and when it is judged that the verification information does not meet the preset result, a prompt is given to the terminal, so that the terminal obtains from the server standard information corresponding to the verification information, and using the obtained standard information to update all the specific information on itself with the standard information corresponding to the verification information
所述特定信息具体包括终端上的固件,所述标准信息具体包括服务器上预先保存的、适用于所述终端的固件,所述标识信息具体包括版本号,所述特征信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种。The specific information specifically includes firmware on the terminal, the standard information specifically includes firmware that is pre-saved on the server and is applicable to the terminal, the identification information specifically includes a version number, and the feature information specifically includes system space, message At least one of digest and cyclic redundancy check code.
具体的上述如图4所示的装置可以位于服务器上。Specifically, the above-mentioned apparatus as shown in FIG. 4 may be located on a server.
图5为本申请实施例提供的另一个信息更新装置结构示意图,具体包括:Fig. 5 is a schematic structural diagram of another information update device provided in the embodiment of the present application, specifically including:
生成模块501,用于针对终端上的特定信息,生成对应的校验信息;A generating module 501, configured to generate corresponding verification information for specific information on the terminal;
发送模块502,用于将所述校验信息发送给服务器;A sending module 502, configured to send the verification information to a server;
更新模块503,用于当接收到所述服务器发送的差分更新提示后,对所述特定信息进行差分更新,当接收到所述服务器发送的全量更新提示后,对所述特定信息进行全量更新,其中,所述差分更新提示是由所述服务器在确定所述校验信息符合预设结果后发送的,所述全量更新提示是由所述服务器在确定所述校验信息不符合预设结果后发送的。The update module 503 is configured to perform a differential update on the specific information after receiving the differential update prompt sent by the server, and perform a full update on the specific information after receiving the full update prompt sent by the server, Wherein, the differential update prompt is sent by the server after determining that the verification information conforms to a preset result, and the full update prompt is sent by the server after determining that the verification information does not conform to a preset result sent.
所述特定信息具体包括终端上的固件,所述校验信息具体包含所述特定信息的标识信息和特征信息,所述标识信息具体包括版本号,所述特征信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种。The specific information specifically includes firmware on the terminal, the verification information specifically includes identification information and feature information of the specific information, the identification information specifically includes a version number, and the feature information specifically includes system space, message digest, At least one of cyclic redundancy check codes.
具体的上述如图5所示的装置可以位于终端上。Specifically, the aforementioned device as shown in FIG. 5 may be located on the terminal.
以上为本申请实施例提供的信息更新方法及装置,基于同样的思路,本申请实施例还提供相应的信息更新系统,如图6所示,所述信息更新系统包括终端和服务器,在实际应用中,终端和服务器可以通过电缆直连,也可以通过局域网、广域网等网络进行连接。The above is the information update method and device provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application also provides a corresponding information update system, as shown in FIG. 6, the information update system includes a terminal and a server. In , the terminal and the server can be directly connected through cables, or can be connected through networks such as LAN and WAN.
所述终端,用于针对自身上的特定信息,生成对应的校验信息,将所述校验信息发送给所述服务器,当接收到所述服务器发送的差分更新提示后,对所述特定信息进行差分更新,当接收到所述服务器发送的全量更新提示后,对所述特定信息进行全量更新;The terminal is configured to generate corresponding check information for specific information on itself, send the check information to the server, and after receiving the difference update prompt sent by the server, check the specific information performing a differential update, and performing a full update of the specific information after receiving the full update prompt sent by the server;
所述服务器,用于接收所述终端发送的所述校验信息,并判断所述校验信息是否符合预设结果,若是,则向所述终端发送差分更新提示,否则,向所述终端发送全量更新提示。The server is configured to receive the verification information sent by the terminal, and determine whether the verification information conforms to a preset result, and if so, send a difference update prompt to the terminal, otherwise, send a difference update prompt to the terminal. Full update notification.
需要说明的是,本申请对服务器所发送的差分更新提示和全量更新提示的表示格式并不做限定,既可以采用文本消息的表示格式,也可以采用图片、音频等多媒体信息的表示格式,等等。It should be noted that this application does not limit the presentation formats of the differential update prompts and full update prompts sent by the server, which may be text messages or multimedia information such as pictures and audio, etc. Wait.
本申请实施例提供一种信息更新方法、装置及系统,该方法获取终端上的特定信息对应的校验信息,判断所述校验信息是否符合预设结果,若是,则对所述特定信息进行差分更新,否则,对所述特定信息进行全量更新,其中,所述特定信息具体包括固件,所述校验信息具体包括系统空间、消息摘要、循环冗余校验码中的至少一种,以及版本号。通过上述方法,由于服务器根据该校验信息,可以确定终端上的固件是否已被修改,若是,则可使用全量更新包对终端上的固件进行全量更新,否则,可使用差分更新包对终端上的固件进行差分更新,进而,可以对终端上的固件更新成功。The embodiment of the present application provides an information updating method, device and system. The method acquires the verification information corresponding to the specific information on the terminal, judges whether the verification information conforms to the preset result, and if so, performs the verification on the specific information. Differential update, otherwise, perform a full update on the specific information, where the specific information specifically includes firmware, and the check information specifically includes at least one of system space, message digest, and cyclic redundancy check code, and version number. Through the above method, since the server can determine whether the firmware on the terminal has been modified according to the verification information, if so, the full update package can be used to update the firmware on the terminal in full, otherwise, the differential update package can be used to update the firmware on the terminal. The firmware of the terminal is differentially updated, and then, the firmware on the terminal can be successfully updated.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, in the form of random access memory (RAM) and/or nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510134543.7A CN106161336A (en) | 2015-03-25 | 2015-03-25 | A kind of information updating method, Apparatus and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510134543.7A CN106161336A (en) | 2015-03-25 | 2015-03-25 | A kind of information updating method, Apparatus and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106161336A true CN106161336A (en) | 2016-11-23 |
Family
ID=57340069
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510134543.7A Pending CN106161336A (en) | 2015-03-25 | 2015-03-25 | A kind of information updating method, Apparatus and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106161336A (en) |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790247A (en) * | 2017-01-23 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus of android system upgrading |
| CN106775778A (en) * | 2017-02-06 | 2017-05-31 | 山东鲁能智能技术有限公司 | Embedded program exploitation Program updates recognition methods and system |
| CN107239302A (en) * | 2017-05-10 | 2017-10-10 | 努比亚技术有限公司 | A kind of firmware upgrade method, terminal and server |
| CN108234171A (en) * | 2016-12-15 | 2018-06-29 | 腾讯科技(深圳)有限公司 | A kind of data processing method, system and device |
| CN109240721A (en) * | 2018-08-24 | 2019-01-18 | 江苏恒宝智能系统技术有限公司 | A kind of method of MCU online upgrading |
| CN109358872A (en) * | 2018-09-21 | 2019-02-19 | 广东美的暖通设备有限公司 | Remote firmware upgrade method, device and computer-readable storage medium |
| WO2019041166A1 (en) * | 2017-08-30 | 2019-03-07 | 华为技术有限公司 | Method for updating firmware and related apparatus |
| CN109450977A (en) * | 2018-10-09 | 2019-03-08 | 阿里巴巴集团控股有限公司 | Data cached push, update method and device |
| CN109766115A (en) * | 2019-01-17 | 2019-05-17 | 广东小天才科技有限公司 | Fool-proof method and system for intelligent equipment upgrading |
| CN110083371A (en) * | 2018-01-26 | 2019-08-02 | 比亚迪股份有限公司 | A kind of vehicle program updating system and method, more new tool and storage medium |
| CN111064571A (en) * | 2020-01-09 | 2020-04-24 | 青岛海信移动通信技术股份有限公司 | A communication terminal, a server and a method for dynamically updating a pre-shared key |
| CN111131146A (en) * | 2019-11-08 | 2020-05-08 | 北京航空航天大学 | Multi-supercomputing center software system deployment and incremental updating method in wide area environment |
| CN111464571A (en) * | 2019-01-18 | 2020-07-28 | 阿里巴巴集团控股有限公司 | Communication method and system, server and client |
| CN111562926A (en) * | 2020-04-03 | 2020-08-21 | 江苏能电科技有限公司 | System and method for updating circuit breaker firmware |
| CN111831297A (en) * | 2019-04-17 | 2020-10-27 | 中兴通讯股份有限公司 | Zero-difference upgrade method and device |
| CN113608757A (en) * | 2021-06-17 | 2021-11-05 | 深圳市元征未来汽车技术有限公司 | Data processing method of tire pressure sensor and related device |
| CN113900682A (en) * | 2021-09-08 | 2022-01-07 | 深圳Tcl新技术有限公司 | System software upgrading method, device, equipment and computer storage medium |
| CN121764485A (en) * | 2026-03-02 | 2026-03-31 | 安擎计算机信息股份有限公司 | BIOS refreshing method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1906574A (en) * | 2003-11-19 | 2007-01-31 | 艾利森电话股份有限公司 | Updating data in a mobile terminal |
| US20100175062A1 (en) * | 2009-01-07 | 2010-07-08 | Samsung Electronics Co., Ltd. | Method and system for firmware over the air (fota) service |
| CN104050054A (en) * | 2014-06-27 | 2014-09-17 | 广州金山网络科技有限公司 | Processing method for installation package installation failure and cause determining method and device |
| CN104125276A (en) * | 2014-07-21 | 2014-10-29 | 中兴通讯股份有限公司 | Upgrading method and device |
| CN104216736A (en) * | 2014-08-14 | 2014-12-17 | 小米科技有限责任公司 | Method and device for incremental upgrading and terminal device |
-
2015
- 2015-03-25 CN CN201510134543.7A patent/CN106161336A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1906574A (en) * | 2003-11-19 | 2007-01-31 | 艾利森电话股份有限公司 | Updating data in a mobile terminal |
| US20100175062A1 (en) * | 2009-01-07 | 2010-07-08 | Samsung Electronics Co., Ltd. | Method and system for firmware over the air (fota) service |
| CN104050054A (en) * | 2014-06-27 | 2014-09-17 | 广州金山网络科技有限公司 | Processing method for installation package installation failure and cause determining method and device |
| CN104125276A (en) * | 2014-07-21 | 2014-10-29 | 中兴通讯股份有限公司 | Upgrading method and device |
| CN104216736A (en) * | 2014-08-14 | 2014-12-17 | 小米科技有限责任公司 | Method and device for incremental upgrading and terminal device |
Cited By (26)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108234171A (en) * | 2016-12-15 | 2018-06-29 | 腾讯科技(深圳)有限公司 | A kind of data processing method, system and device |
| CN108234171B (en) * | 2016-12-15 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Data processing method, system and device |
| CN106790247A (en) * | 2017-01-23 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus of android system upgrading |
| CN106775778B (en) * | 2017-02-06 | 2021-03-16 | 山东鲁能软件技术有限公司智能电气分公司 | Program update identification method and system in embedded program development |
| CN106775778A (en) * | 2017-02-06 | 2017-05-31 | 山东鲁能智能技术有限公司 | Embedded program exploitation Program updates recognition methods and system |
| CN107239302A (en) * | 2017-05-10 | 2017-10-10 | 努比亚技术有限公司 | A kind of firmware upgrade method, terminal and server |
| US10983783B2 (en) | 2017-08-30 | 2021-04-20 | Huawei Technologies Co., Ltd. | Firmware update method and related apparatus |
| WO2019041166A1 (en) * | 2017-08-30 | 2019-03-07 | 华为技术有限公司 | Method for updating firmware and related apparatus |
| CN110083371B (en) * | 2018-01-26 | 2021-01-19 | 比亚迪股份有限公司 | A vehicle program update system and method, update tool and storage medium |
| CN110083371A (en) * | 2018-01-26 | 2019-08-02 | 比亚迪股份有限公司 | A kind of vehicle program updating system and method, more new tool and storage medium |
| CN109240721A (en) * | 2018-08-24 | 2019-01-18 | 江苏恒宝智能系统技术有限公司 | A kind of method of MCU online upgrading |
| CN109358872A (en) * | 2018-09-21 | 2019-02-19 | 广东美的暖通设备有限公司 | Remote firmware upgrade method, device and computer-readable storage medium |
| CN109450977B (en) * | 2018-10-09 | 2021-12-14 | 创新先进技术有限公司 | Method and device for pushing and updating cached data |
| CN109450977A (en) * | 2018-10-09 | 2019-03-08 | 阿里巴巴集团控股有限公司 | Data cached push, update method and device |
| CN109766115B (en) * | 2019-01-17 | 2022-06-03 | 广东小天才科技有限公司 | A fool-proof method and system for upgrading intelligent equipment |
| CN109766115A (en) * | 2019-01-17 | 2019-05-17 | 广东小天才科技有限公司 | Fool-proof method and system for intelligent equipment upgrading |
| CN111464571A (en) * | 2019-01-18 | 2020-07-28 | 阿里巴巴集团控股有限公司 | Communication method and system, server and client |
| CN111831297A (en) * | 2019-04-17 | 2020-10-27 | 中兴通讯股份有限公司 | Zero-difference upgrade method and device |
| CN111131146B (en) * | 2019-11-08 | 2021-04-09 | 北京航空航天大学 | A software system deployment and incremental update method for multiple supercomputing centers in a wide-area environment |
| CN111131146A (en) * | 2019-11-08 | 2020-05-08 | 北京航空航天大学 | Multi-supercomputing center software system deployment and incremental updating method in wide area environment |
| CN111064571A (en) * | 2020-01-09 | 2020-04-24 | 青岛海信移动通信技术股份有限公司 | A communication terminal, a server and a method for dynamically updating a pre-shared key |
| CN111562926A (en) * | 2020-04-03 | 2020-08-21 | 江苏能电科技有限公司 | System and method for updating circuit breaker firmware |
| CN113608757A (en) * | 2021-06-17 | 2021-11-05 | 深圳市元征未来汽车技术有限公司 | Data processing method of tire pressure sensor and related device |
| CN113608757B (en) * | 2021-06-17 | 2024-12-13 | 深圳市元征未来汽车技术有限公司 | Data processing method and related device of tire pressure sensor |
| CN113900682A (en) * | 2021-09-08 | 2022-01-07 | 深圳Tcl新技术有限公司 | System software upgrading method, device, equipment and computer storage medium |
| CN121764485A (en) * | 2026-03-02 | 2026-03-31 | 安擎计算机信息股份有限公司 | BIOS refreshing method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106161336A (en) | A kind of information updating method, Apparatus and system | |
| CN102804194B (en) | For providing method and the device of application security | |
| US9870463B2 (en) | Permission management method, apparatus, and terminal | |
| CN104462965B (en) | Application integrity verification method and the network equipment | |
| WO2020042778A1 (en) | Firmware upgrade method and device | |
| WO2022237123A1 (en) | Method and apparatus for acquiring blockchain data, electronic device, and storage medium | |
| CN108683502B (en) | Digital signature verification method, medium and equipment | |
| CN104751049B (en) | A kind of application program installation method and mobile terminal | |
| US10783277B2 (en) | Blockchain-type data storage | |
| US8819361B2 (en) | Retaining verifiability of extracted data from signed archives | |
| WO2021114614A1 (en) | Application program secure startup method and apparatus, computer device, and storage medium | |
| WO2016019790A1 (en) | Verification method, client, server and system for installation package | |
| CN112632573B (en) | Intelligent contract execution method, device, system, storage medium and electronic equipment | |
| CN105468659A (en) | Data synchronizing method and apparatus | |
| CN106709324A (en) | Method and equipment used for verifying application safety | |
| US20170286075A1 (en) | Resource injection for application wrapping | |
| CN115248919A (en) | Method, device, electronic device and storage medium for calling function interface | |
| CN117591195A (en) | Method and device for starting target application and storage medium | |
| CN111177703B (en) | Method and device for determining data integrity of operating system | |
| US11244077B2 (en) | Securing data integrity for an application | |
| KR20170089352A (en) | Firmware integrity verification for performing the virtualization system | |
| WO2025246556A1 (en) | Method and apparatus for booting server, and storage medium and electronic device | |
| CN108199827A (en) | Client code integrity checking method, storage medium, electronic equipment and system | |
| CN108512824B (en) | Management method of home cloud files and mobile terminal | |
| CN114499892B (en) | Firmware starting method and device, computer equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1230369 Country of ref document: HK |
|
| TA01 | Transfer of patent application right |
Effective date of registration: 20201214 Address after: Room 603, 6 / F, Roche Plaza, 788 Cheung Sha Wan Road, Kowloon, China Applicant after: Zebra smart travel network (Hong Kong) Limited Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands Applicant before: Alibaba Group Holding Ltd. |
|
| TA01 | Transfer of patent application right | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |
|
| RJ01 | Rejection of invention patent application after publication | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1230369 Country of ref document: HK |