CN105589718A - System updating method and updating apparatus for intelligent device - Google Patents

System updating method and updating apparatus for intelligent device Download PDF

Info

Publication number
CN105589718A
CN105589718A CN 201510956788 CN201510956788A CN105589718A CN 105589718 A CN105589718 A CN 105589718A CN 201510956788 CN201510956788 CN 201510956788 CN 201510956788 A CN201510956788 A CN 201510956788A CN 105589718 A CN105589718 A CN 105589718A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
system
data
update
packet
incremental
Prior art date
Application number
CN 201510956788
Other languages
Chinese (zh)
Inventor
许奇
Original Assignee
深圳市万普拉斯科技有限公司
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]

Abstract

The invention discloses a system updating method for an intelligent device. The method comprises the steps of receiving incremental package system updating data; based on the incremental package system updating data, performing system checking; if the system checking is not passed, requesting for total-quantity package system updating data; receiving the total package system updating data; and according to the total-quantity package system updating data, performing system updating. According to the system updating method for the intelligent device, the total-quantity package system updating data can be requested under the condition that the system checking performed based on the incremental package system updating data fails, and a system is updated by utilizing the total-quantity package system updating data, so that the system can keep a latest operable state and the security, and the user experience is improved. The invention furthermore provides a system updating apparatus for the intelligent device.

Description

智能设备的系统更新方法与更新装置 The method of updating the system with intelligent devices updating means

技术领域 FIELD

[0001]本发明涉及一种智能设备的系统更新方法与更新装置。 [0001] The present invention relates to an intelligent apparatus and method for updating system updates apparatus. 具体地,本发明涉及一种在智能设备中由于超级用户权限而变更系统特征的系统更新方法及更新装置。 In particular, the present invention relates to a method and system update means updating the intelligent device A superuser changed since the system feature.

背景技术 Background technique

[0002]智能设备通常安装有操作系统,以便于使用者使用,以及便于开发者进行基于该智能设备的应用。 [0002] intelligent devices usually have an operating system, for use by the user, and to facilitate the application developer based on the smart device. 在智能设备中,为开发者进行系统的开发等原因,操作系统通常设有超级用户权限(Root)。 In the smart device, make the reasons for the system development and other developers, operating system usually has superuser privileges (Root). 在超级用户权限下,可以进行超出一般操作范围的数据读写、增删、修改等动作,由于这些动作可能涉及操作系统运行所必备的数据,普通用户正常地并不需要该超级用户权限来进行智能设备的操作。 In superuser privileges, can read and write data beyond the normal operating range, deletions, modifications and other movements, since these actions may involve operating system necessary for the data, the average user does not need superuser privileges normally be operating intelligent devices.

[0003]智能设备的操作系统时常需要进行升级与更新,以使操作系统的安全性、便利性及可操作性保持在较佳状态。 [0003] intelligent device's operating system needs to be upgraded and updated from time to time, so that the operating system's security, convenience and operability kept in better condition. 在智能设备交付之后,通常通过空中下载技术(Over TheAir,0TA)将所需的升级数据由服务端传送到智能设备端。 After the delivery of smart devices, typically required to upgrade the data transfer end smart devices over the air (Over TheAir, 0TA) by the server. 通常地,为了节省透过OTA进行传输的数据量,升级数据采用增量方式进行分发,即仅将本次升级所涉及的文件、数据等进行传送,而在既有版本与升级版本之间具有共通性、无数据变化的文件则不包括在增量包中。 Generally, in order to save the amount of data transmitted through the OTA, upgrade incrementally distributed data, i.e., only the files related to the upgrade, to transmit data, while between the existing and the version upgrade version having commonality, no change in the data file is not included in the incremental package.

[0004]为了防止前述的超级用户权限下对于操作系统的文件、数据进行的更改在进行系统更新升级时发生意外,通常地,在利用增量包方式进行系统更新时,需要对欲进行增量更新的文件、数据等进行校验。 When [0004] In order to prevent the operating system files, updating accident changed during the system upgrade data under the superuser privileges, generally, the system updates the packet using incremental manner, we need to be incrementally updated files, and other data for verification. 若在对系统进行校验时发现文件签名发生变化而不能通过验证,则认为该系统不处于可以安全升级的状态,从而拒绝进行增量更新。 If it is found when the system changes the signature verification document can not be verified, that the system is not in the safe upgrading of state to refuse to carry out an incremental update. 在此情形下,用户将不能使用最近的更新系统,从而影响用户的体验。 In this case, the user will not be able to use the most recent update system, thus affecting the user experience.

发明内容 SUMMARY

[0005]基于此,有必要提供一种智能设备的系统更新方法,可以超级用户权限下正常进行系统的更新。 [0005] Based on this, it is necessary to provide an intelligent device system update method, under normal superuser privileges can update the system.

[0006]此外,还有必要提供一种相应的智能设备的系统更新装置。 [0006] In addition, there is a need to provide a system updating means to a corresponding smart device.

[0007] —种智能设备的系统更新方法,包括: [0007] - kind of intelligent devices in the system update methods, including:

[0008]接收增量包系统更新数据; [0008] The packet reception system incremental update data;

[0009]基于所述增量包系统更新数据进行系统校验; [0009] incremental update data based on the system check packet system;

[0010]若系统校验不通过,则请求全量包系统更新数据; [0010] If the system check is not passed, the total amount of the packet data system update is requested;

[0011]接收全量包系统更新数据; [0011] The receiving system updates the total amount of the packet data;

[0012]根据所述全量包系统更新数据进行系统更新。 [0012] The data update system updates the system according to the total amount of packets.

[0013]可选地,所述基于增量包系统更新数据进行系统校验包括: [0013] Optionally, the system includes a verification system based on incremental update data packet:

[0014]解析所述增量包系统更新数据中包括的多个更新数据; [0014] The parsing system incremental update data packet comprises a plurality of updating data;

[0015]校验所述系统中与所述多个更新数据相对应的各个既有数据的签名; [0015] The verification system of the plurality of update data corresponding to the respective signature existing data;

[0016]若至少一个既有数据的签名校验不通过,则增量包系统更新数据校验不通过。 [0016] If both of the at least one signature data verification is not passed, the incremental package system update data verification is not passed.

[0017]可选地,所述接收第一系统更新数据、接收第二系统更新数据是在智能设备中通过空中下载技术进行的。 [0017] Alternatively, the system updates the first data reception, receiving a second system update data is carried over the air in the intelligent device.

[0018]可选地,若所述系统中经超级用户权限而将待更新文件进行了修改,则系统校验不通过。 [0018] Alternatively, if the system to be updated and the file has been modified by the superuser privileges, the system does not pass the check.

[0019]可选地,所述智能设备的系统更新方法在所述基于所述增量包系统更新数据进行系统校验之后,进一步包括: [0019] Alternatively, the smart devices in the system after the updating method based on the system check packet system incremental update data, further comprising:

[0020]记录校验不通过的状态、原因; [0020] The state of the recording verification is not passed, the reason;

[0021 ]发送所述校验不通过的通知信息。 [0021] The notification information does not pass the check.

[0022]可选地,所述智能设备的系统更新方法在所述根据所述全量包系统更新数据进行系统更新之后,进一步包括: [0022] Alternatively, the smart devices in the system after the updating method updating system according to the total amount of packet data update system, further comprising:

[0023]清除所述校验不通过的结果; [0023] Clear does not pass the check result;

[0024]配置以增量包系统更新数据进行系统更新。 [0024] incremental package system is configured to update data system updates.

[0025] —种智能设备的系统更新装置,包括: [0025] - updating means kinds of intelligent system device, comprising:

[0026]接收模块,配置为接收增量包系统更新数据; [0026] a receiving module, configured to receive a packet system incremental update data;

[0027]校验模块,配置为基于所述增量包系统更新数据进行系统校验; [0027] The calibration module configured system based on the incremental update data packet verification system;

[0028]请求模块,配置为在系统校验不通过时请求全量包系统更新数据; [0028] The requesting module, configured to request the whole amount of packet data update system when the system does not pass verification;

[0029]其中所述接收模块还配置为接收全量包系统更新数据; [0029] wherein the receiving module is further configured to receive the whole amount of system update data packet;

[0030]更新模块,配置为根据所述全量包系统更新数据进行系统更新。 [0030] updating module configured to update the system according to the total amount of system update data packet.

[0031 ]可选地,所述校验模块配置为: [0031] Alternatively, the verification module is configured to:

[0032]解析所述增量包系统更新数据中包括的多个更新数据; [0032] The parsing system incremental update data packet comprises a plurality of updating data;

[0033]校验所述系统中与所述多个更新数据相对应的各个既有数据的签名; [0033] The verification system of the plurality of update data corresponding to the respective signature existing data;

[0034]若至少一个既有数据的签名校验不通过,则增量包系统更新数据校验不通过。 [0034] If both of the at least one signature data verification is not passed, the incremental package system update data verification is not passed.

[0035]可选地,所述校验模块配置为:若所述系统中经超级用户权限而将待更新文件进行了修改,则系统校验不通过。 [0035] Alternatively, the verification module is configured to: if the system via superuser privileges to be updated and the file has been modified, the verification system fails.

[0036]可选地,所述智能设备的系统更新装置进一步包括输入/输出模块,配置为接收请求全量包系统更新数据的请求指令;所述请求模块进一步配置为根据所述请求指令而请求全量包系统更新数据。 [0036] Alternatively, the system updates the smart device further comprises input means / output module configured to receive a request packet system the total amount of the update data request command; the request module is further configured to request according to the request command and the total amount of system update data packet.

[0037]通过本发明各实施方式的系统的更新方法与更新装置,可以在基于增量包系统更新数据进行系统校验失败后,请求接收全量包系统更新数据,并利用全量包系统更新数据来进行系统的更新。 [0037] By the present invention, various embodiments updating method and renewal apparatus system according to, may be the system calibration fails based on incremental package system update data request receiving whole amount of packet system update data, and use the whole amount bag system update data to update the system. 使得即使在超级用户权限下进行了相应文件、数据的修改而使得校验不通过的情况下也能正常进行系统的更新,使用户可以使用到操作系统的最新功能与体验。 So that even if the corresponding file in the super-user privileges, modify the data so that the case does not pass the check can also update the system's normal, so that users can use to experience the latest features and operating system.

附图说明 BRIEF DESCRIPTION

[0038]图1为本发明一种实施方式的系统的更新方法的流程图; [0038] A flowchart of FIG method for updating system according to the present embodiment of the invention;

[0039]图2为一种实施方式下更新失败的用户界面示意图; [0039] FIG. 2 is a schematic diagram of a user interface update failed under an embodiment;

[0040]图3为一种实施方式下指示替换模式以及接收请求第二系统更新数据的指令的用户界面示意图; [0040] FIG. 3 is an embodiment of indicating the replacement pattern of the system and a schematic view of a second instruction data to update a user interface receiving a request;

[0041 ]图4为一种实施方式的系统的更新装置的模块结构示意图。 [0041] FIG. 4 is a schematic block configuration updating apparatus of one embodiment of the system.

具体实施方式 Detailed ways

[0042]如图1所示,其为本发明一种实施方式的系统的更新方法的流程图。 [0042] 1, which is a flowchart of the present method for updating one kind of a system embodiment of the invention. 该系统可以是基于Linux、Unix及/或类Unix的智能设备操作系统,例如Android等。 The system may be based on Linux, Unix, and / or a Unix operating system intelligent devices, such as Android like.

[0043]基于一种操作系统的智能设备,例如移动电话、智能手机、平板电脑等设备,为使得系统保持更新的状态,例如可以应用到最新的安全策略、操作技巧,需要对操作系统进行更新和相应的升级。 [0043] based on one operating system for smart devices such as mobile phones, smart phones, tablet computers and other equipment, such system to maintain the status update, for example, can be applied to the latest security policy, operational skills, the need for an operating system update and the corresponding upgrade. 通常地,设备制造商通过空中下载技术(Over The Air,0ΤΑ)来进行升级与更新数据的分发。 Typically, the equipment manufacturers to distribute upgrades and update data through the OTA (Over The Air, 0ΤΑ). 有鉴于操作系统的数据庞大,通常在OTA升级中,只将需要更新的文件、数据进行分发,即采用增量包方式进行系统的更新、升级;而不是将操作系统整体数据全部分发,以节省OTA升级所传输的数据量。 In view of the huge operating system data, usually in OTA upgrade, only you need to update the file, data distribution, which uses an incremental packet mode for system updates, upgrades; instead of all data distribution operating system as a whole, in order to save the amount of data transmitted OTA upgrade.

[0044]通常地,为便于技术开发人员进行基于操作系统的应用开发,操作系统设有超级用户权限(Root权限),在Root权限下,开发人员可以对操作系统中较大范围的文件、数据进行修改、增删以及变更等操作。 [0044] Generally, for ease of application development technology developers based operating system, the operating system has superuser privileges (Root privileges), under Root permission, developers can file for a large range of operating system, data modifications, additions and deletions, and changes and other operations. 通常而言,这些文件、数据对于操作系统的正常运行是至关重要的,不允许普通用户进行操作,以免产生对操作系统的损害。 In general, these files, the data is the operating system for the normal operation of critical, it does not allow ordinary users to operate, in order to avoid damage to the operating system. 因此,设备出厂时的状态是不对用户开放Root权限的。 Therefore, the state of equipment factory is not open to users Root privileges. 不过,用户可以基于操作系统的某些漏洞而获得Root权限,SP将系统root。 However, users can obtain Root privileges based on certain loopholes in the operating system, SP system root. 通过OTA进行系统升级与更新时,将会对OTA增量包中所要更新的文件的签名进行校验,以检查系统是否经Root过了,或者已经被不适当地修改。 When the system upgrades and updates through OTA, OTA will increment the signature package to be updated files can be verified to check whether the system passed through the Root, or has been improperly modified. 若校验结果认为系统已经被Root过或者不适当的修改,则会导致OTA更新失败。 If the check has concluded that the system had been Root or improper modification will result in OTA update failed.

[0045]步骤102,接收第一系统更新数据。 [0045] Step 102, the system receives a first update data.

[0046]具体地,该第一系统更新数据为通过OTA方式下载的系统增量包更新数据。 [0046] In particular, the system update data is first downloaded OTA manner by incremental package system update data.

[0047]步骤104,基于所述第一系统更新数据进行系统校验。 [0047] Step 104, system calibration system based on the first update data.

[0048]具体地,增量包的升级更新方式为:增量包中包括了对既有系统版本中已有文件/数据的修改、更新,而对于不需要修改的文件、数据则不会包括在增量包中。 [0048] In particular, the upgrade package incremental update mode for: incremental package includes a modified version of the existing system in an existing file / data, updating, and for the need to modify the file, the data will not be included incremental package. 在一种实施方式中,该进行系统校验的步骤实施为:根据OTA增量包中欲更新的数据而对系统中相应的既有文件/数据的签名进行校验。 In one embodiment, the step of the system calibration is implemented: the system verifies both the corresponding file / signature data according delta OTA packet data to be updated.

[0049]根据一种可选的实施方式,可以逐个地对增量包中所包括的文件/数据而对既有系统版本中的相应文件/数据进行校验。 [0049] According to an alternative embodiment, the file can be individually / incremental data packet included in the corresponding file to verify the version of the existing systems / data.

[0050]根据另一种可选的实施方式,可以将既有系统版本中所有文件/数据作为一个整体来进行校验。 [0050] According to another alternative embodiment, the system may be both versions of all files / data for verification as a whole.

[0051]步骤106,若在步骤104中校验通过,则根据第一系统更新数据进行系统更新。 [0051] Step 106, if the check is passed in step 104, the system updates the system according to a first update data.

[0052]具体地,若在校验中没有发现系统被异常修改,如系统被Root过或者其他不适当的修改,则依据该接收到的增量包进行系统更新升级。 [0052] Specifically, if the checksum is not found in the system is abnormally modified as the system is over or other inappropriate Root modified, according to the received incremental package system update.

[0053]步骤108,若在步骤104中系统校验不通过,则请求第二系统更新数据。 [0053] Step 108, the system in step 104 if the verification is not passed, the second system update data is requested.

[0054]具体地,若在校验中发现系统被Root过或者进行了其他不适当的修改,则不通过OTA增量包来进行系统更新,转而请求服务端以全量包方式进行更新升级。 [0054] Specifically, if the system is found to be a Root or through other inappropriate modifications to the system is not updated via OTA incremental package, in turn requests the server to the total amount of packets in the manner upgrade of the verifying.

[0055]在可选的实施方式中,对于Android等操作系统而言,系统的更新升级通常是在其恢复模式(Recovery)下进行的。 [0055] In an alternative embodiment, the other for the Android operating system, the upgrade of the system is usually carried out under its recovery mode (Recovery). 若系统进行了Root,则OTA升级将不能正常进行,在此情况下,系统将记录升级失败的状态与原因,并退出Recovery而重新启动设备。 If the system is Root, the OTA upgrade will not be normal, in this case, the system records the status and reasons for the upgrade failed, and exit Recovery and reboot the device. 重新启动后,由OTA读取该升级失败的状态与原因数据,并发出升级失败的通知。 After the restart, the upgrade failed to read the data from the state and the cause of OTA, and notice the upgrade failed. 图2显示了一种示例的升级失败的通知形式。 Figure 2 shows an exemplary form of notification update failure.

[0056]当再次进入OTA升级时,通过用户界面输出当前处于修复模式的通知,并等待接收请求全量包升级数据的指令。 [0056] When the OTA upgrade again enters, via the user interface output repair mode is currently in the notification and waits for receiving a request to upgrade the total amount of instruction data packet. 图3所示的是该修复模式通知以及接收全量包升级数据指令的用户界面示意。 FIG 3 is the repair mode notification and receiving upgrade data packet the total amount of instruction the user interface is schematically shown.

[0057]在接收到请求全量包升级数据的指令之后,向服务端请求全量包更新数据。 [0057] After receiving the request command upgrade data packet of the total amount, the whole amount of the request packet to the server to update data.

[0058]步骤110,接收第二系统更新数据。 [0058] Step 110, the system receives the second update data.

[0059]具体地,通过OTA进行全量包升级数据的下载。 [0059] Specifically, the total amount of download upgrade data packet via OTA. 在一种实施方式中,在修复模式下进行升级数据的下载时,可以在用户界面上输出提示信息:修复包会修复系统的Root状态和被修改的文件。 In one embodiment, the upgrade data is downloaded in the repair mode, the message may be output on a user interface: repair packets will fix the system state and the Root modified files.

[0060]在一种可选的实施方式中,还可以输出全量包下载的状态信息以及:由于修复包较大,下载需要较长的时间。 [0060] In an alternative embodiment, the package may also output the total amount of state information, and downloading: Since large fixes, takes a long time to download.

[0061]步骤112,根据所述第二系统更新数据进行系统更新。 [0061] Step 112, the update data updating system according to the second system.

[0062]具体地,在全量包下载完成后,将会依据全量包对系统进行更新升级。 [0062] Specifically, after the whole amount of the package download is complete, the package will be based on the full amount of the system update.

[0063]可以理解的是,在可选的实施方式中,若将该全量包的请求、下载、更新设置在“修复模式”下进行,则在该修复模式升级完成后,会清除掉原升级失败的信息,回复到正常的升级逻辑,去掉界面上的修复模式字样,下载逻辑改为增量包升级方式。 [0063] It will be appreciated that, if the total amount of the request packet, download, update settings in the "repair mode" In an alternative embodiment, the repair mode after the completion of the upgrade, the upgrade will remove its original failure of information, return to the normal logic upgrade, remove the word repair mode on the interface, logic download packages instead incremental upgrade.

[0064]通过本发明各实施方式的系统更新方法,可以在root导致OTA增量包升级失败时由下载全量包进行系统更新升级,保证了系统的操作性、安全性处于最新状态,提升了用户的使用体验。 [0064] system by updating method embodiments of the present invention, can be lead to failure during the upgrade by the incremental package OTA downloads upgrade of the whole amount of the package system, to ensure the operability of the system, the security is up to date, to enhance the user root experience.

[0065]如图4所示,其为本发明一种实施方式的系统的更新装置的结构模块图。 [0065] As shown in FIG 4, a block diagram of the structure of the system updating apparatus of one embodiment of the invention which is present. 该系统的更新装置400包括接收模块402、校验模块404、请求模块406、更新模块408以及输入/输出模块410等。 Updating means 400 of the system includes a receiving module 402, verification module 404, a request module 406, updating module 408 and an input / output module 410 and the like.

[0066]输入/输出模块410配置为用于在该系统的更新装置400进行系统更新中输出更新状态、接收更新操作指令等。 [0066] Input / output module 410 configured to update the system status update means updates the output of the system 400, the received update instructions and the like. 在一种可选的实施方式中,该输入/输出模块410可以配置为包括显示设备、打印设备等用于输出状态信息的设备;及/或包括键盘、动作跟踪等用于输入的设备;也可以配置为包括触摸显示屏等输入/输出一体的设备。 In an alternative embodiment, the input / output module 410 may be configured to include a display device, printing device, etc. Output status information for the device; and / or including a keyboard, an input device for tracking motion; that You may be configured to include a touch screen and other input / output devices integrally.

[0067]接收模块402配置为接收第一系统更新数据。 [0067] The receiving module 402 is configured to receive a first system update data. 在可选的实施方式中,该第一系统更新数据通过空中下载技术OTA进行下载接收。 In an alternative embodiment, the system updates the first data reception over the air download OTA. 进一步地,接收模块402所接收到的第一系统更新数据为OTA增量包更新升级数据。 Further, a first receiving module system update data 402 is received OTA update incremental upgrade data packet. 具体地,增量包的升级更新方式为:增量包中包括了对既有系统版本中已有文件/数据的修改、更新,而对于不需要修改的文件、数据则不会包括在增量包中。 Specifically, incremental upgrade package for the update method: Incremental package includes a modified version of the existing system in an existing file / data, updating, and for the need to modify the file, the data will not be included in increments in the bag.

[0068]校验模块404与接收模块402相连,配置为基于所述接收模块402所接收到的第一系统更新数据进行系统校验。 [0068] The verification module 404 is connected with the receiving module 402, the system verifies the configuration of the system based on a first receiving module 402 receives update data.

[0069]在一种实施方式中,校验模块404实施为:根据接收模块402所接收到的OTA增量包中欲更新的数据而对系统中相应的既有文件/数据的签名进行校验。 [0069] In one embodiment, the verification module 404 is implemented as: calibration of the system is performed in both the corresponding file / receiving module according to the signature data OTA incremental package 402 in the received data to be updated .

[0070]根据一种可选的实施方式,校验模块404可以逐个地对增量包中所包括的文件/数据而对既有系统版本中的相应文件/数据进行校验。 [0070] According to an alternative embodiment, the verification module 404 may individually file / data increments the packet included in the corresponding file to verify the version of the existing systems / data.

[0071]根据另一种可选的实施方式,校验模块404可以将既有系统版本中所有文件/数据作为一个整体来进行校验。 [0071] According to another alternative embodiment, the verification module 404 may be the existing system version all files / data for verification as a whole.

[0072]请求模块406与校验模块404相连,配置为在校验模块404的系统校验不通过时,请求第二系统更新数据。 [0072] The request module 406 is connected to the check module 404, when verifying module configured to verify the system 404 does not pass, the system requests the second update data.

[0073]在一种实施方式中,欲请求的第二系统更新数据为全量包更新升级数据。 [0073] In one embodiment, the second update data to be requested by the system for the whole amount of the upgrade of the data packet. 具体地,若校验模块404在校验中发现系统被Root或者进行了其他不适当的修改,则不通过OTA增量包来进行系统更新,请求模块406转而请求服务端以全量包方式进行更新升级。 Specifically, if the check is found in the verification module 404 in the system is carried out or other inappropriate Root modifications to the system is not updated via OTA incremental package, in turn, request module 406 requests the server to be the total amount of packet mode update.

[0074]在可选的实施方式中,对于Android等操作系统而言,系统的更新升级通常是在其恢复模式(Recovery)下进行的。 [0074] In an alternative embodiment, the other for the Android operating system, the upgrade of the system is usually carried out under its recovery mode (Recovery). 若系统进行了Root,则OTA升级将不能正常进行,在此情况下,系统将记录升级失败的状态与原因,并退出Recovery而重新启动设备。 If the system is Root, the OTA upgrade will not be normal, in this case, the system records the status and reasons for the upgrade failed, and exit Recovery and reboot the device. 重新启动后,由OTA读取该升级失败的状态与原因数据,并可以由输入/输出模块410发出升级失败的通知。 After restarting, reads the failed upgrade data by the state of the OTA reason, and a notification may be issued by the upgrade failed input / output module 410. 一种示例的升级失败的通知形式如图2所示。 Upgrade An exemplary form of notification of the failure shown in FIG.

[0075]在一种实施方式中,当再次进入OTA升级时,通过输入/输出模块410输出当前处于修复模式的通知,并等待接收请求全量包升级数据的指令。 [0075] In one embodiment, when entering again OTA upgrade, upgrade request command packet the total amount of data currently in the notification output repair mode input / output module 410, and waits to receive through. 一种示例的该修复模式通知以及接收全量包升级数据指令的用户界面如图3所示。 The repair mode and receiving a notification of an exemplary total amount upgrade data packet command user interface shown in Fig. 在输入/输出模块410接收到请求全量包升级数据的指令之后,请求模块406将向服务端请求全量包更新数据。 After the input / output module 410 receives the request to upgrade the total amount of instruction data packet, the request module requests the server 406 will be the total amount of the update data packet.

[0076]接收模块402还配置为接收第二系统更新数据。 [0076] The receiving module 402 is further configured to receive a second system update data.

[0077]具体地,接收模块402将通过OTA进行全量包升级数据的下载。 [0077] Specifically, the receiving module 402 for download upgrade data packet total amount by OTA. 在一种实施方式中,在修复模式下进行升级数据的下载时,可以通过输入/输出模块410在用户界面上输出提示信息:修复包会修复系统的Root状态和被修改的文件。 In one embodiment, download the upgrade data in the repair mode, the user interface 410 can prompt information through the input / output modules: repair packets will fix the system state and the Root modified files.

[0078]在一种可选的实施方式中,输入/输出模块410还可以输出全量包下载的状态信息以及:由于修复包较大,下载需要较长的时间。 [0078] In an alternative embodiment, the input / output module 410 may also output the total amount of state information, and to download the package: Since fixes large, takes a long time to download.

[0079]更新模块408配置为根据所述第二系统更新数据进行系统更新。 [0079] The system configuration update module 408 updates the updated data according to the second system.

[0080]具体地,在接收模块402将全量包下载完成后,更新模块408将会依据全量包对系统进行更新升级。 [0080] Specifically, the receiving module 402 after the whole amount of the packet download completion, the update module 408 will be based on the total amount of packets the system update.

[0081]可以理解的是,在可选的实施方式中,若将该全量包的请求、下载、更新设置在“修复模式”下进行,则在该修复模式升级完成后,会清除掉原升级失败的信息,回复到正常的升级逻辑;相应地,输入/输出模块410将去掉界面上的修复模式字样,下载逻辑改为增量包升级方式。 [0081] It will be appreciated that, if the total amount of the request packet, download, update settings in the "repair mode" In an alternative embodiment, the repair mode after the completion of the upgrade, the upgrade will remove its original failure message, return to normal logic upgrade; accordingly, the input / output module 410 is removed on the word repair mode interface logic to download the upgrade incremental package.

[0082]通过本发明各实施方式的系统更新装置,可以在root导致OTA增量包升级失败时由下载全量包进行系统更新升级,保证了系统的操作性、安全性处于最新状态,提升了用户的使用体验。 [0082] By updating system of the embodiments of the apparatus of the present invention, can be lead to failure during the upgrade by the incremental package OTA downloads upgrade of the whole amount of the package system, to ensure the operability of the system, the security is up to date, to enhance the user root experience.

[0083]以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。 [0083] each of the above embodiments of the technical features of any combination can be, for the brevity, not each of the technical features of the embodiments described above are all the possible combinations will be described, however, as long as the combination of these features is not contradiction, they are to be considered in the scope described in this specification.

[0084]以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。 [0084] Expression of the above-described embodiments are only several embodiments of the present invention, and detailed description thereof is more specific, but can not therefore be understood to limit the scope of the invention. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, without departing from the spirit of the present invention, can make various changes and modifications, which fall within the protection scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (10)

  1. 1.一种智能设备的系统更新方法,其特征在于,包括: 接收增量包系统更新数据; 基于所述增量包系统更新数据进行系统校验; 若系统校验不通过,则请求全量包系统更新数据; 接收全量包系统更新数据; 根据所述全量包系统更新数据进行系统更新。 CLAIMS 1. A method for updating system intelligent device, characterized by comprising: receiving an incremental update data packet system; system calibration system based on the incremental update data packet; If the system check is not passed, the total amount of the request packet system update data; receiving system updates the total amount of the packet data; updating system according to the total amount of system update data packet.
  2. 2.根据权利要求1所述的智能设备的系统更新方法,其特征在于:所述基于增量包系统更新数据进行系统校验包括: 解析所述增量包系统更新数据中包括的多个更新数据; 校验所述系统中与所述多个更新数据相对应的各个既有数据的签名; 若至少一个既有数据的签名校验不通过,则增量包系统更新数据校验不通过。 2. The system of intelligent device update method according to claim 1, wherein: said packet system based on incremental update data verification system comprising: a plurality of incremental updates parsing the packet data included in the update system transactions; check with the system of the plurality of update data corresponding to each of the both signature data; if at least one legacy data signature verification is not passed, the incremental package system update data verification is not passed.
  3. 3.根据权利要求1所述的智能设备的系统更新方法,其特征在于,所述接收第一系统更新数据、接收第二系统更新数据是在智能设备中通过空中下载技术进行的。 3. The system of the intelligent device update method as claimed in claim 1, wherein the first receiving data update system, the second system receiving the update data is carried over the air in the intelligent device.
  4. 4.根据权利要求1所述的智能设备的系统更新方法,其特征在于:若所述系统中经超级用户权限而将待更新文件进行了修改,则系统校验不通过。 4. The system of intelligent device update method according to claim 1, wherein: if the system via superuser privileges to be updated and the file has been modified, the verification system fails.
  5. 5.根据权利要求1所述的智能设备的系统更新方法,其特征在于,在所述基于所述增量包系统更新数据进行系统校验之后,进一步包括: 记录校验不通过的状态、原因; 发送所述校验不通过的通知信息。 5. The system of intelligent device update method according to claim 1, wherein, after the packet system based on the incremental update data verification system, further comprising: recording a status check does not pass, the reason ; notification information does not pass the check.
  6. 6.根据权利要求1所述的智能设备的系统更新方法,其特征在于,在所述根据所述全量包系统更新数据进行系统更新之后,进一步包括: 清除所述校验不通过的结果; 配置以增量包系统更新数据进行系统更新。 6. The system of intelligent device update method according to claim 1, characterized in that, after the system update based on the total amount of packet data update system, further comprising: clearing the check result does not pass; the configuration in incremental package system update data for updating the system.
  7. 7.一种智能设备的系统更新装置,其特征在于,包括: 接收模块,配置为接收增量包系统更新数据; 校验模块,配置为基于所述增量包系统更新数据进行系统校验; 请求模块,配置为在系统校验不通过时请求全量包系统更新数据; 其中所述接收模块还配置为接收全量包系统更新数据; 更新模块,配置为根据所述全量包系统更新数据进行系统更新。 An intelligent device system update apparatus characterized by comprising: a receiving module, configured to receive a packet system incremental update data; check module, system configuration check system based on the incremental update data packet; a request module configured to update data request whole amount of packet system when the check does not pass; wherein the receiving module is further configured to receive the whole amount of packet system update data; updating module configured to update the system update data based on the whole amount bag system .
  8. 8.根据权利要求7所述的智能设备的系统更新装置,其特征在于:所述校验模块配置为: 解析所述增量包系统更新数据中包括的多个更新数据; 校验所述系统中与所述多个更新数据相对应的各个既有数据的签名; 若至少一个既有数据的签名校验不通过,则增量包系统更新数据校验不通过。 The system updating means smart device according to claim 7, characterized in that: said checking module is configured to: parse the plurality of incremental update data packet included in the data update system; check the system each signature data corresponding to the data existing in the plurality of update; if at least one legacy data signature verification is not passed, the incremental package system update data verification is not passed.
  9. 9.根据权利要求7所述的智能设备的系统更新装置,其特征在于:所述校验模块配置为:若所述系统中经超级用户权限而将待更新文件进行了修改,则系统校验不通过。 The system updating means smart device according to claim 7, characterized in that: said checking module is configured to: if the system via superuser privileges to be updated and the file has been modified, then the system verifies Fail.
  10. 10.根据权利要求7所述的智能设备的系统更新装置,其特征在于,进一步包括输入/输出模块,配置为接收请求全量包系统更新数据的请求指令;所述请求模块进一步配置为根据所述请求指令而请求全量包系统更新数据。 Updating means 10. The system of intelligent devices according to claim 7, characterized in that, further comprising an input / output module configured to receive a request command requesting the total amount of system update data packet; said requesting module is further configured to operate according to the request command requests the system updates the total amount of packet data.
CN 201510956788 2015-12-18 2015-12-18 System updating method and updating apparatus for intelligent device CN105589718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510956788 CN105589718A (en) 2015-12-18 2015-12-18 System updating method and updating apparatus for intelligent device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510956788 CN105589718A (en) 2015-12-18 2015-12-18 System updating method and updating apparatus for intelligent device

Publications (1)

Publication Number Publication Date
CN105589718A true true CN105589718A (en) 2016-05-18

Family

ID=55929324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510956788 CN105589718A (en) 2015-12-18 2015-12-18 System updating method and updating apparatus for intelligent device

Country Status (1)

Country Link
CN (1) CN105589718A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906574A (en) * 2003-11-19 2007-01-31 艾利森电话股份有限公司 Updating data in a mobile terminal
CN104216736A (en) * 2014-08-14 2014-12-17 小米科技有限责任公司 Method and device for incremental upgrading and terminal device
US20150121357A1 (en) * 2013-10-24 2015-04-30 Samsung Electronics Co., Ltd. Method and apparatus for upgrading operating system of electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906574A (en) * 2003-11-19 2007-01-31 艾利森电话股份有限公司 Updating data in a mobile terminal
US20150121357A1 (en) * 2013-10-24 2015-04-30 Samsung Electronics Co., Ltd. Method and apparatus for upgrading operating system of electronic device
CN104216736A (en) * 2014-08-14 2014-12-17 小米科技有限责任公司 Method and device for incremental upgrading and terminal device

Similar Documents

Publication Publication Date Title
Brittain et al. Tomcat: The Definitive Guide: The Definitive Guide
US20040098361A1 (en) Managing electronic file updates on client devices
US6986133B2 (en) System and method for securely upgrading networked devices
US7664834B2 (en) Distributed operating system management
US20060107032A1 (en) Secure code execution using external memory
US20090249335A1 (en) Delivery of Virtualized Workspaces as Virtual Machine Images with Virtualized Hardware, Operating System, Applications and User Data
US20120260250A1 (en) Information processing device, virtual machine creation method, and application distribution system
US20090100420A1 (en) Automatic Acquisition and Installation of Software Upgrades for Collections of Virtual Machines
US20070294676A1 (en) Open virtual appliance
US20050229173A1 (en) Automatic firmware update proxy
US20080216066A1 (en) Program upgrade system and method for ota-capable mobile terminal
US20130139139A1 (en) Automatic updating of an application or a driver on a client device using a deployment configuration file
US6804773B1 (en) System and method for transferring information over a network
US8555273B1 (en) Network for updating electronic devices
US20070250830A1 (en) Method and system for upgrading a plurality of devices
US20060206587A1 (en) System and method for automatically uploading updates
US20090017812A1 (en) Method and system for restoring user settings after over-the-air update of mobile electronic device software
US20130125107A1 (en) Robust firmware update with recovery logic
US20100325622A1 (en) Updating Firmware of an Electronic Device
US20130138783A1 (en) Deployment and updating of applications and drivers on a client device using an extensible markup language (xml) configuration file
US7480907B1 (en) Mobile services network for update of firmware/software in mobile handsets
US20040098420A1 (en) Generating difference files using module information of embedded software components
US20140033188A1 (en) System updates from cloud blob storage using vhd differentials
US20100185845A1 (en) Secure boot terminal, secure boot method, secure boot program, recording medium, and integrated circuit
US8560823B1 (en) Trusted modular firmware update using digital certificate

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination