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 CN201510956788.8A CN201510956788A CN105589718A CN 105589718 A CN105589718 A CN 105589718A CN 201510956788 A CN201510956788 A CN 201510956788A CN 105589718 A CN105589718 A CN 105589718A
Authority
CN
China
Prior art keywords
data
updating
check
update
delta package
Prior art date
Application number
CN201510956788.8A
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
Application filed by 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Priority to CN201510956788.8A priority Critical patent/CN105589718A/en
Publication of CN105589718A publication Critical patent/CN105589718A/en

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 for updating system of smart machine and updating device

Technical field

The present invention relates to a kind of method for updating system and updating device of smart machine. Particularly, the present invention relates toAnd a kind of method for updating system of altering system feature and renewal due to superuser right in smart machineDevice.

Background technology

Smart machine is provided with operating system conventionally, so that user uses, and is convenient to developer and carries outBased on the application of this smart machine. In smart machine, for developer carries out the reason such as exploitation of system, behaviourBe typically provided with superuser right (Root) as system. Under superuser right, can exceed generalThe actions such as the reading and writing data of opereating specification, additions and deletions, amendment, because these actions may relate to operating system fortuneThe essential data of row, domestic consumer does not normally need this superuser right to carry out smart machineOperation.

The operating system of smart machine often needs to upgrade and upgrades, so that the security of operating system,Convenience and operability remain on preferable states. After smart machine is paid, conventionally download by aerialTechnology (OverTheAir, OTA) is sent to smart machine end by required upgrade data by service end. ConventionallyGround, in order to save the data volume of transmitting through OTA, upgrade data adopts incremental mode to distribute,Related file, the data etc. of only this being upgraded transmit, and existing version and upgraded version itBetween there is intercommunity, without the file of data variation not included in delta package.

In order to prevent that the change that the file for operating system under aforesaid superuser right, data are carried out from existingWhile carrying out system update upgrading, meet accident, normally, in the time utilizing delta package mode to carry out system update,Need to carry out verification to file, the data etc. of wanting to carry out incremental update. If discovery in the time that system is carried out to verificationFile signature changes and can not be by checking, thinks that this system is not in state that can safety upgrade,Thereby refusal carries out incremental update. In this case, user can not use nearest renewal system, therebyAffect user's experience.

Summary of the invention

Based on this, be necessary to provide a kind of method for updating system of smart machine, can superuser right underNormally carry out the renewal of system.

In addition, be also necessary to provide a kind of system updating device of corresponding smart machine.

A method for updating system for smart machine, comprising:

Receive delta package system update data;

Carry out system check based on described delta package system update data;

If system check is not passed through, ask more new data of full dose packet system;

Receive more new data of full dose packet system;

According to described full dose packet system more new data carry out system update.

Alternatively, describedly carry out system check based on delta package system update data and comprise:

Resolve multiple more new datas that described delta package system update data comprise;

The signature of each the existing data corresponding with described multiple more new datas in system described in verification;

If the signature check of at least one existing data is not passed through, delta package system update data check is obstructedCross.

Alternatively, described reception the first system more new data, receive second system more new data be to establish in intelligenceIn standby, undertaken by over the air.

Alternatively, if file to be updated is revised through superuser right in described system, beSystem verification is not passed through.

Alternatively, the method for updating system of described smart machine described based on described delta package system update numberAfter carrying out system check, further comprise:

Record state, reason that verification is not passed through;

Send the announcement information that described verification is not passed through.

Alternatively, the method for updating system of described smart machine upgrades number described according to described full dose packet systemAfter carrying out system update, further comprise:

Remove the result that described verification is not passed through;

Be configured to delta package system update data and carry out system update.

A system updating device for smart machine, comprising:

Receiver module, is configured to receive delta package system update data;

Correction verification module, is configured to carry out system check based on described delta package system update data;

Request module, is configured at more new data of the obstructed out-of-date request full dose packet system of system check;

Wherein said receiver module is also configured to receive more new data of full dose packet system;

More new module, be configured to according to described full dose packet system more new data carry out system update.

Alternatively, described correction verification module is configured to:

Resolve multiple more new datas that described delta package system update data comprise;

The signature of each the existing data corresponding with described multiple more new datas in system described in verification;

If the signature check of at least one existing data is not passed through, delta package system update data check is obstructedCross.

Alternatively, described correction verification module is configured to: if in described system through superuser right and by be updatedFile is revised, and system check is not passed through.

Alternatively, the system updating device of described smart machine further comprises input/output module, is configured toReceive the more request instruction of new data of request full dose packet system; Described request module is further configured to according to instituteState request instruction and ask more new data of full dose packet system.

Update method and the updating device of the system by the each embodiment of the present invention, can be based on delta packageSystem update data are carried out after system check failure, more new data of request receiving full dose packet system, and utilize completeAmount packet system more new data is carried out the renewal of system. Even if make to have carried out under superuser right correspondingThe amendment of file, data and also can normally carry out the renewal of system in situation that verification is not passed through, is usedFamily can use latest function and the experience of operating system.

Brief description of the drawings

Fig. 1 is the flow chart of the update method of the system of one embodiment of the present invention;

Fig. 2 upgrades failed user interface schematic diagram under a kind of embodiment;

Fig. 3 indicates alternative patterns and receives the more finger of new data of request second system under a kind of embodimentThe user interface schematic diagram of order;

Fig. 4 is a kind of modular structure schematic diagram of updating device of system of embodiment.

Detailed description of the invention

As shown in Figure 1, the flow chart of the update method of its system that is one embodiment of the present invention. This isSystem can be the smart machine operating system based on Linux, Unix and/or class Unix, such as Android etc.

Based on a kind of smart machine of operating system, such as mobile phone, smart mobile phone, panel computer etc. are establishedStandby, for making system keep the state upgrading, for example, can be applied to up-to-date security strategy, operation skill,Need to upgrade and corresponding upgrading operating system. Normally, equipment manufacturers are by the aerial skill of downloadingArt (OverTheAir, OTA) is upgraded and the more distribution of new data. Because the data of operating systemHuge, conventionally during upgrading at OTA, file, the data only needs upgraded are distributed, and adopt incrementPacket mode is carried out renewal, the upgrading of system; Instead of operating system overall data is all distributed, to saveThe OTA data volume of transmitting of upgrading.

Normally, carry out the application and development based on operating system for ease of technological development personnel, operating system is establishedHave superuser right (Root authority), under Root authority, developer can in operating systemOn a large scale file, data modify, the operation such as additions and deletions and change. Typically, these files,Data are vital for the normal operation of operating system, do not allow domestic consumer to operate, in order to avoidProduce the infringement to operating system. Therefore state when, equipment dispatches from the factory is user not to be opened to Root authority.But, some leak that user can be based on operating system and obtain Root authority, by system root. LogicalCross OTA carry out system upgrade with upgrade time, will be to the signature of the file that will upgrade in OTA delta packageCarry out verification, whether crossed through Root with check system, or revised inadequately. If verification knotFruit thinks that system crossed by Root or unsuitable amendment, can cause OTA to upgrade unsuccessfully.

Step 102, receives more new data of the first system.

Particularly, this first system more new data be the more new data of system delta package of downloading by OTA mode.

Step 104, based on described the first system more new data carry out system check.

Particularly, the upgrading update mode of delta package is: delta package comprised in existing system versionThere are amendment, the renewal of file/data, can be included in increment for the file, the data that do not need amendmentBao Zhong. In one embodiment, this step of carrying out system check is embodied as: according in OTA delta packageWish upgrade data and the signature of corresponding existing file/data in system is carried out to verification.

According to the optional embodiment of one, can be one by one to file/data included in delta package and rightCorresponding document/data in existing system version are carried out verification.

According to the optional embodiment of another kind, can be using All Files/data in existing system version as oneIndividual entirety is carried out verification.

Step 106, if verification is passed through in step 104, according to the first system more new data carry out system moreNewly.

Particularly, if do not find in verification, system is revised extremely, as system is crossed or other by RootUnsuitable amendment, carries out system update upgrading according to this delta package receiving.

Step 108, if system check is not passed through in step 104, asks more new data of second system.

Particularly, if discovery system is crossed by Root or has been carried out other unsuitable amendments in verification,Do not carry out system update by OTA delta package, then request service end carries out more new liter with full dose packet modeLevel.

In optional embodiment, for the operating systems such as Android, the renewal upgrading of system conventionallyUnder its recovery pattern (Recovery), carry out. If system has been carried out Root, OTA upgrading will be notCan normally carry out, in the case, system will record state and the reason that upgrading is failed, and exits RecoveryAnd restart facility. After restarting, read state and the reason data of this upgrading failure by OTA, andSend the notice that upgrading is failed. Fig. 2 has shown a kind of notice form of upgrading failure of example.

In the time again entering OTA upgrading, export the current notice in reparation pattern by user interface, andWait for the instruction that receives request full dose bag upgrade data. Shown in Fig. 3 is this reparation pattern notice and receptionThe user interface signal of full dose bag upgrade data instruction.

After receiving the instruction of request full dose bag upgrade data, to more new data of service end request full dose bag.

Step 110, receives more new data of second system.

Particularly, carry out the download of full dose bag upgrade data by OTA. In one embodiment, repairingWhile carrying out the download of upgrade data under complex pattern, can in user interface, export information: repair bag meetingThe Root state of repair system and the file being modified.

In the optional embodiment of one, can also export full dose bag download status information and: due toRepair bag larger, the time that download need to be longer.

Step 112, according to described second system more new data carry out system update.

Particularly, after full dose bag has been downloaded, will upgrade upgrading to system according to full dose bag.

Be understandable that, in optional embodiment, if by the request of this full dose bag, download, renewalBe arranged under " reparation pattern " and carry out,, after this reparation pattern has been upgraded, can dispose former upgrading and loseThe information losing, is returned to normal upgrade logic, removes the reparation pattern printed words on interface, downloads logic and changesFor delta package upgrading mode.

By the method for updating system of the each embodiment of the present invention, can cause the upgrading of OTA delta package at rootFailure time is carried out system update upgrading by downloading full dose bag, and the operability, security that has ensured system is inNew state, has promoted user's experience.

As shown in Figure 4, the construction module figure of the updating device of its system that is one embodiment of the present invention.The updating device 400 of this system comprises receiver module 402, correction verification module 404, request module 406, upgradesModule 408 and input/output module 410 etc.

It is defeated that input/output module 410 is configured to carry out system update for the updating device 400 in this systemGo out more new state, reception and upgrade operational order etc. In the optional embodiment of one, this I/O mouldPiece 410 can be configured to comprise the equipment for output state information such as display device, printing device; And/orComprise the equipment for inputting such as keyboard, motion tracking; Also can be configured to comprise the input such as touch display screen/The equipment of output one.

Receiver module 402 is configured to receive more new data of the first system. In optional embodiment, this is the years oldOne system update data are downloaded reception by over the air OTA. Further, receiver module 402Received the first system more new data is that OTA delta package is upgraded upgrade data. Particularly, delta packageUpgrading update mode is: delta package has comprised amendment to existing file/data in existing system version, moreNewly, can not be included in delta package for the file, the data that do not need amendment.

Correction verification module 404 is connected with receiver module 402, is configured to receive based on described receiver module 402To the first system more new data carry out system check.

In one embodiment, correction verification module 404 is embodied as: received according to receiver module 402In OTA delta package wish upgrade data and the signature of corresponding existing file/data in system is carried out to verification.

According to the optional embodiment of one, correction verification module 404 can be one by one to included in delta packageFile/data and the corresponding document/data in existing system version are carried out to verification.

According to the optional embodiment of another kind, correction verification module 404 can be by all literary compositions in existing system versionPart/data are done the as a whole verification of carrying out.

Request module 406 is connected with correction verification module 404, is configured in the system check of correction verification module 404 notBy time, request second system more new data.

In one embodiment, the second system of wish request more new data be full dose bag upgrade upgrade data.Particularly, if correction verification module 404 in verification discovery system by Root or carried out other unsuitable repairingChange, do not carry out system update by OTA delta package, request module 406 then request service end are with entirelyAmount packet mode is upgraded upgrading.

In optional embodiment, for the operating systems such as Android, the renewal upgrading of system conventionallyUnder its recovery pattern (Recovery), carry out. If system has been carried out Root, OTA upgrading will be notCan normally carry out, in the case, system will record state and the reason that upgrading is failed, and exits RecoveryAnd restart facility. After restarting, read state and the reason data of this upgrading failure by OTA, andCan send the notice that upgrading is failed by input/output module 410. A kind of notice shape of upgrading failure of exampleFormula as shown in Figure 2.

In one embodiment, in the time again entering OTA upgrading, export by input/output module 410Current in repairing the notice of pattern, and wait for the instruction that receives request full dose bag upgrade data. A kind of exampleThis reparation pattern notice and the user interface that receives the instruction of full dose bag upgrade data as shown in Figure 3. DefeatedAfter enter/output module 410 receives the instruction of request full dose bag upgrade data, request module 406 will be to clothesMore new data of business end request full dose bag.

Receiver module 402 is also configured to receive more new data of second system.

Particularly, receiver module 402 will carry out the download of full dose bag upgrade data by OTA. Real in oneExecute in mode, carry out the download of upgrade data under reparation pattern time, can pass through input/output module 410In user interface, export information: repair the Root state of bag meeting repair system and the file being modified.

In the optional embodiment of one, input/output module 410 can also be exported the shape that full dose bag is downloadedState information and: due to repair bag larger, the time that download need to be longer.

More new module 408 be configured to according to described second system more new data carry out system update.

Particularly, after receiver module 402 has been downloaded full dose bag, more new module 408 will be according to entirelyAmount bag upgrades upgrading to system.

Be understandable that, in optional embodiment, if by the request of this full dose bag, download, renewalBe arranged under " reparation pattern " and carry out,, after this reparation pattern has been upgraded, can dispose former upgrading and loseThe information losing, is returned to normal upgrade logic; Correspondingly, input/output module 410 will remove on interfaceReparation pattern printed words, download logic and change delta package upgrading mode into.

By the system updating device of the each embodiment of the present invention, can cause the upgrading of OTA delta package at rootFailure time is carried out system update upgrading by downloading full dose bag, and the operability, security that has ensured system is inNew state, has promoted user's experience.

Each technical characterictic of the above embodiment can combine arbitrarily, for making to describe succinctly, not rightThe all possible combination of each technical characterictic in above-described embodiment is all described, but, as long as these skillsThere is not contradiction in the combination of art feature, is all considered to be the scope that this description is recorded.

The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed,But can not therefore be construed as limiting the scope of the patent. It should be pointed out that for this areaThose of ordinary skill, without departing from the inventive concept of the premise, can also make some distortion and changeEnter, these all belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be with appended powerProfit requires to be as the criterion.

Claims (10)

1. a method for updating system for smart machine, is characterized in that, comprising:
Receive delta package system update data;
Carry out system check based on described delta package system update data;
If system check is not passed through, ask more new data of full dose packet system;
Receive more new data of full dose packet system;
According to described full dose packet system more new data carry out system update.
2. the method for updating system of smart machine according to claim 1, is characterized in that: described baseCarrying out system check in delta package system update data comprises:
Resolve multiple more new datas that described delta package system update data comprise;
The signature of each the existing data corresponding with described multiple more new datas in system described in verification;
If the signature check of at least one existing data is not passed through, delta package system update data check is obstructedCross.
3. the method for updating system of smart machine according to claim 1, is characterized in that, described in connectReceive the first system more new data, receive second system more new data be by the aerial skill of downloading in smart machineArt is carried out.
4. the method for updating system of smart machine according to claim 1, is characterized in that: if described inIn system, through superuser right, file to be updated is revised, system check is not passed through.
5. the method for updating system of smart machine according to claim 1, is characterized in that, describedAfter carrying out system check based on described delta package system update data, further comprise:
Record state, reason that verification is not passed through;
Send the announcement information that described verification is not passed through.
6. the method for updating system of smart machine according to claim 1, is characterized in that, describedAfter according to described full dose packet system, more new data carries out system update, further comprise:
Remove the result that described verification is not passed through;
Be configured to delta package system update data and carry out system update.
7. a system updating device for smart machine, is characterized in that, comprising:
Receiver module, is configured to receive delta package system update data;
Correction verification module, is configured to carry out system check based on described delta package system update data;
Request module, is configured at more new data of the obstructed out-of-date request full dose packet system of system check;
Wherein said receiver module is also configured to receive more new data of full dose packet system;
More new module, be configured to according to described full dose packet system more new data carry out system update.
8. the system updating device of smart machine according to claim 7, is characterized in that: described schoolTesting block configuration is:
Resolve multiple more new datas that described delta package system update data comprise;
The signature of each the existing data corresponding with described multiple more new datas in system described in verification;
If the signature check of at least one existing data is not passed through, delta package system update data check is obstructedCross.
9. the system updating device of smart machine according to claim 7, is characterized in that: described schoolTesting block configuration is: if file to be updated is revised through superuser right in described system,System check is not passed through.
10. the system updating device of smart machine according to claim 7, is characterized in that, enters oneStep comprises input/output module, is configured to receive the more request instruction of new data of request full dose packet system; DescribedRequest module is further configured to the instruction according to described request and asks more new data of full dose packet system.
CN201510956788.8A 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
CN201510956788.8A 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
CN201510956788.8A 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 CN105589718A (en) 2016-05-18

Family

ID=55929324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510956788.8A 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634979A (en) * 2019-01-04 2019-04-16 北京互金新融科技有限公司 Data-updating method and device

Citations (4)

* 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
WO2015131603A1 (en) * 2014-07-24 2015-09-11 中兴通讯股份有限公司 Differential upgrade method, serving end and terminal

Patent Citations (4)

* 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
WO2015131603A1 (en) * 2014-07-24 2015-09-11 中兴通讯股份有限公司 Differential upgrade method, serving end and terminal
CN104216736A (en) * 2014-08-14 2014-12-17 小米科技有限责任公司 Method and device for incremental upgrading and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634979A (en) * 2019-01-04 2019-04-16 北京互金新融科技有限公司 Data-updating method and device

Similar Documents

Publication Publication Date Title
CN106415571B (en) By assets security it is supplied to the module of target device
US9319822B2 (en) Over-the-air update method for continuous delta of an Android operating system of a handheld device
CN103176824B (en) A kind of method and device of system upgrade
CN102232304B (en) Method, system and terminal for system update between mobile communication terminals
CN102413167B (en) Virtual and physical enterprise system imaging
US8539471B2 (en) Updating firmware of an electronic device
CN101739275B (en) Systems and methods to provide customized release notes during a software system upgrade of a process control system
CN101432690B (en) BIOS configuration update technique
US20150220326A1 (en) Mobile Terminal and Software Upgrade Method Thereof
CN103229144B (en) Preheating software is installed
US7313577B2 (en) Generating difference files using module information of embedded software components
CN102622298B (en) Software testing system and method
CN102368718B (en) Monitoring program method and system thereof
CN103748569B (en) The system and method without driving operation of USB device
US8589909B2 (en) Techniques for reducing down time in updating applications with metadata
JP2009110527A (en) Upgrading of electronic files including automatic recovery from failure and errors occurring during the upgrade
CN100546254C (en) The method and apparatus that is used for the configuration of management cluster computer
CN105103132A (en) Healing cloud services during upgrades
CN100566357C (en) Communication apparatus batch configuration managerial approach and device thereof
US20100095159A1 (en) Apparatus and method for automatic testing of software or digital devices
CN102855146A (en) Firmware updating system and method
CN103294503A (en) Server deployment system and method for updating data
US9092230B2 (en) Configuration of componentized software applications
CN102238093B (en) Service interruption prevention method and device
CN102045390A (en) Automated deployment of computer-specific software updates

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination